OSDN Git Service

* configure.in
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for TiMidity++ 2.13.2.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='TiMidity++'
576 PACKAGE_TARNAME='TiMidity++'
577 PACKAGE_VERSION='2.13.2'
578 PACKAGE_STRING='TiMidity++ 2.13.2'
579 PACKAGE_BUGREPORT='root@mput.dip.jp'
580
581 ac_unique_file="timidity/timidity.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 CYGPATH_W
671 PACKAGE
672 VERSION
673 ACLOCAL
674 AUTOCONF
675 AUTOMAKE
676 AUTOHEADER
677 MAKEINFO
678 AMTAR
679 install_sh
680 STRIP
681 INSTALL_STRIP_PROGRAM
682 AWK
683 SET_MAKE
684 am__leading_dot
685 MAINTAINER_MODE_TRUE
686 MAINTAINER_MODE_FALSE
687 MAINT
688 XAW_INSTALL_RESOURCE_FILES_TRUE
689 XAW_INSTALL_RESOURCE_FILES_FALSE
690 xawresdir
691 EMACS
692 lispdir
693 CC
694 CFLAGS
695 LDFLAGS
696 CPPFLAGS
697 ac_ct_CC
698 EXEEXT
699 OBJEXT
700 DEPDIR
701 am__include
702 am__quote
703 AMDEP_TRUE
704 AMDEP_FALSE
705 AMDEPBACKSLASH
706 CCDEPMODE
707 am__fastdepCC_TRUE
708 am__fastdepCC_FALSE
709 CPP
710 GREP
711 EGREP
712 RANLIB
713 LN_S
714 XMKMF
715 X_CFLAGS
716 X_PRE_LIBS
717 X_LIBS
718 X_EXTRA_LIBS
719 LIBOBJS
720 NEEDGETOPT_TRUE
721 NEEDGETOPT_FALSE
722 ALSA_CFLAGS
723 ALSA_LIBS
724 ARTSCCONFIG
725 ARTSLIBS
726 ARTSINCL
727 ESD_CONFIG
728 ESD_CFLAGS
729 ESD_LIBS
730 AO_CFLAGS
731 AO_LIBS
732 VORBIS_CFLAGS
733 VORBIS_LIBS
734 VORBISFILE_LIBS
735 VORBISENC_LIBS
736 OGG_CFLAGS
737 OGG_LIBS
738 LIBFLAC_CFLAGS
739 LIBFLAC_LIBS
740 LIBOGGFLAC_CFLAGS
741 LIBOGGFLAC_LIBS
742 NEEDDLOPEN_TRUE
743 NEEDDLOPEN_FALSE
744 ENABLE_XDND_TRUE
745 ENABLE_XDND_FALSE
746 ENABLE_NCURSES_TRUE
747 ENABLE_NCURSES_FALSE
748 n_so_libs
749 ENABLE_SLANG_TRUE
750 ENABLE_SLANG_FALSE
751 s_so_libs
752 ENABLE_MOTIF_TRUE
753 ENABLE_MOTIF_FALSE
754 m_so_libs
755 ENABLE_TCLTK_TRUE
756 ENABLE_TCLTK_FALSE
757 k_so_libs
758 ENABLE_DYNAMIC_TCLTK_TRUE
759 ENABLE_DYNAMIC_TCLTK_FALSE
760 ENABLE_EMACS_TRUE
761 ENABLE_EMACS_FALSE
762 e_so_libs
763 ENABLE_VT100_TRUE
764 ENABLE_VT100_FALSE
765 T_so_libs
766 ENABLE_XAW_TRUE
767 ENABLE_XAW_FALSE
768 a_so_libs
769 ENABLE_DYNAMIC_XAW_TRUE
770 ENABLE_DYNAMIC_XAW_FALSE
771 ENABLE_XSKIN_TRUE
772 ENABLE_XSKIN_FALSE
773 i_so_libs
774 ENABLE_GTK_TRUE
775 ENABLE_GTK_FALSE
776 PKG_CONFIG
777 GTK_CONFIG
778 GTK_CFLAGS
779 GTK_LIBS
780 g_so_libs
781 ENABLE_SERVER_TRUE
782 ENABLE_SERVER_FALSE
783 r_so_libs
784 ENABLE_ALSASEQ_TRUE
785 ENABLE_ALSASEQ_FALSE
786 A_so_libs
787 ENABLE_WINSYN_TRUE
788 ENABLE_WINSYN_FALSE
789 W_so_libs
790 ENABLE_PORTMIDISYN_TRUE
791 ENABLE_PORTMIDISYN_FALSE
792 P_so_libs
793 ENABLE_NPSYN_TRUE
794 ENABLE_NPSYN_FALSE
795 ENABLE_W32G_SYN_TRUE
796 ENABLE_W32G_SYN_FALSE
797 ENABLE_W32GUI_TRUE
798 ENABLE_W32GUI_FALSE
799 w_so_libs
800 ENABLE_PLUGIN_TRUE
801 ENABLE_PLUGIN_FALSE
802 p_so_libs
803 ENABLE_NETWORK_TRUE
804 ENABLE_NETWORK_FALSE
805 ENABLE_SOUND_SPEC_TRUE
806 ENABLE_SOUND_SPEC_FALSE
807 ENABLE_WRD_TRUE
808 ENABLE_WRD_FALSE
809 W32G_GUI_TRUE
810 W32G_GUI_FALSE
811 WINDRV_TRUE
812 WINDRV_FALSE
813 MSYS_TRUE
814 MSYS_FALSE
815 VCPP_TRUE
816 VCPP_FALSE
817 POCC_TRUE
818 POCC_FALSE
819 BORLANDC_TRUE
820 BORLANDC_FALSE
821 WATCOM_C_TRUE
822 WATCOM_C_FALSE
823 DMC_TRUE
824 DMC_FALSE
825 MINGWGCC_TRUE
826 MINGWGCC_FALSE
827 W32READDIR_TRUE
828 W32READDIR_FALSE
829 BORLANDC_START
830 BORLANDC_LDFLAGS
831 timidity_LDFLAGS
832 WATCOM_LDFLAGS
833 DMC_LDFLAGS
834 VCPP_LDFLAGS
835 POCC_LDFLAGS
836 SYSEXTRAS
837 EXTRALIBS
838 NETSRCS
839 ELFILES
840 SHLD
841 SHCFLAGS
842 dynamic_targets
843 so
844 WISH
845 tcltk_dep
846 INTERFACE_SRCS
847 pkgdatadir
848 pkglibdir
849 LTLIBOBJS'
850 ac_subst_files=''
851       ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 XMKMF'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913   # If the previous option needs an argument, assign it.
914   if test -n "$ac_prev"; then
915     eval $ac_prev=\$ac_option
916     ac_prev=
917     continue
918   fi
919
920   case $ac_option in
921   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922   *)    ac_optarg=yes ;;
923   esac
924
925   # Accept the important Cygnus configure options, so we can diagnose typos.
926
927   case $ac_dashdash$ac_option in
928   --)
929     ac_dashdash=yes ;;
930
931   -bindir | --bindir | --bindi | --bind | --bin | --bi)
932     ac_prev=bindir ;;
933   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934     bindir=$ac_optarg ;;
935
936   -build | --build | --buil | --bui | --bu)
937     ac_prev=build_alias ;;
938   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939     build_alias=$ac_optarg ;;
940
941   -cache-file | --cache-file | --cache-fil | --cache-fi \
942   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943     ac_prev=cache_file ;;
944   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946     cache_file=$ac_optarg ;;
947
948   --config-cache | -C)
949     cache_file=config.cache ;;
950
951   -datadir | --datadir | --datadi | --datad)
952     ac_prev=datadir ;;
953   -datadir=* | --datadir=* | --datadi=* | --datad=*)
954     datadir=$ac_optarg ;;
955
956   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957   | --dataroo | --dataro | --datar)
958     ac_prev=datarootdir ;;
959   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961     datarootdir=$ac_optarg ;;
962
963   -disable-* | --disable-*)
964     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965     # Reject names that are not valid shell variable names.
966     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
967       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
968    { (exit 1); exit 1; }; }
969     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
970     eval enable_$ac_feature=no ;;
971
972   -docdir | --docdir | --docdi | --doc | --do)
973     ac_prev=docdir ;;
974   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975     docdir=$ac_optarg ;;
976
977   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978     ac_prev=dvidir ;;
979   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980     dvidir=$ac_optarg ;;
981
982   -enable-* | --enable-*)
983     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
986       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
987    { (exit 1); exit 1; }; }
988     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
989     eval enable_$ac_feature=\$ac_optarg ;;
990
991   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993   | --exec | --exe | --ex)
994     ac_prev=exec_prefix ;;
995   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997   | --exec=* | --exe=* | --ex=*)
998     exec_prefix=$ac_optarg ;;
999
1000   -gas | --gas | --ga | --g)
1001     # Obsolete; use --with-gas.
1002     with_gas=yes ;;
1003
1004   -help | --help | --hel | --he | -h)
1005     ac_init_help=long ;;
1006   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007     ac_init_help=recursive ;;
1008   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009     ac_init_help=short ;;
1010
1011   -host | --host | --hos | --ho)
1012     ac_prev=host_alias ;;
1013   -host=* | --host=* | --hos=* | --ho=*)
1014     host_alias=$ac_optarg ;;
1015
1016   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017     ac_prev=htmldir ;;
1018   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019   | --ht=*)
1020     htmldir=$ac_optarg ;;
1021
1022   -includedir | --includedir | --includedi | --included | --include \
1023   | --includ | --inclu | --incl | --inc)
1024     ac_prev=includedir ;;
1025   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026   | --includ=* | --inclu=* | --incl=* | --inc=*)
1027     includedir=$ac_optarg ;;
1028
1029   -infodir | --infodir | --infodi | --infod | --info | --inf)
1030     ac_prev=infodir ;;
1031   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032     infodir=$ac_optarg ;;
1033
1034   -libdir | --libdir | --libdi | --libd)
1035     ac_prev=libdir ;;
1036   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037     libdir=$ac_optarg ;;
1038
1039   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040   | --libexe | --libex | --libe)
1041     ac_prev=libexecdir ;;
1042   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043   | --libexe=* | --libex=* | --libe=*)
1044     libexecdir=$ac_optarg ;;
1045
1046   -localedir | --localedir | --localedi | --localed | --locale)
1047     ac_prev=localedir ;;
1048   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049     localedir=$ac_optarg ;;
1050
1051   -localstatedir | --localstatedir | --localstatedi | --localstated \
1052   | --localstate | --localstat | --localsta | --localst | --locals)
1053     ac_prev=localstatedir ;;
1054   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056     localstatedir=$ac_optarg ;;
1057
1058   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059     ac_prev=mandir ;;
1060   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061     mandir=$ac_optarg ;;
1062
1063   -nfp | --nfp | --nf)
1064     # Obsolete; use --without-fp.
1065     with_fp=no ;;
1066
1067   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068   | --no-cr | --no-c | -n)
1069     no_create=yes ;;
1070
1071   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073     no_recursion=yes ;;
1074
1075   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077   | --oldin | --oldi | --old | --ol | --o)
1078     ac_prev=oldincludedir ;;
1079   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082     oldincludedir=$ac_optarg ;;
1083
1084   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085     ac_prev=prefix ;;
1086   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087     prefix=$ac_optarg ;;
1088
1089   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090   | --program-pre | --program-pr | --program-p)
1091     ac_prev=program_prefix ;;
1092   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094     program_prefix=$ac_optarg ;;
1095
1096   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097   | --program-suf | --program-su | --program-s)
1098     ac_prev=program_suffix ;;
1099   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101     program_suffix=$ac_optarg ;;
1102
1103   -program-transform-name | --program-transform-name \
1104   | --program-transform-nam | --program-transform-na \
1105   | --program-transform-n | --program-transform- \
1106   | --program-transform | --program-transfor \
1107   | --program-transfo | --program-transf \
1108   | --program-trans | --program-tran \
1109   | --progr-tra | --program-tr | --program-t)
1110     ac_prev=program_transform_name ;;
1111   -program-transform-name=* | --program-transform-name=* \
1112   | --program-transform-nam=* | --program-transform-na=* \
1113   | --program-transform-n=* | --program-transform-=* \
1114   | --program-transform=* | --program-transfor=* \
1115   | --program-transfo=* | --program-transf=* \
1116   | --program-trans=* | --program-tran=* \
1117   | --progr-tra=* | --program-tr=* | --program-t=*)
1118     program_transform_name=$ac_optarg ;;
1119
1120   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121     ac_prev=pdfdir ;;
1122   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123     pdfdir=$ac_optarg ;;
1124
1125   -psdir | --psdir | --psdi | --psd | --ps)
1126     ac_prev=psdir ;;
1127   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128     psdir=$ac_optarg ;;
1129
1130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131   | -silent | --silent | --silen | --sile | --sil)
1132     silent=yes ;;
1133
1134   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135     ac_prev=sbindir ;;
1136   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137   | --sbi=* | --sb=*)
1138     sbindir=$ac_optarg ;;
1139
1140   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142   | --sharedst | --shareds | --shared | --share | --shar \
1143   | --sha | --sh)
1144     ac_prev=sharedstatedir ;;
1145   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148   | --sha=* | --sh=*)
1149     sharedstatedir=$ac_optarg ;;
1150
1151   -site | --site | --sit)
1152     ac_prev=site ;;
1153   -site=* | --site=* | --sit=*)
1154     site=$ac_optarg ;;
1155
1156   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157     ac_prev=srcdir ;;
1158   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159     srcdir=$ac_optarg ;;
1160
1161   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162   | --syscon | --sysco | --sysc | --sys | --sy)
1163     ac_prev=sysconfdir ;;
1164   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166     sysconfdir=$ac_optarg ;;
1167
1168   -target | --target | --targe | --targ | --tar | --ta | --t)
1169     ac_prev=target_alias ;;
1170   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171     target_alias=$ac_optarg ;;
1172
1173   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174     verbose=yes ;;
1175
1176   -version | --version | --versio | --versi | --vers | -V)
1177     ac_init_version=: ;;
1178
1179   -with-* | --with-*)
1180     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid package name: $ac_package" >&2
1184    { (exit 1); exit 1; }; }
1185     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1186     eval with_$ac_package=\$ac_optarg ;;
1187
1188   -without-* | --without-*)
1189     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190     # Reject names that are not valid shell variable names.
1191     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       { echo "$as_me: error: invalid package name: $ac_package" >&2
1193    { (exit 1); exit 1; }; }
1194     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195     eval with_$ac_package=no ;;
1196
1197   --x)
1198     # Obsolete; use --with-x.
1199     with_x=yes ;;
1200
1201   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202   | --x-incl | --x-inc | --x-in | --x-i)
1203     ac_prev=x_includes ;;
1204   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206     x_includes=$ac_optarg ;;
1207
1208   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210     ac_prev=x_libraries ;;
1211   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213     x_libraries=$ac_optarg ;;
1214
1215   -*) { echo "$as_me: error: unrecognized option: $ac_option
1216 Try \`$0 --help' for more information." >&2
1217    { (exit 1); exit 1; }; }
1218     ;;
1219
1220   *=*)
1221     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1225    { (exit 1); exit 1; }; }
1226     eval $ac_envvar=\$ac_optarg
1227     export $ac_envvar ;;
1228
1229   *)
1230     # FIXME: should be removed in autoconf 3.0.
1231     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235     ;;
1236
1237   esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242   { echo "$as_me: error: missing argument to $ac_option" >&2
1243    { (exit 1); exit 1; }; }
1244 fi
1245
1246 # Be sure to have absolute directory names.
1247 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248                 datadir sysconfdir sharedstatedir localstatedir includedir \
1249                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250                 libdir localedir mandir
1251 do
1252   eval ac_val=\$$ac_var
1253   case $ac_val in
1254     [\\/$]* | ?:[\\/]* )  continue;;
1255     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256   esac
1257   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1258    { (exit 1); exit 1; }; }
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270   if test "x$build_alias" = x; then
1271     cross_compiling=maybe
1272     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273     If a cross compiler is detected then cross compile mode will be used." >&2
1274   elif test "x$build_alias" != "x$host_alias"; then
1275     cross_compiling=yes
1276   fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288   { echo "$as_me: error: Working directory cannot be determined" >&2
1289    { (exit 1); exit 1; }; }
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291   { echo "$as_me: error: pwd does not report name of working directory" >&2
1292    { (exit 1); exit 1; }; }
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297   ac_srcdir_defaulted=yes
1298   # Try the directory containing this script, then the parent directory.
1299   ac_confdir=`$as_dirname -- "$0" ||
1300 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301          X"$0" : 'X\(//\)[^/]' \| \
1302          X"$0" : 'X\(//\)$' \| \
1303          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1304 echo X"$0" |
1305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306             s//\1/
1307             q
1308           }
1309           /^X\(\/\/\)[^/].*/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\/\)$/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\).*/{
1318             s//\1/
1319             q
1320           }
1321           s/.*/./; q'`
1322   srcdir=$ac_confdir
1323   if test ! -r "$srcdir/$ac_unique_file"; then
1324     srcdir=..
1325   fi
1326 else
1327   ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1332    { (exit 1); exit 1; }; }
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1337    { (exit 1); exit 1; }; }
1338         pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341   srcdir=.
1342 fi
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351   eval ac_env_${ac_var}_value=\$${ac_var}
1352   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1355
1356 #
1357 # Report the --help message.
1358 #
1359 if test "$ac_init_help" = "long"; then
1360   # Omit some internal or obsolete options to make the list less imposing.
1361   # This message is too long to be a string in the A/UX 3.1 sh.
1362   cat <<_ACEOF
1363 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
1364
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1366
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE.  See below for descriptions of some of the useful variables.
1369
1370 Defaults for the options are specified in brackets.
1371
1372 Configuration:
1373   -h, --help              display this help and exit
1374       --help=short        display options specific to this package
1375       --help=recursive    display the short help of all the included packages
1376   -V, --version           display version information and exit
1377   -q, --quiet, --silent   do not print \`checking...' messages
1378       --cache-file=FILE   cache test results in FILE [disabled]
1379   -C, --config-cache      alias for \`--cache-file=config.cache'
1380   -n, --no-create         do not create output files
1381       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1382
1383 Installation directories:
1384   --prefix=PREFIX         install architecture-independent files in PREFIX
1385                           [$ac_default_prefix]
1386   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1387                           [PREFIX]
1388
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1393
1394 For better control, use the options below.
1395
1396 Fine tuning of the installation directories:
1397   --bindir=DIR           user executables [EPREFIX/bin]
1398   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1399   --libexecdir=DIR       program executables [EPREFIX/libexec]
1400   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1401   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1402   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1403   --libdir=DIR           object code libraries [EPREFIX/lib]
1404   --includedir=DIR       C header files [PREFIX/include]
1405   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1406   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1407   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1408   --infodir=DIR          info documentation [DATAROOTDIR/info]
1409   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1410   --mandir=DIR           man documentation [DATAROOTDIR/man]
1411   --docdir=DIR           documentation root [DATAROOTDIR/doc/TiMidity++]
1412   --htmldir=DIR          html documentation [DOCDIR]
1413   --dvidir=DIR           dvi documentation [DOCDIR]
1414   --pdfdir=DIR           pdf documentation [DOCDIR]
1415   --psdir=DIR            ps documentation [DOCDIR]
1416 _ACEOF
1417
1418   cat <<\_ACEOF
1419
1420 Program names:
1421   --program-prefix=PREFIX            prepend PREFIX to installed program names
1422   --program-suffix=SUFFIX            append SUFFIX to installed program names
1423   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1424
1425 X features:
1426   --x-includes=DIR    X include files are in DIR
1427   --x-libraries=DIR   X library files are in DIR
1428
1429 System types:
1430   --build=BUILD     configure for building on BUILD [guessed]
1431   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432   --target=TARGET   configure for building compilers for TARGET [HOST]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437   case $ac_init_help in
1438      short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
1439    esac
1440   cat <<\_ACEOF
1441
1442 Optional Features:
1443   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1444   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1445   --enable-maintainer-mode enable make rules and dependencies not useful
1446                           (and sometimes confusing) to the casual installer
1447   --enable-debug          Build a debugging version.
1448   --disable-dependency-tracking Speeds up one-time builds
1449   --enable-dependency-tracking  Do not reject slow dependency extractors
1450   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
1451                               default:   Automatically select audio device.
1452                               oss:       OSS /dev/dsp
1453                               sun:       SunOS /dev/audio
1454                               hpux:      HPUX /dev/audio
1455                               irix:      IRIX audio library
1456                               mme:       OSF/1 MME
1457                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
1458                               w32:       Windows MMS
1459                               darwin:    Darwin CoreAudio
1460                               alsa:      ALSA pcm device
1461                               alib:      HPUX network audio (Alib)
1462                               nas:       NAS - Network Audio System
1463                               arts:      aRts
1464                               esd:       EsounD - Enlightened Sound Daemon
1465                               portaudio: PortAudio
1466                               npipe:     Named Pipe(windows)
1467                               jack:      JACK
1468                               ao:        Libao
1469                               vorbis:    Ogg Vorbis
1470                               flac:      FLAC / OggFLAC
1471                               speex:     Ogg Speex
1472                               gogo:      MP3 GOGO (Only Windows is supported)
1473   --disable-alsatest      Do not try to compile and run a test Alsa program
1474   --disable-esdtest       Do not try to compile and run a test ESD program
1475   --disable-aotest       Do not try to compile and run a test ao program
1476   --disable-oggtest       Do not try to compile and run a test Ogg program
1477   --disable-vorbistest       Do not try to compile and run a test Vorbis program
1478   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
1479   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
1480   --enable-interface=interface_list
1481                           Comma separated interface list
1482   --enable-dynamic        Enable dynamic link interface   (default is no)
1483   --enable-dynamic=dynamic_list
1484                           Comma separated dynamic interface list
1485   --enable-xdnd           Enable xdnd support             (default is no)
1486   --enable-ncurses        Enable ncurses interface        (default is no)
1487   --enable-slang          Enable slang interface          (default is no)
1488   --enable-motif          Enable motif interface          (default is no)
1489   --enable-tcltk          Enable tcltk interface          (default is no)
1490   --enable-emacs          Enable emacs interface          (default is no)
1491   --enable-vt100          Enable VT100 interface          (default is no)
1492   --enable-xaw            Enable athena interface         (default is no)
1493   --enable-xskin          Enable X skin interface         (default is no)
1494   --enable-gtk            Enable GTK+ interface           (default is no)
1495   --disable-gtktest       do not try to compile and run a test GTK+ program
1496   --disable-gtktest       Do not try to compile and run a test GTK program
1497   --enable-server         Enable server interface         (default is no)
1498   --enable-alsaseq        Enable ALSA sequencer server interface
1499                                                           (default is no)
1500   --enable-winsyn        Enable Windows Synthesizer interface
1501                                                           (default is no)
1502   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
1503                                                           (default is no)
1504   --enable-npsyn        Enable Windows Named Pipe Synthesizer interface
1505                                                           (default is no)
1506   --enable-winsyng        Enable Windows GUI Synthesizer interface
1507                                                           (default is no)
1508   --enable-w32gui         Enable Windows GUI interface    (default is no)
1509   --enable-ump            UMP configuration               (default is no)
1510   --enable-windrv         Windows Driver interface(requires winsyn)
1511   --enable-offix          Enable offix support            (default is no)
1512   --enable-network        Enable network support          (default is no)
1513   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
1514   --enable-spline=method  Specify spline method.
1515                                   one of no,linear,cubic,lagrange,newton,gauss
1516                                                           (default is linear)
1517   --enable-wrd            Enable WRD interface for X      (default is no)
1518
1519 Optional Packages:
1520   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522   --with-includes=DIR     Specify include directories (colon separated)
1523   --with-libraries=DIR    Specify library directories (colon separated)
1524   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
1525   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
1526   --with-xaw-resource-prefix=DIR What prefix to install XAW's resource files to
1527      (optinal)
1528   --with-lispdir          Override the default lisp directory
1529   --with-elf              create ELF shared object instead of AOUT
1530   --with-x                use the X Window System
1531   --with-xawlib=lib      Try to link to these xaw widget libraries by the
1532                             order specified by the comma separated value list:
1533                              xaw: X11's libXaw
1534                              xaw3d: Xaw3d
1535                              neXtaw: neXtaw
1536                              XawPlus: XawPlus
1537                              default is --with-xawlib=xaw3d,xaw
1538   --with-tcl-includes=DIR Tcl include file path
1539   --with-tcl-libs=DIR     Tcl library file path
1540   --with-tk-includes=DIR  Tk include file path
1541   --with-tk-libs=DIR      Tk library file path
1542   --with-offix-includes=DIR Offix include file path
1543   --with-offix-libs=DIR   Offix include file path
1544   --with-nas-library=library NAS absolute library path(Don't use -laudio)
1545   --with-nas-includes=DIR NAS include files are in dir
1546   --with-default-output=<mode>  Specify default output mode (optional):
1547                                 (default|alsa|alib|arts|nas|
1548                                 esd|wav|au|aiff|list|vorbis|flac|speex|
1549                                 gogo|portaudio|npipe|jack|ao)
1550   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1551   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1552   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1553   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1554   --with-ao=PFX   Prefix where libao is installed (optional)
1555   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
1556   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
1557   --with-ogg=PFX   Prefix where libogg is installed (optional)
1558   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
1559   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
1560   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
1561   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
1562   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
1563   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
1564   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
1565   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
1566   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
1567   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
1568   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
1569   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1570   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1571
1572 Some influential environment variables:
1573   CC          C compiler command
1574   CFLAGS      C compiler flags
1575   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576               nonstandard directory <lib dir>
1577   LIBS        libraries to pass to the linker, e.g. -l<library>
1578   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579               you have headers in a nonstandard directory <include dir>
1580   CPP         C preprocessor
1581   XMKMF       Path to xmkmf, Makefile generator for X Window System
1582
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1585
1586 Report bugs to <root@mput.dip.jp>.
1587 _ACEOF
1588 ac_status=$?
1589 fi
1590
1591 if test "$ac_init_help" = "recursive"; then
1592   # If there are subdirs, report their specific --help.
1593   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594     test -d "$ac_dir" || continue
1595     ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1601   # A ".." for each directory in $ac_dir_suffix.
1602   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1603   case $ac_top_builddir_sub in
1604   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606   esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614   .)  # We are building in place.
1615     ac_srcdir=.
1616     ac_top_srcdir=$ac_top_builddir_sub
1617     ac_abs_top_srcdir=$ac_pwd ;;
1618   [\\/]* | ?:[\\/]* )  # Absolute name.
1619     ac_srcdir=$srcdir$ac_dir_suffix;
1620     ac_top_srcdir=$srcdir
1621     ac_abs_top_srcdir=$srcdir ;;
1622   *) # Relative name.
1623     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624     ac_top_srcdir=$ac_top_build_prefix$srcdir
1625     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629     cd "$ac_dir" || { ac_status=$?; continue; }
1630     # Check for guested configure.
1631     if test -f "$ac_srcdir/configure.gnu"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634     elif test -f "$ac_srcdir/configure"; then
1635       echo &&
1636       $SHELL "$ac_srcdir/configure" --help=recursive
1637     else
1638       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639     fi || ac_status=$?
1640     cd "$ac_pwd" || { ac_status=$?; break; }
1641   done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646   cat <<\_ACEOF
1647 TiMidity++ configure 2.13.2
1648 generated by GNU Autoconf 2.61
1649
1650 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1651 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1654 _ACEOF
1655   exit
1656 fi
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1660
1661 It was created by TiMidity++ $as_me 2.13.2, which was
1662 generated by GNU Autoconf 2.61.  Invocation command line was
1663
1664   $ $0 $@
1665
1666 _ACEOF
1667 exec 5>>config.log
1668 {
1669 cat <<_ASUNAME
1670 ## --------- ##
1671 ## Platform. ##
1672 ## --------- ##
1673
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1682
1683 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1684 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1687 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1688 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1689 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1690
1691 _ASUNAME
1692
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696   IFS=$as_save_IFS
1697   test -z "$as_dir" && as_dir=.
1698   echo "PATH: $as_dir"
1699 done
1700 IFS=$as_save_IFS
1701
1702 } >&5
1703
1704 cat >&5 <<_ACEOF
1705
1706
1707 ## ----------- ##
1708 ## Core tests. ##
1709 ## ----------- ##
1710
1711 _ACEOF
1712
1713
1714 # Keep a trace of the command line.
1715 # Strip out --no-create and --no-recursion so they do not pile up.
1716 # Strip out --silent because we don't want to record it for future runs.
1717 # Also quote any args containing shell meta-characters.
1718 # Make two passes to allow for proper duplicate-argument suppression.
1719 ac_configure_args=
1720 ac_configure_args0=
1721 ac_configure_args1=
1722 ac_must_keep_next=false
1723 for ac_pass in 1 2
1724 do
1725   for ac_arg
1726   do
1727     case $ac_arg in
1728     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730     | -silent | --silent | --silen | --sile | --sil)
1731       continue ;;
1732     *\'*)
1733       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734     esac
1735     case $ac_pass in
1736     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1737     2)
1738       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739       if test $ac_must_keep_next = true; then
1740         ac_must_keep_next=false # Got value, back to normal.
1741       else
1742         case $ac_arg in
1743           *=* | --config-cache | -C | -disable-* | --disable-* \
1744           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746           | -with-* | --with-* | -without-* | --without-* | --x)
1747             case "$ac_configure_args0 " in
1748               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749             esac
1750             ;;
1751           -* ) ac_must_keep_next=true ;;
1752         esac
1753       fi
1754       ac_configure_args="$ac_configure_args '$ac_arg'"
1755       ;;
1756     esac
1757   done
1758 done
1759 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1761
1762 # When interrupted or exit'd, cleanup temporary files, and complete
1763 # config.log.  We remove comments because anyway the quotes in there
1764 # would cause problems or look ugly.
1765 # WARNING: Use '\'' to represent an apostrophe within the trap.
1766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767 trap 'exit_status=$?
1768   # Save into config.log some information that might help in debugging.
1769   {
1770     echo
1771
1772     cat <<\_ASBOX
1773 ## ---------------- ##
1774 ## Cache variables. ##
1775 ## ---------------- ##
1776 _ASBOX
1777     echo
1778     # The following way of writing the cache mishandles newlines in values,
1779 (
1780   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781     eval ac_val=\$$ac_var
1782     case $ac_val in #(
1783     *${as_nl}*)
1784       case $ac_var in #(
1785       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1786 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1787       esac
1788       case $ac_var in #(
1789       _ | IFS | as_nl) ;; #(
1790       *) $as_unset $ac_var ;;
1791       esac ;;
1792     esac
1793   done
1794   (set) 2>&1 |
1795     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796     *${as_nl}ac_space=\ *)
1797       sed -n \
1798         "s/'\''/'\''\\\\'\'''\''/g;
1799           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800       ;; #(
1801     *)
1802       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803       ;;
1804     esac |
1805     sort
1806 )
1807     echo
1808
1809     cat <<\_ASBOX
1810 ## ----------------- ##
1811 ## Output variables. ##
1812 ## ----------------- ##
1813 _ASBOX
1814     echo
1815     for ac_var in $ac_subst_vars
1816     do
1817       eval ac_val=\$$ac_var
1818       case $ac_val in
1819       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820       esac
1821       echo "$ac_var='\''$ac_val'\''"
1822     done | sort
1823     echo
1824
1825     if test -n "$ac_subst_files"; then
1826       cat <<\_ASBOX
1827 ## ------------------- ##
1828 ## File substitutions. ##
1829 ## ------------------- ##
1830 _ASBOX
1831       echo
1832       for ac_var in $ac_subst_files
1833       do
1834         eval ac_val=\$$ac_var
1835         case $ac_val in
1836         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837         esac
1838         echo "$ac_var='\''$ac_val'\''"
1839       done | sort
1840       echo
1841     fi
1842
1843     if test -s confdefs.h; then
1844       cat <<\_ASBOX
1845 ## ----------- ##
1846 ## confdefs.h. ##
1847 ## ----------- ##
1848 _ASBOX
1849       echo
1850       cat confdefs.h
1851       echo
1852     fi
1853     test "$ac_signal" != 0 &&
1854       echo "$as_me: caught signal $ac_signal"
1855     echo "$as_me: exit $exit_status"
1856   } >&5
1857   rm -f core *.core core.conftest.* &&
1858     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859     exit $exit_status
1860 ' 0
1861 for ac_signal in 1 2 13 15; do
1862   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1863 done
1864 ac_signal=0
1865
1866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1867 rm -f -r conftest* confdefs.h
1868
1869 # Predefined preprocessor variables.
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_STRING "$PACKAGE_STRING"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893 _ACEOF
1894
1895
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer explicitly selected file to automatically selected ones.
1898 if test -n "$CONFIG_SITE"; then
1899   set x "$CONFIG_SITE"
1900 elif test "x$prefix" != xNONE; then
1901   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1902 else
1903   set x "$ac_default_prefix/share/config.site" \
1904         "$ac_default_prefix/etc/config.site"
1905 fi
1906 shift
1907 for ac_site_file
1908 do
1909   if test -r "$ac_site_file"; then
1910     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911 echo "$as_me: loading site script $ac_site_file" >&6;}
1912     sed 's/^/| /' "$ac_site_file" >&5
1913     . "$ac_site_file"
1914   fi
1915 done
1916
1917 if test -r "$cache_file"; then
1918   # Some versions of bash will fail to source /dev/null (special
1919   # files actually), so we avoid doing that.
1920   if test -f "$cache_file"; then
1921     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 echo "$as_me: loading cache $cache_file" >&6;}
1923     case $cache_file in
1924       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925       *)                      . "./$cache_file";;
1926     esac
1927   fi
1928 else
1929   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 echo "$as_me: creating cache $cache_file" >&6;}
1931   >$cache_file
1932 fi
1933
1934 # Check that the precious variables saved in the cache have kept the same
1935 # value.
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939   eval ac_new_set=\$ac_env_${ac_var}_set
1940   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941   eval ac_new_val=\$ac_env_${ac_var}_value
1942   case $ac_old_set,$ac_new_set in
1943     set,)
1944       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946       ac_cache_corrupted=: ;;
1947     ,set)
1948       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950       ac_cache_corrupted=: ;;
1951     ,);;
1952     *)
1953       if test "x$ac_old_val" != "x$ac_new_val"; then
1954         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1957 echo "$as_me:   former value:  $ac_old_val" >&2;}
1958         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1959 echo "$as_me:   current value: $ac_new_val" >&2;}
1960         ac_cache_corrupted=:
1961       fi;;
1962   esac
1963   # Pass precious variables to config.status.
1964   if test "$ac_new_set" = set; then
1965     case $ac_new_val in
1966     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967     *) ac_arg=$ac_var=$ac_new_val ;;
1968     esac
1969     case " $ac_configure_args " in
1970       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1971       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1972     esac
1973   fi
1974 done
1975 if $ac_cache_corrupted; then
1976   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014 ac_aux_dir=
2015 for ac_dir in autoconf "$srcdir"/autoconf; do
2016   if test -f "$ac_dir/install-sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install-sh -c"
2019     break
2020   elif test -f "$ac_dir/install.sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install.sh -c"
2023     break
2024   elif test -f "$ac_dir/shtool"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/shtool install -c"
2027     break
2028   fi
2029 done
2030 if test -z "$ac_aux_dir"; then
2031   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049    { (exit 1); exit 1; }; }
2050
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062    { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 fi
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2072 *-*-*) ;;
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075    { (exit 1); exit 1; }; };;
2076 esac
2077 build=$ac_cv_build
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_build
2080 shift
2081 build_cpu=$1
2082 build_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 build_os=$*
2087 IFS=$ac_save_IFS
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test "x$host_alias" = x; then
2097   ac_cv_host=$ac_cv_build
2098 else
2099   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 fi
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2108 case $ac_cv_host in
2109 *-*-*) ;;
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112    { (exit 1); exit 1; }; };;
2113 esac
2114 host=$ac_cv_host
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_host
2117 shift
2118 host_cpu=$1
2119 host_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 host_os=$*
2124 IFS=$ac_save_IFS
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2126
2127
2128 { echo "$as_me:$LINENO: checking target system type" >&5
2129 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_target+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test "x$target_alias" = x; then
2134   ac_cv_target=$ac_cv_host
2135 else
2136   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2137     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2139    { (exit 1); exit 1; }; }
2140 fi
2141
2142 fi
2143 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2144 echo "${ECHO_T}$ac_cv_target" >&6; }
2145 case $ac_cv_target in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2148 echo "$as_me: error: invalid value of canonical target" >&2;}
2149    { (exit 1); exit 1; }; };;
2150 esac
2151 target=$ac_cv_target
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_target
2154 shift
2155 target_cpu=$1
2156 target_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 target_os=$*
2161 IFS=$ac_save_IFS
2162 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2163
2164
2165 # The aliases save the names the user supplied, while $host etc.
2166 # will get canonicalized.
2167 test -n "$target_alias" &&
2168   test "$program_prefix$program_suffix$program_transform_name" = \
2169     NONENONEs,x,x, &&
2170   program_prefix=${target_alias}-
2171 am__api_version="1.7"
2172 # Find a good install program.  We prefer a C program (faster),
2173 # so one script is as good as another.  But avoid the broken or
2174 # incompatible versions:
2175 # SysV /etc/install, /usr/sbin/install
2176 # SunOS /usr/etc/install
2177 # IRIX /sbin/install
2178 # AIX /bin/install
2179 # AmigaOS /C/install, which installs bootblocks on floppy discs
2180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2183 # OS/2's system install, which has a completely different semantic
2184 # ./install, which can be erroneously created by make from ./install.sh.
2185 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2186 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2187 if test -z "$INSTALL"; then
2188 if test "${ac_cv_path_install+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   test -z "$as_dir" && as_dir=.
2196   # Account for people who put trailing slashes in PATH elements.
2197 case $as_dir/ in
2198   ./ | .// | /cC/* | \
2199   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2200   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2201   /usr/ucb/* ) ;;
2202   *)
2203     # OSF1 and SCO ODT 3.0 have their own names for install.
2204     # Don't use installbsd from OSF since it installs stuff as root
2205     # by default.
2206     for ac_prog in ginstall scoinst install; do
2207       for ac_exec_ext in '' $ac_executable_extensions; do
2208         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2209           if test $ac_prog = install &&
2210             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211             # AIX install.  It has an incompatible calling convention.
2212             :
2213           elif test $ac_prog = install &&
2214             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215             # program-specific install script used by HP pwplus--don't use.
2216             :
2217           else
2218             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2219             break 3
2220           fi
2221         fi
2222       done
2223     done
2224     ;;
2225 esac
2226 done
2227 IFS=$as_save_IFS
2228
2229
2230 fi
2231   if test "${ac_cv_path_install+set}" = set; then
2232     INSTALL=$ac_cv_path_install
2233   else
2234     # As a last resort, use the slow shell script.  Don't cache a
2235     # value for INSTALL within a source directory, because that will
2236     # break other packages using the cache if that directory is
2237     # removed, or if the value is a relative name.
2238     INSTALL=$ac_install_sh
2239   fi
2240 fi
2241 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2242 echo "${ECHO_T}$INSTALL" >&6; }
2243
2244 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2245 # It thinks the first close brace ends the variable substitution.
2246 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2247
2248 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2249
2250 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2251
2252 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2253 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2254 # Just in case
2255 sleep 1
2256 echo timestamp > conftest.file
2257 # Do `set' in a subshell so we don't clobber the current shell's
2258 # arguments.  Must try -L first in case configure is actually a
2259 # symlink; some systems play weird games with the mod time of symlinks
2260 # (eg FreeBSD returns the mod time of the symlink's containing
2261 # directory).
2262 if (
2263    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2264    if test "$*" = "X"; then
2265       # -L didn't work.
2266       set X `ls -t $srcdir/configure conftest.file`
2267    fi
2268    rm -f conftest.file
2269    if test "$*" != "X $srcdir/configure conftest.file" \
2270       && test "$*" != "X conftest.file $srcdir/configure"; then
2271
2272       # If neither matched, then we have a broken ls.  This can happen
2273       # if, for instance, CONFIG_SHELL is bash and it inherits a
2274       # broken ls alias from the environment.  This has actually
2275       # happened.  Such a system could not be considered "sane".
2276       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2277 alias in your environment" >&5
2278 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2279 alias in your environment" >&2;}
2280    { (exit 1); exit 1; }; }
2281    fi
2282
2283    test "$2" = conftest.file
2284    )
2285 then
2286    # Ok.
2287    :
2288 else
2289    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2290 Check your system clock" >&5
2291 echo "$as_me: error: newly created file is older than distributed files!
2292 Check your system clock" >&2;}
2293    { (exit 1); exit 1; }; }
2294 fi
2295 { echo "$as_me:$LINENO: result: yes" >&5
2296 echo "${ECHO_T}yes" >&6; }
2297 test "$program_prefix" != NONE &&
2298   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2299 # Use a double $ so make ignores it.
2300 test "$program_suffix" != NONE &&
2301   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2302 # Double any \ or $.  echo might interpret backslashes.
2303 # By default was `s,x,x', remove it if useless.
2304 cat <<\_ACEOF >conftest.sed
2305 s/[\\$]/&&/g;s/;s,x,x,$//
2306 _ACEOF
2307 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2308 rm -f conftest.sed
2309
2310
2311 # expand $ac_aux_dir to an absolute path
2312 am_aux_dir=`cd $ac_aux_dir && pwd`
2313
2314 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2315 # Use eval to expand $SHELL
2316 if eval "$MISSING --run true"; then
2317   am_missing_run="$MISSING --run "
2318 else
2319   am_missing_run=
2320   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2321 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2322 fi
2323
2324 for ac_prog in gawk mawk nawk awk
2325 do
2326   # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; 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_prog_AWK+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   if test -n "$AWK"; then
2334   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339   IFS=$as_save_IFS
2340   test -z "$as_dir" && as_dir=.
2341   for ac_exec_ext in '' $ac_executable_extensions; do
2342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343     ac_cv_prog_AWK="$ac_prog"
2344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345     break 2
2346   fi
2347 done
2348 done
2349 IFS=$as_save_IFS
2350
2351 fi
2352 fi
2353 AWK=$ac_cv_prog_AWK
2354 if test -n "$AWK"; then
2355   { echo "$as_me:$LINENO: result: $AWK" >&5
2356 echo "${ECHO_T}$AWK" >&6; }
2357 else
2358   { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2360 fi
2361
2362
2363   test -n "$AWK" && break
2364 done
2365
2366 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2367 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2368 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2369 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   cat >conftest.make <<\_ACEOF
2373 SHELL = /bin/sh
2374 all:
2375         @echo '@@@%%%=$(MAKE)=@@@%%%'
2376 _ACEOF
2377 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2378 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2379   *@@@%%%=?*=@@@%%%*)
2380     eval ac_cv_prog_make_${ac_make}_set=yes;;
2381   *)
2382     eval ac_cv_prog_make_${ac_make}_set=no;;
2383 esac
2384 rm -f conftest.make
2385 fi
2386 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2387   { echo "$as_me:$LINENO: result: yes" >&5
2388 echo "${ECHO_T}yes" >&6; }
2389   SET_MAKE=
2390 else
2391   { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393   SET_MAKE="MAKE=${MAKE-make}"
2394 fi
2395
2396 rm -rf .tst 2>/dev/null
2397 mkdir .tst 2>/dev/null
2398 if test -d .tst; then
2399   am__leading_dot=.
2400 else
2401   am__leading_dot=_
2402 fi
2403 rmdir .tst 2>/dev/null
2404
2405  # test to see if srcdir already configured
2406 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2407    test -f $srcdir/config.status; then
2408   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2409 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2410    { (exit 1); exit 1; }; }
2411 fi
2412
2413 # test whether we have cygpath
2414 if test -z "$CYGPATH_W"; then
2415   if (cygpath --version) >/dev/null 2>/dev/null; then
2416     CYGPATH_W='cygpath -w'
2417   else
2418     CYGPATH_W=echo
2419   fi
2420 fi
2421
2422
2423 # Define the identity of the package.
2424  PACKAGE='TiMidity++'
2425  VERSION='2.13.2'
2426
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE "$PACKAGE"
2430 _ACEOF
2431
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define VERSION "$VERSION"
2435 _ACEOF
2436
2437 # Some tools Automake needs.
2438
2439 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2440
2441
2442 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2443
2444
2445 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2446
2447
2448 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2449
2450
2451 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2452
2453
2454 AMTAR=${AMTAR-"${am_missing_run}tar"}
2455
2456 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2457
2458 # Installed binaries are usually stripped using `strip' when the user
2459 # run `make install-strip'.  However `strip' might not be the right
2460 # tool to use in cross-compilation environments, therefore Automake
2461 # will honor the `STRIP' environment variable to overrule this program.
2462 if test "$cross_compiling" != no; then
2463   if test -n "$ac_tool_prefix"; then
2464   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}strip; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_STRIP+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test -n "$STRIP"; then
2472   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 STRIP=$ac_cv_prog_STRIP
2492 if test -n "$STRIP"; then
2493   { echo "$as_me:$LINENO: result: $STRIP" >&5
2494 echo "${ECHO_T}$STRIP" >&6; }
2495 else
2496   { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2498 fi
2499
2500
2501 fi
2502 if test -z "$ac_cv_prog_STRIP"; then
2503   ac_ct_STRIP=$STRIP
2504   # Extract the first word of "strip", so it can be a program name with args.
2505 set dummy strip; ac_word=$2
2506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   if test -n "$ac_ct_STRIP"; then
2512   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517   IFS=$as_save_IFS
2518   test -z "$as_dir" && as_dir=.
2519   for ac_exec_ext in '' $ac_executable_extensions; do
2520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521     ac_cv_prog_ac_ct_STRIP="strip"
2522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523     break 2
2524   fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532 if test -n "$ac_ct_STRIP"; then
2533   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2534 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2535 else
2536   { echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6; }
2538 fi
2539
2540   if test "x$ac_ct_STRIP" = x; then
2541     STRIP=":"
2542   else
2543     case $cross_compiling:$ac_tool_warned in
2544 yes:)
2545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2546 whose name does not start with the host triplet.  If you think this
2547 configuration is useful to you, please write to autoconf@gnu.org." >&5
2548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2549 whose name does not start with the host triplet.  If you think this
2550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2551 ac_tool_warned=yes ;;
2552 esac
2553     STRIP=$ac_ct_STRIP
2554   fi
2555 else
2556   STRIP="$ac_cv_prog_STRIP"
2557 fi
2558
2559 fi
2560 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2561
2562 # We need awk for the "check" target.  The system "awk" is bad on
2563 # some platforms.
2564
2565
2566
2567
2568 ac_config_headers="$ac_config_headers config.h interface.h"
2569
2570 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2572     # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575 else
2576   USE_MAINTAINER_MODE=no
2577 fi
2578
2579   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2581
2582
2583 if test $USE_MAINTAINER_MODE = yes; then
2584   MAINTAINER_MODE_TRUE=
2585   MAINTAINER_MODE_FALSE='#'
2586 else
2587   MAINTAINER_MODE_TRUE='#'
2588   MAINTAINER_MODE_FALSE=
2589 fi
2590
2591   MAINT=$MAINTAINER_MODE_TRUE
2592
2593
2594
2595 SHELL=${CONFIG_SHELL-"/bin/sh"}
2596 WISH=${WISH-"wish"}
2597
2598 { echo "$as_me:$LINENO: checking whether grep returns status" >&5
2599 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6; }
2600 echo "grimblepritz" >grimble
2601 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2602         contains="./contains"
2603 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2604         contains=grep
2605 else
2606         contains="./contains"
2607 fi
2608 rm -f grimble
2609 case "$contains" in
2610 grep)   { echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6; }
2612         ;;
2613 ./contains)
2614         { echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
2615 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6; }
2616         cat >./contains <<'EOSS'
2617 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2618 EOSS
2619         chmod +x "./contains"
2620         ;;
2621 esac
2622
2623
2624 # Check for compiler options -- such as debug flags.
2625
2626 { echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2627 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
2628 # Check whether --enable-debug was given.
2629 if test "${enable_debug+set}" = set; then
2630   enableval=$enable_debug; timidity_cv_debug="yes"
2631 else
2632   timidity_cv_debug="no"
2633 fi
2634
2635 if test "x$timidity_cv_debug" = "xyes"; then
2636
2637 cat >>confdefs.h <<\_ACEOF
2638 #define DEBUG 1
2639 _ACEOF
2640
2641   CFLAGS=${CFLAGS-"-g"}
2642 fi
2643 if test "x$timidity_cv_debug" = "xno"; then
2644
2645 cat >>confdefs.h <<\_ACEOF
2646 #define NDEBUG 1
2647 _ACEOF
2648
2649 fi
2650 { echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2651 echo "${ECHO_T}$timidity_cv_debug" >&6; }
2652
2653 if test "x$CFLAGS" = "x"; then
2654   NOCFLAGS="yes"
2655 fi
2656
2657 if test "x$with_x" = x; then
2658   with_x=yes
2659 else
2660   x_config_flag=yes
2661 fi
2662
2663 # Checking gcc environment
2664 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2665   LDFLAGS="$LDFLAGS -L${i}"
2666 done
2667 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2668   CPPFLAGS="$CPPFLAGS -I${i}"
2669 done
2670
2671 # add $prefix if specified.
2672 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2673   LDFLAGS="-L$prefix/lib $LDFLAGS"
2674   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2675   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2676 fi
2677
2678
2679 # Check whether --with-includes was given.
2680 if test "${with_includes+set}" = set; then
2681   withval=$with_includes;  j=' '
2682     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2683       j="${j}-I${i} "
2684     done
2685     CPPFLAGS="$j$CPPFLAGS"
2686
2687 fi
2688
2689
2690
2691 # Check whether --with-libraries was given.
2692 if test "${with_libraries+set}" = set; then
2693   withval=$with_libraries;  j=' '
2694     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2695       j="${j}-L${i} "
2696     done
2697     LDFLAGS="$j$LDFLAGS"
2698
2699 fi
2700
2701
2702
2703
2704 # Check whether --with-default-path was given.
2705 if test "${with_default_path+set}" = set; then
2706   withval=$with_default_path; pkgdatadir=$withval
2707 else
2708
2709    if test "x$prefix" != "xNONE"; then
2710       pkgdatadir='${prefix}/share/timidity'
2711    else
2712       pkgdatadir='/usr/local/share/timidity'
2713    fi
2714
2715 fi
2716
2717 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define DEFAULT_PATH "$tmpdefpath"
2721 _ACEOF
2722
2723
2724 cat >>confdefs.h <<\_ACEOF
2725 #define PKGDATADIR DEFAULT_PATH
2726 _ACEOF
2727
2728
2729
2730 # Check whether --with-module-dir was given.
2731 if test "${with_module_dir+set}" = set; then
2732   withval=$with_module_dir; pkglibdir=$withval
2733 else
2734
2735    if test "x$prefix" != "xNONE"; then
2736       pkglibdir='${prefix}/lib/timidity'
2737    else
2738       pkglibdir='/usr/local/lib/timidity'
2739    fi
2740
2741 fi
2742
2743 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define PKGLIBDIR "$tmplibdir"
2747 _ACEOF
2748
2749
2750
2751 # Check whether --with-xaw-resource-prefix was given.
2752 if test "${with_xaw_resource_prefix+set}" = set; then
2753   withval=$with_xaw_resource_prefix; xawresdir=$withval
2754 fi
2755
2756
2757
2758 if test "x$xawresdir" != "x"; then
2759   XAW_INSTALL_RESOURCE_FILES_TRUE=
2760   XAW_INSTALL_RESOURCE_FILES_FALSE='#'
2761 else
2762   XAW_INSTALL_RESOURCE_FILES_TRUE='#'
2763   XAW_INSTALL_RESOURCE_FILES_FALSE=
2764 fi
2765
2766
2767
2768 # Checks for programs.
2769
2770 # Check whether --with-lispdir was given.
2771 if test "${with_lispdir+set}" = set; then
2772   withval=$with_lispdir;  lispdir="$withval"
2773    { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2774 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2775    { echo "$as_me:$LINENO: result: $lispdir" >&5
2776 echo "${ECHO_T}$lispdir" >&6; }
2777 else
2778
2779  # If set to t, that means we are running in a shell under Emacs.
2780  # If you have an Emacs named "t", then use the full path.
2781  test x"$EMACS" = xt && EMACS=
2782  for ac_prog in emacs xemacs
2783 do
2784   # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_EMACS+set}" = set; then
2789   echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791   if test -n "$EMACS"; then
2792   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799   for ac_exec_ext in '' $ac_executable_extensions; do
2800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801     ac_cv_prog_EMACS="$ac_prog"
2802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 EMACS=$ac_cv_prog_EMACS
2812 if test -n "$EMACS"; then
2813   { echo "$as_me:$LINENO: result: $EMACS" >&5
2814 echo "${ECHO_T}$EMACS" >&6; }
2815 else
2816   { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2818 fi
2819
2820
2821   test -n "$EMACS" && break
2822 done
2823 test -n "$EMACS" || EMACS="no"
2824
2825  if test $EMACS != "no"; then
2826    if test x${lispdir+set} != xset; then
2827      { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2828 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2829 if test "${am_cv_lispdir+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2833   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2834   #  which is non-obvious for non-emacs users.
2835   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2836   #  emacsen earlier and avoid running this altogether.
2837   { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
2838   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }
2842         am_cv_lispdir=`sed -n \
2843        -e 's,/$,,' \
2844        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2845        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2846        conftest.out`
2847        rm conftest.out
2848        if test -z "$am_cv_lispdir"; then
2849          am_cv_lispdir='${datadir}/emacs/site-lisp'
2850        fi
2851
2852 fi
2853 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2854 echo "${ECHO_T}$am_cv_lispdir" >&6; }
2855      lispdir="$am_cv_lispdir"
2856    fi
2857  fi
2858
2859 fi
2860
2861
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   if test -n "$CC"; then
2877   ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884   for ac_exec_ext in '' $ac_executable_extensions; do
2885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898   { echo "$as_me:$LINENO: result: $CC" >&5
2899 echo "${ECHO_T}$CC" >&6; }
2900 else
2901   { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_CC"; then
2908   ac_ct_CC=$CC
2909   # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916   if test -n "$ac_ct_CC"; then
2917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924   for ac_exec_ext in '' $ac_executable_extensions; do
2925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926     ac_cv_prog_ac_ct_CC="gcc"
2927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2939 echo "${ECHO_T}$ac_ct_CC" >&6; }
2940 else
2941   { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2943 fi
2944
2945   if test "x$ac_ct_CC" = x; then
2946     CC=""
2947   else
2948     case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2951 whose name does not start with the host triplet.  If you think this
2952 configuration is useful to you, please write to autoconf@gnu.org." >&5
2953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet.  If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958     CC=$ac_ct_CC
2959   fi
2960 else
2961   CC="$ac_cv_prog_CC"
2962 fi
2963
2964 if test -z "$CC"; then
2965           if test -n "$ac_tool_prefix"; then
2966     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}cc; ac_word=$2
2968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   if test -n "$CC"; then
2974   ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981   for ac_exec_ext in '' $ac_executable_extensions; do
2982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983     ac_cv_prog_CC="${ac_tool_prefix}cc"
2984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995   { echo "$as_me:$LINENO: result: $CC" >&5
2996 echo "${ECHO_T}$CC" >&6; }
2997 else
2998   { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3000 fi
3001
3002
3003   fi
3004 fi
3005 if test -z "$CC"; then
3006   # Extract the first word of "cc", so it can be a program name with args.
3007 set dummy cc; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_CC+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   if test -n "$CC"; then
3014   ac_cv_prog_CC="$CC" # Let the user override the test.
3015 else
3016   ac_prog_rejected=no
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020   IFS=$as_save_IFS
3021   test -z "$as_dir" && as_dir=.
3022   for ac_exec_ext in '' $ac_executable_extensions; do
3023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025        ac_prog_rejected=yes
3026        continue
3027      fi
3028     ac_cv_prog_CC="cc"
3029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030     break 2
3031   fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 if test $ac_prog_rejected = yes; then
3037   # We found a bogon in the path, so make sure we never use it.
3038   set dummy $ac_cv_prog_CC
3039   shift
3040   if test $# != 0; then
3041     # We chose a different compiler from the bogus one.
3042     # However, it has the same basename, so the bogon will be chosen
3043     # first if we set CC to just the basename; use the full file name.
3044     shift
3045     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3046   fi
3047 fi
3048 fi
3049 fi
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052   { echo "$as_me:$LINENO: result: $CC" >&5
3053 echo "${ECHO_T}$CC" >&6; }
3054 else
3055   { echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6; }
3057 fi
3058
3059
3060 fi
3061 if test -z "$CC"; then
3062   if test -n "$ac_tool_prefix"; then
3063   for ac_prog in cl.exe
3064   do
3065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   if test -n "$CC"; then
3073   ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094   { echo "$as_me:$LINENO: result: $CC" >&5
3095 echo "${ECHO_T}$CC" >&6; }
3096 else
3097   { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3099 fi
3100
3101
3102     test -n "$CC" && break
3103   done
3104 fi
3105 if test -z "$CC"; then
3106   ac_ct_CC=$CC
3107   for ac_prog in cl.exe
3108 do
3109   # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   if test -n "$ac_ct_CC"; then
3117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   for ac_exec_ext in '' $ac_executable_extensions; do
3125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126     ac_cv_prog_ac_ct_CC="$ac_prog"
3127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128     break 2
3129   fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3137 if test -n "$ac_ct_CC"; then
3138   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3139 echo "${ECHO_T}$ac_ct_CC" >&6; }
3140 else
3141   { echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6; }
3143 fi
3144
3145
3146   test -n "$ac_ct_CC" && break
3147 done
3148
3149   if test "x$ac_ct_CC" = x; then
3150     CC=""
3151   else
3152     case $cross_compiling:$ac_tool_warned in
3153 yes:)
3154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet.  If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&5
3157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet.  If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3160 ac_tool_warned=yes ;;
3161 esac
3162     CC=$ac_ct_CC
3163   fi
3164 fi
3165
3166 fi
3167
3168
3169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3170 See \`config.log' for more details." >&5
3171 echo "$as_me: error: no acceptable C compiler found in \$PATH
3172 See \`config.log' for more details." >&2;}
3173    { (exit 1); exit 1; }; }
3174
3175 # Provide some information about the compiler.
3176 echo "$as_me:$LINENO: checking for C compiler version" >&5
3177 ac_compiler=`set X $ac_compile; echo $2`
3178 { (ac_try="$ac_compiler --version >&5"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compiler --version >&5") 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }
3188 { (ac_try="$ac_compiler -v >&5"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_compiler -v >&5") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }
3198 { (ac_try="$ac_compiler -V >&5"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_compiler -V >&5") 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }
3208
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215
3216 int
3217 main ()
3218 {
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3228 # of exeext.
3229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232 #
3233 # List of possible output files, starting from the most likely.
3234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3235 # only as a last resort.  b.out is created by i960 compilers.
3236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3237 #
3238 # The IRIX 6 linker writes into existing files which may not be
3239 # executable, retaining their permissions.  Remove them first so a
3240 # subsequent execution test works.
3241 ac_rmfiles=
3242 for ac_file in $ac_files
3243 do
3244   case $ac_file in
3245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247   esac
3248 done
3249 rm -f $ac_rmfiles
3250
3251 if { (ac_try="$ac_link_default"
3252 case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257   (eval "$ac_link_default") 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; then
3261   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3263 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3264 # so that the user can short-circuit this test for compilers unknown to
3265 # Autoconf.
3266 for ac_file in $ac_files ''
3267 do
3268   test -f "$ac_file" || continue
3269   case $ac_file in
3270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3271         ;;
3272     [ab].out )
3273         # We found the default executable, but exeext='' is most
3274         # certainly right.
3275         break;;
3276     *.* )
3277         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3278         then :; else
3279            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280         fi
3281         # We set ac_cv_exeext here because the later test for it is not
3282         # safe: cross compilers may not add the suffix if given an `-o'
3283         # argument, so we may need to know it at that point already.
3284         # Even if this section looks crufty: it has the advantage of
3285         # actually working.
3286         break;;
3287     * )
3288         break;;
3289   esac
3290 done
3291 test "$ac_cv_exeext" = no && ac_cv_exeext=
3292
3293 else
3294   ac_file=''
3295 fi
3296
3297 { echo "$as_me:$LINENO: result: $ac_file" >&5
3298 echo "${ECHO_T}$ac_file" >&6; }
3299 if test -z "$ac_file"; then
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3304 See \`config.log' for more details." >&5
3305 echo "$as_me: error: C compiler cannot create executables
3306 See \`config.log' for more details." >&2;}
3307    { (exit 77); exit 77; }; }
3308 fi
3309
3310 ac_exeext=$ac_cv_exeext
3311
3312 # Check that the compiler produces executables we can run.  If not, either
3313 # the compiler is broken, or we cross compile.
3314 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3315 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3316 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3317 # If not cross compiling, check that we can run a simple program.
3318 if test "$cross_compiling" != yes; then
3319   if { ac_try='./$ac_file'
3320   { (case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325   (eval "$ac_try") 2>&5
3326   ac_status=$?
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; }; then
3329     cross_compiling=no
3330   else
3331     if test "$cross_compiling" = maybe; then
3332         cross_compiling=yes
3333     else
3334         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3335 If you meant to cross compile, use \`--host'.
3336 See \`config.log' for more details." >&5
3337 echo "$as_me: error: cannot run C compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details." >&2;}
3340    { (exit 1); exit 1; }; }
3341     fi
3342   fi
3343 fi
3344 { echo "$as_me:$LINENO: result: yes" >&5
3345 echo "${ECHO_T}yes" >&6; }
3346
3347 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3348 ac_clean_files=$ac_clean_files_save
3349 # Check that the compiler produces executables we can run.  If not, either
3350 # the compiler is broken, or we cross compile.
3351 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3353 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3354 echo "${ECHO_T}$cross_compiling" >&6; }
3355
3356 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3358 if { (ac_try="$ac_link"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364   (eval "$ac_link") 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; then
3368   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3370 # work properly (i.e., refer to `conftest.exe'), while it won't with
3371 # `rm'.
3372 for ac_file in conftest.exe conftest conftest.*; do
3373   test -f "$ac_file" || continue
3374   case $ac_file in
3375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3376     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377           break;;
3378     * ) break;;
3379   esac
3380 done
3381 else
3382   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details." >&2;}
3386    { (exit 1); exit 1; }; }
3387 fi
3388
3389 rm -f conftest$ac_cv_exeext
3390 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3391 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3392
3393 rm -f conftest.$ac_ext
3394 EXEEXT=$ac_cv_exeext
3395 ac_exeext=$EXEEXT
3396 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3397 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3398 if test "${ac_cv_objext+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407
3408 int
3409 main ()
3410 {
3411
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.o conftest.obj
3417 if { (ac_try="$ac_compile"
3418 case "(($ac_try" in
3419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420   *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423   (eval "$ac_compile") 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; then
3427   for ac_file in conftest.o conftest.obj conftest.*; do
3428   test -f "$ac_file" || continue;
3429   case $ac_file in
3430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3431     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3432        break;;
3433   esac
3434 done
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3440 See \`config.log' for more details." >&5
3441 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3442 See \`config.log' for more details." >&2;}
3443    { (exit 1); exit 1; }; }
3444 fi
3445
3446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 fi
3448 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3449 echo "${ECHO_T}$ac_cv_objext" >&6; }
3450 OBJEXT=$ac_cv_objext
3451 ac_objext=$OBJEXT
3452 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3453 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3454 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463
3464 int
3465 main ()
3466 {
3467 #ifndef __GNUC__
3468        choke me
3469 #endif
3470
3471   ;
3472   return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_compile") 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } && {
3489          test -z "$ac_c_werror_flag" ||
3490          test ! -s conftest.err
3491        } && test -s conftest.$ac_objext; then
3492   ac_compiler_gnu=yes
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497         ac_compiler_gnu=no
3498 fi
3499
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502
3503 fi
3504 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3506 GCC=`test $ac_compiler_gnu = yes && echo yes`
3507 ac_test_CFLAGS=${CFLAGS+set}
3508 ac_save_CFLAGS=$CFLAGS
3509 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3510 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3511 if test "${ac_cv_prog_cc_g+set}" = set; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   ac_save_c_werror_flag=$ac_c_werror_flag
3515    ac_c_werror_flag=yes
3516    ac_cv_prog_cc_g=no
3517    CFLAGS="-g"
3518    cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_compile") 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } && {
3547          test -z "$ac_c_werror_flag" ||
3548          test ! -s conftest.err
3549        } && test -s conftest.$ac_objext; then
3550   ac_cv_prog_cc_g=yes
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555         CFLAGS=""
3556       cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562
3563 int
3564 main ()
3565 {
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3573 case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578   (eval "$ac_compile") 2>conftest.er1
3579   ac_status=$?
3580   grep -v '^ *+' conftest.er1 >conftest.err
3581   rm -f conftest.er1
3582   cat conftest.err >&5
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); } && {
3585          test -z "$ac_c_werror_flag" ||
3586          test ! -s conftest.err
3587        } && test -s conftest.$ac_objext; then
3588   :
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593         ac_c_werror_flag=$ac_save_c_werror_flag
3594          CFLAGS="-g"
3595          cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_compile") 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } && {
3624          test -z "$ac_c_werror_flag" ||
3625          test ! -s conftest.err
3626        } && test -s conftest.$ac_objext; then
3627   ac_cv_prog_cc_g=yes
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632
3633 fi
3634
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 fi
3637
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 fi
3640
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642    ac_c_werror_flag=$ac_save_c_werror_flag
3643 fi
3644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3646 if test "$ac_test_CFLAGS" = set; then
3647   CFLAGS=$ac_save_CFLAGS
3648 elif test $ac_cv_prog_cc_g = yes; then
3649   if test "$GCC" = yes; then
3650     CFLAGS="-g -O2"
3651   else
3652     CFLAGS="-g"
3653   fi
3654 else
3655   if test "$GCC" = yes; then
3656     CFLAGS="-O2"
3657   else
3658     CFLAGS=
3659   fi
3660 fi
3661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3663 if test "${ac_cv_prog_cc_c89+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   ac_cv_prog_cc_c89=no
3667 ac_save_CC=$CC
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <stdarg.h>
3675 #include <stdio.h>
3676 #include <sys/types.h>
3677 #include <sys/stat.h>
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3682      char **p;
3683      int i;
3684 {
3685   return p[i];
3686 }
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3688 {
3689   char *s;
3690   va_list v;
3691   va_start (v,p);
3692   s = g (p, va_arg (v,int));
3693   va_end (v);
3694   return s;
3695 }
3696
3697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3698    function prototypes and stuff, but not '\xHH' hex character constants.
3699    These don't provoke an error unfortunately, instead are silently treated
3700    as 'x'.  The following induces an error, until -std is added to get
3701    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3702    array size at least.  It's necessary to write '\x00'==0 to get something
3703    that's true only with -std.  */
3704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705
3706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707    inside strings and character constants.  */
3708 #define FOO(x) 'x'
3709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710
3711 int test (int i, double x);
3712 struct s1 {int (*f) (int a);};
3713 struct s2 {int (*f) (double a);};
3714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715 int argc;
3716 char **argv;
3717 int
3718 main ()
3719 {
3720 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3721   ;
3722   return 0;
3723 }
3724 _ACEOF
3725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727 do
3728   CC="$ac_save_CC $ac_arg"
3729   rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_compile") 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } && {
3743          test -z "$ac_c_werror_flag" ||
3744          test ! -s conftest.err
3745        } && test -s conftest.$ac_objext; then
3746   ac_cv_prog_cc_c89=$ac_arg
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751
3752 fi
3753
3754 rm -f core conftest.err conftest.$ac_objext
3755   test "x$ac_cv_prog_cc_c89" != "xno" && break
3756 done
3757 rm -f conftest.$ac_ext
3758 CC=$ac_save_CC
3759
3760 fi
3761 # AC_CACHE_VAL
3762 case "x$ac_cv_prog_cc_c89" in
3763   x)
3764     { echo "$as_me:$LINENO: result: none needed" >&5
3765 echo "${ECHO_T}none needed" >&6; } ;;
3766   xno)
3767     { echo "$as_me:$LINENO: result: unsupported" >&5
3768 echo "${ECHO_T}unsupported" >&6; } ;;
3769   *)
3770     CC="$CC $ac_cv_prog_cc_c89"
3771     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3772 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3773 esac
3774
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 DEPDIR="${am__leading_dot}deps"
3782
3783 ac_config_commands="$ac_config_commands depfiles"
3784
3785
3786 am_make=${MAKE-make}
3787 cat > confinc << 'END'
3788 am__doit:
3789         @echo done
3790 .PHONY: am__doit
3791 END
3792 # If we don't find an include directive, just comment out the code.
3793 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3794 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3795 am__include="#"
3796 am__quote=
3797 _am_result=none
3798 # First try GNU make style include.
3799 echo "include confinc" > confmf
3800 # We grep out `Entering directory' and `Leaving directory'
3801 # messages which can occur if `w' ends up in MAKEFLAGS.
3802 # In particular we don't look at `^make:' because GNU make might
3803 # be invoked under some other name (usually "gmake"), in which
3804 # case it prints its new name instead of `make'.
3805 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3806    am__include=include
3807    am__quote=
3808    _am_result=GNU
3809 fi
3810 # Now try BSD make style include.
3811 if test "$am__include" = "#"; then
3812    echo '.include "confinc"' > confmf
3813    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3814       am__include=.include
3815       am__quote="\""
3816       _am_result=BSD
3817    fi
3818 fi
3819
3820
3821 { echo "$as_me:$LINENO: result: $_am_result" >&5
3822 echo "${ECHO_T}$_am_result" >&6; }
3823 rm -f confinc confmf
3824
3825 # Check whether --enable-dependency-tracking was given.
3826 if test "${enable_dependency_tracking+set}" = set; then
3827   enableval=$enable_dependency_tracking;
3828 fi
3829
3830 if test "x$enable_dependency_tracking" != xno; then
3831   am_depcomp="$ac_aux_dir/depcomp"
3832   AMDEPBACKSLASH='\'
3833 fi
3834
3835
3836 if test "x$enable_dependency_tracking" != xno; then
3837   AMDEP_TRUE=
3838   AMDEP_FALSE='#'
3839 else
3840   AMDEP_TRUE='#'
3841   AMDEP_FALSE=
3842 fi
3843
3844
3845
3846
3847 depcc="$CC"   am_compiler_list=
3848
3849 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3850 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3851 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855   # We make a subdir and do the tests there.  Otherwise we can end up
3856   # making bogus files that we don't know about and never remove.  For
3857   # instance it was reported that on HP-UX the gcc test will end up
3858   # making a dummy file named `D' -- because `-MD' means `put the output
3859   # in D'.
3860   mkdir conftest.dir
3861   # Copy depcomp to subdir because otherwise we won't find it if we're
3862   # using a relative directory.
3863   cp "$am_depcomp" conftest.dir
3864   cd conftest.dir
3865   # We will build objects and dependencies in a subdirectory because
3866   # it helps to detect inapplicable dependency modes.  For instance
3867   # both Tru64's cc and ICC support -MD to output dependencies as a
3868   # side effect of compilation, but ICC will put the dependencies in
3869   # the current directory while Tru64 will put them in the object
3870   # directory.
3871   mkdir sub
3872
3873   am_cv_CC_dependencies_compiler_type=none
3874   if test "$am_compiler_list" = ""; then
3875      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876   fi
3877   for depmode in $am_compiler_list; do
3878     # Setup a source with many dependencies, because some compilers
3879     # like to wrap large dependency lists on column 80 (with \), and
3880     # we should not choose a depcomp mode which is confused by this.
3881     #
3882     # We need to recreate these files for each test, as the compiler may
3883     # overwrite some of them when testing with obscure command lines.
3884     # This happens at least with the AIX C compiler.
3885     : > sub/conftest.c
3886     for i in 1 2 3 4 5 6; do
3887       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3888       : > sub/conftst$i.h
3889     done
3890     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3891
3892     case $depmode in
3893     nosideeffect)
3894       # after this tag, mechanisms are not by side-effect, so they'll
3895       # only be used when explicitly requested
3896       if test "x$enable_dependency_tracking" = xyes; then
3897         continue
3898       else
3899         break
3900       fi
3901       ;;
3902     none) break ;;
3903     esac
3904     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3905     # mode.  It turns out that the SunPro C++ compiler does not properly
3906     # handle `-M -o', and we need to detect this.
3907     if depmode=$depmode \
3908        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3909        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3910        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3911          >/dev/null 2>conftest.err &&
3912        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3913        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3914        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915       # icc doesn't choke on unknown options, it will just issue warnings
3916       # (even with -Werror).  So we grep stderr for any message
3917       # that says an option was ignored.
3918       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3919         am_cv_CC_dependencies_compiler_type=$depmode
3920         break
3921       fi
3922     fi
3923   done
3924
3925   cd ..
3926   rm -rf conftest.dir
3927 else
3928   am_cv_CC_dependencies_compiler_type=none
3929 fi
3930
3931 fi
3932 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3933 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3935
3936
3937
3938 if
3939   test "x$enable_dependency_tracking" != xno \
3940   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3941   am__fastdepCC_TRUE=
3942   am__fastdepCC_FALSE='#'
3943 else
3944   am__fastdepCC_TRUE='#'
3945   am__fastdepCC_FALSE=
3946 fi
3947
3948
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3956 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3957 # On Suns, sometimes $CPP names a directory.
3958 if test -n "$CPP" && test -d "$CPP"; then
3959   CPP=
3960 fi
3961 if test -z "$CPP"; then
3962   if test "${ac_cv_prog_CPP+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965       # Double quotes because CPP needs to be expanded
3966     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3967     do
3968       ac_preproc_ok=false
3969 for ac_c_preproc_warn_flag in '' yes
3970 do
3971   # Use a header file that comes with gcc, so configuring glibc
3972   # with a fresh cross-compiler works.
3973   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974   # <limits.h> exists even on freestanding compilers.
3975   # On the NeXT, cc -E runs the code through the compiler's parser,
3976   # not just through cpp. "Syntax error" is here to catch this case.
3977   cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h.  */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h.  */
3983 #ifdef __STDC__
3984 # include <limits.h>
3985 #else
3986 # include <assert.h>
3987 #endif
3988                      Syntax error
3989 _ACEOF
3990 if { (ac_try="$ac_cpp conftest.$ac_ext"
3991 case "(($ac_try" in
3992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993   *) ac_try_echo=$ac_try;;
3994 esac
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } >/dev/null && {
4003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4004          test ! -s conftest.err
4005        }; then
4006   :
4007 else
4008   echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4010
4011   # Broken: fails on valid input.
4012 continue
4013 fi
4014
4015 rm -f conftest.err conftest.$ac_ext
4016
4017   # OK, works on sane cases.  Now check whether nonexistent headers
4018   # can be detected and how.
4019   cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h.  */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h.  */
4025 #include <ac_nonexistent.h>
4026 _ACEOF
4027 if { (ac_try="$ac_cpp conftest.$ac_ext"
4028 case "(($ac_try" in
4029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030   *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4034   ac_status=$?
4035   grep -v '^ *+' conftest.er1 >conftest.err
4036   rm -f conftest.er1
4037   cat conftest.err >&5
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } >/dev/null && {
4040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4041          test ! -s conftest.err
4042        }; then
4043   # Broken: success on invalid input.
4044 continue
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049   # Passes both tests.
4050 ac_preproc_ok=:
4051 break
4052 fi
4053
4054 rm -f conftest.err conftest.$ac_ext
4055
4056 done
4057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058 rm -f conftest.err conftest.$ac_ext
4059 if $ac_preproc_ok; then
4060   break
4061 fi
4062
4063     done
4064     ac_cv_prog_CPP=$CPP
4065
4066 fi
4067   CPP=$ac_cv_prog_CPP
4068 else
4069   ac_cv_prog_CPP=$CPP
4070 fi
4071 { echo "$as_me:$LINENO: result: $CPP" >&5
4072 echo "${ECHO_T}$CPP" >&6; }
4073 ac_preproc_ok=false
4074 for ac_c_preproc_warn_flag in '' yes
4075 do
4076   # Use a header file that comes with gcc, so configuring glibc
4077   # with a fresh cross-compiler works.
4078   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4079   # <limits.h> exists even on freestanding compilers.
4080   # On the NeXT, cc -E runs the code through the compiler's parser,
4081   # not just through cpp. "Syntax error" is here to catch this case.
4082   cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h.  */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h.  */
4088 #ifdef __STDC__
4089 # include <limits.h>
4090 #else
4091 # include <assert.h>
4092 #endif
4093                      Syntax error
4094 _ACEOF
4095 if { (ac_try="$ac_cpp conftest.$ac_ext"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } >/dev/null && {
4108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4109          test ! -s conftest.err
4110        }; then
4111   :
4112 else
4113   echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4115
4116   # Broken: fails on valid input.
4117 continue
4118 fi
4119
4120 rm -f conftest.err conftest.$ac_ext
4121
4122   # OK, works on sane cases.  Now check whether nonexistent headers
4123   # can be detected and how.
4124   cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130 #include <ac_nonexistent.h>
4131 _ACEOF
4132 if { (ac_try="$ac_cpp conftest.$ac_ext"
4133 case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4139   ac_status=$?
4140   grep -v '^ *+' conftest.er1 >conftest.err
4141   rm -f conftest.er1
4142   cat conftest.err >&5
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); } >/dev/null && {
4145          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4146          test ! -s conftest.err
4147        }; then
4148   # Broken: success on invalid input.
4149 continue
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154   # Passes both tests.
4155 ac_preproc_ok=:
4156 break
4157 fi
4158
4159 rm -f conftest.err conftest.$ac_ext
4160
4161 done
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4165   :
4166 else
4167   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4168 See \`config.log' for more details." >&5
4169 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4170 See \`config.log' for more details." >&2;}
4171    { (exit 1); exit 1; }; }
4172 fi
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179
4180
4181 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4182 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4183 if test "${ac_cv_path_GREP+set}" = set; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   # Extract the first word of "grep ggrep" to use in msg output
4187 if test -z "$GREP"; then
4188 set dummy grep ggrep; ac_prog_name=$2
4189 if test "${ac_cv_path_GREP+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   ac_path_GREP_found=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199   for ac_prog in grep ggrep; do
4200   for ac_exec_ext in '' $ac_executable_extensions; do
4201     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4202     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4203     # Check for GNU ac_path_GREP and select it if it is found.
4204   # Check for GNU $ac_path_GREP
4205 case `"$ac_path_GREP" --version 2>&1` in
4206 *GNU*)
4207   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4208 *)
4209   ac_count=0
4210   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4211   while :
4212   do
4213     cat "conftest.in" "conftest.in" >"conftest.tmp"
4214     mv "conftest.tmp" "conftest.in"
4215     cp "conftest.in" "conftest.nl"
4216     echo 'GREP' >> "conftest.nl"
4217     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219     ac_count=`expr $ac_count + 1`
4220     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4221       # Best one so far, save it but keep looking for a better one
4222       ac_cv_path_GREP="$ac_path_GREP"
4223       ac_path_GREP_max=$ac_count
4224     fi
4225     # 10*(2^10) chars as input seems more than enough
4226     test $ac_count -gt 10 && break
4227   done
4228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229 esac
4230
4231
4232     $ac_path_GREP_found && break 3
4233   done
4234 done
4235
4236 done
4237 IFS=$as_save_IFS
4238
4239
4240 fi
4241
4242 GREP="$ac_cv_path_GREP"
4243 if test -z "$GREP"; then
4244   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4245 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4246    { (exit 1); exit 1; }; }
4247 fi
4248
4249 else
4250   ac_cv_path_GREP=$GREP
4251 fi
4252
4253
4254 fi
4255 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4256 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4257  GREP="$ac_cv_path_GREP"
4258
4259
4260 { echo "$as_me:$LINENO: checking for egrep" >&5
4261 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4262 if test "${ac_cv_path_EGREP+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4266    then ac_cv_path_EGREP="$GREP -E"
4267    else
4268      # Extract the first word of "egrep" to use in msg output
4269 if test -z "$EGREP"; then
4270 set dummy egrep; ac_prog_name=$2
4271 if test "${ac_cv_path_EGREP+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   ac_path_EGREP_found=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281   for ac_prog in egrep; do
4282   for ac_exec_ext in '' $ac_executable_extensions; do
4283     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4284     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4285     # Check for GNU ac_path_EGREP and select it if it is found.
4286   # Check for GNU $ac_path_EGREP
4287 case `"$ac_path_EGREP" --version 2>&1` in
4288 *GNU*)
4289   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4290 *)
4291   ac_count=0
4292   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4293   while :
4294   do
4295     cat "conftest.in" "conftest.in" >"conftest.tmp"
4296     mv "conftest.tmp" "conftest.in"
4297     cp "conftest.in" "conftest.nl"
4298     echo 'EGREP' >> "conftest.nl"
4299     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301     ac_count=`expr $ac_count + 1`
4302     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4303       # Best one so far, save it but keep looking for a better one
4304       ac_cv_path_EGREP="$ac_path_EGREP"
4305       ac_path_EGREP_max=$ac_count
4306     fi
4307     # 10*(2^10) chars as input seems more than enough
4308     test $ac_count -gt 10 && break
4309   done
4310   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4311 esac
4312
4313
4314     $ac_path_EGREP_found && break 3
4315   done
4316 done
4317
4318 done
4319 IFS=$as_save_IFS
4320
4321
4322 fi
4323
4324 EGREP="$ac_cv_path_EGREP"
4325 if test -z "$EGREP"; then
4326   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328    { (exit 1); exit 1; }; }
4329 fi
4330
4331 else
4332   ac_cv_path_EGREP=$EGREP
4333 fi
4334
4335
4336    fi
4337 fi
4338 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4339 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4340  EGREP="$ac_cv_path_EGREP"
4341
4342
4343 if test $ac_cv_c_compiler_gnu = yes; then
4344     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4345 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349     ac_pattern="Autoconf.*'x'"
4350   cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h.  */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h.  */
4356 #include <sgtty.h>
4357 Autoconf TIOCGETP
4358 _ACEOF
4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4361   ac_cv_prog_gcc_traditional=yes
4362 else
4363   ac_cv_prog_gcc_traditional=no
4364 fi
4365 rm -f conftest*
4366
4367
4368   if test $ac_cv_prog_gcc_traditional = no; then
4369     cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h.  */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h.  */
4375 #include <termio.h>
4376 Autoconf TCGETA
4377 _ACEOF
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4380   ac_cv_prog_gcc_traditional=yes
4381 fi
4382 rm -f conftest*
4383
4384   fi
4385 fi
4386 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4387 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4388   if test $ac_cv_prog_gcc_traditional = yes; then
4389     CC="$CC -traditional"
4390   fi
4391 fi
4392
4393 # Find a good install program.  We prefer a C program (faster),
4394 # so one script is as good as another.  But avoid the broken or
4395 # incompatible versions:
4396 # SysV /etc/install, /usr/sbin/install
4397 # SunOS /usr/etc/install
4398 # IRIX /sbin/install
4399 # AIX /bin/install
4400 # AmigaOS /C/install, which installs bootblocks on floppy discs
4401 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4402 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4403 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4404 # OS/2's system install, which has a completely different semantic
4405 # ./install, which can be erroneously created by make from ./install.sh.
4406 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4408 if test -z "$INSTALL"; then
4409 if test "${ac_cv_path_install+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417   # Account for people who put trailing slashes in PATH elements.
4418 case $as_dir/ in
4419   ./ | .// | /cC/* | \
4420   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4421   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4422   /usr/ucb/* ) ;;
4423   *)
4424     # OSF1 and SCO ODT 3.0 have their own names for install.
4425     # Don't use installbsd from OSF since it installs stuff as root
4426     # by default.
4427     for ac_prog in ginstall scoinst install; do
4428       for ac_exec_ext in '' $ac_executable_extensions; do
4429         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4430           if test $ac_prog = install &&
4431             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4432             # AIX install.  It has an incompatible calling convention.
4433             :
4434           elif test $ac_prog = install &&
4435             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4436             # program-specific install script used by HP pwplus--don't use.
4437             :
4438           else
4439             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4440             break 3
4441           fi
4442         fi
4443       done
4444     done
4445     ;;
4446 esac
4447 done
4448 IFS=$as_save_IFS
4449
4450
4451 fi
4452   if test "${ac_cv_path_install+set}" = set; then
4453     INSTALL=$ac_cv_path_install
4454   else
4455     # As a last resort, use the slow shell script.  Don't cache a
4456     # value for INSTALL within a source directory, because that will
4457     # break other packages using the cache if that directory is
4458     # removed, or if the value is a relative name.
4459     INSTALL=$ac_install_sh
4460   fi
4461 fi
4462 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4463 echo "${ECHO_T}$INSTALL" >&6; }
4464
4465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4466 # It thinks the first close brace ends the variable substitution.
4467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4468
4469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4470
4471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4472
4473 for ac_prog in gawk mawk nawk awk
4474 do
4475   # Extract the first word of "$ac_prog", so it can be a program name with args.
4476 set dummy $ac_prog; ac_word=$2
4477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4479 if test "${ac_cv_prog_AWK+set}" = set; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482   if test -n "$AWK"; then
4483   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     ac_cv_prog_AWK="$ac_prog"
4493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500 fi
4501 fi
4502 AWK=$ac_cv_prog_AWK
4503 if test -n "$AWK"; then
4504   { echo "$as_me:$LINENO: result: $AWK" >&5
4505 echo "${ECHO_T}$AWK" >&6; }
4506 else
4507   { echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6; }
4509 fi
4510
4511
4512   test -n "$AWK" && break
4513 done
4514
4515 if test -n "$ac_tool_prefix"; then
4516   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_RANLIB+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   if test -n "$RANLIB"; then
4524   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531   for ac_exec_ext in '' $ac_executable_extensions; do
4532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541 fi
4542 fi
4543 RANLIB=$ac_cv_prog_RANLIB
4544 if test -n "$RANLIB"; then
4545   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4546 echo "${ECHO_T}$RANLIB" >&6; }
4547 else
4548   { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4550 fi
4551
4552
4553 fi
4554 if test -z "$ac_cv_prog_RANLIB"; then
4555   ac_ct_RANLIB=$RANLIB
4556   # Extract the first word of "ranlib", so it can be a program name with args.
4557 set dummy ranlib; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$ac_ct_RANLIB"; then
4564   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     ac_cv_prog_ac_ct_RANLIB="ranlib"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579 IFS=$as_save_IFS
4580
4581 fi
4582 fi
4583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4584 if test -n "$ac_ct_RANLIB"; then
4585   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4586 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4587 else
4588   { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4590 fi
4591
4592   if test "x$ac_ct_RANLIB" = x; then
4593     RANLIB=":"
4594   else
4595     case $cross_compiling:$ac_tool_warned in
4596 yes:)
4597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4598 whose name does not start with the host triplet.  If you think this
4599 configuration is useful to you, please write to autoconf@gnu.org." >&5
4600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet.  If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4603 ac_tool_warned=yes ;;
4604 esac
4605     RANLIB=$ac_ct_RANLIB
4606   fi
4607 else
4608   RANLIB="$ac_cv_prog_RANLIB"
4609 fi
4610
4611 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4612 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4613 LN_S=$as_ln_s
4614 if test "$LN_S" = "ln -s"; then
4615   { echo "$as_me:$LINENO: result: yes" >&5
4616 echo "${ECHO_T}yes" >&6; }
4617 else
4618   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4619 echo "${ECHO_T}no, using $LN_S" >&6; }
4620 fi
4621
4622 { echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4623 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6; }
4624 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4625 if { as_var=timidity_cv_ccoption_$ac_ccoption; eval "test \"\${$as_var+set}\" = set"; }; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   cat > conftest.$ac_ext <<EOF
4629 int main() {return 0;}
4630 EOF
4631 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4632     if test -s conftest.out; then
4633         eval "timidity_cv_ccoption_$ac_ccoption=no"
4634     else
4635         eval "timidity_cv_ccoption_$ac_ccoption=yes"
4636     fi
4637 else
4638     eval "timidity_cv_ccoption_$ac_ccoption=no"
4639 fi
4640
4641 fi
4642
4643 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4644   { echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6; }
4646
4647 else
4648   { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650
4651 fi
4652
4653
4654 if test "x$NOCFLAGS" = "xyes"; then
4655   if test "x$GCC" = "xyes"; then
4656     CFLAGS="-O2"
4657   else
4658     CFLAGS=""
4659   fi
4660 fi
4661
4662 # Checks for target dependencies
4663
4664
4665 # Check whether --with-elf was given.
4666 if test "${with_elf+set}" = set; then
4667   withval=$with_elf;  ELFFORMAT=$withval
4668 else
4669    ELFFORMAT="yes"
4670 fi
4671
4672
4673 # AC_ARG_WITH(simd,
4674 #  [  --with-simd             create SIMD friendly binary (default is no) ],
4675 #  [ SIMD=$withval ], [ SIMD="no" ])
4676
4677 case "$target" in
4678   *-*-hpux*)
4679     EXTRADEFS="-DHPUX"
4680     test -n "$SHLD" || SHLD="ld -b"
4681     so="sl"
4682     ;;
4683   *-sgi-irix*)
4684         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4685     test -n "$SHLD" || SHLD="cc -shared -all"
4686     so="so"
4687     ;;
4688   *-*-netbsd*)
4689     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4690     so="so"
4691     ;;
4692
4693   *-*-freebsd2*)
4694         test -n "$SHLD" || SHLD="ld -Bshareable"
4695     so="so"
4696     ;;
4697   *-*-freebsd*)
4698     if test "$ELFFORMAT" = yes; then
4699         test -n "$SHLD" || SHLD="ld -Bshareable"
4700     else
4701         SHCFLAGS=-aou
4702         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4703         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4704     fi
4705         so="so"
4706     ;;
4707
4708 #  *-*-freebsd*)
4709 #    EXTRALIBS="$EXTRALIBS -lxpg4"
4710 #    test -n "$SHLD" || SHLD="ld -Bshareable"
4711 #    so="so"
4712 #  ;;
4713
4714   *-*-cygwin*|*-*-mingw*)
4715     EXTRADEFS="-D__W32__"
4716     # ??
4717     case "x${CC} " in
4718       "xbcc32 "*|xbcc32)
4719 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
4720         test -n "$SHLD" || SHLD="BCC32 -WD"
4721         BORLANDC=yes
4722         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4723         BORLANDC_START='C0X32.OBJ'
4724         CFLAGS="$CFLAGS  -tWM -VM"
4725         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4726         ;;
4727       "xcc "*|xcc)
4728         test -n "$SHLD" || SHLD="polink -DLL"
4729         POCC=yes
4730          case " $CFLAGS " in
4731            *" -MT "*)  NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crt.lib -defaultlib:crtmt.lib"  ;;
4732            *" -MD "*)  NODEF="-nodefaultlib:crtmt.lib -nodefaultlib:crt.lib -defaultlib:pocrt.lib"  ;;
4733            *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crtmt.lib -defaultlib:crt.lib" ;;
4734          esac
4735         POCC_LDFLAGS="$NODEF winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib oldnames.lib"
4736         CFLAGS="$CFLAGS -Ze -D__POCC__OLDNAMES"
4737         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4738         ;;
4739       "xdmc "*|xdmc)
4740         test -n "$SHLD" || SHLD="dmc -WD"
4741         DMC=yes
4742         DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
4743         CFLAGS="$CFLAGS  -mn -j0"
4744         DLLFLAG=" "
4745         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4746         ;;
4747       "xwcc386_w.sh "*|xwcc386)
4748          WATCOM_C=yes
4749          CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4750          DLLFLAG=" "
4751          WATCOM_LDFLAGS=
4752          EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4753          ;;
4754       "xcl "*|xcl)
4755          test -n "$SHLD" || SHLD="link -dll"
4756          VCPP=yes
4757          case " $CFLAGS " in
4758            *" -MT "*)  NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4759            *" -MD "*)  NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4760            *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4761            *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4762            *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4763          esac
4764          VCPP_LDFLAGS="-nologo -incremental:no  $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib  wsock32.lib user32.lib shell32.lib"
4765          CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX  -Ob2"
4766          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
4767          ;;
4768       "x*gcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4769       *) test -n "$SHLD" || SHLD="unknown" ;;
4770     esac
4771     so="dll"
4772     MSYS=yes
4773     lib_user32_test=-luser32
4774     ;;
4775   *-dec-*)
4776     EXTRADEFS="-DDEC"
4777     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4778     so="so"
4779     ;;
4780   *-*-solaris*)
4781     EXTRADEFS="-DSOLARIS"
4782     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4783     so="so"
4784     ;;
4785   *-*-nextstep*)
4786     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4787     so="so"
4788     ;;
4789   *-*-darwin*)
4790     if test "x$SIMD" = "xyes"; then
4791
4792 cat >>confdefs.h <<\_ACEOF
4793 #define USE_ALTIVEC 1
4794 _ACEOF
4795
4796        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4797        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4798     else
4799
4800 cat >>confdefs.h <<\_ACEOF
4801 #define USE_ALTIVEC 0
4802 _ACEOF
4803
4804     fi
4805     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4806     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4807     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4808     so="bundle"
4809     ;;
4810   *)
4811     test -n "$SHLD" || \
4812       if test "x$GCC" = xyes; then
4813         SHLD="$CC -shared"
4814       else
4815         SHLD="ld -Bdynamic -G"
4816       fi
4817     so="so"
4818     ;;
4819 esac
4820
4821
4822 # Checks for libraries.
4823
4824 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4825 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
4826 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   ac_check_lib_save_LIBS=$LIBS
4830 LIBS="-lm  $LIBS"
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837
4838 /* Override any GCC internal prototype to avoid an error.
4839    Use char because int might match the return type of a GCC
4840    builtin and then its argument prototype would still apply.  */
4841 #ifdef __cplusplus
4842 extern "C"
4843 #endif
4844 char sqrt ();
4845 int
4846 main ()
4847 {
4848 return sqrt ();
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (ac_try="$ac_link"
4855 case "(($ac_try" in
4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857   *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860   (eval "$ac_link") 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } && {
4867          test -z "$ac_c_werror_flag" ||
4868          test ! -s conftest.err
4869        } && test -s conftest$ac_exeext &&
4870        $as_test_x conftest$ac_exeext; then
4871   ac_cv_lib_m_sqrt=yes
4872 else
4873   echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876         ac_cv_lib_m_sqrt=no
4877 fi
4878
4879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4880       conftest$ac_exeext conftest.$ac_ext
4881 LIBS=$ac_check_lib_save_LIBS
4882 fi
4883 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4884 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
4885 if test $ac_cv_lib_m_sqrt = yes; then
4886   cat >>confdefs.h <<_ACEOF
4887 #define HAVE_LIBM 1
4888 _ACEOF
4889
4890   LIBS="-lm $LIBS"
4891
4892 fi
4893
4894
4895 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4896 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4897 if test "${ac_cv_lib_socket_socket+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   ac_check_lib_save_LIBS=$LIBS
4901 LIBS="-lsocket  $LIBS"
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908
4909 /* Override any GCC internal prototype to avoid an error.
4910    Use char because int might match the return type of a GCC
4911    builtin and then its argument prototype would still apply.  */
4912 #ifdef __cplusplus
4913 extern "C"
4914 #endif
4915 char socket ();
4916 int
4917 main ()
4918 {
4919 return socket ();
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext conftest$ac_exeext
4925 if { (ac_try="$ac_link"
4926 case "(($ac_try" in
4927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928   *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931   (eval "$ac_link") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } && {
4938          test -z "$ac_c_werror_flag" ||
4939          test ! -s conftest.err
4940        } && test -s conftest$ac_exeext &&
4941        $as_test_x conftest$ac_exeext; then
4942   ac_cv_lib_socket_socket=yes
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947         ac_cv_lib_socket_socket=no
4948 fi
4949
4950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4951       conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_check_lib_save_LIBS
4953 fi
4954 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4955 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4956 if test $ac_cv_lib_socket_socket = yes; then
4957   cat >>confdefs.h <<_ACEOF
4958 #define HAVE_LIBSOCKET 1
4959 _ACEOF
4960
4961   LIBS="-lsocket $LIBS"
4962
4963 fi
4964
4965 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
4967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4968   echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970   ac_check_lib_save_LIBS=$LIBS
4971 LIBS="-ldl  $LIBS"
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978
4979 /* Override any GCC internal prototype to avoid an error.
4980    Use char because int might match the return type of a GCC
4981    builtin and then its argument prototype would still apply.  */
4982 #ifdef __cplusplus
4983 extern "C"
4984 #endif
4985 char dlopen ();
4986 int
4987 main ()
4988 {
4989 return dlopen ();
4990   ;
4991   return 0;
4992 }
4993 _ACEOF
4994 rm -f conftest.$ac_objext conftest$ac_exeext
4995 if { (ac_try="$ac_link"
4996 case "(($ac_try" in
4997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998   *) ac_try_echo=$ac_try;;
4999 esac
5000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001   (eval "$ac_link") 2>conftest.er1
5002   ac_status=$?
5003   grep -v '^ *+' conftest.er1 >conftest.err
5004   rm -f conftest.er1
5005   cat conftest.err >&5
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } && {
5008          test -z "$ac_c_werror_flag" ||
5009          test ! -s conftest.err
5010        } && test -s conftest$ac_exeext &&
5011        $as_test_x conftest$ac_exeext; then
5012   ac_cv_lib_dl_dlopen=yes
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017         ac_cv_lib_dl_dlopen=no
5018 fi
5019
5020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5021       conftest$ac_exeext conftest.$ac_ext
5022 LIBS=$ac_check_lib_save_LIBS
5023 fi
5024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5026 if test $ac_cv_lib_dl_dlopen = yes; then
5027   lib_dl_opt=-ldl
5028 fi
5029
5030 { echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
5031 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6; }
5032 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   ac_check_lib_save_LIBS=$LIBS
5036 LIBS="-lobjc  $LIBS"
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043
5044 /* Override any GCC internal prototype to avoid an error.
5045    Use char because int might match the return type of a GCC
5046    builtin and then its argument prototype would still apply.  */
5047 #ifdef __cplusplus
5048 extern "C"
5049 #endif
5050 char NSLinkModule ();
5051 int
5052 main ()
5053 {
5054 return NSLinkModule ();
5055   ;
5056   return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (ac_try="$ac_link"
5061 case "(($ac_try" in
5062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063   *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066   (eval "$ac_link") 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } && {
5073          test -z "$ac_c_werror_flag" ||
5074          test ! -s conftest.err
5075        } && test -s conftest$ac_exeext &&
5076        $as_test_x conftest$ac_exeext; then
5077   ac_cv_lib_objc_NSLinkModule=yes
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082         ac_cv_lib_objc_NSLinkModule=no
5083 fi
5084
5085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5086       conftest$ac_exeext conftest.$ac_ext
5087 LIBS=$ac_check_lib_save_LIBS
5088 fi
5089 { echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
5090 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6; }
5091 if test $ac_cv_lib_objc_NSLinkModule = yes; then
5092   lib_dl_opt=-lobjc
5093 fi
5094  # Mac OS X need this.
5095 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
5096
5097 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
5098 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
5099 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   ac_check_lib_save_LIBS=$LIBS
5103 LIBS="-lxpg4  $LIBS"
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110
5111 /* Override any GCC internal prototype to avoid an error.
5112    Use char because int might match the return type of a GCC
5113    builtin and then its argument prototype would still apply.  */
5114 #ifdef __cplusplus
5115 extern "C"
5116 #endif
5117 char setlocale ();
5118 int
5119 main ()
5120 {
5121 return setlocale ();
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_link") 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } && {
5140          test -z "$ac_c_werror_flag" ||
5141          test ! -s conftest.err
5142        } && test -s conftest$ac_exeext &&
5143        $as_test_x conftest$ac_exeext; then
5144   ac_cv_lib_xpg4_setlocale=yes
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149         ac_cv_lib_xpg4_setlocale=no
5150 fi
5151
5152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5153       conftest$ac_exeext conftest.$ac_ext
5154 LIBS=$ac_check_lib_save_LIBS
5155 fi
5156 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
5157 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
5158 if test $ac_cv_lib_xpg4_setlocale = yes; then
5159   cat >>confdefs.h <<_ACEOF
5160 #define HAVE_LIBXPG4 1
5161 _ACEOF
5162
5163   LIBS="-lxpg4 $LIBS"
5164
5165 fi
5166  # Mac OS X (and maybe NetBSD) need this.
5167 fi
5168
5169 for ac_func in gethostbyname
5170 do
5171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h.  */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h.  */
5183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5185 #define $ac_func innocuous_$ac_func
5186
5187 /* System header to define __stub macros and hopefully few prototypes,
5188     which can conflict with char $ac_func (); below.
5189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5190     <limits.h> exists even on freestanding compilers.  */
5191
5192 #ifdef __STDC__
5193 # include <limits.h>
5194 #else
5195 # include <assert.h>
5196 #endif
5197
5198 #undef $ac_func
5199
5200 /* Override any GCC internal prototype to avoid an error.
5201    Use char because int might match the return type of a GCC
5202    builtin and then its argument prototype would still apply.  */
5203 #ifdef __cplusplus
5204 extern "C"
5205 #endif
5206 char $ac_func ();
5207 /* The GNU C library defines this for functions which it implements
5208     to always fail with ENOSYS.  Some functions are actually named
5209     something starting with __ and the normal name is an alias.  */
5210 #if defined __stub_$ac_func || defined __stub___$ac_func
5211 choke me
5212 #endif
5213
5214 int
5215 main ()
5216 {
5217 return $ac_func ();
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (ac_try="$ac_link"
5224 case "(($ac_try" in
5225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226   *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229   (eval "$ac_link") 2>conftest.er1
5230   ac_status=$?
5231   grep -v '^ *+' conftest.er1 >conftest.err
5232   rm -f conftest.er1
5233   cat conftest.err >&5
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } && {
5236          test -z "$ac_c_werror_flag" ||
5237          test ! -s conftest.err
5238        } && test -s conftest$ac_exeext &&
5239        $as_test_x conftest$ac_exeext; then
5240   eval "$as_ac_var=yes"
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245         eval "$as_ac_var=no"
5246 fi
5247
5248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5249       conftest$ac_exeext conftest.$ac_ext
5250 fi
5251 ac_res=`eval echo '${'$as_ac_var'}'`
5252                { echo "$as_me:$LINENO: result: $ac_res" >&5
5253 echo "${ECHO_T}$ac_res" >&6; }
5254 if test `eval echo '${'$as_ac_var'}'` = yes; then
5255   cat >>confdefs.h <<_ACEOF
5256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5257 _ACEOF
5258
5259 else
5260
5261 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5262 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5263 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   ac_check_lib_save_LIBS=$LIBS
5267 LIBS="-lnsl  $LIBS"
5268 cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274
5275 /* Override any GCC internal prototype to avoid an error.
5276    Use char because int might match the return type of a GCC
5277    builtin and then its argument prototype would still apply.  */
5278 #ifdef __cplusplus
5279 extern "C"
5280 #endif
5281 char gethostbyname ();
5282 int
5283 main ()
5284 {
5285 return gethostbyname ();
5286   ;
5287   return 0;
5288 }
5289 _ACEOF
5290 rm -f conftest.$ac_objext conftest$ac_exeext
5291 if { (ac_try="$ac_link"
5292 case "(($ac_try" in
5293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294   *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297   (eval "$ac_link") 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } && {
5304          test -z "$ac_c_werror_flag" ||
5305          test ! -s conftest.err
5306        } && test -s conftest$ac_exeext &&
5307        $as_test_x conftest$ac_exeext; then
5308   ac_cv_lib_nsl_gethostbyname=yes
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313         ac_cv_lib_nsl_gethostbyname=no
5314 fi
5315
5316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5317       conftest$ac_exeext conftest.$ac_ext
5318 LIBS=$ac_check_lib_save_LIBS
5319 fi
5320 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5321 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5322 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5323   cat >>confdefs.h <<_ACEOF
5324 #define HAVE_LIBNSL 1
5325 _ACEOF
5326
5327   LIBS="-lnsl $LIBS"
5328
5329 fi
5330
5331 fi
5332 done
5333
5334 { echo "$as_me:$LINENO: checking for X" >&5
5335 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5336
5337
5338 # Check whether --with-x was given.
5339 if test "${with_x+set}" = set; then
5340   withval=$with_x;
5341 fi
5342
5343 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5344 if test "x$with_x" = xno; then
5345   # The user explicitly disabled X.
5346   have_x=disabled
5347 else
5348   case $x_includes,$x_libraries in #(
5349     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5350 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5351    { (exit 1); exit 1; }; };; #(
5352     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355   # One or both of the vars are not set, and there is no cached value.
5356 ac_x_includes=no ac_x_libraries=no
5357 rm -f -r conftest.dir
5358 if mkdir conftest.dir; then
5359   cd conftest.dir
5360   cat >Imakefile <<'_ACEOF'
5361 incroot:
5362         @echo incroot='${INCROOT}'
5363 usrlibdir:
5364         @echo usrlibdir='${USRLIBDIR}'
5365 libdir:
5366         @echo libdir='${LIBDIR}'
5367 _ACEOF
5368   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5369     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5370     for ac_var in incroot usrlibdir libdir; do
5371       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5372     done
5373     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5374     for ac_extension in a so sl; do
5375       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5376          test -f "$ac_im_libdir/libX11.$ac_extension"; then
5377         ac_im_usrlibdir=$ac_im_libdir; break
5378       fi
5379     done
5380     # Screen out bogus values from the imake configuration.  They are
5381     # bogus both because they are the default anyway, and because
5382     # using them would break gcc on systems where it needs fixed includes.
5383     case $ac_im_incroot in
5384         /usr/include) ac_x_includes= ;;
5385         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5386     esac
5387     case $ac_im_usrlibdir in
5388         /usr/lib | /lib) ;;
5389         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5390     esac
5391   fi
5392   cd ..
5393   rm -f -r conftest.dir
5394 fi
5395
5396 # Standard set of common directories for X headers.
5397 # Check X11 before X11Rn because it is often a symlink to the current release.
5398 ac_x_header_dirs='
5399 /usr/X11/include
5400 /usr/X11R6/include
5401 /usr/X11R5/include
5402 /usr/X11R4/include
5403
5404 /usr/include/X11
5405 /usr/include/X11R6
5406 /usr/include/X11R5
5407 /usr/include/X11R4
5408
5409 /usr/local/X11/include
5410 /usr/local/X11R6/include
5411 /usr/local/X11R5/include
5412 /usr/local/X11R4/include
5413
5414 /usr/local/include/X11
5415 /usr/local/include/X11R6
5416 /usr/local/include/X11R5
5417 /usr/local/include/X11R4
5418
5419 /usr/X386/include
5420 /usr/x386/include
5421 /usr/XFree86/include/X11
5422
5423 /usr/include
5424 /usr/local/include
5425 /usr/unsupported/include
5426 /usr/athena/include
5427 /usr/local/x11r5/include
5428 /usr/lpp/Xamples/include
5429
5430 /usr/openwin/include
5431 /usr/openwin/share/include'
5432
5433 if test "$ac_x_includes" = no; then
5434   # Guess where to find include files, by looking for Xlib.h.
5435   # First, try using that file with no special directory specified.
5436   cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h.  */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h.  */
5442 #include <X11/Xlib.h>
5443 _ACEOF
5444 if { (ac_try="$ac_cpp conftest.$ac_ext"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5451   ac_status=$?
5452   grep -v '^ *+' conftest.er1 >conftest.err
5453   rm -f conftest.er1
5454   cat conftest.err >&5
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } >/dev/null && {
5457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5458          test ! -s conftest.err
5459        }; then
5460   # We can compile using X headers with no special include directory.
5461 ac_x_includes=
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466   for ac_dir in $ac_x_header_dirs; do
5467   if test -r "$ac_dir/X11/Xlib.h"; then
5468     ac_x_includes=$ac_dir
5469     break
5470   fi
5471 done
5472 fi
5473
5474 rm -f conftest.err conftest.$ac_ext
5475 fi # $ac_x_includes = no
5476
5477 if test "$ac_x_libraries" = no; then
5478   # Check for the libraries.
5479   # See if we find them without any special options.
5480   # Don't add to $LIBS permanently.
5481   ac_save_LIBS=$LIBS
5482   LIBS="-lX11 $LIBS"
5483   cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 #include <X11/Xlib.h>
5490 int
5491 main ()
5492 {
5493 XrmInitialize ()
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (ac_try="$ac_link"
5500 case "(($ac_try" in
5501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502   *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505   (eval "$ac_link") 2>conftest.er1
5506   ac_status=$?
5507   grep -v '^ *+' conftest.er1 >conftest.err
5508   rm -f conftest.er1
5509   cat conftest.err >&5
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); } && {
5512          test -z "$ac_c_werror_flag" ||
5513          test ! -s conftest.err
5514        } && test -s conftest$ac_exeext &&
5515        $as_test_x conftest$ac_exeext; then
5516   LIBS=$ac_save_LIBS
5517 # We can link X programs with no special library path.
5518 ac_x_libraries=
5519 else
5520   echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523         LIBS=$ac_save_LIBS
5524 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5525 do
5526   # Don't even attempt the hair of trying to link an X program!
5527   for ac_extension in a so sl; do
5528     if test -r "$ac_dir/libX11.$ac_extension"; then
5529       ac_x_libraries=$ac_dir
5530       break 2
5531     fi
5532   done
5533 done
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5537       conftest$ac_exeext conftest.$ac_ext
5538 fi # $ac_x_libraries = no
5539
5540 case $ac_x_includes,$ac_x_libraries in #(
5541   no,* | *,no | *\'*)
5542     # Didn't find X, or a directory has "'" in its name.
5543     ac_cv_have_x="have_x=no";; #(
5544   *)
5545     # Record where we found X for the cache.
5546     ac_cv_have_x="have_x=yes\
5547         ac_x_includes='$ac_x_includes'\
5548         ac_x_libraries='$ac_x_libraries'"
5549 esac
5550 fi
5551 ;; #(
5552     *) have_x=yes;;
5553   esac
5554   eval "$ac_cv_have_x"
5555 fi # $with_x != no
5556
5557 if test "$have_x" != yes; then
5558   { echo "$as_me:$LINENO: result: $have_x" >&5
5559 echo "${ECHO_T}$have_x" >&6; }
5560   no_x=yes
5561 else
5562   # If each of the values was on the command line, it overrides each guess.
5563   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5564   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5565   # Update the cache value to reflect the command line values.
5566   ac_cv_have_x="have_x=yes\
5567         ac_x_includes='$x_includes'\
5568         ac_x_libraries='$x_libraries'"
5569   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5570 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5571 fi
5572
5573 if test "$no_x" = yes; then
5574   # Not all programs may use this symbol, but it does not hurt to define it.
5575
5576 cat >>confdefs.h <<\_ACEOF
5577 #define X_DISPLAY_MISSING 1
5578 _ACEOF
5579
5580   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5581 else
5582   if test -n "$x_includes"; then
5583     X_CFLAGS="$X_CFLAGS -I$x_includes"
5584   fi
5585
5586   # It would also be nice to do this for all -L options, not just this one.
5587   if test -n "$x_libraries"; then
5588     X_LIBS="$X_LIBS -L$x_libraries"
5589     # For Solaris; some versions of Sun CC require a space after -R and
5590     # others require no space.  Words are not sufficient . . . .
5591     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5592 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5593     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5594     ac_xsave_c_werror_flag=$ac_c_werror_flag
5595     ac_c_werror_flag=yes
5596     cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h.  */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h.  */
5602
5603 int
5604 main ()
5605 {
5606
5607   ;
5608   return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (ac_try="$ac_link"
5613 case "(($ac_try" in
5614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615   *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618   (eval "$ac_link") 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } && {
5625          test -z "$ac_c_werror_flag" ||
5626          test ! -s conftest.err
5627        } && test -s conftest$ac_exeext &&
5628        $as_test_x conftest$ac_exeext; then
5629   { echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6; }
5631        X_LIBS="$X_LIBS -R$x_libraries"
5632 else
5633   echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636         LIBS="$ac_xsave_LIBS -R $x_libraries"
5637        cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643
5644 int
5645 main ()
5646 {
5647
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 rm -f conftest.$ac_objext conftest$ac_exeext
5653 if { (ac_try="$ac_link"
5654 case "(($ac_try" in
5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656   *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659   (eval "$ac_link") 2>conftest.er1
5660   ac_status=$?
5661   grep -v '^ *+' conftest.er1 >conftest.err
5662   rm -f conftest.er1
5663   cat conftest.err >&5
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } && {
5666          test -z "$ac_c_werror_flag" ||
5667          test ! -s conftest.err
5668        } && test -s conftest$ac_exeext &&
5669        $as_test_x conftest$ac_exeext; then
5670   { echo "$as_me:$LINENO: result: yes" >&5
5671 echo "${ECHO_T}yes" >&6; }
5672           X_LIBS="$X_LIBS -R $x_libraries"
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677         { echo "$as_me:$LINENO: result: neither works" >&5
5678 echo "${ECHO_T}neither works" >&6; }
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682       conftest$ac_exeext conftest.$ac_ext
5683 fi
5684
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686       conftest$ac_exeext conftest.$ac_ext
5687     ac_c_werror_flag=$ac_xsave_c_werror_flag
5688     LIBS=$ac_xsave_LIBS
5689   fi
5690
5691   # Check for system-dependent libraries X programs must link with.
5692   # Do this before checking for the system-independent R6 libraries
5693   # (-lICE), since we may need -lsocket or whatever for X linking.
5694
5695   if test "$ISC" = yes; then
5696     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5697   else
5698     # Martyn Johnson says this is needed for Ultrix, if the X
5699     # libraries were built with DECnet support.  And Karl Berry says
5700     # the Alpha needs dnet_stub (dnet does not exist).
5701     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5702     cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708
5709 /* Override any GCC internal prototype to avoid an error.
5710    Use char because int might match the return type of a GCC
5711    builtin and then its argument prototype would still apply.  */
5712 #ifdef __cplusplus
5713 extern "C"
5714 #endif
5715 char XOpenDisplay ();
5716 int
5717 main ()
5718 {
5719 return XOpenDisplay ();
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (ac_try="$ac_link"
5726 case "(($ac_try" in
5727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728   *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731   (eval "$ac_link") 2>conftest.er1
5732   ac_status=$?
5733   grep -v '^ *+' conftest.er1 >conftest.err
5734   rm -f conftest.er1
5735   cat conftest.err >&5
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } && {
5738          test -z "$ac_c_werror_flag" ||
5739          test ! -s conftest.err
5740        } && test -s conftest$ac_exeext &&
5741        $as_test_x conftest$ac_exeext; then
5742   :
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5748 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5749 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   ac_check_lib_save_LIBS=$LIBS
5753 LIBS="-ldnet  $LIBS"
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h.  */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h.  */
5760
5761 /* Override any GCC internal prototype to avoid an error.
5762    Use char because int might match the return type of a GCC
5763    builtin and then its argument prototype would still apply.  */
5764 #ifdef __cplusplus
5765 extern "C"
5766 #endif
5767 char dnet_ntoa ();
5768 int
5769 main ()
5770 {
5771 return dnet_ntoa ();
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext conftest$ac_exeext
5777 if { (ac_try="$ac_link"
5778 case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783   (eval "$ac_link") 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } && {
5790          test -z "$ac_c_werror_flag" ||
5791          test ! -s conftest.err
5792        } && test -s conftest$ac_exeext &&
5793        $as_test_x conftest$ac_exeext; then
5794   ac_cv_lib_dnet_dnet_ntoa=yes
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799         ac_cv_lib_dnet_dnet_ntoa=no
5800 fi
5801
5802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5803       conftest$ac_exeext conftest.$ac_ext
5804 LIBS=$ac_check_lib_save_LIBS
5805 fi
5806 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5807 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5808 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5809   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5810 fi
5811
5812     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5813       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5814 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5815 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-ldnet_stub  $LIBS"
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h.  */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h.  */
5826
5827 /* Override any GCC internal prototype to avoid an error.
5828    Use char because int might match the return type of a GCC
5829    builtin and then its argument prototype would still apply.  */
5830 #ifdef __cplusplus
5831 extern "C"
5832 #endif
5833 char dnet_ntoa ();
5834 int
5835 main ()
5836 {
5837 return dnet_ntoa ();
5838   ;
5839   return 0;
5840 }
5841 _ACEOF
5842 rm -f conftest.$ac_objext conftest$ac_exeext
5843 if { (ac_try="$ac_link"
5844 case "(($ac_try" in
5845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846   *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849   (eval "$ac_link") 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } && {
5856          test -z "$ac_c_werror_flag" ||
5857          test ! -s conftest.err
5858        } && test -s conftest$ac_exeext &&
5859        $as_test_x conftest$ac_exeext; then
5860   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865         ac_cv_lib_dnet_stub_dnet_ntoa=no
5866 fi
5867
5868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5869       conftest$ac_exeext conftest.$ac_ext
5870 LIBS=$ac_check_lib_save_LIBS
5871 fi
5872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5873 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5874 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5875   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5876 fi
5877
5878     fi
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5882       conftest$ac_exeext conftest.$ac_ext
5883     LIBS="$ac_xsave_LIBS"
5884
5885     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5886     # to get the SysV transport functions.
5887     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5888     # needs -lnsl.
5889     # The nsl library prevents programs from opening the X display
5890     # on Irix 5.2, according to T.E. Dickey.
5891     # The functions gethostbyname, getservbyname, and inet_addr are
5892     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5893     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5894 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5895 if test "${ac_cv_func_gethostbyname+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5906 #define gethostbyname innocuous_gethostbyname
5907
5908 /* System header to define __stub macros and hopefully few prototypes,
5909     which can conflict with char gethostbyname (); below.
5910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911     <limits.h> exists even on freestanding compilers.  */
5912
5913 #ifdef __STDC__
5914 # include <limits.h>
5915 #else
5916 # include <assert.h>
5917 #endif
5918
5919 #undef gethostbyname
5920
5921 /* Override any GCC internal prototype to avoid an error.
5922    Use char because int might match the return type of a GCC
5923    builtin and then its argument prototype would still apply.  */
5924 #ifdef __cplusplus
5925 extern "C"
5926 #endif
5927 char gethostbyname ();
5928 /* The GNU C library defines this for functions which it implements
5929     to always fail with ENOSYS.  Some functions are actually named
5930     something starting with __ and the normal name is an alias.  */
5931 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5932 choke me
5933 #endif
5934
5935 int
5936 main ()
5937 {
5938 return gethostbyname ();
5939   ;
5940   return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (ac_try="$ac_link"
5945 case "(($ac_try" in
5946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947   *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950   (eval "$ac_link") 2>conftest.er1
5951   ac_status=$?
5952   grep -v '^ *+' conftest.er1 >conftest.err
5953   rm -f conftest.er1
5954   cat conftest.err >&5
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } && {
5957          test -z "$ac_c_werror_flag" ||
5958          test ! -s conftest.err
5959        } && test -s conftest$ac_exeext &&
5960        $as_test_x conftest$ac_exeext; then
5961   ac_cv_func_gethostbyname=yes
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966         ac_cv_func_gethostbyname=no
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5970       conftest$ac_exeext conftest.$ac_ext
5971 fi
5972 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5973 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5974
5975     if test $ac_cv_func_gethostbyname = no; then
5976       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5977 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5978 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lnsl  $LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h.  */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h.  */
5989
5990 /* Override any GCC internal prototype to avoid an error.
5991    Use char because int might match the return type of a GCC
5992    builtin and then its argument prototype would still apply.  */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 char gethostbyname ();
5997 int
5998 main ()
5999 {
6000 return gethostbyname ();
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (ac_try="$ac_link"
6007 case "(($ac_try" in
6008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009   *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012   (eval "$ac_link") 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } && {
6019          test -z "$ac_c_werror_flag" ||
6020          test ! -s conftest.err
6021        } && test -s conftest$ac_exeext &&
6022        $as_test_x conftest$ac_exeext; then
6023   ac_cv_lib_nsl_gethostbyname=yes
6024 else
6025   echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028         ac_cv_lib_nsl_gethostbyname=no
6029 fi
6030
6031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6032       conftest$ac_exeext conftest.$ac_ext
6033 LIBS=$ac_check_lib_save_LIBS
6034 fi
6035 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6036 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6037 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6038   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6039 fi
6040
6041       if test $ac_cv_lib_nsl_gethostbyname = no; then
6042         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6043 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6044 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   ac_check_lib_save_LIBS=$LIBS
6048 LIBS="-lbsd  $LIBS"
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055
6056 /* Override any GCC internal prototype to avoid an error.
6057    Use char because int might match the return type of a GCC
6058    builtin and then its argument prototype would still apply.  */
6059 #ifdef __cplusplus
6060 extern "C"
6061 #endif
6062 char gethostbyname ();
6063 int
6064 main ()
6065 {
6066 return gethostbyname ();
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6073 case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078   (eval "$ac_link") 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && {
6085          test -z "$ac_c_werror_flag" ||
6086          test ! -s conftest.err
6087        } && test -s conftest$ac_exeext &&
6088        $as_test_x conftest$ac_exeext; then
6089   ac_cv_lib_bsd_gethostbyname=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094         ac_cv_lib_bsd_gethostbyname=no
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098       conftest$ac_exeext conftest.$ac_ext
6099 LIBS=$ac_check_lib_save_LIBS
6100 fi
6101 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6102 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6103 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6104   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6105 fi
6106
6107       fi
6108     fi
6109
6110     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6111     # socket/setsockopt and other routines are undefined under SCO ODT
6112     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6113     # on later versions), says Simon Leinen: it contains gethostby*
6114     # variants that don't use the name server (or something).  -lsocket
6115     # must be given before -lnsl if both are needed.  We assume that
6116     # if connect needs -lnsl, so does gethostbyname.
6117     { echo "$as_me:$LINENO: checking for connect" >&5
6118 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6119 if test "${ac_cv_func_connect+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6130 #define connect innocuous_connect
6131
6132 /* System header to define __stub macros and hopefully few prototypes,
6133     which can conflict with char connect (); below.
6134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135     <limits.h> exists even on freestanding compilers.  */
6136
6137 #ifdef __STDC__
6138 # include <limits.h>
6139 #else
6140 # include <assert.h>
6141 #endif
6142
6143 #undef connect
6144
6145 /* Override any GCC internal prototype to avoid an error.
6146    Use char because int might match the return type of a GCC
6147    builtin and then its argument prototype would still apply.  */
6148 #ifdef __cplusplus
6149 extern "C"
6150 #endif
6151 char connect ();
6152 /* The GNU C library defines this for functions which it implements
6153     to always fail with ENOSYS.  Some functions are actually named
6154     something starting with __ and the normal name is an alias.  */
6155 #if defined __stub_connect || defined __stub___connect
6156 choke me
6157 #endif
6158
6159 int
6160 main ()
6161 {
6162 return connect ();
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext conftest$ac_exeext
6168 if { (ac_try="$ac_link"
6169 case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_link") 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } && {
6181          test -z "$ac_c_werror_flag" ||
6182          test ! -s conftest.err
6183        } && test -s conftest$ac_exeext &&
6184        $as_test_x conftest$ac_exeext; then
6185   ac_cv_func_connect=yes
6186 else
6187   echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190         ac_cv_func_connect=no
6191 fi
6192
6193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6194       conftest$ac_exeext conftest.$ac_ext
6195 fi
6196 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6197 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6198
6199     if test $ac_cv_func_connect = no; then
6200       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6201 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6202 if test "${ac_cv_lib_socket_connect+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205   ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213
6214 /* Override any GCC internal prototype to avoid an error.
6215    Use char because int might match the return type of a GCC
6216    builtin and then its argument prototype would still apply.  */
6217 #ifdef __cplusplus
6218 extern "C"
6219 #endif
6220 char connect ();
6221 int
6222 main ()
6223 {
6224 return connect ();
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (ac_try="$ac_link"
6231 case "(($ac_try" in
6232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233   *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236   (eval "$ac_link") 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
6240   cat conftest.err >&5
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } && {
6243          test -z "$ac_c_werror_flag" ||
6244          test ! -s conftest.err
6245        } && test -s conftest$ac_exeext &&
6246        $as_test_x conftest$ac_exeext; then
6247   ac_cv_lib_socket_connect=yes
6248 else
6249   echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6251
6252         ac_cv_lib_socket_connect=no
6253 fi
6254
6255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6256       conftest$ac_exeext conftest.$ac_ext
6257 LIBS=$ac_check_lib_save_LIBS
6258 fi
6259 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6260 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6261 if test $ac_cv_lib_socket_connect = yes; then
6262   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6263 fi
6264
6265     fi
6266
6267     # Guillermo Gomez says -lposix is necessary on A/UX.
6268     { echo "$as_me:$LINENO: checking for remove" >&5
6269 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6270 if test "${ac_cv_func_remove+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6281 #define remove innocuous_remove
6282
6283 /* System header to define __stub macros and hopefully few prototypes,
6284     which can conflict with char remove (); below.
6285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286     <limits.h> exists even on freestanding compilers.  */
6287
6288 #ifdef __STDC__
6289 # include <limits.h>
6290 #else
6291 # include <assert.h>
6292 #endif
6293
6294 #undef remove
6295
6296 /* Override any GCC internal prototype to avoid an error.
6297    Use char because int might match the return type of a GCC
6298    builtin and then its argument prototype would still apply.  */
6299 #ifdef __cplusplus
6300 extern "C"
6301 #endif
6302 char remove ();
6303 /* The GNU C library defines this for functions which it implements
6304     to always fail with ENOSYS.  Some functions are actually named
6305     something starting with __ and the normal name is an alias.  */
6306 #if defined __stub_remove || defined __stub___remove
6307 choke me
6308 #endif
6309
6310 int
6311 main ()
6312 {
6313 return remove ();
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (ac_try="$ac_link"
6320 case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325   (eval "$ac_link") 2>conftest.er1
6326   ac_status=$?
6327   grep -v '^ *+' conftest.er1 >conftest.err
6328   rm -f conftest.er1
6329   cat conftest.err >&5
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } && {
6332          test -z "$ac_c_werror_flag" ||
6333          test ! -s conftest.err
6334        } && test -s conftest$ac_exeext &&
6335        $as_test_x conftest$ac_exeext; then
6336   ac_cv_func_remove=yes
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341         ac_cv_func_remove=no
6342 fi
6343
6344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6345       conftest$ac_exeext conftest.$ac_ext
6346 fi
6347 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6348 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6349
6350     if test $ac_cv_func_remove = no; then
6351       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6352 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6353 if test "${ac_cv_lib_posix_remove+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   ac_check_lib_save_LIBS=$LIBS
6357 LIBS="-lposix  $LIBS"
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h.  */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h.  */
6364
6365 /* Override any GCC internal prototype to avoid an error.
6366    Use char because int might match the return type of a GCC
6367    builtin and then its argument prototype would still apply.  */
6368 #ifdef __cplusplus
6369 extern "C"
6370 #endif
6371 char remove ();
6372 int
6373 main ()
6374 {
6375 return remove ();
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (ac_try="$ac_link"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387   (eval "$ac_link") 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } && {
6394          test -z "$ac_c_werror_flag" ||
6395          test ! -s conftest.err
6396        } && test -s conftest$ac_exeext &&
6397        $as_test_x conftest$ac_exeext; then
6398   ac_cv_lib_posix_remove=yes
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403         ac_cv_lib_posix_remove=no
6404 fi
6405
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407       conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6409 fi
6410 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6411 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6412 if test $ac_cv_lib_posix_remove = yes; then
6413   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6414 fi
6415
6416     fi
6417
6418     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6419     { echo "$as_me:$LINENO: checking for shmat" >&5
6420 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6421 if test "${ac_cv_func_shmat+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424   cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h.  */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h.  */
6430 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6432 #define shmat innocuous_shmat
6433
6434 /* System header to define __stub macros and hopefully few prototypes,
6435     which can conflict with char shmat (); below.
6436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6437     <limits.h> exists even on freestanding compilers.  */
6438
6439 #ifdef __STDC__
6440 # include <limits.h>
6441 #else
6442 # include <assert.h>
6443 #endif
6444
6445 #undef shmat
6446
6447 /* Override any GCC internal prototype to avoid an error.
6448    Use char because int might match the return type of a GCC
6449    builtin and then its argument prototype would still apply.  */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 char shmat ();
6454 /* The GNU C library defines this for functions which it implements
6455     to always fail with ENOSYS.  Some functions are actually named
6456     something starting with __ and the normal name is an alias.  */
6457 #if defined __stub_shmat || defined __stub___shmat
6458 choke me
6459 #endif
6460
6461 int
6462 main ()
6463 {
6464 return shmat ();
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (ac_try="$ac_link"
6471 case "(($ac_try" in
6472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473   *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476   (eval "$ac_link") 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } && {
6483          test -z "$ac_c_werror_flag" ||
6484          test ! -s conftest.err
6485        } && test -s conftest$ac_exeext &&
6486        $as_test_x conftest$ac_exeext; then
6487   ac_cv_func_shmat=yes
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492         ac_cv_func_shmat=no
6493 fi
6494
6495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6496       conftest$ac_exeext conftest.$ac_ext
6497 fi
6498 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6499 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6500
6501     if test $ac_cv_func_shmat = no; then
6502       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6503 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6504 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   ac_check_lib_save_LIBS=$LIBS
6508 LIBS="-lipc  $LIBS"
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h.  */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h.  */
6515
6516 /* Override any GCC internal prototype to avoid an error.
6517    Use char because int might match the return type of a GCC
6518    builtin and then its argument prototype would still apply.  */
6519 #ifdef __cplusplus
6520 extern "C"
6521 #endif
6522 char shmat ();
6523 int
6524 main ()
6525 {
6526 return shmat ();
6527   ;
6528   return 0;
6529 }
6530 _ACEOF
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (ac_try="$ac_link"
6533 case "(($ac_try" in
6534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535   *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538   (eval "$ac_link") 2>conftest.er1
6539   ac_status=$?
6540   grep -v '^ *+' conftest.er1 >conftest.err
6541   rm -f conftest.er1
6542   cat conftest.err >&5
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } && {
6545          test -z "$ac_c_werror_flag" ||
6546          test ! -s conftest.err
6547        } && test -s conftest$ac_exeext &&
6548        $as_test_x conftest$ac_exeext; then
6549   ac_cv_lib_ipc_shmat=yes
6550 else
6551   echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554         ac_cv_lib_ipc_shmat=no
6555 fi
6556
6557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6558       conftest$ac_exeext conftest.$ac_ext
6559 LIBS=$ac_check_lib_save_LIBS
6560 fi
6561 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6562 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6563 if test $ac_cv_lib_ipc_shmat = yes; then
6564   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6565 fi
6566
6567     fi
6568   fi
6569
6570   # Check for libraries that X11R6 Xt/Xaw programs need.
6571   ac_save_LDFLAGS=$LDFLAGS
6572   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6573   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6574   # check for ICE first), but we must link in the order -lSM -lICE or
6575   # we get undefined symbols.  So assume we have SM if we have ICE.
6576   # These have to be linked with before -lX11, unlike the other
6577   # libraries we check for below, so use a different variable.
6578   # John Interrante, Karl Berry
6579   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6580 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6581 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6582   echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584   ac_check_lib_save_LIBS=$LIBS
6585 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592
6593 /* Override any GCC internal prototype to avoid an error.
6594    Use char because int might match the return type of a GCC
6595    builtin and then its argument prototype would still apply.  */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 char IceConnectionNumber ();
6600 int
6601 main ()
6602 {
6603 return IceConnectionNumber ();
6604   ;
6605   return 0;
6606 }
6607 _ACEOF
6608 rm -f conftest.$ac_objext conftest$ac_exeext
6609 if { (ac_try="$ac_link"
6610 case "(($ac_try" in
6611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612   *) ac_try_echo=$ac_try;;
6613 esac
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615   (eval "$ac_link") 2>conftest.er1
6616   ac_status=$?
6617   grep -v '^ *+' conftest.er1 >conftest.err
6618   rm -f conftest.er1
6619   cat conftest.err >&5
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } && {
6622          test -z "$ac_c_werror_flag" ||
6623          test ! -s conftest.err
6624        } && test -s conftest$ac_exeext &&
6625        $as_test_x conftest$ac_exeext; then
6626   ac_cv_lib_ICE_IceConnectionNumber=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631         ac_cv_lib_ICE_IceConnectionNumber=no
6632 fi
6633
6634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6635       conftest$ac_exeext conftest.$ac_ext
6636 LIBS=$ac_check_lib_save_LIBS
6637 fi
6638 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6639 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6640 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6641   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6642 fi
6643
6644   LDFLAGS=$ac_save_LDFLAGS
6645
6646 fi
6647
6648
6649
6650 # Check whether --with-xawlib was given.
6651 if test "${with_xawlib+set}" = set; then
6652   withval=$with_xawlib;  with_xawlib="$withval"
6653 else
6654    with_xawlib="xaw3d,xaw"
6655 fi
6656
6657
6658 # Checks for X
6659 if test "x$with_x" = xyes; then
6660   if test "x$have_x" = xno; then
6661     if test "x$x_config_flag" = xyes; then
6662       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6663 echo "$as_me: error: Could not configure X" >&2;}
6664    { (exit 1); exit 1; }; }
6665     else
6666       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6667 echo "$as_me: WARNING: Could not configure X" >&2;}
6668     fi
6669   fi
6670 fi
6671 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6672   if test "x$x_libraries" != x; then
6673     ldflags_x_opt="-L$x_libraries"
6674     LDFLAGS="$LDFLAGS $ldflags_x_opt"
6675     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6676   else
6677     ldflags_x_opt=
6678   fi
6679   if test "x$x_includes" != x; then
6680     CPPFLAGS="$CPPFLAGS -I$x_includes"
6681   fi
6682
6683
6684 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6685 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
6686 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   ac_check_lib_save_LIBS=$LIBS
6690 LIBS="-lX11  $LIBS"
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h.  */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h.  */
6697
6698 /* Override any GCC internal prototype to avoid an error.
6699    Use char because int might match the return type of a GCC
6700    builtin and then its argument prototype would still apply.  */
6701 #ifdef __cplusplus
6702 extern "C"
6703 #endif
6704 char XOpenDisplay ();
6705 int
6706 main ()
6707 {
6708 return XOpenDisplay ();
6709   ;
6710   return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6715 case "(($ac_try" in
6716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717   *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720   (eval "$ac_link") 2>conftest.er1
6721   ac_status=$?
6722   grep -v '^ *+' conftest.er1 >conftest.err
6723   rm -f conftest.er1
6724   cat conftest.err >&5
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); } && {
6727          test -z "$ac_c_werror_flag" ||
6728          test ! -s conftest.err
6729        } && test -s conftest$ac_exeext &&
6730        $as_test_x conftest$ac_exeext; then
6731   ac_cv_lib_X11_XOpenDisplay=yes
6732 else
6733   echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736         ac_cv_lib_X11_XOpenDisplay=no
6737 fi
6738
6739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6740       conftest$ac_exeext conftest.$ac_ext
6741 LIBS=$ac_check_lib_save_LIBS
6742 fi
6743 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6744 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
6745 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6746   cat >>confdefs.h <<_ACEOF
6747 #define HAVE_LIBX11 1
6748 _ACEOF
6749
6750   LIBS="-lX11 $LIBS"
6751
6752 fi
6753
6754   { echo "$as_me:$LINENO: checking X11 version 6" >&5
6755 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
6756   if test "${timidity_cv_x11_version_6+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h.  */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h.  */
6765 #include <X11/Xlib.h>
6766 int
6767 main ()
6768 {
6769
6770 #if XlibSpecificationRelease < 6
6771 fail;
6772 #endif
6773
6774   ;
6775   return 0;
6776 }
6777 _ACEOF
6778 rm -f conftest.$ac_objext conftest$ac_exeext
6779 if { (ac_try="$ac_link"
6780 case "(($ac_try" in
6781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782   *) ac_try_echo=$ac_try;;
6783 esac
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785   (eval "$ac_link") 2>conftest.er1
6786   ac_status=$?
6787   grep -v '^ *+' conftest.er1 >conftest.err
6788   rm -f conftest.er1
6789   cat conftest.err >&5
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); } && {
6792          test -z "$ac_c_werror_flag" ||
6793          test ! -s conftest.err
6794        } && test -s conftest$ac_exeext &&
6795        $as_test_x conftest$ac_exeext; then
6796   timidity_cv_x11_version_6=yes
6797 else
6798   echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801         timidity_cv_x11_version_6=no
6802 fi
6803
6804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6805       conftest$ac_exeext conftest.$ac_ext
6806 fi
6807
6808   if test "$timidity_cv_x11_version_6" = "yes"; then
6809     { echo "$as_me:$LINENO: result: 6 or newer" >&5
6810 echo "${ECHO_T}6 or newer" >&6; }
6811       else
6812     { echo "$as_me:$LINENO: result: before 6" >&5
6813 echo "${ECHO_T}before 6" >&6; }
6814   fi
6815
6816     KEEPLIBS=$LIBS
6817   { echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6818 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6; }
6819 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   ac_check_lib_save_LIBS=$LIBS
6823 LIBS="-lXext  $LIBS"
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h.  */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h.  */
6830
6831 /* Override any GCC internal prototype to avoid an error.
6832    Use char because int might match the return type of a GCC
6833    builtin and then its argument prototype would still apply.  */
6834 #ifdef __cplusplus
6835 extern "C"
6836 #endif
6837 char XShapeCombineMask ();
6838 int
6839 main ()
6840 {
6841 return XShapeCombineMask ();
6842   ;
6843   return 0;
6844 }
6845 _ACEOF
6846 rm -f conftest.$ac_objext conftest$ac_exeext
6847 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6854   ac_status=$?
6855   grep -v '^ *+' conftest.er1 >conftest.err
6856   rm -f conftest.er1
6857   cat conftest.err >&5
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); } && {
6860          test -z "$ac_c_werror_flag" ||
6861          test ! -s conftest.err
6862        } && test -s conftest$ac_exeext &&
6863        $as_test_x conftest$ac_exeext; then
6864   ac_cv_lib_Xext_XShapeCombineMask=yes
6865 else
6866   echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6868
6869         ac_cv_lib_Xext_XShapeCombineMask=no
6870 fi
6871
6872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873       conftest$ac_exeext conftest.$ac_ext
6874 LIBS=$ac_check_lib_save_LIBS
6875 fi
6876 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6877 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
6878 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6879   have_xext=yes; LIBS="-lXext $LIBS"
6880 else
6881   have_xext=no
6882 fi
6883
6884
6885 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6886 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6887 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   ac_check_lib_save_LIBS=$LIBS
6891 LIBS="-lICE  $LIBS"
6892 cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898
6899 /* Override any GCC internal prototype to avoid an error.
6900    Use char because int might match the return type of a GCC
6901    builtin and then its argument prototype would still apply.  */
6902 #ifdef __cplusplus
6903 extern "C"
6904 #endif
6905 char IceConnectionNumber ();
6906 int
6907 main ()
6908 {
6909 return IceConnectionNumber ();
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918   *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921   (eval "$ac_link") 2>conftest.er1
6922   ac_status=$?
6923   grep -v '^ *+' conftest.er1 >conftest.err
6924   rm -f conftest.er1
6925   cat conftest.err >&5
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); } && {
6928          test -z "$ac_c_werror_flag" ||
6929          test ! -s conftest.err
6930        } && test -s conftest$ac_exeext &&
6931        $as_test_x conftest$ac_exeext; then
6932   ac_cv_lib_ICE_IceConnectionNumber=yes
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937         ac_cv_lib_ICE_IceConnectionNumber=no
6938 fi
6939
6940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6941       conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6943 fi
6944 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6945 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6946 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6947   cat >>confdefs.h <<_ACEOF
6948 #define HAVE_LIBICE 1
6949 _ACEOF
6950
6951   LIBS="-lICE $LIBS"
6952
6953 fi
6954
6955   { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6956 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
6957 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6958   echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960   ac_check_lib_save_LIBS=$LIBS
6961 LIBS="-lSM  $LIBS"
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h.  */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h.  */
6968
6969 /* Override any GCC internal prototype to avoid an error.
6970    Use char because int might match the return type of a GCC
6971    builtin and then its argument prototype would still apply.  */
6972 #ifdef __cplusplus
6973 extern "C"
6974 #endif
6975 char SmcOpenConnection ();
6976 int
6977 main ()
6978 {
6979 return SmcOpenConnection ();
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (ac_try="$ac_link"
6986 case "(($ac_try" in
6987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988   *) ac_try_echo=$ac_try;;
6989 esac
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991   (eval "$ac_link") 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } && {
6998          test -z "$ac_c_werror_flag" ||
6999          test ! -s conftest.err
7000        } && test -s conftest$ac_exeext &&
7001        $as_test_x conftest$ac_exeext; then
7002   ac_cv_lib_SM_SmcOpenConnection=yes
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007         ac_cv_lib_SM_SmcOpenConnection=no
7008 fi
7009
7010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7011       conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS
7013 fi
7014 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7015 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
7016 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7017   have_xprelibs=yes; LIBS="-lSM $LIBS"
7018 else
7019   have_xprelibs=no
7020 fi
7021
7022   { echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
7023 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6; }
7024 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lXt  $LIBS"
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h.  */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h.  */
7035
7036 /* Override any GCC internal prototype to avoid an error.
7037    Use char because int might match the return type of a GCC
7038    builtin and then its argument prototype would still apply.  */
7039 #ifdef __cplusplus
7040 extern "C"
7041 #endif
7042 char XtVaAppInitialize ();
7043 int
7044 main ()
7045 {
7046 return XtVaAppInitialize ();
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (ac_try="$ac_link"
7053 case "(($ac_try" in
7054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055   *) ac_try_echo=$ac_try;;
7056 esac
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058   (eval "$ac_link") 2>conftest.er1
7059   ac_status=$?
7060   grep -v '^ *+' conftest.er1 >conftest.err
7061   rm -f conftest.er1
7062   cat conftest.err >&5
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } && {
7065          test -z "$ac_c_werror_flag" ||
7066          test ! -s conftest.err
7067        } && test -s conftest$ac_exeext &&
7068        $as_test_x conftest$ac_exeext; then
7069   ac_cv_lib_Xt_XtVaAppInitialize=yes
7070 else
7071   echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074         ac_cv_lib_Xt_XtVaAppInitialize=no
7075 fi
7076
7077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7078       conftest$ac_exeext conftest.$ac_ext
7079 LIBS=$ac_check_lib_save_LIBS
7080 fi
7081 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
7082 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6; }
7083 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
7084   have_xt=yes; LIBS="-lXt $LIBS"
7085 else
7086   have_xt=no
7087 fi
7088
7089   { echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
7090 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6; }
7091 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   ac_check_lib_save_LIBS=$LIBS
7095 LIBS="-lXmu  $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 XmuInternAtom ();
7110 int
7111 main ()
7112 {
7113 return XmuInternAtom ();
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          test -z "$ac_c_werror_flag" ||
7133          test ! -s conftest.err
7134        } && test -s conftest$ac_exeext &&
7135        $as_test_x conftest$ac_exeext; then
7136   ac_cv_lib_Xmu_XmuInternAtom=yes
7137 else
7138   echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7140
7141         ac_cv_lib_Xmu_XmuInternAtom=no
7142 fi
7143
7144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7145       conftest$ac_exeext conftest.$ac_ext
7146 LIBS=$ac_check_lib_save_LIBS
7147 fi
7148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
7149 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6; }
7150 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
7151   LIBS="-lXmu $LIBS"
7152 fi
7153
7154
7155 for ac_func in XmuRegisterExternalAgent
7156 do
7157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7171 #define $ac_func innocuous_$ac_func
7172
7173 /* System header to define __stub macros and hopefully few prototypes,
7174     which can conflict with char $ac_func (); below.
7175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176     <limits.h> exists even on freestanding compilers.  */
7177
7178 #ifdef __STDC__
7179 # include <limits.h>
7180 #else
7181 # include <assert.h>
7182 #endif
7183
7184 #undef $ac_func
7185
7186 /* Override any GCC internal prototype to avoid an error.
7187    Use char because int might match the return type of a GCC
7188    builtin and then its argument prototype would still apply.  */
7189 #ifdef __cplusplus
7190 extern "C"
7191 #endif
7192 char $ac_func ();
7193 /* The GNU C library defines this for functions which it implements
7194     to always fail with ENOSYS.  Some functions are actually named
7195     something starting with __ and the normal name is an alias.  */
7196 #if defined __stub_$ac_func || defined __stub___$ac_func
7197 choke me
7198 #endif
7199
7200 int
7201 main ()
7202 {
7203 return $ac_func ();
7204   ;
7205   return 0;
7206 }
7207 _ACEOF
7208 rm -f conftest.$ac_objext conftest$ac_exeext
7209 if { (ac_try="$ac_link"
7210 case "(($ac_try" in
7211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212   *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215   (eval "$ac_link") 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } && {
7222          test -z "$ac_c_werror_flag" ||
7223          test ! -s conftest.err
7224        } && test -s conftest$ac_exeext &&
7225        $as_test_x conftest$ac_exeext; then
7226   eval "$as_ac_var=yes"
7227 else
7228   echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231         eval "$as_ac_var=no"
7232 fi
7233
7234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7235       conftest$ac_exeext conftest.$ac_ext
7236 fi
7237 ac_res=`eval echo '${'$as_ac_var'}'`
7238                { echo "$as_me:$LINENO: result: $ac_res" >&5
7239 echo "${ECHO_T}$ac_res" >&6; }
7240 if test `eval echo '${'$as_ac_var'}'` = yes; then
7241   cat >>confdefs.h <<_ACEOF
7242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7243 _ACEOF
7244
7245 fi
7246 done
7247
7248   for i in `echo $with_xawlib | sed 's/,/ /g'`; do
7249   case "$i" in
7250   "xaw")
7251     { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7252 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6; }
7253 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256   ac_check_lib_save_LIBS=$LIBS
7257 LIBS="-lXaw  $LIBS"
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h.  */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h.  */
7264
7265 /* Override any GCC internal prototype to avoid an error.
7266    Use char because int might match the return type of a GCC
7267    builtin and then its argument prototype would still apply.  */
7268 #ifdef __cplusplus
7269 extern "C"
7270 #endif
7271 char XawInitializeWidgetSet ();
7272 int
7273 main ()
7274 {
7275 return XawInitializeWidgetSet ();
7276   ;
7277   return 0;
7278 }
7279 _ACEOF
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7282 case "(($ac_try" in
7283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284   *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287   (eval "$ac_link") 2>conftest.er1
7288   ac_status=$?
7289   grep -v '^ *+' conftest.er1 >conftest.err
7290   rm -f conftest.er1
7291   cat conftest.err >&5
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); } && {
7294          test -z "$ac_c_werror_flag" ||
7295          test ! -s conftest.err
7296        } && test -s conftest$ac_exeext &&
7297        $as_test_x conftest$ac_exeext; then
7298   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7299 else
7300   echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7302
7303         ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7304 fi
7305
7306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307       conftest$ac_exeext conftest.$ac_ext
7308 LIBS=$ac_check_lib_save_LIBS
7309 fi
7310 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7311 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6; }
7312 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7313   have_xaw=yes
7314 else
7315   have_xaw=no
7316 fi
7317
7318     ;;
7319   "xaw3d")
7320     { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7322 if test "${ac_cv_header_stdc+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h.  */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h.  */
7331 #include <stdlib.h>
7332 #include <stdarg.h>
7333 #include <string.h>
7334 #include <float.h>
7335
7336 int
7337 main ()
7338 {
7339
7340   ;
7341   return 0;
7342 }
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7346 case "(($ac_try" in
7347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348   *) ac_try_echo=$ac_try;;
7349 esac
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351   (eval "$ac_compile") 2>conftest.er1
7352   ac_status=$?
7353   grep -v '^ *+' conftest.er1 >conftest.err
7354   rm -f conftest.er1
7355   cat conftest.err >&5
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); } && {
7358          test -z "$ac_c_werror_flag" ||
7359          test ! -s conftest.err
7360        } && test -s conftest.$ac_objext; then
7361   ac_cv_header_stdc=yes
7362 else
7363   echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366         ac_cv_header_stdc=no
7367 fi
7368
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370
7371 if test $ac_cv_header_stdc = yes; then
7372   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7373   cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379 #include <string.h>
7380
7381 _ACEOF
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383   $EGREP "memchr" >/dev/null 2>&1; then
7384   :
7385 else
7386   ac_cv_header_stdc=no
7387 fi
7388 rm -f conftest*
7389
7390 fi
7391
7392 if test $ac_cv_header_stdc = yes; then
7393   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 #include <stdlib.h>
7401
7402 _ACEOF
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404   $EGREP "free" >/dev/null 2>&1; then
7405   :
7406 else
7407   ac_cv_header_stdc=no
7408 fi
7409 rm -f conftest*
7410
7411 fi
7412
7413 if test $ac_cv_header_stdc = yes; then
7414   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7415   if test "$cross_compiling" = yes; then
7416   :
7417 else
7418   cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h.  */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h.  */
7424 #include <ctype.h>
7425 #include <stdlib.h>
7426 #if ((' ' & 0x0FF) == 0x020)
7427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7429 #else
7430 # define ISLOWER(c) \
7431                    (('a' <= (c) && (c) <= 'i') \
7432                      || ('j' <= (c) && (c) <= 'r') \
7433                      || ('s' <= (c) && (c) <= 'z'))
7434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7435 #endif
7436
7437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7438 int
7439 main ()
7440 {
7441   int i;
7442   for (i = 0; i < 256; i++)
7443     if (XOR (islower (i), ISLOWER (i))
7444         || toupper (i) != TOUPPER (i))
7445       return 2;
7446   return 0;
7447 }
7448 _ACEOF
7449 rm -f conftest$ac_exeext
7450 if { (ac_try="$ac_link"
7451 case "(($ac_try" in
7452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453   *) ac_try_echo=$ac_try;;
7454 esac
7455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456   (eval "$ac_link") 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7460   { (case "(($ac_try" in
7461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462   *) ac_try_echo=$ac_try;;
7463 esac
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465   (eval "$ac_try") 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }; }; then
7469   :
7470 else
7471   echo "$as_me: program exited with status $ac_status" >&5
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475 ( exit $ac_status )
7476 ac_cv_header_stdc=no
7477 fi
7478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7479 fi
7480
7481
7482 fi
7483 fi
7484 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7485 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7486 if test $ac_cv_header_stdc = yes; then
7487
7488 cat >>confdefs.h <<\_ACEOF
7489 #define STDC_HEADERS 1
7490 _ACEOF
7491
7492 fi
7493
7494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7505                   inttypes.h stdint.h unistd.h
7506 do
7507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519 $ac_includes_default
7520
7521 #include <$ac_header>
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7525 case "(($ac_try" in
7526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527   *) ac_try_echo=$ac_try;;
7528 esac
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530   (eval "$ac_compile") 2>conftest.er1
7531   ac_status=$?
7532   grep -v '^ *+' conftest.er1 >conftest.err
7533   rm -f conftest.er1
7534   cat conftest.err >&5
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } && {
7537          test -z "$ac_c_werror_flag" ||
7538          test ! -s conftest.err
7539        } && test -s conftest.$ac_objext; then
7540   eval "$as_ac_Header=yes"
7541 else
7542   echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7544
7545         eval "$as_ac_Header=no"
7546 fi
7547
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 ac_res=`eval echo '${'$as_ac_Header'}'`
7551                { echo "$as_me:$LINENO: result: $ac_res" >&5
7552 echo "${ECHO_T}$ac_res" >&6; }
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554   cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 _ACEOF
7557
7558 fi
7559
7560 done
7561
7562
7563 { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7564 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6; }
7565 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568   ac_check_lib_save_LIBS=$LIBS
7569 LIBS="-lXaw3d  $LIBS"
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576
7577 /* Override any GCC internal prototype to avoid an error.
7578    Use char because int might match the return type of a GCC
7579    builtin and then its argument prototype would still apply.  */
7580 #ifdef __cplusplus
7581 extern "C"
7582 #endif
7583 char XawInitializeWidgetSet ();
7584 int
7585 main ()
7586 {
7587 return XawInitializeWidgetSet ();
7588   ;
7589   return 0;
7590 }
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (ac_try="$ac_link"
7594 case "(($ac_try" in
7595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596   *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599   (eval "$ac_link") 2>conftest.er1
7600   ac_status=$?
7601   grep -v '^ *+' conftest.er1 >conftest.err
7602   rm -f conftest.er1
7603   cat conftest.err >&5
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); } && {
7606          test -z "$ac_c_werror_flag" ||
7607          test ! -s conftest.err
7608        } && test -s conftest$ac_exeext &&
7609        $as_test_x conftest$ac_exeext; then
7610   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615         ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7616 fi
7617
7618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619       conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7621 fi
7622 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7623 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6; }
7624 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7625    have_xaw=3d;
7626           if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then
7627   { echo "$as_me:$LINENO: checking for X11/Xaw3d/Tip.h" >&5
7628 echo $ECHO_N "checking for X11/Xaw3d/Tip.h... $ECHO_C" >&6; }
7629 if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 fi
7632 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Tip_h" >&5
7633 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Tip_h" >&6; }
7634 else
7635   # Is the header compilable?
7636 { echo "$as_me:$LINENO: checking X11/Xaw3d/Tip.h usability" >&5
7637 echo $ECHO_N "checking X11/Xaw3d/Tip.h usability... $ECHO_C" >&6; }
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 $ac_includes_default
7645 #include <X11/Xaw3d/Tip.h>
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (ac_try="$ac_compile"
7649 case "(($ac_try" in
7650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651   *) ac_try_echo=$ac_try;;
7652 esac
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654   (eval "$ac_compile") 2>conftest.er1
7655   ac_status=$?
7656   grep -v '^ *+' conftest.er1 >conftest.err
7657   rm -f conftest.er1
7658   cat conftest.err >&5
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); } && {
7661          test -z "$ac_c_werror_flag" ||
7662          test ! -s conftest.err
7663        } && test -s conftest.$ac_objext; then
7664   ac_header_compiler=yes
7665 else
7666   echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7668
7669         ac_header_compiler=no
7670 fi
7671
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7674 echo "${ECHO_T}$ac_header_compiler" >&6; }
7675
7676 # Is the header present?
7677 { echo "$as_me:$LINENO: checking X11/Xaw3d/Tip.h presence" >&5
7678 echo $ECHO_N "checking X11/Xaw3d/Tip.h presence... $ECHO_C" >&6; }
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h.  */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h.  */
7685 #include <X11/Xaw3d/Tip.h>
7686 _ACEOF
7687 if { (ac_try="$ac_cpp conftest.$ac_ext"
7688 case "(($ac_try" in
7689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690   *) ac_try_echo=$ac_try;;
7691 esac
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7694   ac_status=$?
7695   grep -v '^ *+' conftest.er1 >conftest.err
7696   rm -f conftest.er1
7697   cat conftest.err >&5
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } >/dev/null && {
7700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7701          test ! -s conftest.err
7702        }; then
7703   ac_header_preproc=yes
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708   ac_header_preproc=no
7709 fi
7710
7711 rm -f conftest.err conftest.$ac_ext
7712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7713 echo "${ECHO_T}$ac_header_preproc" >&6; }
7714
7715 # So?  What about this header?
7716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7717   yes:no: )
7718     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: accepted by the compiler, rejected by the preprocessor!" >&5
7719 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7720     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: proceeding with the compiler's result" >&5
7721 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: proceeding with the compiler's result" >&2;}
7722     ac_header_preproc=yes
7723     ;;
7724   no:yes:* )
7725     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: present but cannot be compiled" >&5
7726 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: present but cannot be compiled" >&2;}
7727     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h:     check for missing prerequisite headers?" >&5
7728 echo "$as_me: WARNING: X11/Xaw3d/Tip.h:     check for missing prerequisite headers?" >&2;}
7729     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: see the Autoconf documentation" >&5
7730 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: see the Autoconf documentation" >&2;}
7731     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h:     section \"Present But Cannot Be Compiled\"" >&5
7732 echo "$as_me: WARNING: X11/Xaw3d/Tip.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7733     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: proceeding with the preprocessor's result" >&5
7734 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: proceeding with the preprocessor's result" >&2;}
7735     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: in the future, the compiler will take precedence" >&5
7736 echo "$as_me: WARNING: X11/Xaw3d/Tip.h: in the future, the compiler will take precedence" >&2;}
7737     ( cat <<\_ASBOX
7738 ## ------------------------------- ##
7739 ## Report this to root@mput.dip.jp ##
7740 ## ------------------------------- ##
7741 _ASBOX
7742      ) | sed "s/^/$as_me: WARNING:     /" >&2
7743     ;;
7744 esac
7745 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Tip.h" >&5
7746 echo $ECHO_N "checking for X11/Xaw3d/Tip.h... $ECHO_C" >&6; }
7747 if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   ac_cv_header_X11_Xaw3d_Tip_h=$ac_header_preproc
7751 fi
7752 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Tip_h" >&5
7753 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Tip_h" >&6; }
7754
7755 fi
7756 if test $ac_cv_header_X11_Xaw3d_Tip_h = yes; then
7757
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_XAW3D_TIP 1
7760 _ACEOF
7761
7762 fi
7763
7764
7765
7766 else
7767   have_xaw=no
7768
7769 fi
7770
7771     ;;
7772   "neXtaw")
7773     { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lneXtaw" >&5
7774 echo $ECHO_N "checking for XawInitializeWidgetSet in -lneXtaw... $ECHO_C" >&6; }
7775 if test "${ac_cv_lib_neXtaw_XawInitializeWidgetSet+set}" = set; then
7776   echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778   ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lneXtaw  $LIBS"
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h.  */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h.  */
7786
7787 /* Override any GCC internal prototype to avoid an error.
7788    Use char because int might match the return type of a GCC
7789    builtin and then its argument prototype would still apply.  */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char XawInitializeWidgetSet ();
7794 int
7795 main ()
7796 {
7797 return XawInitializeWidgetSet ();
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (ac_try="$ac_link"
7804 case "(($ac_try" in
7805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806   *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809   (eval "$ac_link") 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } && {
7816          test -z "$ac_c_werror_flag" ||
7817          test ! -s conftest.err
7818        } && test -s conftest$ac_exeext &&
7819        $as_test_x conftest$ac_exeext; then
7820   ac_cv_lib_neXtaw_XawInitializeWidgetSet=yes
7821 else
7822   echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7824
7825         ac_cv_lib_neXtaw_XawInitializeWidgetSet=no
7826 fi
7827
7828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7829       conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7831 fi
7832 { echo "$as_me:$LINENO: result: $ac_cv_lib_neXtaw_XawInitializeWidgetSet" >&5
7833 echo "${ECHO_T}$ac_cv_lib_neXtaw_XawInitializeWidgetSet" >&6; }
7834 if test $ac_cv_lib_neXtaw_XawInitializeWidgetSet = yes; then
7835   have_xaw=next
7836 else
7837   have_xaw=no
7838 fi
7839
7840     ;;
7841   "XawPlus")
7842
7843 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7844 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7845 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   ac_check_lib_save_LIBS=$LIBS
7849 LIBS="-lXpm  $LIBS"
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h.  */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h.  */
7856
7857 /* Override any GCC internal prototype to avoid an error.
7858    Use char because int might match the return type of a GCC
7859    builtin and then its argument prototype would still apply.  */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 char XpmCreatePixmapFromData ();
7864 int
7865 main ()
7866 {
7867 return XpmCreatePixmapFromData ();
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (ac_try="$ac_link"
7874 case "(($ac_try" in
7875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876   *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879   (eval "$ac_link") 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } && {
7886          test -z "$ac_c_werror_flag" ||
7887          test ! -s conftest.err
7888        } && test -s conftest$ac_exeext &&
7889        $as_test_x conftest$ac_exeext; then
7890   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7891 else
7892   echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895         ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7896 fi
7897
7898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7899       conftest$ac_exeext conftest.$ac_ext
7900 LIBS=$ac_check_lib_save_LIBS
7901 fi
7902 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7903 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7904 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7905   cat >>confdefs.h <<_ACEOF
7906 #define HAVE_LIBXPM 1
7907 _ACEOF
7908
7909   LIBS="-lXpm $LIBS"
7910
7911 fi
7912
7913     { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXawPlus" >&5
7914 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXawPlus... $ECHO_C" >&6; }
7915 if test "${ac_cv_lib_XawPlus_XawInitializeWidgetSet+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   ac_check_lib_save_LIBS=$LIBS
7919 LIBS="-lXawPlus  $LIBS"
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926
7927 /* Override any GCC internal prototype to avoid an error.
7928    Use char because int might match the return type of a GCC
7929    builtin and then its argument prototype would still apply.  */
7930 #ifdef __cplusplus
7931 extern "C"
7932 #endif
7933 char XawInitializeWidgetSet ();
7934 int
7935 main ()
7936 {
7937 return XawInitializeWidgetSet ();
7938   ;
7939   return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7944 case "(($ac_try" in
7945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946   *) ac_try_echo=$ac_try;;
7947 esac
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949   (eval "$ac_link") 2>conftest.er1
7950   ac_status=$?
7951   grep -v '^ *+' conftest.er1 >conftest.err
7952   rm -f conftest.er1
7953   cat conftest.err >&5
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } && {
7956          test -z "$ac_c_werror_flag" ||
7957          test ! -s conftest.err
7958        } && test -s conftest$ac_exeext &&
7959        $as_test_x conftest$ac_exeext; then
7960   ac_cv_lib_XawPlus_XawInitializeWidgetSet=yes
7961 else
7962   echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965         ac_cv_lib_XawPlus_XawInitializeWidgetSet=no
7966 fi
7967
7968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7969       conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7971 fi
7972 { echo "$as_me:$LINENO: result: $ac_cv_lib_XawPlus_XawInitializeWidgetSet" >&5
7973 echo "${ECHO_T}$ac_cv_lib_XawPlus_XawInitializeWidgetSet" >&6; }
7974 if test $ac_cv_lib_XawPlus_XawInitializeWidgetSet = yes; then
7975   have_xaw=plus
7976 else
7977   have_xaw=no
7978 fi
7979
7980     ;;
7981   *)
7982     have_xaw=no
7983     ;;
7984   esac
7985   if test "x$have_xaw" != "xno"; then break; fi
7986   done
7987   { echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7988 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6; }
7989 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   ac_check_lib_save_LIBS=$LIBS
7993 LIBS="-lXm  $LIBS"
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 /* Override any GCC internal prototype to avoid an error.
8002    Use char because int might match the return type of a GCC
8003    builtin and then its argument prototype would still apply.  */
8004 #ifdef __cplusplus
8005 extern "C"
8006 #endif
8007 char XmCreateForm ();
8008 int
8009 main ()
8010 {
8011 return XmCreateForm ();
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020   *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023   (eval "$ac_link") 2>conftest.er1
8024   ac_status=$?
8025   grep -v '^ *+' conftest.er1 >conftest.err
8026   rm -f conftest.er1
8027   cat conftest.err >&5
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); } && {
8030          test -z "$ac_c_werror_flag" ||
8031          test ! -s conftest.err
8032        } && test -s conftest$ac_exeext &&
8033        $as_test_x conftest$ac_exeext; then
8034   ac_cv_lib_Xm_XmCreateForm=yes
8035 else
8036   echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039         ac_cv_lib_Xm_XmCreateForm=no
8040 fi
8041
8042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
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_Xm_XmCreateForm" >&5
8047 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6; }
8048 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
8049   have_xm=yes
8050 else
8051   have_xm=no
8052 fi
8053
8054
8055 for ac_func in XShmCreatePixmap
8056 do
8057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8071 #define $ac_func innocuous_$ac_func
8072
8073 /* System header to define __stub macros and hopefully few prototypes,
8074     which can conflict with char $ac_func (); below.
8075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8076     <limits.h> exists even on freestanding compilers.  */
8077
8078 #ifdef __STDC__
8079 # include <limits.h>
8080 #else
8081 # include <assert.h>
8082 #endif
8083
8084 #undef $ac_func
8085
8086 /* Override any GCC internal prototype to avoid an error.
8087    Use char because int might match the return type of a GCC
8088    builtin and then its argument prototype would still apply.  */
8089 #ifdef __cplusplus
8090 extern "C"
8091 #endif
8092 char $ac_func ();
8093 /* The GNU C library defines this for functions which it implements
8094     to always fail with ENOSYS.  Some functions are actually named
8095     something starting with __ and the normal name is an alias.  */
8096 #if defined __stub_$ac_func || defined __stub___$ac_func
8097 choke me
8098 #endif
8099
8100 int
8101 main ()
8102 {
8103 return $ac_func ();
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8110 case "(($ac_try" in
8111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112   *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115   (eval "$ac_link") 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && {
8122          test -z "$ac_c_werror_flag" ||
8123          test ! -s conftest.err
8124        } && test -s conftest$ac_exeext &&
8125        $as_test_x conftest$ac_exeext; then
8126   eval "$as_ac_var=yes"
8127 else
8128   echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8130
8131         eval "$as_ac_var=no"
8132 fi
8133
8134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8135       conftest$ac_exeext conftest.$ac_ext
8136 fi
8137 ac_res=`eval echo '${'$as_ac_var'}'`
8138                { echo "$as_me:$LINENO: result: $ac_res" >&5
8139 echo "${ECHO_T}$ac_res" >&6; }
8140 if test `eval echo '${'$as_ac_var'}'` = yes; then
8141   cat >>confdefs.h <<_ACEOF
8142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8143 _ACEOF
8144
8145 fi
8146 done
8147
8148   LIBS=$KEEPLIBS
8149 fi
8150
8151 # Checks for header files.
8152 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8154 if test "${ac_cv_header_stdc+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163 #include <stdlib.h>
8164 #include <stdarg.h>
8165 #include <string.h>
8166 #include <float.h>
8167
8168 int
8169 main ()
8170 {
8171
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8178 case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_compile") 2>conftest.er1
8184   ac_status=$?
8185   grep -v '^ *+' conftest.er1 >conftest.err
8186   rm -f conftest.er1
8187   cat conftest.err >&5
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } && {
8190          test -z "$ac_c_werror_flag" ||
8191          test ! -s conftest.err
8192        } && test -s conftest.$ac_objext; then
8193   ac_cv_header_stdc=yes
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198         ac_cv_header_stdc=no
8199 fi
8200
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202
8203 if test $ac_cv_header_stdc = yes; then
8204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8205   cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h.  */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h.  */
8211 #include <string.h>
8212
8213 _ACEOF
8214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8215   $EGREP "memchr" >/dev/null 2>&1; then
8216   :
8217 else
8218   ac_cv_header_stdc=no
8219 fi
8220 rm -f conftest*
8221
8222 fi
8223
8224 if test $ac_cv_header_stdc = yes; then
8225   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8226   cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232 #include <stdlib.h>
8233
8234 _ACEOF
8235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236   $EGREP "free" >/dev/null 2>&1; then
8237   :
8238 else
8239   ac_cv_header_stdc=no
8240 fi
8241 rm -f conftest*
8242
8243 fi
8244
8245 if test $ac_cv_header_stdc = yes; then
8246   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8247   if test "$cross_compiling" = yes; then
8248   :
8249 else
8250   cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h.  */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h.  */
8256 #include <ctype.h>
8257 #include <stdlib.h>
8258 #if ((' ' & 0x0FF) == 0x020)
8259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8261 #else
8262 # define ISLOWER(c) \
8263                    (('a' <= (c) && (c) <= 'i') \
8264                      || ('j' <= (c) && (c) <= 'r') \
8265                      || ('s' <= (c) && (c) <= 'z'))
8266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8267 #endif
8268
8269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8270 int
8271 main ()
8272 {
8273   int i;
8274   for (i = 0; i < 256; i++)
8275     if (XOR (islower (i), ISLOWER (i))
8276         || toupper (i) != TOUPPER (i))
8277       return 2;
8278   return 0;
8279 }
8280 _ACEOF
8281 rm -f conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8283 case "(($ac_try" in
8284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285   *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288   (eval "$ac_link") 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8292   { (case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_try") 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   :
8302 else
8303   echo "$as_me: program exited with status $ac_status" >&5
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ( exit $ac_status )
8308 ac_cv_header_stdc=no
8309 fi
8310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8311 fi
8312
8313
8314 fi
8315 fi
8316 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8317 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8318 if test $ac_cv_header_stdc = yes; then
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define STDC_HEADERS 1
8322 _ACEOF
8323
8324 fi
8325
8326 #AC_HEADER_STDBOOL
8327 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8328 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8329 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332   cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338 #include <sys/types.h>
8339 #include <sys/wait.h>
8340 #ifndef WEXITSTATUS
8341 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8342 #endif
8343 #ifndef WIFEXITED
8344 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8345 #endif
8346
8347 int
8348 main ()
8349 {
8350   int s;
8351   wait (&s);
8352   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8359 case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_compile") 2>conftest.er1
8365   ac_status=$?
8366   grep -v '^ *+' conftest.er1 >conftest.err
8367   rm -f conftest.er1
8368   cat conftest.err >&5
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } && {
8371          test -z "$ac_c_werror_flag" ||
8372          test ! -s conftest.err
8373        } && test -s conftest.$ac_objext; then
8374   ac_cv_header_sys_wait_h=yes
8375 else
8376   echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379         ac_cv_header_sys_wait_h=no
8380 fi
8381
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 fi
8384 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8385 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8386 if test $ac_cv_header_sys_wait_h = yes; then
8387
8388 cat >>confdefs.h <<\_ACEOF
8389 #define HAVE_SYS_WAIT_H 1
8390 _ACEOF
8391
8392 fi
8393
8394 if test "x$WATCOM_C" != xyes ; then
8395 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8396 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8397 if test "${ac_cv_header_time+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 #include <sys/types.h>
8407 #include <sys/time.h>
8408 #include <time.h>
8409
8410 int
8411 main ()
8412 {
8413 if ((struct tm *) 0)
8414 return 0;
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } && {
8433          test -z "$ac_c_werror_flag" ||
8434          test ! -s conftest.err
8435        } && test -s conftest.$ac_objext; then
8436   ac_cv_header_time=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441         ac_cv_header_time=no
8442 fi
8443
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 fi
8446 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8447 echo "${ECHO_T}$ac_cv_header_time" >&6; }
8448 if test $ac_cv_header_time = yes; then
8449
8450 cat >>confdefs.h <<\_ACEOF
8451 #define TIME_WITH_SYS_TIME 1
8452 _ACEOF
8453
8454 fi
8455
8456 fi
8457
8458
8459
8460
8461
8462 ac_header_dirent=no
8463 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8464   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8465 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8466 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h.  */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h.  */
8476 #include <sys/types.h>
8477 #include <$ac_hdr>
8478
8479 int
8480 main ()
8481 {
8482 if ((DIR *) 0)
8483 return 0;
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (ac_try="$ac_compile"
8490 case "(($ac_try" in
8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492   *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495   (eval "$ac_compile") 2>conftest.er1
8496   ac_status=$?
8497   grep -v '^ *+' conftest.er1 >conftest.err
8498   rm -f conftest.er1
8499   cat conftest.err >&5
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } && {
8502          test -z "$ac_c_werror_flag" ||
8503          test ! -s conftest.err
8504        } && test -s conftest.$ac_objext; then
8505   eval "$as_ac_Header=yes"
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510         eval "$as_ac_Header=no"
8511 fi
8512
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 ac_res=`eval echo '${'$as_ac_Header'}'`
8516                { echo "$as_me:$LINENO: result: $ac_res" >&5
8517 echo "${ECHO_T}$ac_res" >&6; }
8518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8519   cat >>confdefs.h <<_ACEOF
8520 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8521 _ACEOF
8522
8523 ac_header_dirent=$ac_hdr; break
8524 fi
8525
8526 done
8527 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8528 if test $ac_header_dirent = dirent.h; then
8529   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8531 if test "${ac_cv_search_opendir+set}" = set; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534   ac_func_search_save_LIBS=$LIBS
8535 cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541
8542 /* Override any GCC internal prototype to avoid an error.
8543    Use char because int might match the return type of a GCC
8544    builtin and then its argument prototype would still apply.  */
8545 #ifdef __cplusplus
8546 extern "C"
8547 #endif
8548 char opendir ();
8549 int
8550 main ()
8551 {
8552 return opendir ();
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 for ac_lib in '' dir; do
8558   if test -z "$ac_lib"; then
8559     ac_res="none required"
8560   else
8561     ac_res=-l$ac_lib
8562     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8563   fi
8564   rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8566 case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571   (eval "$ac_link") 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } && {
8578          test -z "$ac_c_werror_flag" ||
8579          test ! -s conftest.err
8580        } && test -s conftest$ac_exeext &&
8581        $as_test_x conftest$ac_exeext; then
8582   ac_cv_search_opendir=$ac_res
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587
8588 fi
8589
8590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8591       conftest$ac_exeext
8592   if test "${ac_cv_search_opendir+set}" = set; then
8593   break
8594 fi
8595 done
8596 if test "${ac_cv_search_opendir+set}" = set; then
8597   :
8598 else
8599   ac_cv_search_opendir=no
8600 fi
8601 rm conftest.$ac_ext
8602 LIBS=$ac_func_search_save_LIBS
8603 fi
8604 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8605 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8606 ac_res=$ac_cv_search_opendir
8607 if test "$ac_res" != no; then
8608   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8609
8610 fi
8611
8612 else
8613   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8615 if test "${ac_cv_search_opendir+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   ac_func_search_save_LIBS=$LIBS
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625
8626 /* Override any GCC internal prototype to avoid an error.
8627    Use char because int might match the return type of a GCC
8628    builtin and then its argument prototype would still apply.  */
8629 #ifdef __cplusplus
8630 extern "C"
8631 #endif
8632 char opendir ();
8633 int
8634 main ()
8635 {
8636 return opendir ();
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 for ac_lib in '' x; do
8642   if test -z "$ac_lib"; then
8643     ac_res="none required"
8644   else
8645     ac_res=-l$ac_lib
8646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8647   fi
8648   rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (ac_try="$ac_link"
8650 case "(($ac_try" in
8651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652   *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655   (eval "$ac_link") 2>conftest.er1
8656   ac_status=$?
8657   grep -v '^ *+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } && {
8662          test -z "$ac_c_werror_flag" ||
8663          test ! -s conftest.err
8664        } && test -s conftest$ac_exeext &&
8665        $as_test_x conftest$ac_exeext; then
8666   ac_cv_search_opendir=$ac_res
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8675       conftest$ac_exeext
8676   if test "${ac_cv_search_opendir+set}" = set; then
8677   break
8678 fi
8679 done
8680 if test "${ac_cv_search_opendir+set}" = set; then
8681   :
8682 else
8683   ac_cv_search_opendir=no
8684 fi
8685 rm conftest.$ac_ext
8686 LIBS=$ac_func_search_save_LIBS
8687 fi
8688 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8689 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8690 ac_res=$ac_cv_search_opendir
8691 if test "$ac_res" != no; then
8692   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8693
8694 fi
8695
8696 fi
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736 for ac_header in \
8737   arpa/inet.h \
8738   errno.h \
8739   getopt.h \
8740   glob.h \
8741   dlfcn.h \
8742   fcntl.h \
8743   inttypes.h \
8744   limits.h \
8745   machine/endian.h \
8746   malloc.h \
8747   memory.h \
8748   netdb.h \
8749   netinet/in.h \
8750   nlist.h \
8751   stddef.h \
8752   stdlib.h \
8753   stdint.h \
8754   string.h \
8755   strings.h \
8756   stropts.h \
8757   soundcard.h \
8758   alsa/asoundlib.h \
8759   sys/asoundlib.h \
8760   sys/audioio.h \
8761   sys/awe_voice.h\
8762   sys/ioctl.h \
8763   sys/ipc.h \
8764   sys/param.h \
8765   sys/shm.h \
8766   sys/socket.h \
8767   sys/soundcard.h \
8768   sys/param.h \
8769   sys/time.h \
8770   sys/types.h \
8771   sys/stat.h \
8772   sys/sysctl.h \
8773   termios.h \
8774   X11/Xlib.h
8775 do
8776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8778   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 fi
8783 ac_res=`eval echo '${'$as_ac_Header'}'`
8784                { echo "$as_me:$LINENO: result: $ac_res" >&5
8785 echo "${ECHO_T}$ac_res" >&6; }
8786 else
8787   # Is the header compilable?
8788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796 $ac_includes_default
8797 #include <$ac_header>
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (ac_try="$ac_compile"
8801 case "(($ac_try" in
8802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803   *) ac_try_echo=$ac_try;;
8804 esac
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806   (eval "$ac_compile") 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } && {
8813          test -z "$ac_c_werror_flag" ||
8814          test ! -s conftest.err
8815        } && test -s conftest.$ac_objext; then
8816   ac_header_compiler=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821         ac_header_compiler=no
8822 fi
8823
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8826 echo "${ECHO_T}$ac_header_compiler" >&6; }
8827
8828 # Is the header present?
8829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 #include <$ac_header>
8838 _ACEOF
8839 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } >/dev/null && {
8852          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8853          test ! -s conftest.err
8854        }; then
8855   ac_header_preproc=yes
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860   ac_header_preproc=no
8861 fi
8862
8863 rm -f conftest.err conftest.$ac_ext
8864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6; }
8866
8867 # So?  What about this header?
8868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8869   yes:no: )
8870     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8874     ac_header_preproc=yes
8875     ;;
8876   no:yes:* )
8877     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8880 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8881     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8883     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8884 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8887     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8889     ( cat <<\_ASBOX
8890 ## ------------------------------- ##
8891 ## Report this to root@mput.dip.jp ##
8892 ## ------------------------------- ##
8893 _ASBOX
8894      ) | sed "s/^/$as_me: WARNING:     /" >&2
8895     ;;
8896 esac
8897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   eval "$as_ac_Header=\$ac_header_preproc"
8903 fi
8904 ac_res=`eval echo '${'$as_ac_Header'}'`
8905                { echo "$as_me:$LINENO: result: $ac_res" >&5
8906 echo "${ECHO_T}$ac_res" >&6; }
8907
8908 fi
8909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8910   cat >>confdefs.h <<_ACEOF
8911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8912 _ACEOF
8913
8914 fi
8915
8916 done
8917
8918
8919 if test "x$DMC" != xyes ; then
8920
8921 for ac_header in  \
8922   unistd.h \
8923
8924 do
8925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8927   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 fi
8932 ac_res=`eval echo '${'$as_ac_Header'}'`
8933                { echo "$as_me:$LINENO: result: $ac_res" >&5
8934 echo "${ECHO_T}$ac_res" >&6; }
8935 else
8936   # Is the header compilable?
8937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h.  */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h.  */
8945 $ac_includes_default
8946 #include <$ac_header>
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (ac_try="$ac_compile"
8950 case "(($ac_try" in
8951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952   *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955   (eval "$ac_compile") 2>conftest.er1
8956   ac_status=$?
8957   grep -v '^ *+' conftest.er1 >conftest.err
8958   rm -f conftest.er1
8959   cat conftest.err >&5
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } && {
8962          test -z "$ac_c_werror_flag" ||
8963          test ! -s conftest.err
8964        } && test -s conftest.$ac_objext; then
8965   ac_header_compiler=yes
8966 else
8967   echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970         ac_header_compiler=no
8971 fi
8972
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8975 echo "${ECHO_T}$ac_header_compiler" >&6; }
8976
8977 # Is the header present?
8978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986 #include <$ac_header>
8987 _ACEOF
8988 if { (ac_try="$ac_cpp conftest.$ac_ext"
8989 case "(($ac_try" in
8990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991   *) ac_try_echo=$ac_try;;
8992 esac
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8995   ac_status=$?
8996   grep -v '^ *+' conftest.er1 >conftest.err
8997   rm -f conftest.er1
8998   cat conftest.err >&5
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); } >/dev/null && {
9001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9002          test ! -s conftest.err
9003        }; then
9004   ac_header_preproc=yes
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009   ac_header_preproc=no
9010 fi
9011
9012 rm -f conftest.err conftest.$ac_ext
9013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9014 echo "${ECHO_T}$ac_header_preproc" >&6; }
9015
9016 # So?  What about this header?
9017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9018   yes:no: )
9019     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9023     ac_header_preproc=yes
9024     ;;
9025   no:yes:* )
9026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9028     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9029 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9030     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9032     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9033 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9036     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9038     ( cat <<\_ASBOX
9039 ## ------------------------------- ##
9040 ## Report this to root@mput.dip.jp ##
9041 ## ------------------------------- ##
9042 _ASBOX
9043      ) | sed "s/^/$as_me: WARNING:     /" >&2
9044     ;;
9045 esac
9046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9049   echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051   eval "$as_ac_Header=\$ac_header_preproc"
9052 fi
9053 ac_res=`eval echo '${'$as_ac_Header'}'`
9054                { echo "$as_me:$LINENO: result: $ac_res" >&5
9055 echo "${ECHO_T}$ac_res" >&6; }
9056
9057 fi
9058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9059   cat >>confdefs.h <<_ACEOF
9060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9061 _ACEOF
9062
9063 fi
9064
9065 done
9066
9067 fi
9068
9069
9070
9071 for ac_header in \
9072   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
9073 do
9074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h.  */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h.  */
9086
9087 #ifdef HAVE_X11_XLIB_H
9088 #include <X11/Xlib.h>
9089 #endif
9090
9091
9092 #include <$ac_header>
9093 _ACEOF
9094 rm -f conftest.$ac_objext
9095 if { (ac_try="$ac_compile"
9096 case "(($ac_try" in
9097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098   *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101   (eval "$ac_compile") 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } && {
9108          test -z "$ac_c_werror_flag" ||
9109          test ! -s conftest.err
9110        } && test -s conftest.$ac_objext; then
9111   eval "$as_ac_Header=yes"
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9115
9116         eval "$as_ac_Header=no"
9117 fi
9118
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120 fi
9121 ac_res=`eval echo '${'$as_ac_Header'}'`
9122                { echo "$as_me:$LINENO: result: $ac_res" >&5
9123 echo "${ECHO_T}$ac_res" >&6; }
9124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9125   cat >>confdefs.h <<_ACEOF
9126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127 _ACEOF
9128
9129 fi
9130
9131 done
9132
9133 if test "${ac_cv_header_string_h+set}" = set; then
9134   { echo "$as_me:$LINENO: checking for string.h" >&5
9135 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
9136 if test "${ac_cv_header_string_h+set}" = set; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 fi
9139 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
9140 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
9141 else
9142   # Is the header compilable?
9143 { echo "$as_me:$LINENO: checking string.h usability" >&5
9144 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h.  */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h.  */
9151 $ac_includes_default
9152 #include <string.h>
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (ac_try="$ac_compile"
9156 case "(($ac_try" in
9157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158   *) ac_try_echo=$ac_try;;
9159 esac
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161   (eval "$ac_compile") 2>conftest.er1
9162   ac_status=$?
9163   grep -v '^ *+' conftest.er1 >conftest.err
9164   rm -f conftest.er1
9165   cat conftest.err >&5
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); } && {
9168          test -z "$ac_c_werror_flag" ||
9169          test ! -s conftest.err
9170        } && test -s conftest.$ac_objext; then
9171   ac_header_compiler=yes
9172 else
9173   echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176         ac_header_compiler=no
9177 fi
9178
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9181 echo "${ECHO_T}$ac_header_compiler" >&6; }
9182
9183 # Is the header present?
9184 { echo "$as_me:$LINENO: checking string.h presence" >&5
9185 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h.  */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h.  */
9192 #include <string.h>
9193 _ACEOF
9194 if { (ac_try="$ac_cpp conftest.$ac_ext"
9195 case "(($ac_try" in
9196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197   *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9201   ac_status=$?
9202   grep -v '^ *+' conftest.er1 >conftest.err
9203   rm -f conftest.er1
9204   cat conftest.err >&5
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } >/dev/null && {
9207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9208          test ! -s conftest.err
9209        }; then
9210   ac_header_preproc=yes
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215   ac_header_preproc=no
9216 fi
9217
9218 rm -f conftest.err conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9220 echo "${ECHO_T}$ac_header_preproc" >&6; }
9221
9222 # So?  What about this header?
9223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9224   yes:no: )
9225     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
9226 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9227     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
9228 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
9229     ac_header_preproc=yes
9230     ;;
9231   no:yes:* )
9232     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
9233 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
9234     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
9235 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
9236     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
9237 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
9238     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
9239 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9240     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
9241 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
9242     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
9243 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
9244     ( cat <<\_ASBOX
9245 ## ------------------------------- ##
9246 ## Report this to root@mput.dip.jp ##
9247 ## ------------------------------- ##
9248 _ASBOX
9249      ) | sed "s/^/$as_me: WARNING:     /" >&2
9250     ;;
9251 esac
9252 { echo "$as_me:$LINENO: checking for string.h" >&5
9253 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
9254 if test "${ac_cv_header_string_h+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   ac_cv_header_string_h=$ac_header_preproc
9258 fi
9259 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
9260 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
9261
9262 fi
9263 if test $ac_cv_header_string_h = yes; then
9264   :
9265 else
9266
9267 cat >>confdefs.h <<\_ACEOF
9268 #define NO_STRING_H 1
9269 _ACEOF
9270
9271 fi
9272
9273
9274
9275 # Checks for typedefs, structures, and compiler characteristics.
9276 if test "x$WATCOM_C" != xyes ; then
9277 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9278 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
9279 if test "${ac_cv_c_bigendian+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   # See if sys/param.h defines the BYTE_ORDER macro.
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 #include <sys/types.h>
9290 #include <sys/param.h>
9291
9292 int
9293 main ()
9294 {
9295 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
9296         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
9297  bogus endian macros
9298 #endif
9299
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext
9305 if { (ac_try="$ac_compile"
9306 case "(($ac_try" in
9307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308   *) ac_try_echo=$ac_try;;
9309 esac
9310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311   (eval "$ac_compile") 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } && {
9318          test -z "$ac_c_werror_flag" ||
9319          test ! -s conftest.err
9320        } && test -s conftest.$ac_objext; then
9321   # It does; now see whether it defined to BIG_ENDIAN or not.
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328 #include <sys/types.h>
9329 #include <sys/param.h>
9330
9331 int
9332 main ()
9333 {
9334 #if BYTE_ORDER != BIG_ENDIAN
9335  not big endian
9336 #endif
9337
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext
9343 if { (ac_try="$ac_compile"
9344 case "(($ac_try" in
9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346   *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349   (eval "$ac_compile") 2>conftest.er1
9350   ac_status=$?
9351   grep -v '^ *+' conftest.er1 >conftest.err
9352   rm -f conftest.er1
9353   cat conftest.err >&5
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } && {
9356          test -z "$ac_c_werror_flag" ||
9357          test ! -s conftest.err
9358        } && test -s conftest.$ac_objext; then
9359   ac_cv_c_bigendian=yes
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364         ac_cv_c_bigendian=no
9365 fi
9366
9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372         # It does not; compile a test program.
9373 if test "$cross_compiling" = yes; then
9374   # try to guess the endianness by grepping values into an object file
9375   ac_cv_c_bigendian=unknown
9376   cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9383 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9384 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9385 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9386 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9387 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9388 int
9389 main ()
9390 {
9391  _ascii (); _ebcdic ();
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 rm -f conftest.$ac_objext
9397 if { (ac_try="$ac_compile"
9398 case "(($ac_try" in
9399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9400   *) ac_try_echo=$ac_try;;
9401 esac
9402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9403   (eval "$ac_compile") 2>conftest.er1
9404   ac_status=$?
9405   grep -v '^ *+' conftest.er1 >conftest.err
9406   rm -f conftest.er1
9407   cat conftest.err >&5
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } && {
9410          test -z "$ac_c_werror_flag" ||
9411          test ! -s conftest.err
9412        } && test -s conftest.$ac_objext; then
9413   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9414   ac_cv_c_bigendian=yes
9415 fi
9416 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9417   if test "$ac_cv_c_bigendian" = unknown; then
9418     ac_cv_c_bigendian=no
9419   else
9420     # finding both strings is unlikely to happen, but who knows?
9421     ac_cv_c_bigendian=unknown
9422   fi
9423 fi
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 else
9433   cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 $ac_includes_default
9440 int
9441 main ()
9442 {
9443
9444   /* Are we little or big endian?  From Harbison&Steele.  */
9445   union
9446   {
9447     long int l;
9448     char c[sizeof (long int)];
9449   } u;
9450   u.l = 1;
9451   return u.c[sizeof (long int) - 1] == 1;
9452
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9459 case "(($ac_try" in
9460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461   *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464   (eval "$ac_link") 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9468   { (case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473   (eval "$ac_try") 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; }; then
9477   ac_cv_c_bigendian=no
9478 else
9479   echo "$as_me: program exited with status $ac_status" >&5
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 ( exit $ac_status )
9484 ac_cv_c_bigendian=yes
9485 fi
9486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9487 fi
9488
9489
9490 fi
9491
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 fi
9494 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9495 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
9496 case $ac_cv_c_bigendian in
9497   yes)
9498
9499 cat >>confdefs.h <<\_ACEOF
9500 #define WORDS_BIGENDIAN 1
9501 _ACEOF
9502  ;;
9503   no)
9504      ;;
9505   *)
9506     { { echo "$as_me:$LINENO: error: unknown endianness
9507 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9508 echo "$as_me: error: unknown endianness
9509 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9510    { (exit 1); exit 1; }; } ;;
9511 esac
9512
9513 fi
9514
9515 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
9516 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
9517 if test "${ac_cv_c_char_unsigned+set}" = set; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520   cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526 $ac_includes_default
9527 int
9528 main ()
9529 {
9530 static int test_array [1 - 2 * !(((char) -1) < 0)];
9531 test_array [0] = 0
9532
9533   ;
9534   return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (ac_try="$ac_compile"
9539 case "(($ac_try" in
9540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541   *) ac_try_echo=$ac_try;;
9542 esac
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544   (eval "$ac_compile") 2>conftest.er1
9545   ac_status=$?
9546   grep -v '^ *+' conftest.er1 >conftest.err
9547   rm -f conftest.er1
9548   cat conftest.err >&5
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } && {
9551          test -z "$ac_c_werror_flag" ||
9552          test ! -s conftest.err
9553        } && test -s conftest.$ac_objext; then
9554   ac_cv_c_char_unsigned=no
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559         ac_cv_c_char_unsigned=yes
9560 fi
9561
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
9565 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
9566 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9567   cat >>confdefs.h <<\_ACEOF
9568 #define __CHAR_UNSIGNED__ 1
9569 _ACEOF
9570
9571 fi
9572
9573 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9574 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9575 if test "${ac_cv_c_const+set}" = set; then
9576   echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578   cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h.  */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h.  */
9584
9585 int
9586 main ()
9587 {
9588 /* FIXME: Include the comments suggested by Paul. */
9589 #ifndef __cplusplus
9590   /* Ultrix mips cc rejects this.  */
9591   typedef int charset[2];
9592   const charset cs;
9593   /* SunOS 4.1.1 cc rejects this.  */
9594   char const *const *pcpcc;
9595   char **ppc;
9596   /* NEC SVR4.0.2 mips cc rejects this.  */
9597   struct point {int x, y;};
9598   static struct point const zero = {0,0};
9599   /* AIX XL C 1.02.0.0 rejects this.
9600      It does not let you subtract one const X* pointer from another in
9601      an arm of an if-expression whose if-part is not a constant
9602      expression */
9603   const char *g = "string";
9604   pcpcc = &g + (g ? g-g : 0);
9605   /* HPUX 7.0 cc rejects these. */
9606   ++pcpcc;
9607   ppc = (char**) pcpcc;
9608   pcpcc = (char const *const *) ppc;
9609   { /* SCO 3.2v4 cc rejects this.  */
9610     char *t;
9611     char const *s = 0 ? (char *) 0 : (char const *) 0;
9612
9613     *t++ = 0;
9614     if (s) return 0;
9615   }
9616   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9617     int x[] = {25, 17};
9618     const int *foo = &x[0];
9619     ++foo;
9620   }
9621   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9622     typedef const int *iptr;
9623     iptr p = 0;
9624     ++p;
9625   }
9626   { /* AIX XL C 1.02.0.0 rejects this saying
9627        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9628     struct s { int j; const int *ap[3]; };
9629     struct s *b; b->j = 5;
9630   }
9631   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9632     const int foo = 10;
9633     if (!foo) return 0;
9634   }
9635   return !cs[0] && !zero.x;
9636 #endif
9637
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9644 case "(($ac_try" in
9645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646   *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649   (eval "$ac_compile") 2>conftest.er1
9650   ac_status=$?
9651   grep -v '^ *+' conftest.er1 >conftest.err
9652   rm -f conftest.er1
9653   cat conftest.err >&5
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); } && {
9656          test -z "$ac_c_werror_flag" ||
9657          test ! -s conftest.err
9658        } && test -s conftest.$ac_objext; then
9659   ac_cv_c_const=yes
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664         ac_cv_c_const=no
9665 fi
9666
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9670 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9671 if test $ac_cv_c_const = no; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define const
9675 _ACEOF
9676
9677 fi
9678
9679 { echo "$as_me:$LINENO: checking for inline" >&5
9680 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9681 if test "${ac_cv_c_inline+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   ac_cv_c_inline=no
9685 for ac_kw in inline __inline__ __inline; do
9686   cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692 #ifndef __cplusplus
9693 typedef int foo_t;
9694 static $ac_kw foo_t static_foo () {return 0; }
9695 $ac_kw foo_t foo () {return 0; }
9696 #endif
9697
9698 _ACEOF
9699 rm -f conftest.$ac_objext
9700 if { (ac_try="$ac_compile"
9701 case "(($ac_try" in
9702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703   *) ac_try_echo=$ac_try;;
9704 esac
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706   (eval "$ac_compile") 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
9710   cat conftest.err >&5
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } && {
9713          test -z "$ac_c_werror_flag" ||
9714          test ! -s conftest.err
9715        } && test -s conftest.$ac_objext; then
9716   ac_cv_c_inline=$ac_kw
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721
9722 fi
9723
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725   test "$ac_cv_c_inline" != no && break
9726 done
9727
9728 fi
9729 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9730 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9731
9732
9733 case $ac_cv_c_inline in
9734   inline | yes) ;;
9735   *)
9736     case $ac_cv_c_inline in
9737       no) ac_val=;;
9738       *) ac_val=$ac_cv_c_inline;;
9739     esac
9740     cat >>confdefs.h <<_ACEOF
9741 #ifndef __cplusplus
9742 #define inline $ac_val
9743 #endif
9744 _ACEOF
9745     ;;
9746 esac
9747
9748 { echo "$as_me:$LINENO: checking for working volatile" >&5
9749 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9750 if test "${ac_cv_c_volatile+set}" = set; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h.  */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h.  */
9759
9760 int
9761 main ()
9762 {
9763
9764 volatile int x;
9765 int * volatile y = (int *) 0;
9766 return !x && !y;
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (ac_try="$ac_compile"
9773 case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_compile") 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } && {
9785          test -z "$ac_c_werror_flag" ||
9786          test ! -s conftest.err
9787        } && test -s conftest.$ac_objext; then
9788   ac_cv_c_volatile=yes
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793         ac_cv_c_volatile=no
9794 fi
9795
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 fi
9798 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9799 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9800 if test $ac_cv_c_volatile = no; then
9801
9802 cat >>confdefs.h <<\_ACEOF
9803 #define volatile
9804 _ACEOF
9805
9806 fi
9807
9808 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9809 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
9810 if test "${ac_cv_c_stringize+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819 #define x(y) #y
9820
9821 char *s = x(teststring);
9822 _ACEOF
9823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9824   $EGREP "#teststring" >/dev/null 2>&1; then
9825   ac_cv_c_stringize=no
9826 else
9827   ac_cv_c_stringize=yes
9828 fi
9829 rm -f conftest*
9830
9831 fi
9832 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9833 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
9834 if test $ac_cv_c_stringize = yes; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_STRINGIZE 1
9838 _ACEOF
9839
9840 fi
9841
9842 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9843 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9844 if test "$ac_cv_prog_cc_c89" != no; then
9845   { echo "$as_me:$LINENO: result: yes" >&5
9846 echo "${ECHO_T}yes" >&6; }
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define PROTOTYPES 1
9850 _ACEOF
9851
9852
9853 cat >>confdefs.h <<\_ACEOF
9854 #define __PROTOTYPES 1
9855 _ACEOF
9856
9857 else
9858   { echo "$as_me:$LINENO: result: no" >&5
9859 echo "${ECHO_T}no" >&6; }
9860 fi
9861
9862 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9863 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9864 if test "${ac_cv_struct_tm+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873 #include <sys/types.h>
9874 #include <time.h>
9875
9876 int
9877 main ()
9878 {
9879 struct tm tm;
9880                                      int *p = &tm.tm_sec;
9881                                      return !p;
9882   ;
9883   return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext
9887 if { (ac_try="$ac_compile"
9888 case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_compile") 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } && {
9900          test -z "$ac_c_werror_flag" ||
9901          test ! -s conftest.err
9902        } && test -s conftest.$ac_objext; then
9903   ac_cv_struct_tm=time.h
9904 else
9905   echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9907
9908         ac_cv_struct_tm=sys/time.h
9909 fi
9910
9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912 fi
9913 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9914 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9915 if test $ac_cv_struct_tm = sys/time.h; then
9916
9917 cat >>confdefs.h <<\_ACEOF
9918 #define TM_IN_SYS_TIME 1
9919 _ACEOF
9920
9921 fi
9922
9923 if test "x$DMC" != xyes ; then
9924 { echo "$as_me:$LINENO: checking for size_t" >&5
9925 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9926 if test "${ac_cv_type_size_t+set}" = set; then
9927   echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929   cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 $ac_includes_default
9936 typedef size_t ac__type_new_;
9937 int
9938 main ()
9939 {
9940 if ((ac__type_new_ *) 0)
9941   return 0;
9942 if (sizeof (ac__type_new_))
9943   return 0;
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_compile") 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } && {
9962          test -z "$ac_c_werror_flag" ||
9963          test ! -s conftest.err
9964        } && test -s conftest.$ac_objext; then
9965   ac_cv_type_size_t=yes
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970         ac_cv_type_size_t=no
9971 fi
9972
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9976 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9977 if test $ac_cv_type_size_t = yes; then
9978   :
9979 else
9980
9981 cat >>confdefs.h <<_ACEOF
9982 #define size_t unsigned int
9983 _ACEOF
9984
9985 fi
9986
9987 fi
9988 if test "x$POCC" != xyes ; then
9989 { echo "$as_me:$LINENO: checking for off_t" >&5
9990 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9991 if test "${ac_cv_type_off_t+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 $ac_includes_default
10001 typedef off_t ac__type_new_;
10002 int
10003 main ()
10004 {
10005 if ((ac__type_new_ *) 0)
10006   return 0;
10007 if (sizeof (ac__type_new_))
10008   return 0;
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext
10014 if { (ac_try="$ac_compile"
10015 case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_compile") 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } && {
10027          test -z "$ac_c_werror_flag" ||
10028          test ! -s conftest.err
10029        } && test -s conftest.$ac_objext; then
10030   ac_cv_type_off_t=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035         ac_cv_type_off_t=no
10036 fi
10037
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 fi
10040 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10041 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10042 if test $ac_cv_type_off_t = yes; then
10043   :
10044 else
10045
10046 cat >>confdefs.h <<_ACEOF
10047 #define off_t long int
10048 _ACEOF
10049
10050 fi
10051
10052 { echo "$as_me:$LINENO: checking for pid_t" >&5
10053 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10054 if test "${ac_cv_type_pid_t+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 $ac_includes_default
10064 typedef pid_t ac__type_new_;
10065 int
10066 main ()
10067 {
10068 if ((ac__type_new_ *) 0)
10069   return 0;
10070 if (sizeof (ac__type_new_))
10071   return 0;
10072   ;
10073   return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083   (eval "$ac_compile") 2>conftest.er1
10084   ac_status=$?
10085   grep -v '^ *+' conftest.er1 >conftest.err
10086   rm -f conftest.er1
10087   cat conftest.err >&5
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } && {
10090          test -z "$ac_c_werror_flag" ||
10091          test ! -s conftest.err
10092        } && test -s conftest.$ac_objext; then
10093   ac_cv_type_pid_t=yes
10094 else
10095   echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098         ac_cv_type_pid_t=no
10099 fi
10100
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 fi
10103 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10104 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10105 if test $ac_cv_type_pid_t = yes; then
10106   :
10107 else
10108
10109 cat >>confdefs.h <<_ACEOF
10110 #define pid_t int
10111 _ACEOF
10112
10113 fi
10114
10115 fi
10116
10117 { echo "$as_me:$LINENO: checking volatile declaration" >&5
10118 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6; }
10119 if test "${timidity_cv_type_volatile+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128
10129 int
10130 main ()
10131 {
10132 volatile int x
10133   ;
10134   return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_compile") 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } && {
10151          test -z "$ac_c_werror_flag" ||
10152          test ! -s conftest.err
10153        } && test -s conftest.$ac_objext; then
10154   timidity_cv_type_volatile=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159         timidity_cv_type_volatile=no
10160 fi
10161
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 fi
10164 { echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
10165 echo "${ECHO_T}$timidity_cv_type_volatile" >&6; }
10166 if test $timidity_cv_type_volatile = no; then
10167
10168 cat >>confdefs.h <<\_ACEOF
10169 #define NO_VOLATILE 1
10170 _ACEOF
10171
10172 fi
10173
10174 { echo "$as_me:$LINENO: checking union semun declaration" >&5
10175 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6; }
10176 if test "${timidity_cv_type_union_semun+set}" = set; then
10177   echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179   cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185
10186 #include <sys/types.h>
10187 #include <sys/ipc.h>
10188 #include <sys/sem.h>
10189
10190 int
10191 main ()
10192 {
10193 union semun x
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext
10199 if { (ac_try="$ac_compile"
10200 case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205   (eval "$ac_compile") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } && {
10212          test -z "$ac_c_werror_flag" ||
10213          test ! -s conftest.err
10214        } && test -s conftest.$ac_objext; then
10215   timidity_cv_type_union_semun=yes
10216 else
10217   echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10219
10220         timidity_cv_type_union_semun=no
10221 fi
10222
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 fi
10225 { echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
10226 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6; }
10227 if test $timidity_cv_type_union_semun = yes; then
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_UNION_SEMUN 1
10231 _ACEOF
10232
10233 fi
10234
10235 if test "x$MSYS" = xyes ; then
10236         case "x${CC}" in
10237         "xgcc"*)
10238                 msnative_struct=''
10239             { echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
10240 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6; }
10241             if test -z "$ac_cv_prog_CC"; then
10242                         our_gcc="$CC"
10243                 else
10244                         our_gcc="$ac_cv_prog_CC"
10245                 fi
10246                 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
10247                         2.)
10248                 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
10249                         msnative_struct='-fnative-struct'
10250                 fi
10251                 ;;
10252                         *)
10253                 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
10254                         msnative_struct='-mms-bitfields'
10255                 fi
10256                 ;;
10257                 esac
10258                 if test x"$msnative_struct" = x ; then
10259                         { echo "$as_me:$LINENO: result: no way" >&5
10260 echo "${ECHO_T}no way" >&6; }
10261                         { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
10262 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
10263                 else
10264                         CFLAGS="$CFLAGS $msnative_struct"
10265                         CPPFLAGS="$CPPFLAGS $msnative_struct"
10266                         { echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
10267 echo "${ECHO_T}${msnative_struct}" >&6; }
10268                 fi
10269                 ;;
10270         *)
10271                 ;;
10272         esac
10273 fi
10274 if test "x$MSYS" = xyes ; then
10275   { echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
10276 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6; }
10277 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
10278   echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280   cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 #include <windows.h>
10288 #include <mmsystem.h>
10289
10290 int
10291 main ()
10292 {
10293 return WOM_OPEN != 0x3BB
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (ac_try="$ac_compile"
10300 case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305   (eval "$ac_compile") 2>conftest.er1
10306   ac_status=$?
10307   grep -v '^ *+' conftest.er1 >conftest.err
10308   rm -f conftest.er1
10309   cat conftest.err >&5
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); } && {
10312          test -z "$ac_c_werror_flag" ||
10313          test ! -s conftest.err
10314        } && test -s conftest.$ac_objext; then
10315   timidity_cv_header_new_mmsystem=yes
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320         timidity_cv_header_new_mmsystem=no
10321 fi
10322
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 { echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
10326 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6; }
10327   if test $timidity_cv_header_new_mmsystem = yes; then
10328
10329 cat >>confdefs.h <<\_ACEOF
10330 #define HAVE_NEW_MMSYSTEM 1
10331 _ACEOF
10332
10333   fi
10334 fi
10335
10336 # Checks for library functions.
10337 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10338 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10339 if test "${ac_cv_lib_error_at_line+set}" = set; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342   cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h.  */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h.  */
10348 #include <error.h>
10349 int
10350 main ()
10351 {
10352 error_at_line (0, 0, "", 0, "an error occurred");
10353   ;
10354   return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_link") 2>conftest.er1
10365   ac_status=$?
10366   grep -v '^ *+' conftest.er1 >conftest.err
10367   rm -f conftest.er1
10368   cat conftest.err >&5
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && {
10371          test -z "$ac_c_werror_flag" ||
10372          test ! -s conftest.err
10373        } && test -s conftest$ac_exeext &&
10374        $as_test_x conftest$ac_exeext; then
10375   ac_cv_lib_error_at_line=yes
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380         ac_cv_lib_error_at_line=no
10381 fi
10382
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384       conftest$ac_exeext conftest.$ac_ext
10385 fi
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10387 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10388 if test $ac_cv_lib_error_at_line = no; then
10389   case " $LIBOBJS " in
10390   *" error.$ac_objext "* ) ;;
10391   *) LIBOBJS="$LIBOBJS error.$ac_objext"
10392  ;;
10393 esac
10394
10395 fi
10396
10397 if test "x$DMC" != xyes ; then
10398
10399 for ac_header in vfork.h
10400 do
10401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10403   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10406   echo $ECHO_N "(cached) $ECHO_C" >&6
10407 fi
10408 ac_res=`eval echo '${'$as_ac_Header'}'`
10409                { echo "$as_me:$LINENO: result: $ac_res" >&5
10410 echo "${ECHO_T}$ac_res" >&6; }
10411 else
10412   # Is the header compilable?
10413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h.  */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h.  */
10421 $ac_includes_default
10422 #include <$ac_header>
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (ac_try="$ac_compile"
10426 case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431   (eval "$ac_compile") 2>conftest.er1
10432   ac_status=$?
10433   grep -v '^ *+' conftest.er1 >conftest.err
10434   rm -f conftest.er1
10435   cat conftest.err >&5
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } && {
10438          test -z "$ac_c_werror_flag" ||
10439          test ! -s conftest.err
10440        } && test -s conftest.$ac_objext; then
10441   ac_header_compiler=yes
10442 else
10443   echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10445
10446         ac_header_compiler=no
10447 fi
10448
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10451 echo "${ECHO_T}$ac_header_compiler" >&6; }
10452
10453 # Is the header present?
10454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10456 cat >conftest.$ac_ext <<_ACEOF
10457 /* confdefs.h.  */
10458 _ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h.  */
10462 #include <$ac_header>
10463 _ACEOF
10464 if { (ac_try="$ac_cpp conftest.$ac_ext"
10465 case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10471   ac_status=$?
10472   grep -v '^ *+' conftest.er1 >conftest.err
10473   rm -f conftest.er1
10474   cat conftest.err >&5
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } >/dev/null && {
10477          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10478          test ! -s conftest.err
10479        }; then
10480   ac_header_preproc=yes
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485   ac_header_preproc=no
10486 fi
10487
10488 rm -f conftest.err conftest.$ac_ext
10489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490 echo "${ECHO_T}$ac_header_preproc" >&6; }
10491
10492 # So?  What about this header?
10493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10494   yes:no: )
10495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499     ac_header_preproc=yes
10500     ;;
10501   no:yes:* )
10502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10514     ( cat <<\_ASBOX
10515 ## ------------------------------- ##
10516 ## Report this to root@mput.dip.jp ##
10517 ## ------------------------------- ##
10518 _ASBOX
10519      ) | sed "s/^/$as_me: WARNING:     /" >&2
10520     ;;
10521 esac
10522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527   eval "$as_ac_Header=\$ac_header_preproc"
10528 fi
10529 ac_res=`eval echo '${'$as_ac_Header'}'`
10530                { echo "$as_me:$LINENO: result: $ac_res" >&5
10531 echo "${ECHO_T}$ac_res" >&6; }
10532
10533 fi
10534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10535   cat >>confdefs.h <<_ACEOF
10536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10537 _ACEOF
10538
10539 fi
10540
10541 done
10542
10543
10544
10545 for ac_func in fork vfork
10546 do
10547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10561 #define $ac_func innocuous_$ac_func
10562
10563 /* System header to define __stub macros and hopefully few prototypes,
10564     which can conflict with char $ac_func (); below.
10565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10566     <limits.h> exists even on freestanding compilers.  */
10567
10568 #ifdef __STDC__
10569 # include <limits.h>
10570 #else
10571 # include <assert.h>
10572 #endif
10573
10574 #undef $ac_func
10575
10576 /* Override any GCC internal prototype to avoid an error.
10577    Use char because int might match the return type of a GCC
10578    builtin and then its argument prototype would still apply.  */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 char $ac_func ();
10583 /* The GNU C library defines this for functions which it implements
10584     to always fail with ENOSYS.  Some functions are actually named
10585     something starting with __ and the normal name is an alias.  */
10586 #if defined __stub_$ac_func || defined __stub___$ac_func
10587 choke me
10588 #endif
10589
10590 int
10591 main ()
10592 {
10593 return $ac_func ();
10594   ;
10595   return 0;
10596 }
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (ac_try="$ac_link"
10600 case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_link") 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } && {
10612          test -z "$ac_c_werror_flag" ||
10613          test ! -s conftest.err
10614        } && test -s conftest$ac_exeext &&
10615        $as_test_x conftest$ac_exeext; then
10616   eval "$as_ac_var=yes"
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621         eval "$as_ac_var=no"
10622 fi
10623
10624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625       conftest$ac_exeext conftest.$ac_ext
10626 fi
10627 ac_res=`eval echo '${'$as_ac_var'}'`
10628                { echo "$as_me:$LINENO: result: $ac_res" >&5
10629 echo "${ECHO_T}$ac_res" >&6; }
10630 if test `eval echo '${'$as_ac_var'}'` = yes; then
10631   cat >>confdefs.h <<_ACEOF
10632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10633 _ACEOF
10634
10635 fi
10636 done
10637
10638 if test "x$ac_cv_func_fork" = xyes; then
10639   { echo "$as_me:$LINENO: checking for working fork" >&5
10640 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10641 if test "${ac_cv_func_fork_works+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   if test "$cross_compiling" = yes; then
10645   ac_cv_func_fork_works=cross
10646 else
10647   cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 $ac_includes_default
10654 int
10655 main ()
10656 {
10657
10658           /* By Ruediger Kuhlmann. */
10659           return fork () < 0;
10660
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669   *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672   (eval "$ac_link") 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10676   { (case "(($ac_try" in
10677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678   *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681   (eval "$ac_try") 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; }; then
10685   ac_cv_func_fork_works=yes
10686 else
10687   echo "$as_me: program exited with status $ac_status" >&5
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ( exit $ac_status )
10692 ac_cv_func_fork_works=no
10693 fi
10694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10695 fi
10696
10697
10698 fi
10699 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10700 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10701
10702 else
10703   ac_cv_func_fork_works=$ac_cv_func_fork
10704 fi
10705 if test "x$ac_cv_func_fork_works" = xcross; then
10706   case $host in
10707     *-*-amigaos* | *-*-msdosdjgpp*)
10708       # Override, as these systems have only a dummy fork() stub
10709       ac_cv_func_fork_works=no
10710       ;;
10711     *)
10712       ac_cv_func_fork_works=yes
10713       ;;
10714   esac
10715   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10716 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10717 fi
10718 ac_cv_func_vfork_works=$ac_cv_func_vfork
10719 if test "x$ac_cv_func_vfork" = xyes; then
10720   { echo "$as_me:$LINENO: checking for working vfork" >&5
10721 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10722 if test "${ac_cv_func_vfork_works+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   if test "$cross_compiling" = yes; then
10726   ac_cv_func_vfork_works=cross
10727 else
10728   cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 /* Thanks to Paul Eggert for this test.  */
10735 $ac_includes_default
10736 #include <sys/wait.h>
10737 #ifdef HAVE_VFORK_H
10738 # include <vfork.h>
10739 #endif
10740 /* On some sparc systems, changes by the child to local and incoming
10741    argument registers are propagated back to the parent.  The compiler
10742    is told about this with #include <vfork.h>, but some compilers
10743    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10744    static variable whose address is put into a register that is
10745    clobbered by the vfork.  */
10746 static void
10747 #ifdef __cplusplus
10748 sparc_address_test (int arg)
10749 # else
10750 sparc_address_test (arg) int arg;
10751 #endif
10752 {
10753   static pid_t child;
10754   if (!child) {
10755     child = vfork ();
10756     if (child < 0) {
10757       perror ("vfork");
10758       _exit(2);
10759     }
10760     if (!child) {
10761       arg = getpid();
10762       write(-1, "", 0);
10763       _exit (arg);
10764     }
10765   }
10766 }
10767
10768 int
10769 main ()
10770 {
10771   pid_t parent = getpid ();
10772   pid_t child;
10773
10774   sparc_address_test (0);
10775
10776   child = vfork ();
10777
10778   if (child == 0) {
10779     /* Here is another test for sparc vfork register problems.  This
10780        test uses lots of local variables, at least as many local
10781        variables as main has allocated so far including compiler
10782        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10783        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10784        reuse the register of parent for one of the local variables,
10785        since it will think that parent can't possibly be used any more
10786        in this routine.  Assigning to the local variable will thus
10787        munge parent in the parent process.  */
10788     pid_t
10789       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10790       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10791     /* Convince the compiler that p..p7 are live; otherwise, it might
10792        use the same hardware register for all 8 local variables.  */
10793     if (p != p1 || p != p2 || p != p3 || p != p4
10794         || p != p5 || p != p6 || p != p7)
10795       _exit(1);
10796
10797     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10798        from child file descriptors.  If the child closes a descriptor
10799        before it execs or exits, this munges the parent's descriptor
10800        as well.  Test for this by closing stdout in the child.  */
10801     _exit(close(fileno(stdout)) != 0);
10802   } else {
10803     int status;
10804     struct stat st;
10805
10806     while (wait(&status) != child)
10807       ;
10808     return (
10809          /* Was there some problem with vforking?  */
10810          child < 0
10811
10812          /* Did the child fail?  (This shouldn't happen.)  */
10813          || status
10814
10815          /* Did the vfork/compiler bug occur?  */
10816          || parent != getpid()
10817
10818          /* Did the file descriptor bug occur?  */
10819          || fstat(fileno(stdout), &st) != 0
10820          );
10821   }
10822 }
10823 _ACEOF
10824 rm -f conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828   *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831   (eval "$ac_link") 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10835   { (case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840   (eval "$ac_try") 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   ac_cv_func_vfork_works=yes
10845 else
10846   echo "$as_me: program exited with status $ac_status" >&5
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10849
10850 ( exit $ac_status )
10851 ac_cv_func_vfork_works=no
10852 fi
10853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10854 fi
10855
10856
10857 fi
10858 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10859 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10860
10861 fi;
10862 if test "x$ac_cv_func_fork_works" = xcross; then
10863   ac_cv_func_vfork_works=$ac_cv_func_vfork
10864   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10865 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10866 fi
10867
10868 if test "x$ac_cv_func_vfork_works" = xyes; then
10869
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_WORKING_VFORK 1
10872 _ACEOF
10873
10874 else
10875
10876 cat >>confdefs.h <<\_ACEOF
10877 #define vfork fork
10878 _ACEOF
10879
10880 fi
10881 if test "x$ac_cv_func_fork_works" = xyes; then
10882
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_WORKING_FORK 1
10885 _ACEOF
10886
10887 fi
10888
10889 fi
10890 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10891 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10892 if test "${ac_cv_func_memcmp_working+set}" = set; then
10893   echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895   if test "$cross_compiling" = yes; then
10896   ac_cv_func_memcmp_working=no
10897 else
10898   cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 $ac_includes_default
10905 int
10906 main ()
10907 {
10908
10909   /* Some versions of memcmp are not 8-bit clean.  */
10910   char c0 = '\100', c1 = '\200', c2 = '\201';
10911   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10912     return 1;
10913
10914   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10915      or more and with at least one buffer not starting on a 4-byte boundary.
10916      William Lewis provided this test program.   */
10917   {
10918     char foo[21];
10919     char bar[21];
10920     int i;
10921     for (i = 0; i < 4; i++)
10922       {
10923         char *a = foo + i;
10924         char *b = bar + i;
10925         strcpy (a, "--------01111111");
10926         strcpy (b, "--------10000000");
10927         if (memcmp (a, b, 16) >= 0)
10928           return 1;
10929       }
10930     return 0;
10931   }
10932
10933   ;
10934   return 0;
10935 }
10936 _ACEOF
10937 rm -f conftest$ac_exeext
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941   *) ac_try_echo=$ac_try;;
10942 esac
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944   (eval "$ac_link") 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10948   { (case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_try") 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; }; then
10957   ac_cv_func_memcmp_working=yes
10958 else
10959   echo "$as_me: program exited with status $ac_status" >&5
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963 ( exit $ac_status )
10964 ac_cv_func_memcmp_working=no
10965 fi
10966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10967 fi
10968
10969
10970 fi
10971 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10972 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10973 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10974   *" memcmp.$ac_objext "* ) ;;
10975   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10976  ;;
10977 esac
10978
10979
10980 if test "x$DMC" != xyes ; then
10981
10982
10983 for ac_header in stdlib.h unistd.h
10984 do
10985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990   echo $ECHO_N "(cached) $ECHO_C" >&6
10991 fi
10992 ac_res=`eval echo '${'$as_ac_Header'}'`
10993                { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10995 else
10996   # Is the header compilable?
10997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10999 cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005 $ac_includes_default
11006 #include <$ac_header>
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_compile") 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } && {
11022          test -z "$ac_c_werror_flag" ||
11023          test ! -s conftest.err
11024        } && test -s conftest.$ac_objext; then
11025   ac_header_compiler=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030         ac_header_compiler=no
11031 fi
11032
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11035 echo "${ECHO_T}$ac_header_compiler" >&6; }
11036
11037 # Is the header present?
11038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 #include <$ac_header>
11047 _ACEOF
11048 if { (ac_try="$ac_cpp conftest.$ac_ext"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } >/dev/null && {
11061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11062          test ! -s conftest.err
11063        }; then
11064   ac_header_preproc=yes
11065 else
11066   echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069   ac_header_preproc=no
11070 fi
11071
11072 rm -f conftest.err conftest.$ac_ext
11073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6; }
11075
11076 # So?  What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11078   yes:no: )
11079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083     ac_header_preproc=yes
11084     ;;
11085   no:yes:* )
11086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098     ( cat <<\_ASBOX
11099 ## ------------------------------- ##
11100 ## Report this to root@mput.dip.jp ##
11101 ## ------------------------------- ##
11102 _ASBOX
11103      ) | sed "s/^/$as_me: WARNING:     /" >&2
11104     ;;
11105 esac
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   eval "$as_ac_Header=\$ac_header_preproc"
11112 fi
11113 ac_res=`eval echo '${'$as_ac_Header'}'`
11114                { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11116
11117 fi
11118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11119   cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11121 _ACEOF
11122
11123 fi
11124
11125 done
11126
11127
11128 for ac_func in getpagesize
11129 do
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11144 #define $ac_func innocuous_$ac_func
11145
11146 /* System header to define __stub macros and hopefully few prototypes,
11147     which can conflict with char $ac_func (); below.
11148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149     <limits.h> exists even on freestanding compilers.  */
11150
11151 #ifdef __STDC__
11152 # include <limits.h>
11153 #else
11154 # include <assert.h>
11155 #endif
11156
11157 #undef $ac_func
11158
11159 /* Override any GCC internal prototype to avoid an error.
11160    Use char because int might match the return type of a GCC
11161    builtin and then its argument prototype would still apply.  */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char $ac_func ();
11166 /* The GNU C library defines this for functions which it implements
11167     to always fail with ENOSYS.  Some functions are actually named
11168     something starting with __ and the normal name is an alias.  */
11169 #if defined __stub_$ac_func || defined __stub___$ac_func
11170 choke me
11171 #endif
11172
11173 int
11174 main ()
11175 {
11176 return $ac_func ();
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (ac_try="$ac_link"
11183 case "(($ac_try" in
11184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185   *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188   (eval "$ac_link") 2>conftest.er1
11189   ac_status=$?
11190   grep -v '^ *+' conftest.er1 >conftest.err
11191   rm -f conftest.er1
11192   cat conftest.err >&5
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } && {
11195          test -z "$ac_c_werror_flag" ||
11196          test ! -s conftest.err
11197        } && test -s conftest$ac_exeext &&
11198        $as_test_x conftest$ac_exeext; then
11199   eval "$as_ac_var=yes"
11200 else
11201   echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204         eval "$as_ac_var=no"
11205 fi
11206
11207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11208       conftest$ac_exeext conftest.$ac_ext
11209 fi
11210 ac_res=`eval echo '${'$as_ac_var'}'`
11211                { echo "$as_me:$LINENO: result: $ac_res" >&5
11212 echo "${ECHO_T}$ac_res" >&6; }
11213 if test `eval echo '${'$as_ac_var'}'` = yes; then
11214   cat >>confdefs.h <<_ACEOF
11215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11216 _ACEOF
11217
11218 fi
11219 done
11220
11221 { echo "$as_me:$LINENO: checking for working mmap" >&5
11222 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11223 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226   if test "$cross_compiling" = yes; then
11227   ac_cv_func_mmap_fixed_mapped=no
11228 else
11229   cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h.  */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h.  */
11235 $ac_includes_default
11236 /* malloc might have been renamed as rpl_malloc. */
11237 #undef malloc
11238
11239 /* Thanks to Mike Haertel and Jim Avera for this test.
11240    Here is a matrix of mmap possibilities:
11241         mmap private not fixed
11242         mmap private fixed at somewhere currently unmapped
11243         mmap private fixed at somewhere already mapped
11244         mmap shared not fixed
11245         mmap shared fixed at somewhere currently unmapped
11246         mmap shared fixed at somewhere already mapped
11247    For private mappings, we should verify that changes cannot be read()
11248    back from the file, nor mmap's back from the file at a different
11249    address.  (There have been systems where private was not correctly
11250    implemented like the infamous i386 svr4.0, and systems where the
11251    VM page cache was not coherent with the file system buffer cache
11252    like early versions of FreeBSD and possibly contemporary NetBSD.)
11253    For shared mappings, we should conversely verify that changes get
11254    propagated back to all the places they're supposed to be.
11255
11256    Grep wants private fixed already mapped.
11257    The main things grep needs to know about mmap are:
11258    * does it exist and is it safe to write into the mmap'd area
11259    * how to use it (BSD variants)  */
11260
11261 #include <fcntl.h>
11262 #include <sys/mman.h>
11263
11264 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11265 char *malloc ();
11266 #endif
11267
11268 /* This mess was copied from the GNU getpagesize.h.  */
11269 #ifndef HAVE_GETPAGESIZE
11270 /* Assume that all systems that can run configure have sys/param.h.  */
11271 # ifndef HAVE_SYS_PARAM_H
11272 #  define HAVE_SYS_PARAM_H 1
11273 # endif
11274
11275 # ifdef _SC_PAGESIZE
11276 #  define getpagesize() sysconf(_SC_PAGESIZE)
11277 # else /* no _SC_PAGESIZE */
11278 #  ifdef HAVE_SYS_PARAM_H
11279 #   include <sys/param.h>
11280 #   ifdef EXEC_PAGESIZE
11281 #    define getpagesize() EXEC_PAGESIZE
11282 #   else /* no EXEC_PAGESIZE */
11283 #    ifdef NBPG
11284 #     define getpagesize() NBPG * CLSIZE
11285 #     ifndef CLSIZE
11286 #      define CLSIZE 1
11287 #     endif /* no CLSIZE */
11288 #    else /* no NBPG */
11289 #     ifdef NBPC
11290 #      define getpagesize() NBPC
11291 #     else /* no NBPC */
11292 #      ifdef PAGESIZE
11293 #       define getpagesize() PAGESIZE
11294 #      endif /* PAGESIZE */
11295 #     endif /* no NBPC */
11296 #    endif /* no NBPG */
11297 #   endif /* no EXEC_PAGESIZE */
11298 #  else /* no HAVE_SYS_PARAM_H */
11299 #   define getpagesize() 8192   /* punt totally */
11300 #  endif /* no HAVE_SYS_PARAM_H */
11301 # endif /* no _SC_PAGESIZE */
11302
11303 #endif /* no HAVE_GETPAGESIZE */
11304
11305 int
11306 main ()
11307 {
11308   char *data, *data2, *data3;
11309   int i, pagesize;
11310   int fd;
11311
11312   pagesize = getpagesize ();
11313
11314   /* First, make a file with some known garbage in it. */
11315   data = (char *) malloc (pagesize);
11316   if (!data)
11317     return 1;
11318   for (i = 0; i < pagesize; ++i)
11319     *(data + i) = rand ();
11320   umask (0);
11321   fd = creat ("conftest.mmap", 0600);
11322   if (fd < 0)
11323     return 1;
11324   if (write (fd, data, pagesize) != pagesize)
11325     return 1;
11326   close (fd);
11327
11328   /* Next, try to mmap the file at a fixed address which already has
11329      something else allocated at it.  If we can, also make sure that
11330      we see the same garbage.  */
11331   fd = open ("conftest.mmap", O_RDWR);
11332   if (fd < 0)
11333     return 1;
11334   data2 = (char *) malloc (2 * pagesize);
11335   if (!data2)
11336     return 1;
11337   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11338   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11339                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
11340     return 1;
11341   for (i = 0; i < pagesize; ++i)
11342     if (*(data + i) != *(data2 + i))
11343       return 1;
11344
11345   /* Finally, make sure that changes to the mapped area do not
11346      percolate back to the file as seen by read().  (This is a bug on
11347      some variants of i386 svr4.0.)  */
11348   for (i = 0; i < pagesize; ++i)
11349     *(data2 + i) = *(data2 + i) + 1;
11350   data3 = (char *) malloc (pagesize);
11351   if (!data3)
11352     return 1;
11353   if (read (fd, data3, pagesize) != pagesize)
11354     return 1;
11355   for (i = 0; i < pagesize; ++i)
11356     if (*(data + i) != *(data3 + i))
11357       return 1;
11358   close (fd);
11359   return 0;
11360 }
11361 _ACEOF
11362 rm -f conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366   *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369   (eval "$ac_link") 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11373   { (case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_try") 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; }; then
11382   ac_cv_func_mmap_fixed_mapped=yes
11383 else
11384   echo "$as_me: program exited with status $ac_status" >&5
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 ( exit $ac_status )
11389 ac_cv_func_mmap_fixed_mapped=no
11390 fi
11391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11392 fi
11393
11394
11395 fi
11396 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11397 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11398 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11399
11400 cat >>confdefs.h <<\_ACEOF
11401 #define HAVE_MMAP 1
11402 _ACEOF
11403
11404 fi
11405 rm -f conftest.mmap
11406
11407 fi
11408 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11409 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
11410 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   ac_cv_func_setvbuf_reversed=no
11414    cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h.  */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h.  */
11420 #include <stdio.h>
11421 #         ifdef PROTOTYPES
11422            int (setvbuf) (FILE *, int, char *, size_t);
11423 #         endif
11424 int
11425 main ()
11426 {
11427 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (ac_try="$ac_link"
11434 case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_link") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } && {
11446          test -z "$ac_c_werror_flag" ||
11447          test ! -s conftest.err
11448        } && test -s conftest$ac_exeext &&
11449        $as_test_x conftest$ac_exeext; then
11450   cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h.  */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h.  */
11456 #include <stdio.h>
11457 #            ifdef PROTOTYPES
11458               int (setvbuf) (FILE *, int, char *, size_t);
11459 #            endif
11460 int
11461 main ()
11462 {
11463 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11464   ;
11465   return 0;
11466 }
11467 _ACEOF
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (ac_try="$ac_link"
11470 case "(($ac_try" in
11471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472   *) ac_try_echo=$ac_try;;
11473 esac
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475   (eval "$ac_link") 2>conftest.er1
11476   ac_status=$?
11477   grep -v '^ *+' conftest.er1 >conftest.err
11478   rm -f conftest.er1
11479   cat conftest.err >&5
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); } && {
11482          test -z "$ac_c_werror_flag" ||
11483          test ! -s conftest.err
11484        } && test -s conftest$ac_exeext &&
11485        $as_test_x conftest$ac_exeext; then
11486   # It compiles and links either way, so it must not be declared
11487          # with a prototype and most likely this is a K&R C compiler.
11488          # Try running it.
11489          if test "$cross_compiling" = yes; then
11490   : # Assume setvbuf is not reversed when cross-compiling.
11491 else
11492   cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498 $ac_includes_default
11499 int
11500 main ()
11501 {
11502 /* This call has the arguments reversed.
11503                    A reversed system may check and see that the address of buf
11504                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
11505                 char buf;
11506                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11507                   return 1;
11508                 putchar ('\r');
11509                 return 0; /* Non-reversed systems SEGV here.  */
11510   ;
11511   return 0;
11512 }
11513 _ACEOF
11514 rm -f conftest$ac_exeext
11515 if { (ac_try="$ac_link"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_link") 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11525   { (case "(($ac_try" in
11526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527   *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530   (eval "$ac_try") 2>&5
11531   ac_status=$?
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); }; }; then
11534   ac_cv_func_setvbuf_reversed=yes
11535 else
11536   echo "$as_me: program exited with status $ac_status" >&5
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540 fi
11541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11542 fi
11543
11544
11545         ac_cv_func_setvbuf_reversed=yes
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550
11551 fi
11552
11553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11554       conftest$ac_exeext conftest.$ac_ext
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559
11560 fi
11561
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563       conftest$ac_exeext conftest.$ac_ext
11564 fi
11565 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11566 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
11567 if test $ac_cv_func_setvbuf_reversed = yes; then
11568
11569 cat >>confdefs.h <<\_ACEOF
11570 #define SETVBUF_REVERSED 1
11571 _ACEOF
11572
11573 fi
11574
11575 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11577 if test "${ac_cv_type_signal+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 #include <sys/types.h>
11587 #include <signal.h>
11588
11589 int
11590 main ()
11591 {
11592 return *(signal (0, 0)) (0) == 1;
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_compile") 2>conftest.er1
11605   ac_status=$?
11606   grep -v '^ *+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } && {
11611          test -z "$ac_c_werror_flag" ||
11612          test ! -s conftest.err
11613        } && test -s conftest.$ac_objext; then
11614   ac_cv_type_signal=int
11615 else
11616   echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619         ac_cv_type_signal=void
11620 fi
11621
11622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623 fi
11624 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11625 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11626
11627 cat >>confdefs.h <<_ACEOF
11628 #define RETSIGTYPE $ac_cv_type_signal
11629 _ACEOF
11630
11631
11632 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
11633
11634 for ac_func in vprintf
11635 do
11636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11650 #define $ac_func innocuous_$ac_func
11651
11652 /* System header to define __stub macros and hopefully few prototypes,
11653     which can conflict with char $ac_func (); below.
11654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655     <limits.h> exists even on freestanding compilers.  */
11656
11657 #ifdef __STDC__
11658 # include <limits.h>
11659 #else
11660 # include <assert.h>
11661 #endif
11662
11663 #undef $ac_func
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666    Use char because int might match the return type of a GCC
11667    builtin and then its argument prototype would still apply.  */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char $ac_func ();
11672 /* The GNU C library defines this for functions which it implements
11673     to always fail with ENOSYS.  Some functions are actually named
11674     something starting with __ and the normal name is an alias.  */
11675 #if defined __stub_$ac_func || defined __stub___$ac_func
11676 choke me
11677 #endif
11678
11679 int
11680 main ()
11681 {
11682 return $ac_func ();
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691   *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694   (eval "$ac_link") 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } && {
11701          test -z "$ac_c_werror_flag" ||
11702          test ! -s conftest.err
11703        } && test -s conftest$ac_exeext &&
11704        $as_test_x conftest$ac_exeext; then
11705   eval "$as_ac_var=yes"
11706 else
11707   echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11709
11710         eval "$as_ac_var=no"
11711 fi
11712
11713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11714       conftest$ac_exeext conftest.$ac_ext
11715 fi
11716 ac_res=`eval echo '${'$as_ac_var'}'`
11717                { echo "$as_me:$LINENO: result: $ac_res" >&5
11718 echo "${ECHO_T}$ac_res" >&6; }
11719 if test `eval echo '${'$as_ac_var'}'` = yes; then
11720   cat >>confdefs.h <<_ACEOF
11721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11722 _ACEOF
11723
11724 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11725 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11726 if test "${ac_cv_func__doprnt+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11737 #define _doprnt innocuous__doprnt
11738
11739 /* System header to define __stub macros and hopefully few prototypes,
11740     which can conflict with char _doprnt (); below.
11741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742     <limits.h> exists even on freestanding compilers.  */
11743
11744 #ifdef __STDC__
11745 # include <limits.h>
11746 #else
11747 # include <assert.h>
11748 #endif
11749
11750 #undef _doprnt
11751
11752 /* Override any GCC internal prototype to avoid an error.
11753    Use char because int might match the return type of a GCC
11754    builtin and then its argument prototype would still apply.  */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 char _doprnt ();
11759 /* The GNU C library defines this for functions which it implements
11760     to always fail with ENOSYS.  Some functions are actually named
11761     something starting with __ and the normal name is an alias.  */
11762 #if defined __stub__doprnt || defined __stub____doprnt
11763 choke me
11764 #endif
11765
11766 int
11767 main ()
11768 {
11769 return _doprnt ();
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (ac_try="$ac_link"
11776 case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_link") 2>conftest.er1
11782   ac_status=$?
11783   grep -v '^ *+' conftest.er1 >conftest.err
11784   rm -f conftest.er1
11785   cat conftest.err >&5
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } && {
11788          test -z "$ac_c_werror_flag" ||
11789          test ! -s conftest.err
11790        } && test -s conftest$ac_exeext &&
11791        $as_test_x conftest$ac_exeext; then
11792   ac_cv_func__doprnt=yes
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797         ac_cv_func__doprnt=no
11798 fi
11799
11800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11801       conftest$ac_exeext conftest.$ac_ext
11802 fi
11803 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11804 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11805 if test $ac_cv_func__doprnt = yes; then
11806
11807 cat >>confdefs.h <<\_ACEOF
11808 #define HAVE_DOPRNT 1
11809 _ACEOF
11810
11811 fi
11812
11813 fi
11814 done
11815
11816
11817 fi
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855 for ac_func in \
11856   alarm \
11857   dup2 \
11858   floor \
11859   getcwd \
11860   gethostbyname \
11861   getopt \
11862   getpid \
11863   gettimeofday \
11864   getwd \
11865   isatty \
11866   memchr \
11867   memmove \
11868   memset \
11869   mkstemp \
11870   modf \
11871   munmap \
11872   popen \
11873   pow \
11874   select \
11875   signal \
11876   socket \
11877   sleep \
11878   vsnprintf \
11879   snprintf \
11880   sqrt \
11881   strchr \
11882   strdup \
11883   strstr \
11884   strerror \
11885   strcasecmp \
11886   strncasecmp \
11887   strrchr \
11888   strstr \
11889   strtol \
11890   strlcat \
11891   strlcpy \
11892   usleep
11893 do
11894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11908 #define $ac_func innocuous_$ac_func
11909
11910 /* System header to define __stub macros and hopefully few prototypes,
11911     which can conflict with char $ac_func (); below.
11912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913     <limits.h> exists even on freestanding compilers.  */
11914
11915 #ifdef __STDC__
11916 # include <limits.h>
11917 #else
11918 # include <assert.h>
11919 #endif
11920
11921 #undef $ac_func
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924    Use char because int might match the return type of a GCC
11925    builtin and then its argument prototype would still apply.  */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char $ac_func ();
11930 /* The GNU C library defines this for functions which it implements
11931     to always fail with ENOSYS.  Some functions are actually named
11932     something starting with __ and the normal name is an alias.  */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11934 choke me
11935 #endif
11936
11937 int
11938 main ()
11939 {
11940 return $ac_func ();
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_link") 2>conftest.er1
11953   ac_status=$?
11954   grep -v '^ *+' conftest.er1 >conftest.err
11955   rm -f conftest.er1
11956   cat conftest.err >&5
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } && {
11959          test -z "$ac_c_werror_flag" ||
11960          test ! -s conftest.err
11961        } && test -s conftest$ac_exeext &&
11962        $as_test_x conftest$ac_exeext; then
11963   eval "$as_ac_var=yes"
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968         eval "$as_ac_var=no"
11969 fi
11970
11971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972       conftest$ac_exeext conftest.$ac_ext
11973 fi
11974 ac_res=`eval echo '${'$as_ac_var'}'`
11975                { echo "$as_me:$LINENO: result: $ac_res" >&5
11976 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978   cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 _ACEOF
11981
11982 fi
11983 done
11984
11985 if test "x$VCPP" = xyes; then
11986   cat >>confdefs.h <<\_ACEOF
11987 #define RETSIGTYPE int
11988 _ACEOF
11989
11990   cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_GETCWD 1
11992 _ACEOF
11993
11994 fi
11995 if test "x$POCC" = xyes; then
11996   cat >>confdefs.h <<\_ACEOF
11997 #define HAVE_GETCWD 1
11998 _ACEOF
11999
12000   cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_GETHOSTBYNAME 1
12002 _ACEOF
12003
12004   cat >>confdefs.h <<\_ACEOF
12005 #define HAVE_POPEN 1
12006 _ACEOF
12007
12008   cat >>confdefs.h <<\_ACEOF
12009 #define HAVE_SELECT 1
12010 _ACEOF
12011
12012   cat >>confdefs.h <<\_ACEOF
12013 #define HAVE_SNPRINTF 1
12014 _ACEOF
12015
12016   cat >>confdefs.h <<\_ACEOF
12017 #define HAVE_STRDUP 1
12018 _ACEOF
12019
12020   cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_STRERROR 1
12022 _ACEOF
12023
12024   cat >>confdefs.h <<\_ACEOF
12025 #define HAVE_STRCASECMP 1
12026 _ACEOF
12027
12028   cat >>confdefs.h <<\_ACEOF
12029 #define HAVE_STRSTR 1
12030 _ACEOF
12031
12032   cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_SOCKET 1
12034 _ACEOF
12035
12036   cat >>confdefs.h <<\_ACEOF
12037 #define HAVE_VSNPRINTF 1
12038 _ACEOF
12039
12040   cat >>confdefs.h <<\_ACEOF
12041 #define HAVE_GETOPT 1
12042 _ACEOF
12043
12044
12045 cat >>confdefs.h <<\_ACEOF
12046 #define TIMID_VERSION $(PACKAGE_VERSION)
12047 _ACEOF
12048
12049 fi
12050 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
12051   cat >>confdefs.h <<\_ACEOF
12052 #define HAVE_GETHOSTBYNAME 1
12053 _ACEOF
12054
12055   cat >>confdefs.h <<\_ACEOF
12056 #define HAVE_POPEN 1
12057 _ACEOF
12058
12059
12060 cat >>confdefs.h <<\_ACEOF
12061 #define popen _popen
12062 _ACEOF
12063
12064
12065 cat >>confdefs.h <<\_ACEOF
12066 #define pclose _pclose
12067 _ACEOF
12068
12069   cat >>confdefs.h <<\_ACEOF
12070 #define HAVE_SELECT 1
12071 _ACEOF
12072
12073   cat >>confdefs.h <<\_ACEOF
12074 #define HAVE_SNPRINTF 1
12075 _ACEOF
12076
12077   cat >>confdefs.h <<\_ACEOF
12078 #define HAVE_STRDUP 1
12079 _ACEOF
12080
12081   cat >>confdefs.h <<\_ACEOF
12082 #define HAVE_STRERROR 1
12083 _ACEOF
12084
12085   cat >>confdefs.h <<\_ACEOF
12086 #define HAVE_STRNCASECMP 1
12087 _ACEOF
12088
12089   cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_STRSTR 1
12091 _ACEOF
12092
12093
12094 cat >>confdefs.h <<\_ACEOF
12095 #define snprintf _snprintf
12096 _ACEOF
12097
12098   cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_SOCKET 1
12100 _ACEOF
12101
12102   cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_VSNPRINTF 1
12104 _ACEOF
12105
12106
12107 cat >>confdefs.h <<\_ACEOF
12108 #define TIMID_VERSION $(PACKAGE_VERSION)
12109 _ACEOF
12110
12111 fi
12112
12113 { echo "$as_me:$LINENO: checking for getopt_long" >&5
12114 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
12115 if test "${ac_cv_func_getopt_long+set}" = set; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
12125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12126 #define getopt_long innocuous_getopt_long
12127
12128 /* System header to define __stub macros and hopefully few prototypes,
12129     which can conflict with char getopt_long (); below.
12130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131     <limits.h> exists even on freestanding compilers.  */
12132
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138
12139 #undef getopt_long
12140
12141 /* Override any GCC internal prototype to avoid an error.
12142    Use char because int might match the return type of a GCC
12143    builtin and then its argument prototype would still apply.  */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 char getopt_long ();
12148 /* The GNU C library defines this for functions which it implements
12149     to always fail with ENOSYS.  Some functions are actually named
12150     something starting with __ and the normal name is an alias.  */
12151 #if defined __stub_getopt_long || defined __stub___getopt_long
12152 choke me
12153 #endif
12154
12155 int
12156 main ()
12157 {
12158 return getopt_long ();
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170   (eval "$ac_link") 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } && {
12177          test -z "$ac_c_werror_flag" ||
12178          test ! -s conftest.err
12179        } && test -s conftest$ac_exeext &&
12180        $as_test_x conftest$ac_exeext; then
12181   ac_cv_func_getopt_long=yes
12182 else
12183   echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186         ac_cv_func_getopt_long=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12190       conftest$ac_exeext conftest.$ac_ext
12191 fi
12192 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
12193 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
12194 if test $ac_cv_func_getopt_long = yes; then
12195
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_GETOPT_LONG 1
12198 _ACEOF
12199
12200          tm_cv_needgetopt="no"
12201 else
12202   tm_cv_needgetopt="yes"
12203 fi
12204
12205
12206
12207 if test "x$tm_cv_needgetopt" = "xyes"; then
12208   NEEDGETOPT_TRUE=
12209   NEEDGETOPT_FALSE='#'
12210 else
12211   NEEDGETOPT_TRUE='#'
12212   NEEDGETOPT_FALSE=
12213 fi
12214
12215
12216 { echo "$as_me:$LINENO: checking for open_memstream" >&5
12217 echo $ECHO_N "checking for open_memstream... $ECHO_C" >&6; }
12218 if test "${ac_cv_func_open_memstream+set}" = set; then
12219   echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221   cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227 /* Define open_memstream to an innocuous variant, in case <limits.h> declares open_memstream.
12228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12229 #define open_memstream innocuous_open_memstream
12230
12231 /* System header to define __stub macros and hopefully few prototypes,
12232     which can conflict with char open_memstream (); below.
12233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234     <limits.h> exists even on freestanding compilers.  */
12235
12236 #ifdef __STDC__
12237 # include <limits.h>
12238 #else
12239 # include <assert.h>
12240 #endif
12241
12242 #undef open_memstream
12243
12244 /* Override any GCC internal prototype to avoid an error.
12245    Use char because int might match the return type of a GCC
12246    builtin and then its argument prototype would still apply.  */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char open_memstream ();
12251 /* The GNU C library defines this for functions which it implements
12252     to always fail with ENOSYS.  Some functions are actually named
12253     something starting with __ and the normal name is an alias.  */
12254 #if defined __stub_open_memstream || defined __stub___open_memstream
12255 choke me
12256 #endif
12257
12258 int
12259 main ()
12260 {
12261 return open_memstream ();
12262   ;
12263   return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_link") 2>conftest.er1
12274   ac_status=$?
12275   grep -v '^ *+' conftest.er1 >conftest.err
12276   rm -f conftest.er1
12277   cat conftest.err >&5
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } && {
12280          test -z "$ac_c_werror_flag" ||
12281          test ! -s conftest.err
12282        } && test -s conftest$ac_exeext &&
12283        $as_test_x conftest$ac_exeext; then
12284   ac_cv_func_open_memstream=yes
12285 else
12286   echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289         ac_cv_func_open_memstream=no
12290 fi
12291
12292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293       conftest$ac_exeext conftest.$ac_ext
12294 fi
12295 { echo "$as_me:$LINENO: result: $ac_cv_func_open_memstream" >&5
12296 echo "${ECHO_T}$ac_cv_func_open_memstream" >&6; }
12297 if test $ac_cv_func_open_memstream = yes; then
12298
12299
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_OPEN_MEMSTREAM 1
12302 _ACEOF
12303
12304
12305 fi
12306
12307
12308
12309 { echo "$as_me:$LINENO: checking for an implementation of va_copy()" >&5
12310 echo $ECHO_N "checking for an implementation of va_copy()... $ECHO_C" >&6; }
12311 if test "${lib_cv_va_copy+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314
12315         if test "$cross_compiling" = yes; then
12316   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12317 See \`config.log' for more details." >&5
12318 echo "$as_me: error: cannot run test program while cross compiling
12319 See \`config.log' for more details." >&2;}
12320    { (exit 1); exit 1; }; }
12321 else
12322   cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328
12329         #include <stdarg.h>
12330         void f (int i, ...) {
12331         va_list args1, args2;
12332         va_start (args1, i);
12333         va_copy (args2, args1);
12334         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
12335           exit (1);
12336         va_end (args1); va_end (args2);
12337         }
12338         int main() {
12339           f (0, 42);
12340           return 0;
12341         }
12342 _ACEOF
12343 rm -f conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_link") 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12354   { (case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_try") 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   lib_cv_va_copy=yes
12364 else
12365   echo "$as_me: program exited with status $ac_status" >&5
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ( exit $ac_status )
12370 lib_cv_va_copy=no
12371 fi
12372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12373 fi
12374
12375
12376
12377 fi
12378 { echo "$as_me:$LINENO: result: $lib_cv_va_copy" >&5
12379 echo "${ECHO_T}$lib_cv_va_copy" >&6; }
12380
12381 { echo "$as_me:$LINENO: checking for an implementation of __va_copy()" >&5
12382 echo $ECHO_N "checking for an implementation of __va_copy()... $ECHO_C" >&6; }
12383 if test "${lib_cv___va_copy+set}" = set; then
12384   echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386
12387         if test "$cross_compiling" = yes; then
12388   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12389 See \`config.log' for more details." >&5
12390 echo "$as_me: error: cannot run test program while cross compiling
12391 See \`config.log' for more details." >&2;}
12392    { (exit 1); exit 1; }; }
12393 else
12394   cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400
12401         #include <stdarg.h>
12402         void f (int i, ...) {
12403         va_list args1, args2;
12404         va_start (args1, i);
12405         __va_copy (args2, args1);
12406         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
12407           exit (1);
12408         va_end (args1); va_end (args2);
12409         }
12410         int main() {
12411           f (0, 42);
12412           return 0;
12413         }
12414 _ACEOF
12415 rm -f conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419   *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422   (eval "$ac_link") 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   lib_cv___va_copy=yes
12436 else
12437   echo "$as_me: program exited with status $ac_status" >&5
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ( exit $ac_status )
12442 lib_cv___va_copy=no
12443 fi
12444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12445 fi
12446
12447
12448
12449 fi
12450 { echo "$as_me:$LINENO: result: $lib_cv___va_copy" >&5
12451 echo "${ECHO_T}$lib_cv___va_copy" >&6; }
12452
12453 if test "x$lib_cv_va_copy" = "xyes"; then
12454   va_copy_func=va_copy
12455 else if test "x$lib_cv___va_copy" = "xyes"; then
12456   va_copy_func=__va_copy
12457 fi
12458 fi
12459
12460 if test -n "$va_copy_func"; then
12461
12462 cat >>confdefs.h <<_ACEOF
12463 #define VA_COPY $va_copy_func
12464 _ACEOF
12465
12466 fi
12467
12468 { echo "$as_me:$LINENO: checking whether va_lists can be copied by value" >&5
12469 echo $ECHO_N "checking whether va_lists can be copied by value... $ECHO_C" >&6; }
12470 if test "${lib_cv_va_val_copy+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473
12474         if test "$cross_compiling" = yes; then
12475   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12476 See \`config.log' for more details." >&5
12477 echo "$as_me: error: cannot run test program while cross compiling
12478 See \`config.log' for more details." >&2;}
12479    { (exit 1); exit 1; }; }
12480 else
12481   cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487
12488         #include <stdarg.h>
12489         void f (int i, ...) {
12490         va_list args1, args2;
12491         va_start (args1, i);
12492         args2 = args1;
12493         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
12494           exit (1);
12495         va_end (args1); va_end (args2);
12496         }
12497         int main() {
12498           f (0, 42);
12499           return 0;
12500         }
12501 _ACEOF
12502 rm -f conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506   *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509   (eval "$ac_link") 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513   { (case "(($ac_try" in
12514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515   *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518   (eval "$ac_try") 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; }; then
12522   lib_cv_va_val_copy=yes
12523 else
12524   echo "$as_me: program exited with status $ac_status" >&5
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12527
12528 ( exit $ac_status )
12529 lib_cv_va_val_copy=no
12530 fi
12531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12532 fi
12533
12534
12535
12536 fi
12537 { echo "$as_me:$LINENO: result: $lib_cv_va_val_copy" >&5
12538 echo "${ECHO_T}$lib_cv_va_val_copy" >&6; }
12539
12540 if test "x$lib_cv_va_val_copy" = "xno"; then
12541
12542 cat >>confdefs.h <<\_ACEOF
12543 #define VA_COPY_AS_ARRAY 1
12544 _ACEOF
12545
12546 fi
12547
12548 # Checks on cygnus and MSYS
12549 if test "x$MSYS" = xyes ; then
12550   case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
12551   *yes*)
12552     { echo "$as_me:$LINENO: checking for opendir" >&5
12553 echo $ECHO_N "checking for opendir... $ECHO_C" >&6; }
12554 if test "${ac_cv_func_opendir+set}" = set; then
12555   echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557   cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
12564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12565 #define opendir innocuous_opendir
12566
12567 /* System header to define __stub macros and hopefully few prototypes,
12568     which can conflict with char opendir (); below.
12569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12570     <limits.h> exists even on freestanding compilers.  */
12571
12572 #ifdef __STDC__
12573 # include <limits.h>
12574 #else
12575 # include <assert.h>
12576 #endif
12577
12578 #undef opendir
12579
12580 /* Override any GCC internal prototype to avoid an error.
12581    Use char because int might match the return type of a GCC
12582    builtin and then its argument prototype would still apply.  */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char opendir ();
12587 /* The GNU C library defines this for functions which it implements
12588     to always fail with ENOSYS.  Some functions are actually named
12589     something starting with __ and the normal name is an alias.  */
12590 #if defined __stub_opendir || defined __stub___opendir
12591 choke me
12592 #endif
12593
12594 int
12595 main ()
12596 {
12597 return opendir ();
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606   *) ac_try_echo=$ac_try;;
12607 esac
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609   (eval "$ac_link") 2>conftest.er1
12610   ac_status=$?
12611   grep -v '^ *+' conftest.er1 >conftest.err
12612   rm -f conftest.er1
12613   cat conftest.err >&5
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } && {
12616          test -z "$ac_c_werror_flag" ||
12617          test ! -s conftest.err
12618        } && test -s conftest$ac_exeext &&
12619        $as_test_x conftest$ac_exeext; then
12620   ac_cv_func_opendir=yes
12621 else
12622   echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625         ac_cv_func_opendir=no
12626 fi
12627
12628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12629       conftest$ac_exeext conftest.$ac_ext
12630 fi
12631 { echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
12632 echo "${ECHO_T}$ac_cv_func_opendir" >&6; }
12633 if test $ac_cv_func_opendir = yes; then
12634   :
12635 else
12636    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
12637     W32READDIR=yes
12638 fi
12639
12640     ;;
12641   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
12642     W32READDIR=yes
12643     ;;
12644   esac
12645   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
12646     EXTRALIBS="$EXTRALIBS  wsock32.lib"
12647     EXTRADEFS="$EXTRADEFS -DWINSOCK"
12648   else
12649     { echo "$as_me:$LINENO: checking for socket" >&5
12650 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
12651 if test "${ac_cv_func_socket+set}" = set; then
12652   echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654   cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h.  */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h.  */
12660 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
12661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12662 #define socket innocuous_socket
12663
12664 /* System header to define __stub macros and hopefully few prototypes,
12665     which can conflict with char socket (); below.
12666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667     <limits.h> exists even on freestanding compilers.  */
12668
12669 #ifdef __STDC__
12670 # include <limits.h>
12671 #else
12672 # include <assert.h>
12673 #endif
12674
12675 #undef socket
12676
12677 /* Override any GCC internal prototype to avoid an error.
12678    Use char because int might match the return type of a GCC
12679    builtin and then its argument prototype would still apply.  */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
12683 char socket ();
12684 /* The GNU C library defines this for functions which it implements
12685     to always fail with ENOSYS.  Some functions are actually named
12686     something starting with __ and the normal name is an alias.  */
12687 #if defined __stub_socket || defined __stub___socket
12688 choke me
12689 #endif
12690
12691 int
12692 main ()
12693 {
12694 return socket ();
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (ac_try="$ac_link"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_link") 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } && {
12713          test -z "$ac_c_werror_flag" ||
12714          test ! -s conftest.err
12715        } && test -s conftest$ac_exeext &&
12716        $as_test_x conftest$ac_exeext; then
12717   ac_cv_func_socket=yes
12718 else
12719   echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12721
12722         ac_cv_func_socket=no
12723 fi
12724
12725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12726       conftest$ac_exeext conftest.$ac_ext
12727 fi
12728 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
12729 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
12730 if test $ac_cv_func_socket = yes; then
12731   :
12732 else
12733   { echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
12734 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6; }
12735 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
12736 if { as_var=wapi_cv_lib_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   ac_save_LIBS="$LIBS"
12740 LIBS="-lwsock32  $LIBS"
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h.  */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h.  */
12747 #include <windows.h>
12748 #include <winsock.h>
12749
12750 int
12751 main ()
12752 {
12753 WSAStartup(0,0);
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762   *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765   (eval "$ac_link") 2>conftest.er1
12766   ac_status=$?
12767   grep -v '^ *+' conftest.er1 >conftest.err
12768   rm -f conftest.er1
12769   cat conftest.err >&5
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } && {
12772          test -z "$ac_c_werror_flag" ||
12773          test ! -s conftest.err
12774        } && test -s conftest$ac_exeext &&
12775        $as_test_x conftest$ac_exeext; then
12776   eval "wapi_cv_lib_$ac_lib_var=yes"
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781         eval "wapi_cv_lib_$ac_lib_var=no"
12782 fi
12783
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785       conftest$ac_exeext conftest.$ac_ext
12786 LIBS="$ac_save_LIBS"
12787
12788 fi
12789 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
12790   { echo "$as_me:$LINENO: result: yes" >&5
12791 echo "${ECHO_T}yes" >&6; }
12792    EXTRALIBS="$EXTRALIBS -lwsock32"
12793         EXTRADEFS="$EXTRADEFS -DWINSOCK"
12794
12795 else
12796   { echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6; }
12798 fi
12799
12800
12801 fi
12802
12803   fi
12804 fi
12805
12806 # Checks on extra paths
12807
12808
12809 # Check whether --with-tcl-includes was given.
12810 if test "${with_tcl_includes+set}" = set; then
12811   withval=$with_tcl_includes;  if test ! -d $withval; then
12812       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12813 echo "$as_me: WARNING: $withval is not found." >&2;}
12814     fi
12815     tcl_include_dir="-I$withval"
12816
12817 fi
12818
12819
12820 # Check whether --with-tcl-libs was given.
12821 if test "${with_tcl_libs+set}" = set; then
12822   withval=$with_tcl_libs;  if test ! -d $withval; then
12823       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12824 echo "$as_me: WARNING: $withval is not found." >&2;}
12825     fi
12826     tcl_libdir="-L$withval"
12827 fi
12828
12829
12830 # Check whether --with-tk-includes was given.
12831 if test "${with_tk_includes+set}" = set; then
12832   withval=$with_tk_includes;  if test ! -d $withval; then
12833       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12834 echo "$as_me: WARNING: $withval is not found." >&2;}
12835     fi
12836     tk_includes="-I$withval"
12837 fi
12838
12839
12840 # Check whether --with-tk-libs was given.
12841 if test "${with_tk_libs+set}" = set; then
12842   withval=$with_tk_libs;  if test ! -d $withval; then
12843       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12844 echo "$as_me: WARNING: $withval is not found." >&2;}
12845     fi
12846     tk_libdir="-L$withval"
12847 fi
12848
12849
12850
12851 # Check whether --with-offix-includes was given.
12852 if test "${with_offix_includes+set}" = set; then
12853   withval=$with_offix_includes;  if test ! -d $withval; then
12854       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12855 echo "$as_me: WARNING: $withval is not found." >&2;}
12856     fi
12857     offix_include_dir="-I$withval"
12858 fi
12859
12860
12861 # Check whether --with-offix-libs was given.
12862 if test "${with_offix_libs+set}" = set; then
12863   withval=$with_offix_libs;  if test ! -d $withval; then
12864       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
12865 echo "$as_me: WARNING: $withval is not found." >&2;}
12866     fi
12867     offix_lib_dir="-L$withval"
12868 fi
12869
12870
12871
12872 #
12873 # audio section
12874 #
12875
12876 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio npipe jack ao'
12877
12878
12879 # Check whether --with-nas-library was given.
12880 if test "${with_nas_library+set}" = set; then
12881   withval=$with_nas_library;
12882 fi
12883
12884
12885 # Check whether --with-nas-includes was given.
12886 if test "${with_nas_includes+set}" = set; then
12887   withval=$with_nas_includes;
12888 fi
12889
12890
12891
12892 # Check whether --enable-audio was given.
12893 if test "${enable_audio+set}" = set; then
12894   enableval=$enable_audio;  enable_audio=$enableval
12895     have_audio_opt=yes
12896 else
12897    enable_audio=yes
12898     have_audio_opt=no
12899 fi
12900
12901
12902 test "x$enable_audio" = xyes && enable_audio=default
12903
12904 if test "x$enable_audio" != xno; then
12905   for i in `echo $enable_audio | sed 's/,/ /g'`; do
12906     eval "au_enable_$i=yes"
12907   done
12908 fi
12909
12910 DEFAULT_PLAYMODE=
12911
12912 # Check whether --with-default-output was given.
12913 if test "${with_default_output+set}" = set; then
12914   withval=$with_default_output;  if test "$enable_audio" != no; then
12915     DEFAULT_PLAYMODE=$withval
12916     eval "au_enable_$DEFAULT_PLAYMODE=yes"
12917   else
12918     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
12919 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
12920   fi
12921 fi
12922
12923
12924
12925 if test "x$au_enable_default" = xyes; then
12926   case "$target" in
12927   *-*-linux*|*-*-freebsd*)
12928     au_enable_oss=yes
12929     ;;
12930   *-*-bsdi2.0)
12931     au_enable_sb_dsp=yes
12932     ;;
12933   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
12934     au_enable_oss=yes
12935     ;;
12936   *-*-hpux*)
12937     au_enable_hpux=yes
12938     ;;
12939   *-dec-*)
12940     au_enable_mme=yes
12941     ;;
12942   *irix*)
12943     au_enable_irix=yes
12944     ;;
12945   *-*-sunos4*)
12946     au_enable_sun=yes
12947     ;;
12948   *-*-solaris*)
12949     au_enable_sun=yes
12950     ;;
12951   *-*-netbsd*)
12952     au_enable_sun=yes
12953     ;;
12954   *-*-openbsd*)
12955     au_enable_sun=yes
12956     ;;
12957   *-*-cygwin*)
12958     au_enable_w32=yes
12959     ;;
12960   *-*-mingw*)
12961     au_enable_w32=yes
12962     ;;
12963   *-*-darwin*)
12964     au_enable_darwin=yes
12965     ;;
12966   *)
12967     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
12968 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
12969     ;;
12970   esac
12971 fi
12972
12973
12974 # Each audio mode's configurations
12975 { echo "$as_me:$LINENO: checking enable_audio=oss" >&5
12976 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6; }
12977 if test "x$au_enable_oss" = xyes; then
12978   EXTRADEFS="$EXTRADEFS -DAU_OSS"
12979   SYSEXTRAS="$SYSEXTRAS oss_a.c"
12980   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
12981     { echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
12982 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6; }
12983   else
12984     case "$target" in
12985       *linux*|*freebsd*)
12986                 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12988         ;;
12989       *)
12990         if test "x$ac_cv_header_soundcard_h" = xyes; then
12991           { echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
12992 echo "${ECHO_T}yes - <soundcard.h>" >&6; }
12993         else
12994           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
12995 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
12996         fi
12997         ;;
12998     esac
12999   fi
13000
13001 { echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
13002 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6; }
13003 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
13004   echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006   ac_check_lib_save_LIBS=$LIBS
13007 LIBS="-lossaudio  $LIBS"
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014
13015 /* Override any GCC internal prototype to avoid an error.
13016    Use char because int might match the return type of a GCC
13017    builtin and then its argument prototype would still apply.  */
13018 #ifdef __cplusplus
13019 extern "C"
13020 #endif
13021 char open ();
13022 int
13023 main ()
13024 {
13025 return open ();
13026   ;
13027   return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest.$ac_objext conftest$ac_exeext
13031 if { (ac_try="$ac_link"
13032 case "(($ac_try" in
13033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034   *) ac_try_echo=$ac_try;;
13035 esac
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037   (eval "$ac_link") 2>conftest.er1
13038   ac_status=$?
13039   grep -v '^ *+' conftest.er1 >conftest.err
13040   rm -f conftest.er1
13041   cat conftest.err >&5
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); } && {
13044          test -z "$ac_c_werror_flag" ||
13045          test ! -s conftest.err
13046        } && test -s conftest$ac_exeext &&
13047        $as_test_x conftest$ac_exeext; then
13048   ac_cv_lib_ossaudio_open=yes
13049 else
13050   echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053         ac_cv_lib_ossaudio_open=no
13054 fi
13055
13056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13057       conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13059 fi
13060 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
13061 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6; }
13062 if test $ac_cv_lib_ossaudio_open = yes; then
13063   cat >>confdefs.h <<_ACEOF
13064 #define HAVE_LIBOSSAUDIO 1
13065 _ACEOF
13066
13067   LIBS="-lossaudio $LIBS"
13068
13069 fi
13070
13071
13072     case "$target" in
13073     *openbsd*)
13074       if test ! -e "/dev/dsp"; then
13075         oss_device=/dev/audio
13076       fi
13077       ;;
13078   esac
13079 else
13080   { echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6; }
13082 fi
13083
13084 { echo "$as_me:$LINENO: checking enable_audio=sun" >&5
13085 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6; }
13086 if test "x$au_enable_sun" = xyes; then
13087   case "$target" in
13088     *-*-sunos4*)
13089       if test -f /usr/demo/SOUND/libaudio.a; then
13090         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
13091         { echo "$as_me:$LINENO: result: yes" >&5
13092 echo "${ECHO_T}yes" >&6; }
13093       else
13094         { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
13095 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
13096       fi
13097       ;;
13098     *-*-solaris*)
13099       if test -f /usr/demo/SOUND/lib/libaudio.a; then
13100         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
13101         { echo "$as_me:$LINENO: result: yes" >&5
13102 echo "${ECHO_T}yes" >&6; }
13103       else
13104         { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
13105 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
13106       fi
13107       ;;
13108     *)   { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13110       ;;
13111   esac
13112   EXTRADEFS="$EXTRADEFS -DAU_SUN"
13113   SYSEXTRAS="$SYSEXTRAS sun_a.c"
13114 else
13115   { echo "$as_me:$LINENO: result: no" >&5
13116 echo "${ECHO_T}no" >&6; }
13117 fi
13118
13119 { echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
13120 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6; }
13121 if test "x$au_enable_hpux" = xyes; then
13122   case "$target" in
13123     *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
13124 echo "${ECHO_T}yes" >&6; } ;;
13125     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13126 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13127   esac
13128   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
13129   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
13130 else
13131   { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13133 fi
13134
13135 { echo "$as_me:$LINENO: checking enable_audio=irix" >&5
13136 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6; }
13137 if test "x$au_enable_irix" = xyes; then
13138   case "$target" in
13139     *-sgi-irix5*|*-sgi-irix6.2)
13140       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
13141       { echo "$as_me:$LINENO: result: yes" >&5
13142 echo "${ECHO_T}yes" >&6; }
13143       ;;
13144     *-sgi-irix6*)
13145       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
13146       { echo "$as_me:$LINENO: result: yes" >&5
13147 echo "${ECHO_T}yes" >&6; }
13148       ;;
13149     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13150 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13151   esac
13152   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
13153   EXTRALIBS="$EXTRASLIBS -laudio"
13154 else
13155   { echo "$as_me:$LINENO: result: no" >&5
13156 echo "${ECHO_T}no" >&6; }
13157 fi
13158
13159 { echo "$as_me:$LINENO: checking enable_audio=mme" >&5
13160 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6; }
13161 if test "x$au_enable_mme" = xyes; then
13162   case "$target" in
13163     *-dec-*) { echo "$as_me:$LINENO: result: yes" >&5
13164 echo "${ECHO_T}yes" >&6; } ;;
13165     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13166 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13167   esac
13168   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
13169   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
13170   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
13171   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
13172 else
13173   { echo "$as_me:$LINENO: result: no" >&5
13174 echo "${ECHO_T}no" >&6; }
13175 fi
13176
13177 { echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
13178 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6; }
13179 if test "x$au_enable_sb_dsp" = xyes; then
13180   case "$target" in
13181     *-*-bsdi2.0) { echo "$as_me:$LINENO: result: yes" >&5
13182 echo "${ECHO_T}yes" >&6; } ;;
13183     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13184 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13185   esac
13186   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
13187   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
13188 else
13189   { echo "$as_me:$LINENO: result: no" >&5
13190 echo "${ECHO_T}no" >&6; }
13191 fi
13192
13193 { echo "$as_me:$LINENO: checking enable_audio=w32" >&5
13194 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6; }
13195 if test "x$au_enable_w32" = xyes; then
13196   case "$target" in
13197     *-*-cygwin*)
13198      { echo "$as_me:$LINENO: result: yes" >&5
13199 echo "${ECHO_T}yes" >&6; }
13200      ;;
13201     *-*-mingw32)
13202      { echo "$as_me:$LINENO: result: yes" >&5
13203 echo "${ECHO_T}yes" >&6; }
13204      ;;
13205     *)
13206      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13207 echo "$as_me: WARNING: may not work on $target" >&2;}
13208      ;;
13209   esac
13210   SYSEXTRAS="$SYSEXTRAS w32_a.c"
13211   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
13212         EXTRALIBS="$EXTRALIBS winmm.lib"
13213   else
13214     EXTRALIBS="$EXTRALIBS -lwinmm"
13215   fi
13216   EXTRADEFS="$EXTRADEFS -DAU_W32"
13217 else
13218   { echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6; }
13220 fi
13221
13222 { echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
13223 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6; }
13224 if test "x$au_enable_darwin" = xyes; then
13225   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
13226   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
13227   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
13228     case "$target" in
13229     *-*-darwin*)
13230      { echo "$as_me:$LINENO: result: yes" >&5
13231 echo "${ECHO_T}yes" >&6; };;
13232    *)
13233      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13234 echo "$as_me: WARNING: may not work on $target" >&2;}
13235      ;;
13236   esac
13237 else
13238   { echo "$as_me:$LINENO: result: no" >&5
13239 echo "${ECHO_T}no" >&6; }
13240 fi
13241
13242
13243 { echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
13244 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6; }
13245 if test "x$au_enable_alsa" = xyes; then
13246   { echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
13247 echo "${ECHO_T}yes, configuring alsa" >&6; }
13248   KEEPCFLAGS=$CFLAGS
13249   KEEPLIBS=$LIBS
13250   KEEPLDFLAGS=$LDFLAGS
13251   alsa_save_CFLAGS="$CFLAGS"
13252 alsa_save_LDFLAGS="$LDFLAGS"
13253 alsa_save_LIBS="$LIBS"
13254 alsa_found=yes
13255
13256
13257 # Check whether --with-alsa-prefix was given.
13258 if test "${with_alsa_prefix+set}" = set; then
13259   withval=$with_alsa_prefix; alsa_prefix="$withval"
13260 else
13261   alsa_prefix=""
13262 fi
13263
13264
13265
13266 # Check whether --with-alsa-inc-prefix was given.
13267 if test "${with_alsa_inc_prefix+set}" = set; then
13268   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
13269 else
13270   alsa_inc_prefix=""
13271 fi
13272
13273
13274 # Check whether --enable-alsatest was given.
13275 if test "${enable_alsatest+set}" = set; then
13276   enableval=$enable_alsatest; enable_alsatest=no
13277 else
13278   enable_alsatest=yes
13279 fi
13280
13281
13282 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
13283 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
13284 if test "$alsa_inc_prefix" != "" ; then
13285         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
13286         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
13287 fi
13288 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
13289 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
13290
13291 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
13292 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
13293 if test "$alsa_prefix" != "" ; then
13294         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
13295         LDFLAGS="$LDFLAGS $ALSA_LIBS"
13296 fi
13297
13298 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
13299 LIBS=`echo $LIBS | sed 's/-lm//'`
13300 LIBS=`echo $LIBS | sed 's/-ldl//'`
13301 LIBS=`echo $LIBS | sed 's/-lpthread//'`
13302 LIBS=`echo $LIBS | sed 's/  //'`
13303 LIBS="$ALSA_LIBS $LIBS"
13304 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
13305 echo "${ECHO_T}$ALSA_LIBS" >&6; }
13306
13307 min_alsa_version=0.1.1
13308 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
13309 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
13310 no_alsa=""
13311     alsa_min_major_version=`echo $min_alsa_version | \
13312            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13313     alsa_min_minor_version=`echo $min_alsa_version | \
13314            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13315     alsa_min_micro_version=`echo $min_alsa_version | \
13316            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13317
13318
13319
13320 ac_ext=c
13321 ac_cpp='$CPP $CPPFLAGS'
13322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13325
13326 cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332
13333 #include <alsa/asoundlib.h>
13334
13335 int
13336 main ()
13337 {
13338
13339 /* ensure backward compatibility */
13340 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
13341 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
13342 #endif
13343 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
13344 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
13345 #endif
13346 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
13347 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
13348 #endif
13349
13350 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
13351   exit(0);
13352 #  else
13353 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
13354 #       error not present
13355 #    endif
13356
13357 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
13358   exit(0);
13359 #   else
13360 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
13361 #          error not present
13362 #      endif
13363
13364 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
13365 #        error not present
13366 #      endif
13367 #    endif
13368 #  endif
13369 exit(0);
13370
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext
13376 if { (ac_try="$ac_compile"
13377 case "(($ac_try" in
13378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379   *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382   (eval "$ac_compile") 2>conftest.er1
13383   ac_status=$?
13384   grep -v '^ *+' conftest.er1 >conftest.err
13385   rm -f conftest.er1
13386   cat conftest.err >&5
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); } && {
13389          test -z "$ac_c_werror_flag" ||
13390          test ! -s conftest.err
13391        } && test -s conftest.$ac_objext; then
13392   { echo "$as_me:$LINENO: result: found." >&5
13393 echo "${ECHO_T}found." >&6; }
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398         cat >conftest.$ac_ext <<_ACEOF
13399 /* confdefs.h.  */
13400 _ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h.  */
13404
13405 #include <sys/asoundlib.h>
13406
13407 int
13408 main ()
13409 {
13410
13411 /* ensure backward compatibility */
13412 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
13413 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
13414 #endif
13415 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
13416 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
13417 #endif
13418 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
13419 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
13420 #endif
13421
13422 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
13423   exit(0);
13424 #  else
13425 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
13426 #       error not present
13427 #    endif
13428
13429 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
13430   exit(0);
13431 #   else
13432 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
13433 #          error not present
13434 #      endif
13435
13436 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
13437 #        error not present
13438 #      endif
13439 #    endif
13440 #  endif
13441 exit(0);
13442
13443   ;
13444   return 0;
13445 }
13446 _ACEOF
13447 rm -f conftest.$ac_objext
13448 if { (ac_try="$ac_compile"
13449 case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_compile") 2>conftest.er1
13455   ac_status=$?
13456   grep -v '^ *+' conftest.er1 >conftest.err
13457   rm -f conftest.er1
13458   cat conftest.err >&5
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } && {
13461          test -z "$ac_c_werror_flag" ||
13462          test ! -s conftest.err
13463        } && test -s conftest.$ac_objext; then
13464   { echo "$as_me:$LINENO: result: found." >&5
13465 echo "${ECHO_T}found." >&6; }
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470         { echo "$as_me:$LINENO: result: not present." >&5
13471 echo "${ECHO_T}not present." >&6; }
13472    { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
13473 echo "${ECHO_T}libasound was not found anywhere." >&6; }
13474    alsa_found=no
13475 fi
13476
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478    { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
13479 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
13480
13481 fi
13482
13483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13484 ac_ext=c
13485 ac_cpp='$CPP $CPPFLAGS'
13486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13489
13490
13491
13492 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
13493 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
13494 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
13495   echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497   ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lasound  $LIBS"
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505
13506 /* Override any GCC internal prototype to avoid an error.
13507    Use char because int might match the return type of a GCC
13508    builtin and then its argument prototype would still apply.  */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 char snd_ctl_open ();
13513 int
13514 main ()
13515 {
13516 return snd_ctl_open ();
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (ac_try="$ac_link"
13523 case "(($ac_try" in
13524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525   *) ac_try_echo=$ac_try;;
13526 esac
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528   (eval "$ac_link") 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } && {
13535          test -z "$ac_c_werror_flag" ||
13536          test ! -s conftest.err
13537        } && test -s conftest$ac_exeext &&
13538        $as_test_x conftest$ac_exeext; then
13539   ac_cv_lib_asound_snd_ctl_open=yes
13540 else
13541   echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13543
13544         ac_cv_lib_asound_snd_ctl_open=no
13545 fi
13546
13547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13548       conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13550 fi
13551 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
13552 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
13553 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
13554   cat >>confdefs.h <<_ACEOF
13555 #define HAVE_LIBASOUND 1
13556 _ACEOF
13557
13558   LIBS="-lasound $LIBS"
13559
13560 else
13561   { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
13562 echo "${ECHO_T}No linkable libasound was found." >&6; }
13563    alsa_found=no
13564
13565 fi
13566
13567
13568 if test "x$alsa_found" = "xyes" ; then
13569    :
13570    LIBS=`echo $LIBS | sed 's/-lasound//g'`
13571    LIBS=`echo $LIBS | sed 's/  //'`
13572    LIBS="-lasound $LIBS"
13573 else
13574    :
13575    CFLAGS="$alsa_save_CFLAGS"
13576    LDFLAGS="$alsa_save_LDFLAGS"
13577    LIBS="$alsa_save_LIBS"
13578    ALSA_CFLAGS=""
13579    ALSA_LIBS=""
13580 fi
13581
13582
13583
13584
13585   if test "x$alsa_found" = "xyes" ; then
13586         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
13587     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
13588     for f in $ALSA_CFLAGS; do
13589     case ".$f" in
13590         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13591         *)              CFLAGS="$CFLAGS $f" ;;
13592     esac
13593 done
13594
13595     LIBS="$LIBS $ALSA_LIBS"
13596
13597 for ac_func in snd_seq_port_info_set_timestamping
13598 do
13599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605   cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h.  */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h.  */
13611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13613 #define $ac_func innocuous_$ac_func
13614
13615 /* System header to define __stub macros and hopefully few prototypes,
13616     which can conflict with char $ac_func (); below.
13617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13618     <limits.h> exists even on freestanding compilers.  */
13619
13620 #ifdef __STDC__
13621 # include <limits.h>
13622 #else
13623 # include <assert.h>
13624 #endif
13625
13626 #undef $ac_func
13627
13628 /* Override any GCC internal prototype to avoid an error.
13629    Use char because int might match the return type of a GCC
13630    builtin and then its argument prototype would still apply.  */
13631 #ifdef __cplusplus
13632 extern "C"
13633 #endif
13634 char $ac_func ();
13635 /* The GNU C library defines this for functions which it implements
13636     to always fail with ENOSYS.  Some functions are actually named
13637     something starting with __ and the normal name is an alias.  */
13638 #if defined __stub_$ac_func || defined __stub___$ac_func
13639 choke me
13640 #endif
13641
13642 int
13643 main ()
13644 {
13645 return $ac_func ();
13646   ;
13647   return 0;
13648 }
13649 _ACEOF
13650 rm -f conftest.$ac_objext conftest$ac_exeext
13651 if { (ac_try="$ac_link"
13652 case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_link") 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } && {
13664          test -z "$ac_c_werror_flag" ||
13665          test ! -s conftest.err
13666        } && test -s conftest$ac_exeext &&
13667        $as_test_x conftest$ac_exeext; then
13668   eval "$as_ac_var=yes"
13669 else
13670   echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13672
13673         eval "$as_ac_var=no"
13674 fi
13675
13676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13677       conftest$ac_exeext conftest.$ac_ext
13678 fi
13679 ac_res=`eval echo '${'$as_ac_var'}'`
13680                { echo "$as_me:$LINENO: result: $ac_res" >&5
13681 echo "${ECHO_T}$ac_res" >&6; }
13682 if test `eval echo '${'$as_ac_var'}'` = yes; then
13683   cat >>confdefs.h <<_ACEOF
13684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13685 _ACEOF
13686
13687 fi
13688 done
13689
13690   else
13691     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
13692 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
13693     CFLAGS=$KEEPCFLAGS
13694     LIBS=$KEEPLIBS
13695     LDFLAGS=$KEEPLDFLAGS
13696   fi
13697 else
13698   { echo "$as_me:$LINENO: result: no" >&5
13699 echo "${ECHO_T}no" >&6; }
13700 fi
13701
13702 { echo "$as_me:$LINENO: checking enable_audio=alib" >&5
13703 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6; }
13704 if test "x$au_enable_alib" = xyes; then
13705   case "$target" in
13706     *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
13707 echo "${ECHO_T}yes" >&6; } ;;
13708     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
13709 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
13710   esac
13711   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
13712   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
13713   if test -d /opt/audio/include; then
13714     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
13715   fi
13716   if test -d /opt/audio/lib; then
13717     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
13718   fi
13719   EXTRALIBS="$EXTRALIBS -lAlib"
13720 else
13721   { echo "$as_me:$LINENO: result: no" >&5
13722 echo "${ECHO_T}no" >&6; }
13723 fi
13724
13725 { echo "$as_me:$LINENO: checking enable_audio=nas" >&5
13726 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6; }
13727 if test "x$au_enable_nas" = xyes; then
13728   if test "x$with_x" != xyes; then
13729     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
13730 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
13731    { (exit 1); exit 1; }; }
13732   fi
13733   EXTRADEFS="$EXTRADEFS -DAU_NAS"
13734   SYSEXTRAS="$SYSEXTRAS nas_a.c"
13735
13736
13737   if test "x$with_nas_library" != x; then
13738     { echo "$as_me:$LINENO: result: $with_nas_library" >&5
13739 echo "${ECHO_T}$with_nas_library" >&6; };
13740     EXTRALIBS="$EXTRALIBS $with_nas_library"
13741   else
13742     { echo "$as_me:$LINENO: result: " >&5
13743 echo "${ECHO_T}" >&6; }
13744     { echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
13745 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6; }
13746 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
13747   echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749   ac_func_search_save_LIBS="$LIBS"
13750 timidity_cv_search_AuOpenServer="no"
13751 for i in $x_libraries/libaudio.a \
13752          /usr/lib/libaudio.so \
13753          /usr/lib/libaudio.a ; do
13754   LIBS="$i  $ac_func_search_save_LIBS"
13755   cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761
13762 /* Override any GCC internal prototype to avoid an error.
13763    Use char because int might match the return type of a GCC
13764    builtin and then its argument prototype would still apply.  */
13765 #ifdef __cplusplus
13766 extern "C"
13767 #endif
13768 char AuOpenServer ();
13769 int
13770 main ()
13771 {
13772 return AuOpenServer ();
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781   *) ac_try_echo=$ac_try;;
13782 esac
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784   (eval "$ac_link") 2>conftest.er1
13785   ac_status=$?
13786   grep -v '^ *+' conftest.er1 >conftest.err
13787   rm -f conftest.er1
13788   cat conftest.err >&5
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } && {
13791          test -z "$ac_c_werror_flag" ||
13792          test ! -s conftest.err
13793        } && test -s conftest$ac_exeext &&
13794        $as_test_x conftest$ac_exeext; then
13795   timidity_cv_search_AuOpenServer="$i"; break
13796 else
13797   echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800
13801 fi
13802
13803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804       conftest$ac_exeext conftest.$ac_ext
13805 done
13806 LIBS="$ac_func_search_save_LIBS"
13807 fi
13808 { echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
13809 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6; }
13810 if test "$timidity_cv_search_AuOpenServer" != "no"; then
13811    { echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
13812 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6; }
13813           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
13814 else :
13815   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
13816 echo "$as_me: WARNING: NAS library is not found." >&2;}
13817 fi
13818   fi
13819   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
13820   lib_xt_opt=-lXt
13821   if test "x$have_xext" = xyes; then
13822     lib_xext_opt=-lXext
13823   fi
13824   if test "x$have_xprelibs" = xyes; then
13825     lib_xprelibs_opt='-lSM -lICE'
13826   fi
13827 else
13828   { echo "$as_me:$LINENO: result: no" >&5
13829 echo "${ECHO_T}no" >&6; }
13830 fi
13831
13832 { echo "$as_me:$LINENO: checking enable_audio=arts" >&5
13833 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6; }
13834 if test "x$au_enable_arts" = xyes; then
13835   { echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
13836 echo "${ECHO_T}yes, configuring aRts" >&6; }
13837     # Extract the first word of "artsc-config", so it can be a program name with args.
13838 set dummy artsc-config; ac_word=$2
13839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13841 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
13842   echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844   case $ARTSCCONFIG in
13845   [\\/]* | ?:[\\/]*)
13846   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
13847   ;;
13848   *)
13849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13851 do
13852   IFS=$as_save_IFS
13853   test -z "$as_dir" && as_dir=.
13854   for ac_exec_ext in '' $ac_executable_extensions; do
13855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13856     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
13857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13858     break 2
13859   fi
13860 done
13861 done
13862 IFS=$as_save_IFS
13863
13864   ;;
13865 esac
13866 fi
13867 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
13868 if test -n "$ARTSCCONFIG"; then
13869   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
13870 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
13871 else
13872   { echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6; }
13874 fi
13875
13876
13877   if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
13878   then
13879     ARTSC_CFLAGS=""
13880     for i in `$ARTSCCONFIG --cflags`
13881     do
13882       case "$i" in
13883         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
13884       esac
13885     done
13886     ARTSC_LIBS=`$ARTSCCONFIG --libs`
13887     save_CFLAGS="$CFLAGS"
13888     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
13889     cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h.  */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h.  */
13895 #include <artsc.h>
13896 int
13897 main ()
13898 {
13899 arts_stream_t stream;
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (ac_try="$ac_compile"
13906 case "(($ac_try" in
13907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908   *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911   (eval "$ac_compile") 2>conftest.er1
13912   ac_status=$?
13913   grep -v '^ *+' conftest.er1 >conftest.err
13914   rm -f conftest.er1
13915   cat conftest.err >&5
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } && {
13918          test -z "$ac_c_werror_flag" ||
13919          test ! -s conftest.err
13920        } && test -s conftest.$ac_objext; then
13921   ARTSLIBS=$ARTSC_LIBS
13922
13923          ARTSINCL=$ARTSC_CFLAGS
13924
13925
13926 cat >>confdefs.h <<\_ACEOF
13927 #define HAVE_ARTS 1
13928 _ACEOF
13929
13930          have_arts="yes"
13931
13932 else
13933   echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13935
13936
13937 fi
13938
13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940     CFLAGS="$save_CFLAGS"
13941   fi
13942
13943   if test "$have_arts" = "yes"; then
13944         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
13945     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
13946     for f in $ARTSC_CFLAGS; do
13947     case ".$f" in
13948         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13949         *)              CFLAGS="$CFLAGS $f" ;;
13950     esac
13951 done
13952
13953     LIBS="$LIBS $ARTSC_LIBS"
13954   else
13955     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
13956 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
13957   fi
13958 else
13959   { echo "$as_me:$LINENO: result: no" >&5
13960 echo "${ECHO_T}no" >&6; }
13961 fi
13962
13963 { echo "$as_me:$LINENO: checking enable_audio=esd" >&5
13964 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6; }
13965 if test "x$au_enable_esd" = xyes; then
13966   { echo "$as_me:$LINENO: result: yes, configuring esd" >&5
13967 echo "${ECHO_T}yes, configuring esd" >&6; }
13968   KEEPCFLAGS=$CFLAGS
13969   KEEPLIBS=$LIBS
13970   KEEPLDFLAGS=$LDFLAGS
13971
13972 # Check whether --with-esd-prefix was given.
13973 if test "${with_esd_prefix+set}" = set; then
13974   withval=$with_esd_prefix; esd_prefix="$withval"
13975 else
13976   esd_prefix=""
13977 fi
13978
13979
13980 # Check whether --with-esd-exec-prefix was given.
13981 if test "${with_esd_exec_prefix+set}" = set; then
13982   withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
13983 else
13984   esd_exec_prefix=""
13985 fi
13986
13987 # Check whether --enable-esdtest was given.
13988 if test "${enable_esdtest+set}" = set; then
13989   enableval=$enable_esdtest;
13990 else
13991   enable_esdtest=yes
13992 fi
13993
13994
13995   if test x$esd_exec_prefix != x ; then
13996      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13997      if test x${ESD_CONFIG+set} != xset ; then
13998         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
13999      fi
14000   fi
14001   if test x$esd_prefix != x ; then
14002      esd_args="$esd_args --prefix=$esd_prefix"
14003      if test x${ESD_CONFIG+set} != xset ; then
14004         ESD_CONFIG=$esd_prefix/bin/esd-config
14005      fi
14006   fi
14007
14008   # Extract the first word of "esd-config", so it can be a program name with args.
14009 set dummy esd-config; ac_word=$2
14010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14012 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   case $ESD_CONFIG in
14016   [\\/]* | ?:[\\/]*)
14017   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
14018   ;;
14019   *)
14020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023   IFS=$as_save_IFS
14024   test -z "$as_dir" && as_dir=.
14025   for ac_exec_ext in '' $ac_executable_extensions; do
14026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14027     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14029     break 2
14030   fi
14031 done
14032 done
14033 IFS=$as_save_IFS
14034
14035   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
14036   ;;
14037 esac
14038 fi
14039 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
14040 if test -n "$ESD_CONFIG"; then
14041   { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
14042 echo "${ECHO_T}$ESD_CONFIG" >&6; }
14043 else
14044   { echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6; }
14046 fi
14047
14048
14049   min_esd_version=0.2.7
14050   { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
14051 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
14052   no_esd=""
14053   if test "$ESD_CONFIG" = "no" ; then
14054     no_esd=yes
14055   else
14056
14057     ac_ext=c
14058 ac_cpp='$CPP $CPPFLAGS'
14059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14062
14063     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
14064     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
14065
14066     esd_major_version=`$ESD_CONFIG $esd_args --version | \
14067            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14068     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
14069            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14070     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
14071            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14072     if test "x$enable_esdtest" = "xyes" ; then
14073       ac_save_CFLAGS="$CFLAGS"
14074       ac_save_LIBS="$LIBS"
14075       CFLAGS="$CFLAGS $ESD_CFLAGS"
14076       LIBS="$LIBS $ESD_LIBS"
14077       rm -f conf.esdtest
14078       if test "$cross_compiling" = yes; then
14079   echo $ac_n "cross compiling; assumed OK... $ac_c"
14080 else
14081   cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087
14088 #include <stdio.h>
14089 #include <stdlib.h>
14090 #include <string.h>
14091 #include <esd.h>
14092
14093 char*
14094 my_strdup (char *str)
14095 {
14096   char *new_str;
14097
14098   if (str)
14099     {
14100       new_str = malloc ((strlen (str) + 1) * sizeof(char));
14101       strcpy (new_str, str);
14102     }
14103   else
14104     new_str = NULL;
14105
14106   return new_str;
14107 }
14108
14109 int main ()
14110 {
14111   int major, minor, micro;
14112   char *tmp_version;
14113
14114   system ("touch conf.esdtest");
14115
14116   /* HP/UX 9 (%@#!) writes to sscanf strings */
14117   tmp_version = my_strdup("$min_esd_version");
14118   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14119      printf("%s, bad version string\n", "$min_esd_version");
14120      exit(1);
14121    }
14122
14123    if (($esd_major_version > major) ||
14124       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
14125       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
14126     {
14127       return 0;
14128     }
14129   else
14130     {
14131       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
14132       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
14133       printf("*** best to upgrade to the required version.\n");
14134       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
14135       printf("*** to point to the correct copy of esd-config, and remove the file\n");
14136       printf("*** config.cache before re-running configure\n");
14137       return 1;
14138     }
14139 }
14140
14141
14142 _ACEOF
14143 rm -f conftest$ac_exeext
14144 if { (ac_try="$ac_link"
14145 case "(($ac_try" in
14146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147   *) ac_try_echo=$ac_try;;
14148 esac
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150   (eval "$ac_link") 2>&5
14151   ac_status=$?
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14154   { (case "(($ac_try" in
14155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156   *) ac_try_echo=$ac_try;;
14157 esac
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159   (eval "$ac_try") 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; }; then
14163   :
14164 else
14165   echo "$as_me: program exited with status $ac_status" >&5
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ( exit $ac_status )
14170 no_esd=yes
14171 fi
14172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14173 fi
14174
14175
14176        CFLAGS="$ac_save_CFLAGS"
14177        LIBS="$ac_save_LIBS"
14178        ac_ext=c
14179 ac_cpp='$CPP $CPPFLAGS'
14180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14183
14184      fi
14185   fi
14186   if test "x$no_esd" = x ; then
14187      { echo "$as_me:$LINENO: result: yes" >&5
14188 echo "${ECHO_T}yes" >&6; }
14189      :
14190   else
14191      { echo "$as_me:$LINENO: result: no" >&5
14192 echo "${ECHO_T}no" >&6; }
14193      if test "$ESD_CONFIG" = "no" ; then
14194        echo "*** The esd-config script installed by ESD could not be found"
14195        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
14196        echo "*** your path, or set the ESD_CONFIG environment variable to the"
14197        echo "*** full path to esd-config."
14198      else
14199        if test -f conf.esdtest ; then
14200         :
14201        else
14202           echo "*** Could not run ESD test program, checking why..."
14203           CFLAGS="$CFLAGS $ESD_CFLAGS"
14204           LIBS="$LIBS $ESD_LIBS"
14205
14206           ac_ext=c
14207 ac_cpp='$CPP $CPPFLAGS'
14208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14211
14212           cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h.  */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h.  */
14218
14219 #include <stdio.h>
14220 #include <esd.h>
14221
14222 int
14223 main ()
14224 {
14225  return 0;
14226   ;
14227   return 0;
14228 }
14229 _ACEOF
14230 rm -f conftest.$ac_objext conftest$ac_exeext
14231 if { (ac_try="$ac_link"
14232 case "(($ac_try" in
14233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234   *) ac_try_echo=$ac_try;;
14235 esac
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237   (eval "$ac_link") 2>conftest.er1
14238   ac_status=$?
14239   grep -v '^ *+' conftest.er1 >conftest.err
14240   rm -f conftest.er1
14241   cat conftest.err >&5
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); } && {
14244          test -z "$ac_c_werror_flag" ||
14245          test ! -s conftest.err
14246        } && test -s conftest$ac_exeext &&
14247        $as_test_x conftest$ac_exeext; then
14248    echo "*** The test program compiled, but did not run. This usually means"
14249           echo "*** that the run-time linker is not finding ESD or finding the wrong"
14250           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
14251           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14252           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14253           echo "*** is required on your system"
14254           echo "***"
14255           echo "*** If you have an old version installed, it is best to remove it, although"
14256           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261          echo "*** The test program failed to compile or link. See the file config.log for the"
14262           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
14263           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
14264           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
14265 fi
14266
14267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14268       conftest$ac_exeext conftest.$ac_ext
14269           CFLAGS="$ac_save_CFLAGS"
14270           LIBS="$ac_save_LIBS"
14271           ac_ext=c
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14276
14277        fi
14278      fi
14279      ESD_CFLAGS=""
14280      ESD_LIBS=""
14281      :
14282   fi
14283
14284
14285   rm -f conf.esdtest
14286
14287   CFLAGS=$KEEPCFLAGS
14288   LIBS=$KEEPLIBS
14289   LDFLAGS=$KEEPLDFLAGS
14290   if test "x$no_esd" = x; then
14291         EXTRADEFS="$EXTRADEFS -DAU_ESD"
14292     SYSEXTRAS="$SYSEXTRAS esd_a.c"
14293     for f in $ESD_CFLAGS; do
14294     case ".$f" in
14295         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14296         *)              CFLAGS="$CFLAGS $f" ;;
14297     esac
14298 done
14299
14300     LIBS="$LIBS $ESD_LIBS"
14301   else
14302     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
14303 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
14304   fi
14305 else
14306   { echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6; }
14308 fi
14309
14310 { echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
14311 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6; }
14312 if test "x$au_enable_portaudio" = xyes; then
14313   { echo "$as_me:$LINENO: result: yes" >&5
14314 echo "${ECHO_T}yes" >&6; }
14315   if test "x$MSYS" = xyes ; then
14316         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
14317         EXTRALIBS="$EXTRALIBS -lportaudio"
14318         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
14319   else
14320         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
14321         EXTRALIBS="$EXTRALIBS -lportaudio"
14322         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
14323   fi
14324 else
14325   { echo "$as_me:$LINENO: result: no" >&5
14326 echo "${ECHO_T}no" >&6; }
14327 fi
14328
14329 { echo "$as_me:$LINENO: checking enable_audio=npipe" >&5
14330 echo $ECHO_N "checking enable_audio=npipe... $ECHO_C" >&6; }
14331 if test "x$au_enable_npipe" = xyes; then
14332   { echo "$as_me:$LINENO: result: yes" >&5
14333 echo "${ECHO_T}yes" >&6; }
14334         SYSEXTRAS="$SYSEXTRAS npipe_a.c"
14335         EXTRADEFS="$EXTRADEFS -DAU_NPIPE"
14336 else
14337   { echo "$as_me:$LINENO: result: no" >&5
14338 echo "${ECHO_T}no" >&6; }
14339 fi
14340
14341
14342 { echo "$as_me:$LINENO: checking enable_audio=jack" >&5
14343 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6; }
14344 if test "x$au_enable_jack" = xyes; then
14345   { echo "$as_me:$LINENO: result: yes" >&5
14346 echo "${ECHO_T}yes" >&6; }
14347   SYSEXTRAS="$SYSEXTRAS jack_a.c"
14348   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
14349   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
14350 else
14351   { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14353 fi
14354
14355 { echo "$as_me:$LINENO: checking enable_audio=ao" >&5
14356 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6; }
14357 if test "x$au_enable_ao" = xyes; then
14358   { echo "$as_me:$LINENO: result: yes, configuring ao" >&5
14359 echo "${ECHO_T}yes, configuring ao" >&6; }
14360
14361 # Check whether --with-ao was given.
14362 if test "${with_ao+set}" = set; then
14363   withval=$with_ao; ao_prefix="$withval"
14364 else
14365   ao_prefix=""
14366 fi
14367
14368
14369 # Check whether --with-ao-libraries was given.
14370 if test "${with_ao_libraries+set}" = set; then
14371   withval=$with_ao_libraries; ao_libraries="$withval"
14372 else
14373   ao_libraries=""
14374 fi
14375
14376
14377 # Check whether --with-ao-includes was given.
14378 if test "${with_ao_includes+set}" = set; then
14379   withval=$with_ao_includes; ao_includes="$withval"
14380 else
14381   ao_includes=""
14382 fi
14383
14384 # Check whether --enable-aotest was given.
14385 if test "${enable_aotest+set}" = set; then
14386   enableval=$enable_aotest;
14387 else
14388   enable_aotest=yes
14389 fi
14390
14391
14392
14393   if test "x$ao_libraries" != "x" ; then
14394     AO_LIBS="-L$ao_libraries"
14395   elif test "x$ao_prefix" != "x"; then
14396     AO_LIBS="-L$ao_prefix/lib"
14397   elif test "x$prefix" != "xNONE"; then
14398     AO_LIBS="-L$prefix/lib"
14399   fi
14400
14401   if test "x$ao_includes" != "x" ; then
14402     AO_CFLAGS="-I$ao_includes"
14403   elif test "x$ao_prefix" != "x"; then
14404     AO_CFLAGS="-I$ao_prefix/include"
14405   elif test "x$prefix" != "xNONE"; then
14406     AO_CFLAGS="-I$prefix/include"
14407   fi
14408
14409   # see where dl* and friends live
14410
14411 for ac_func in dlopen
14412 do
14413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14427 #define $ac_func innocuous_$ac_func
14428
14429 /* System header to define __stub macros and hopefully few prototypes,
14430     which can conflict with char $ac_func (); below.
14431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14432     <limits.h> exists even on freestanding compilers.  */
14433
14434 #ifdef __STDC__
14435 # include <limits.h>
14436 #else
14437 # include <assert.h>
14438 #endif
14439
14440 #undef $ac_func
14441
14442 /* Override any GCC internal prototype to avoid an error.
14443    Use char because int might match the return type of a GCC
14444    builtin and then its argument prototype would still apply.  */
14445 #ifdef __cplusplus
14446 extern "C"
14447 #endif
14448 char $ac_func ();
14449 /* The GNU C library defines this for functions which it implements
14450     to always fail with ENOSYS.  Some functions are actually named
14451     something starting with __ and the normal name is an alias.  */
14452 #if defined __stub_$ac_func || defined __stub___$ac_func
14453 choke me
14454 #endif
14455
14456 int
14457 main ()
14458 {
14459 return $ac_func ();
14460   ;
14461   return 0;
14462 }
14463 _ACEOF
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (ac_try="$ac_link"
14466 case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471   (eval "$ac_link") 2>conftest.er1
14472   ac_status=$?
14473   grep -v '^ *+' conftest.er1 >conftest.err
14474   rm -f conftest.er1
14475   cat conftest.err >&5
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } && {
14478          test -z "$ac_c_werror_flag" ||
14479          test ! -s conftest.err
14480        } && test -s conftest$ac_exeext &&
14481        $as_test_x conftest$ac_exeext; then
14482   eval "$as_ac_var=yes"
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487         eval "$as_ac_var=no"
14488 fi
14489
14490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14491       conftest$ac_exeext conftest.$ac_ext
14492 fi
14493 ac_res=`eval echo '${'$as_ac_var'}'`
14494                { echo "$as_me:$LINENO: result: $ac_res" >&5
14495 echo "${ECHO_T}$ac_res" >&6; }
14496 if test `eval echo '${'$as_ac_var'}'` = yes; then
14497   cat >>confdefs.h <<_ACEOF
14498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14499 _ACEOF
14500  AO_DL_LIBS=""
14501 else
14502
14503     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14504 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   ac_check_lib_save_LIBS=$LIBS
14509 LIBS="-ldl  $LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516
14517 /* Override any GCC internal prototype to avoid an error.
14518    Use char because int might match the return type of a GCC
14519    builtin and then its argument prototype would still apply.  */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 char dlopen ();
14524 int
14525 main ()
14526 {
14527 return dlopen ();
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_link") 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } && {
14546          test -z "$ac_c_werror_flag" ||
14547          test ! -s conftest.err
14548        } && test -s conftest$ac_exeext &&
14549        $as_test_x conftest$ac_exeext; then
14550   ac_cv_lib_dl_dlopen=yes
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555         ac_cv_lib_dl_dlopen=no
14556 fi
14557
14558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14559       conftest$ac_exeext conftest.$ac_ext
14560 LIBS=$ac_check_lib_save_LIBS
14561 fi
14562 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14564 if test $ac_cv_lib_dl_dlopen = yes; then
14565   AO_DL_LIBS="-ldl"
14566 else
14567
14568       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
14569       your system may not be supported." >&5
14570 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
14571       your system may not be supported." >&2;}
14572
14573 fi
14574
14575
14576 fi
14577 done
14578
14579
14580   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
14581
14582   { echo "$as_me:$LINENO: checking for ao" >&5
14583 echo $ECHO_N "checking for ao... $ECHO_C" >&6; }
14584   no_ao=""
14585
14586
14587   if test "x$enable_aotest" = "xyes" ; then
14588     ac_save_CFLAGS="$CFLAGS"
14589     ac_save_LIBS="$LIBS"
14590     CFLAGS="$CFLAGS $AO_CFLAGS"
14591     LIBS="$LIBS $AO_LIBS"
14592       rm -f conf.aotest
14593       if test "$cross_compiling" = yes; then
14594   echo $ac_n "cross compiling; assumed OK... $ac_c"
14595 else
14596   cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602
14603 #include <stdio.h>
14604 #include <stdlib.h>
14605 #include <string.h>
14606 #include <ao/ao.h>
14607
14608 int main ()
14609 {
14610   system("touch conf.aotest");
14611   return 0;
14612 }
14613
14614
14615 _ACEOF
14616 rm -f conftest$ac_exeext
14617 if { (ac_try="$ac_link"
14618 case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_link") 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14627   { (case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632   (eval "$ac_try") 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636   :
14637 else
14638   echo "$as_me: program exited with status $ac_status" >&5
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 ( exit $ac_status )
14643 no_ao=yes
14644 fi
14645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14646 fi
14647
14648
14649        CFLAGS="$ac_save_CFLAGS"
14650        LIBS="$ac_save_LIBS"
14651   fi
14652
14653   if test "x$no_ao" = "x" ; then
14654      { echo "$as_me:$LINENO: result: yes" >&5
14655 echo "${ECHO_T}yes" >&6; }
14656      :
14657   else
14658      { echo "$as_me:$LINENO: result: no" >&5
14659 echo "${ECHO_T}no" >&6; }
14660      if test -f conf.aotest ; then
14661        :
14662      else
14663        echo "*** Could not run ao test program, checking why..."
14664        CFLAGS="$CFLAGS $AO_CFLAGS"
14665        LIBS="$LIBS $AO_LIBS"
14666        cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672
14673 #include <stdio.h>
14674 #include <ao/ao.h>
14675
14676 int
14677 main ()
14678 {
14679  return 0;
14680   ;
14681   return 0;
14682 }
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (ac_try="$ac_link"
14686 case "(($ac_try" in
14687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688   *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691   (eval "$ac_link") 2>conftest.er1
14692   ac_status=$?
14693   grep -v '^ *+' conftest.er1 >conftest.err
14694   rm -f conftest.er1
14695   cat conftest.err >&5
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); } && {
14698          test -z "$ac_c_werror_flag" ||
14699          test ! -s conftest.err
14700        } && test -s conftest$ac_exeext &&
14701        $as_test_x conftest$ac_exeext; then
14702    echo "*** The test program compiled, but did not run. This usually means"
14703        echo "*** that the run-time linker is not finding ao or finding the wrong"
14704        echo "*** version of ao. If it is not finding ao, you'll need to set your"
14705        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14706        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14707        echo "*** is required on your system"
14708        echo "***"
14709        echo "*** If you have an old version installed, it is best to remove it, although"
14710        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14711 else
14712   echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715          echo "*** The test program failed to compile or link. See the file config.log for the"
14716        echo "*** exact error that occured. This usually means ao was incorrectly installed"
14717        echo "*** or that you have moved ao since it was installed."
14718 fi
14719
14720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721       conftest$ac_exeext conftest.$ac_ext
14722        CFLAGS="$ac_save_CFLAGS"
14723        LIBS="$ac_save_LIBS"
14724      fi
14725      AO_CFLAGS=""
14726      AO_LIBS=""
14727      :
14728   fi
14729
14730
14731   rm -f conf.aotest
14732
14733   if test "x$no_ao" = "x" ; then
14734     # AC_MSG_RESULT(yes)
14735     EXTRADEFS="$EXTRADEFS -DAU_AO"
14736     SYSEXTRAS="$SYSEXTRAS ao_a.c"
14737     for f in $AO_CFLAGS; do
14738     case ".$f" in
14739         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14740         *)              CFLAGS="$CFLAGS $f" ;;
14741     esac
14742 done
14743
14744     LIBS="$LIBS $AO_LIBS"
14745   else
14746     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
14747 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
14748   fi
14749 else
14750   { echo "$as_me:$LINENO: result: no" >&5
14751 echo "${ECHO_T}no" >&6; }
14752 fi
14753
14754 { echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
14755 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6; }
14756 if test "x$au_enable_vorbis" = xyes; then
14757   { echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
14758 echo "${ECHO_T}yes, configuring vorbis" >&6; }
14759   if test "x$MSYS" = "xyes" && test "x$MINGWGCC" != "xyes" ; then
14760     if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then
14761   { echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5
14762 echo $ECHO_N "checking for vorbis/vorbisenc.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 fi
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_vorbis_vorbisenc_h" >&6; }
14768 else
14769   # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking vorbis/vorbisenc.h usability" >&5
14771 echo $ECHO_N "checking vorbis/vorbisenc.h usability... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 $ac_includes_default
14779 #include <vorbis/vorbisenc.h>
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785   *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788   (eval "$ac_compile") 2>conftest.er1
14789   ac_status=$?
14790   grep -v '^ *+' conftest.er1 >conftest.err
14791   rm -f conftest.er1
14792   cat conftest.err >&5
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } && {
14795          test -z "$ac_c_werror_flag" ||
14796          test ! -s conftest.err
14797        } && test -s conftest.$ac_objext; then
14798   ac_header_compiler=yes
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803         ac_header_compiler=no
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14809
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking vorbis/vorbisenc.h presence" >&5
14812 echo $ECHO_N "checking vorbis/vorbisenc.h presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <vorbis/vorbisenc.h>
14820 _ACEOF
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } >/dev/null && {
14834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14835          test ! -s conftest.err
14836        }; then
14837   ac_header_preproc=yes
14838 else
14839   echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14841
14842   ac_header_preproc=no
14843 fi
14844
14845 rm -f conftest.err conftest.$ac_ext
14846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14847 echo "${ECHO_T}$ac_header_preproc" >&6; }
14848
14849 # So?  What about this header?
14850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14851   yes:no: )
14852     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14853 echo "$as_me: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14854     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&5
14855 echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&2;}
14856     ac_header_preproc=yes
14857     ;;
14858   no:yes:* )
14859     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&5
14860 echo "$as_me: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&2;}
14861     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h:     check for missing prerequisite headers?" >&5
14862 echo "$as_me: WARNING: vorbis/vorbisenc.h:     check for missing prerequisite headers?" >&2;}
14863     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&5
14864 echo "$as_me: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&2;}
14865     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h:     section \"Present But Cannot Be Compiled\"" >&5
14866 echo "$as_me: WARNING: vorbis/vorbisenc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14867     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&5
14868 echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&2;}
14869     { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&5
14870 echo "$as_me: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&2;}
14871     ( cat <<\_ASBOX
14872 ## ------------------------------- ##
14873 ## Report this to root@mput.dip.jp ##
14874 ## ------------------------------- ##
14875 _ASBOX
14876      ) | sed "s/^/$as_me: WARNING:     /" >&2
14877     ;;
14878 esac
14879 { echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5
14880 echo $ECHO_N "checking for vorbis/vorbisenc.h... $ECHO_C" >&6; }
14881 if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then
14882   echo $ECHO_N "(cached) $ECHO_C" >&6
14883 else
14884   ac_cv_header_vorbis_vorbisenc_h=$ac_header_preproc
14885 fi
14886 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5
14887 echo "${ECHO_T}$ac_cv_header_vorbis_vorbisenc_h" >&6; }
14888
14889 fi
14890 if test $ac_cv_header_vorbis_vorbisenc_h = yes; then
14891   :
14892 else
14893
14894     EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14895         SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14896
14897 fi
14898
14899
14900   else
14901
14902 # Check whether --with-ogg was given.
14903 if test "${with_ogg+set}" = set; then
14904   withval=$with_ogg; ogg_prefix="$withval"
14905 else
14906   ogg_prefix=""
14907 fi
14908
14909
14910 # Check whether --with-ogg-libraries was given.
14911 if test "${with_ogg_libraries+set}" = set; then
14912   withval=$with_ogg_libraries; ogg_libraries="$withval"
14913 else
14914   ogg_libraries=""
14915 fi
14916
14917
14918 # Check whether --with-ogg-includes was given.
14919 if test "${with_ogg_includes+set}" = set; then
14920   withval=$with_ogg_includes; ogg_includes="$withval"
14921 else
14922   ogg_includes=""
14923 fi
14924
14925 # Check whether --enable-oggtest was given.
14926 if test "${enable_oggtest+set}" = set; then
14927   enableval=$enable_oggtest;
14928 else
14929   enable_oggtest=yes
14930 fi
14931
14932
14933   if test "x$ogg_libraries" != "x" ; then
14934     OGG_LIBS="-L$ogg_libraries"
14935   elif test "x$ogg_prefix" != "x" ; then
14936     OGG_LIBS="-L$ogg_prefix/lib"
14937   elif test "x$prefix" != "xNONE" ; then
14938     OGG_LIBS="-L$prefix/lib"
14939   fi
14940
14941   OGG_LIBS="$OGG_LIBS -logg"
14942
14943   if test "x$ogg_includes" != "x" ; then
14944     OGG_CFLAGS="-I$ogg_includes"
14945   elif test "x$ogg_prefix" != "x" ; then
14946     OGG_CFLAGS="-I$ogg_prefix/include"
14947   elif test "x$prefix" != "xNONE"; then
14948     OGG_CFLAGS="-I$prefix/include"
14949   fi
14950
14951   { echo "$as_me:$LINENO: checking for Ogg" >&5
14952 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
14953   no_ogg=""
14954
14955
14956   if test "x$enable_oggtest" = "xyes" ; then
14957     ac_save_CFLAGS="$CFLAGS"
14958     ac_save_LIBS="$LIBS"
14959     CFLAGS="$CFLAGS $OGG_CFLAGS"
14960     LIBS="$LIBS $OGG_LIBS"
14961       rm -f conf.oggtest
14962       if test "$cross_compiling" = yes; then
14963   echo $ac_n "cross compiling; assumed OK... $ac_c"
14964 else
14965   cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971
14972 #include <stdio.h>
14973 #include <stdlib.h>
14974 #include <string.h>
14975 #include <ogg/ogg.h>
14976
14977 int main ()
14978 {
14979   system("touch conf.oggtest");
14980   return 0;
14981 }
14982
14983
14984 _ACEOF
14985 rm -f conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_link") 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14996   { (case "(($ac_try" in
14997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998   *) ac_try_echo=$ac_try;;
14999 esac
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001   (eval "$ac_try") 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   :
15006 else
15007   echo "$as_me: program exited with status $ac_status" >&5
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ( exit $ac_status )
15012 no_ogg=yes
15013 fi
15014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15015 fi
15016
15017
15018        CFLAGS="$ac_save_CFLAGS"
15019        LIBS="$ac_save_LIBS"
15020   fi
15021
15022   if test "x$no_ogg" = "x" ; then
15023      { echo "$as_me:$LINENO: result: yes" >&5
15024 echo "${ECHO_T}yes" >&6; }
15025
15026
15027 # Check whether --with-vorbis was given.
15028 if test "${with_vorbis+set}" = set; then
15029   withval=$with_vorbis; vorbis_prefix="$withval"
15030 else
15031   vorbis_prefix=""
15032 fi
15033
15034
15035 # Check whether --with-vorbis-libraries was given.
15036 if test "${with_vorbis_libraries+set}" = set; then
15037   withval=$with_vorbis_libraries; vorbis_libraries="$withval"
15038 else
15039   vorbis_libraries=""
15040 fi
15041
15042
15043 # Check whether --with-vorbis-includes was given.
15044 if test "${with_vorbis_includes+set}" = set; then
15045   withval=$with_vorbis_includes; vorbis_includes="$withval"
15046 else
15047   vorbis_includes=""
15048 fi
15049
15050 # Check whether --enable-vorbistest was given.
15051 if test "${enable_vorbistest+set}" = set; then
15052   enableval=$enable_vorbistest;
15053 else
15054   enable_vorbistest=yes
15055 fi
15056
15057
15058   if test "x$vorbis_libraries" != "x" ; then
15059     VORBIS_LIBS="-L$vorbis_libraries"
15060   elif test "x$vorbis_prefix" != "x" ; then
15061     VORBIS_LIBS="-L$vorbis_prefix/lib"
15062   elif test "x$prefix" != "xNONE"; then
15063     VORBIS_LIBS="-L$prefix/lib"
15064   fi
15065
15066   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
15067   VORBISFILE_LIBS="-lvorbisfile"
15068   VORBISENC_LIBS="-lvorbisenc"
15069
15070   if test "x$vorbis_includes" != "x" ; then
15071     VORBIS_CFLAGS="-I$vorbis_includes"
15072   elif test "x$vorbis_prefix" != "x" ; then
15073     VORBIS_CFLAGS="-I$vorbis_prefix/include"
15074   elif test "x$prefix" != "xNONE"; then
15075     VORBIS_CFLAGS="-I$prefix/include"
15076   fi
15077
15078
15079   { echo "$as_me:$LINENO: checking for Vorbis" >&5
15080 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; }
15081   no_vorbis=""
15082
15083
15084   if test "x$enable_vorbistest" = "xyes" ; then
15085     ac_save_CFLAGS="$CFLAGS"
15086     ac_save_LIBS="$LIBS"
15087     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
15088     LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
15089       rm -f conf.vorbistest
15090       if test "$cross_compiling" = yes; then
15091   echo $ac_n "cross compiling; assumed OK... $ac_c"
15092 else
15093   cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099
15100 #include <stdio.h>
15101 #include <stdlib.h>
15102 #include <string.h>
15103 #include <vorbis/codec.h>
15104 #include <vorbis/vorbisenc.h>
15105
15106 int main ()
15107 {
15108     vorbis_block        vb;
15109     vorbis_dsp_state    vd;
15110     vorbis_info         vi;
15111
15112     vorbis_info_init (&vi);
15113     vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
15114     vorbis_analysis_init (&vd, &vi);
15115     vorbis_block_init (&vd, &vb);
15116     /* this function was added in 1.0rc3, so this is what we're testing for */
15117     vorbis_bitrate_addblock (&vb);
15118
15119     system("touch conf.vorbistest");
15120     return 0;
15121 }
15122
15123
15124 _ACEOF
15125 rm -f conftest$ac_exeext
15126 if { (ac_try="$ac_link"
15127 case "(($ac_try" in
15128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129   *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132   (eval "$ac_link") 2>&5
15133   ac_status=$?
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15136   { (case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_try") 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   :
15146 else
15147   echo "$as_me: program exited with status $ac_status" >&5
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 ( exit $ac_status )
15152 no_vorbis=yes
15153 fi
15154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15155 fi
15156
15157
15158        CFLAGS="$ac_save_CFLAGS"
15159        LIBS="$ac_save_LIBS"
15160   fi
15161
15162   if test "x$no_vorbis" = "x" ; then
15163      { echo "$as_me:$LINENO: result: yes" >&5
15164 echo "${ECHO_T}yes" >&6; }
15165
15166       have_vorbis=yes
15167       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
15168       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
15169       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
15170       if test "x$MSYS" = "xyes" && test "x$MINGWGCC" = "xyes" ; then
15171       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
15172           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
15173       fi
15174
15175   else
15176      { echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6; }
15178      if test -f conf.vorbistest ; then
15179        :
15180      else
15181        echo "*** Could not run Vorbis test program, checking why..."
15182        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
15183        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
15184        cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h.  */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h.  */
15190
15191 #include <stdio.h>
15192 #include <vorbis/codec.h>
15193
15194 int
15195 main ()
15196 {
15197  return 0;
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (ac_try="$ac_link"
15204 case "(($ac_try" in
15205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206   *) ac_try_echo=$ac_try;;
15207 esac
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209   (eval "$ac_link") 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } && {
15216          test -z "$ac_c_werror_flag" ||
15217          test ! -s conftest.err
15218        } && test -s conftest$ac_exeext &&
15219        $as_test_x conftest$ac_exeext; then
15220    echo "*** The test program compiled, but did not run. This usually means"
15221        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
15222        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
15223        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15224        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15225        echo "*** is required on your system"
15226        echo "***"
15227        echo "*** If you have an old version installed, it is best to remove it, although"
15228        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15229 else
15230   echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233          echo "*** The test program failed to compile or link. See the file config.log for the"
15234        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
15235        echo "*** or that you have moved Vorbis since it was installed."
15236 fi
15237
15238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15239       conftest$ac_exeext conftest.$ac_ext
15240        CFLAGS="$ac_save_CFLAGS"
15241        LIBS="$ac_save_LIBS"
15242      fi
15243      VORBIS_CFLAGS=""
15244      VORBIS_LIBS=""
15245      VORBISFILE_LIBS=""
15246      VORBISENC_LIBS=""
15247
15248       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
15249 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
15250
15251   fi
15252
15253
15254
15255
15256   rm -f conf.vorbistest
15257
15258
15259   else
15260      { echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6; }
15262      if test -f conf.oggtest ; then
15263        :
15264      else
15265        echo "*** Could not run Ogg test program, checking why..."
15266        CFLAGS="$CFLAGS $OGG_CFLAGS"
15267        LIBS="$LIBS $OGG_LIBS"
15268        cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h.  */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h.  */
15274
15275 #include <stdio.h>
15276 #include <ogg/ogg.h>
15277
15278 int
15279 main ()
15280 {
15281  return 0;
15282   ;
15283   return 0;
15284 }
15285 _ACEOF
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (ac_try="$ac_link"
15288 case "(($ac_try" in
15289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290   *) ac_try_echo=$ac_try;;
15291 esac
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293   (eval "$ac_link") 2>conftest.er1
15294   ac_status=$?
15295   grep -v '^ *+' conftest.er1 >conftest.err
15296   rm -f conftest.er1
15297   cat conftest.err >&5
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); } && {
15300          test -z "$ac_c_werror_flag" ||
15301          test ! -s conftest.err
15302        } && test -s conftest$ac_exeext &&
15303        $as_test_x conftest$ac_exeext; then
15304    echo "*** The test program compiled, but did not run. This usually means"
15305        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
15306        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
15307        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15308        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15309        echo "*** is required on your system"
15310        echo "***"
15311        echo "*** If you have an old version installed, it is best to remove it, although"
15312        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317          echo "*** The test program failed to compile or link. See the file config.log for the"
15318        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
15319        echo "*** or that you have moved Ogg since it was installed."
15320 fi
15321
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323       conftest$ac_exeext conftest.$ac_ext
15324        CFLAGS="$ac_save_CFLAGS"
15325        LIBS="$ac_save_LIBS"
15326      fi
15327      OGG_CFLAGS=""
15328      OGG_LIBS=""
15329
15330     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
15331 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
15332     have_vorbis=no
15333
15334   fi
15335
15336
15337   rm -f conf.oggtest
15338
15339   fi
15340 else
15341   { echo "$as_me:$LINENO: result: no" >&5
15342 echo "${ECHO_T}no" >&6; }
15343 fi
15344
15345 if test "x$MSYS" = xyes ; then
15346   { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
15347 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
15348   if test "x$au_enable_flac" = xyes; then
15349     { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
15350 echo "${ECHO_T}yes, configuring flac" >&6; }
15351     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
15352     if test "${ac_cv_header_FLAC_all_h+set}" = set; then
15353   { echo "$as_me:$LINENO: checking for FLAC/all.h" >&5
15354 echo $ECHO_N "checking for FLAC/all.h... $ECHO_C" >&6; }
15355 if test "${ac_cv_header_FLAC_all_h+set}" = set; then
15356   echo $ECHO_N "(cached) $ECHO_C" >&6
15357 fi
15358 { echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5
15359 echo "${ECHO_T}$ac_cv_header_FLAC_all_h" >&6; }
15360 else
15361   # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking FLAC/all.h usability" >&5
15363 echo $ECHO_N "checking FLAC/all.h usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h.  */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h.  */
15370 $ac_includes_default
15371 #include <FLAC/all.h>
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_compile") 2>conftest.er1
15381   ac_status=$?
15382   grep -v '^ *+' conftest.er1 >conftest.err
15383   rm -f conftest.er1
15384   cat conftest.err >&5
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); } && {
15387          test -z "$ac_c_werror_flag" ||
15388          test ! -s conftest.err
15389        } && test -s conftest.$ac_objext; then
15390   ac_header_compiler=yes
15391 else
15392   echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395         ac_header_compiler=no
15396 fi
15397
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15400 echo "${ECHO_T}$ac_header_compiler" >&6; }
15401
15402 # Is the header present?
15403 { echo "$as_me:$LINENO: checking FLAC/all.h presence" >&5
15404 echo $ECHO_N "checking FLAC/all.h presence... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 #include <FLAC/all.h>
15412 _ACEOF
15413 if { (ac_try="$ac_cpp conftest.$ac_ext"
15414 case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15420   ac_status=$?
15421   grep -v '^ *+' conftest.er1 >conftest.err
15422   rm -f conftest.er1
15423   cat conftest.err >&5
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } >/dev/null && {
15426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15427          test ! -s conftest.err
15428        }; then
15429   ac_header_preproc=yes
15430 else
15431   echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434   ac_header_preproc=no
15435 fi
15436
15437 rm -f conftest.err conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6; }
15440
15441 # So?  What about this header?
15442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443   yes:no: )
15444     { echo "$as_me:$LINENO: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&5
15445 echo "$as_me: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446     { echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the compiler's result" >&5
15447 echo "$as_me: WARNING: FLAC/all.h: proceeding with the compiler's result" >&2;}
15448     ac_header_preproc=yes
15449     ;;
15450   no:yes:* )
15451     { echo "$as_me:$LINENO: WARNING: FLAC/all.h: present but cannot be compiled" >&5
15452 echo "$as_me: WARNING: FLAC/all.h: present but cannot be compiled" >&2;}
15453     { echo "$as_me:$LINENO: WARNING: FLAC/all.h:     check for missing prerequisite headers?" >&5
15454 echo "$as_me: WARNING: FLAC/all.h:     check for missing prerequisite headers?" >&2;}
15455     { echo "$as_me:$LINENO: WARNING: FLAC/all.h: see the Autoconf documentation" >&5
15456 echo "$as_me: WARNING: FLAC/all.h: see the Autoconf documentation" >&2;}
15457     { echo "$as_me:$LINENO: WARNING: FLAC/all.h:     section \"Present But Cannot Be Compiled\"" >&5
15458 echo "$as_me: WARNING: FLAC/all.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15459     { echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&5
15460 echo "$as_me: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&5
15462 echo "$as_me: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&2;}
15463     ( cat <<\_ASBOX
15464 ## ------------------------------- ##
15465 ## Report this to root@mput.dip.jp ##
15466 ## ------------------------------- ##
15467 _ASBOX
15468      ) | sed "s/^/$as_me: WARNING:     /" >&2
15469     ;;
15470 esac
15471 { echo "$as_me:$LINENO: checking for FLAC/all.h" >&5
15472 echo $ECHO_N "checking for FLAC/all.h... $ECHO_C" >&6; }
15473 if test "${ac_cv_header_FLAC_all_h+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   ac_cv_header_FLAC_all_h=$ac_header_preproc
15477 fi
15478 { echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5
15479 echo "${ECHO_T}$ac_cv_header_FLAC_all_h" >&6; }
15480
15481 fi
15482 if test $ac_cv_header_FLAC_all_h = yes; then
15483
15484       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
15485
15486 fi
15487
15488
15489     if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then
15490   { echo "$as_me:$LINENO: checking for OggFLAC/all.h" >&5
15491 echo $ECHO_N "checking for OggFLAC/all.h... $ECHO_C" >&6; }
15492 if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 fi
15495 { echo "$as_me:$LINENO: result: $ac_cv_header_OggFLAC_all_h" >&5
15496 echo "${ECHO_T}$ac_cv_header_OggFLAC_all_h" >&6; }
15497 else
15498   # Is the header compilable?
15499 { echo "$as_me:$LINENO: checking OggFLAC/all.h usability" >&5
15500 echo $ECHO_N "checking OggFLAC/all.h usability... $ECHO_C" >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 $ac_includes_default
15508 #include <OggFLAC/all.h>
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (ac_try="$ac_compile"
15512 case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_compile") 2>conftest.er1
15518   ac_status=$?
15519   grep -v '^ *+' conftest.er1 >conftest.err
15520   rm -f conftest.er1
15521   cat conftest.err >&5
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } && {
15524          test -z "$ac_c_werror_flag" ||
15525          test ! -s conftest.err
15526        } && test -s conftest.$ac_objext; then
15527   ac_header_compiler=yes
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532         ac_header_compiler=no
15533 fi
15534
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6; }
15538
15539 # Is the header present?
15540 { echo "$as_me:$LINENO: checking OggFLAC/all.h presence" >&5
15541 echo $ECHO_N "checking OggFLAC/all.h presence... $ECHO_C" >&6; }
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548 #include <OggFLAC/all.h>
15549 _ACEOF
15550 if { (ac_try="$ac_cpp conftest.$ac_ext"
15551 case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15557   ac_status=$?
15558   grep -v '^ *+' conftest.er1 >conftest.err
15559   rm -f conftest.er1
15560   cat conftest.err >&5
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); } >/dev/null && {
15563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15564          test ! -s conftest.err
15565        }; then
15566   ac_header_preproc=yes
15567 else
15568   echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15570
15571   ac_header_preproc=no
15572 fi
15573
15574 rm -f conftest.err conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6; }
15577
15578 # So?  What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580   yes:no: )
15581     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: OggFLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: OggFLAC/all.h: proceeding with the compiler's result" >&2;}
15585     ac_header_preproc=yes
15586     ;;
15587   no:yes:* )
15588     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: OggFLAC/all.h: present but cannot be compiled" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h:     check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: OggFLAC/all.h:     check for missing prerequisite headers?" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: OggFLAC/all.h: see the Autoconf documentation" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h:     section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: OggFLAC/all.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: OggFLAC/all.h: proceeding with the preprocessor's result" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: OggFLAC/all.h: in the future, the compiler will take precedence" >&2;}
15600     ( cat <<\_ASBOX
15601 ## ------------------------------- ##
15602 ## Report this to root@mput.dip.jp ##
15603 ## ------------------------------- ##
15604 _ASBOX
15605      ) | sed "s/^/$as_me: WARNING:     /" >&2
15606     ;;
15607 esac
15608 { echo "$as_me:$LINENO: checking for OggFLAC/all.h" >&5
15609 echo $ECHO_N "checking for OggFLAC/all.h... $ECHO_C" >&6; }
15610 if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613   ac_cv_header_OggFLAC_all_h=$ac_header_preproc
15614 fi
15615 { echo "$as_me:$LINENO: result: $ac_cv_header_OggFLAC_all_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_OggFLAC_all_h" >&6; }
15617
15618 fi
15619 if test $ac_cv_header_OggFLAC_all_h = yes; then
15620
15621       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
15622
15623 fi
15624
15625
15626   else
15627     { echo "$as_me:$LINENO: result: no" >&5
15628 echo "${ECHO_T}no" >&6; }
15629   fi
15630 else
15631   { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
15632 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
15633   if test "x$au_enable_flac" = xyes; then
15634     { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
15635 echo "${ECHO_T}yes, configuring flac" >&6; }
15636     SYSEXTRAS="$SYSEXTRAS flac_a.c"
15637
15638 # Check whether --with-libFLAC was given.
15639 if test "${with_libFLAC+set}" = set; then
15640   withval=$with_libFLAC; libFLAC_prefix="$withval"
15641 else
15642   libFLAC_prefix=""
15643 fi
15644
15645
15646 # Check whether --with-libFLAC-libraries was given.
15647 if test "${with_libFLAC_libraries+set}" = set; then
15648   withval=$with_libFLAC_libraries; libFLAC_libraries="$withval"
15649 else
15650   libFLAC_libraries=""
15651 fi
15652
15653
15654 # Check whether --with-libFLAC-includes was given.
15655 if test "${with_libFLAC_includes+set}" = set; then
15656   withval=$with_libFLAC_includes; libFLAC_includes="$withval"
15657 else
15658   libFLAC_includes=""
15659 fi
15660
15661 # Check whether --enable-libFLACtest was given.
15662 if test "${enable_libFLACtest+set}" = set; then
15663   enableval=$enable_libFLACtest;
15664 else
15665   enable_libFLACtest=yes
15666 fi
15667
15668
15669   if test "x$libFLAC_libraries" != "x" ; then
15670     LIBFLAC_LIBS="-L$libFLAC_libraries"
15671   elif test "x$libFLAC_prefix" != "x" ; then
15672     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
15673   elif test "x$prefix" != "xNONE" ; then
15674     LIBFLAC_LIBS="-L$prefix/lib"
15675   fi
15676
15677   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
15678
15679   if test "x$libFLAC_includes" != "x" ; then
15680     LIBFLAC_CFLAGS="-I$libFLAC_includes"
15681   elif test "x$libFLAC_prefix" != "x" ; then
15682     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
15683   elif test "$prefix" != "xNONE"; then
15684     LIBFLAC_CFLAGS="-I$prefix/include"
15685   fi
15686
15687   { echo "$as_me:$LINENO: checking for libFLAC" >&5
15688 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6; }
15689   no_libFLAC=""
15690
15691
15692   if test "x$enable_libFLACtest" = "xyes" ; then
15693     ac_save_CFLAGS="$CFLAGS"
15694     ac_save_CXXFLAGS="$CXXFLAGS"
15695     ac_save_LIBS="$LIBS"
15696     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
15697     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
15698     LIBS="$LIBS $LIBFLAC_LIBS"
15699       rm -f conf.libFLACtest
15700       if test "$cross_compiling" = yes; then
15701   echo $ac_n "cross compiling; assumed OK... $ac_c"
15702 else
15703   cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709
15710 #include <stdio.h>
15711 #include <stdlib.h>
15712 #include <string.h>
15713 #include <FLAC/format.h>
15714
15715 int main ()
15716 {
15717   system("touch conf.libFLACtest");
15718   return 0;
15719 }
15720
15721
15722 _ACEOF
15723 rm -f conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_link") 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15734   { (case "(($ac_try" in
15735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736   *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739   (eval "$ac_try") 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; }; then
15743   :
15744 else
15745   echo "$as_me: program exited with status $ac_status" >&5
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ( exit $ac_status )
15750 no_libFLAC=yes
15751 fi
15752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15753 fi
15754
15755
15756        CFLAGS="$ac_save_CFLAGS"
15757        LIBS="$ac_save_LIBS"
15758   fi
15759
15760   if test "x$no_libFLAC" = "x" ; then
15761      { echo "$as_me:$LINENO: result: yes" >&5
15762 echo "${ECHO_T}yes" >&6; }
15763
15764       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
15765       for f in $LIBFLAC_CFLAGS; do
15766     case ".$f" in
15767         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
15768         *)              CFLAGS="$CFLAGS $f" ;;
15769     esac
15770 done
15771
15772       LIBS="$LIBS $LIBFLAC_LIBS"
15773
15774   else
15775      { echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6; }
15777      if test -f conf.libFLACtest ; then
15778        :
15779      else
15780        echo "*** Could not run libFLAC test program, checking why..."
15781        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
15782        LIBS="$LIBS $LIBFLAC_LIBS"
15783        cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h.  */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h.  */
15789
15790 #include <stdio.h>
15791 #include <FLAC/format.h>
15792
15793 int
15794 main ()
15795 {
15796  return 0;
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (ac_try="$ac_link"
15803 case "(($ac_try" in
15804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805   *) ac_try_echo=$ac_try;;
15806 esac
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808   (eval "$ac_link") 2>conftest.er1
15809   ac_status=$?
15810   grep -v '^ *+' conftest.er1 >conftest.err
15811   rm -f conftest.er1
15812   cat conftest.err >&5
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); } && {
15815          test -z "$ac_c_werror_flag" ||
15816          test ! -s conftest.err
15817        } && test -s conftest$ac_exeext &&
15818        $as_test_x conftest$ac_exeext; then
15819    echo "*** The test program compiled, but did not run. This usually means"
15820        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
15821        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
15822        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15823        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15824        echo "*** is required on your system"
15825        echo "***"
15826        echo "*** If you have an old version installed, it is best to remove it, although"
15827        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15828 else
15829   echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832          echo "*** The test program failed to compile or link. See the file config.log for the"
15833        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
15834        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
15835        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
15836 fi
15837
15838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15839       conftest$ac_exeext conftest.$ac_ext
15840        CFLAGS="$ac_save_CFLAGS"
15841        LIBS="$ac_save_LIBS"
15842      fi
15843      LIBFLAC_CFLAGS=""
15844      LIBFLAC_LIBS=""
15845      :
15846   fi
15847
15848
15849   rm -f conf.libFLACtest
15850
15851
15852 # Check whether --with-libOggFLAC was given.
15853 if test "${with_libOggFLAC+set}" = set; then
15854   withval=$with_libOggFLAC; libOggFLAC_prefix="$withval"
15855 else
15856   libOggFLAC_prefix=""
15857 fi
15858
15859
15860 # Check whether --with-libOggFLAC-libraries was given.
15861 if test "${with_libOggFLAC_libraries+set}" = set; then
15862   withval=$with_libOggFLAC_libraries; libOggFLAC_libraries="$withval"
15863 else
15864   libOggFLAC_libraries=""
15865 fi
15866
15867
15868 # Check whether --with-libOggFLAC-includes was given.
15869 if test "${with_libOggFLAC_includes+set}" = set; then
15870   withval=$with_libOggFLAC_includes; libOggFLAC_includes="$withval"
15871 else
15872   libOggFLAC_includes=""
15873 fi
15874
15875 # Check whether --enable-libOggFLACtest was given.
15876 if test "${enable_libOggFLACtest+set}" = set; then
15877   enableval=$enable_libOggFLACtest;
15878 else
15879   enable_libOggFLACtest=yes
15880 fi
15881
15882
15883   if test "x$libOggFLAC_libraries" != "x" ; then
15884     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
15885   elif test "x$libOggFLAC_prefix" != "x" ; then
15886     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
15887   elif test "x$prefix" != "xNONE" ; then
15888     LIBOGGFLAC_LIBS="-L$prefix/lib"
15889   fi
15890
15891   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
15892
15893   if test "x$libOggFLAC_includes" != "x" ; then
15894     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
15895   elif test "x$libOggFLAC_prefix" != "x" ; then
15896     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
15897   elif test "$prefix" != "xNONE"; then
15898     LIBOGGFLAC_CFLAGS="-I$prefix/include"
15899   fi
15900
15901   { echo "$as_me:$LINENO: checking for libOggFLAC" >&5
15902 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6; }
15903   no_libOggFLAC=""
15904
15905
15906   if test "x$enable_libOggFLACtest" = "xyes" ; then
15907     ac_save_CFLAGS="$CFLAGS"
15908     ac_save_CXXFLAGS="$CXXFLAGS"
15909     ac_save_LIBS="$LIBS"
15910     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15911     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
15912     LIBS="$LIBS $LIBOGGFLAC_LIBS"
15913       rm -f conf.libOggFLACtest
15914       if test "$cross_compiling" = yes; then
15915   echo $ac_n "cross compiling; assumed OK... $ac_c"
15916 else
15917   cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h.  */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h.  */
15923
15924 #include <stdio.h>
15925 #include <stdlib.h>
15926 #include <string.h>
15927 #include <OggFLAC/stream_decoder.h>
15928
15929 int main ()
15930 {
15931   system("touch conf.libOggFLACtest");
15932   return 0;
15933 }
15934
15935
15936 _ACEOF
15937 rm -f conftest$ac_exeext
15938 if { (ac_try="$ac_link"
15939 case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_link") 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15948   { (case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_try") 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957   :
15958 else
15959   echo "$as_me: program exited with status $ac_status" >&5
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 ( exit $ac_status )
15964 no_libOggFLAC=yes
15965 fi
15966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15967 fi
15968
15969
15970        CFLAGS="$ac_save_CFLAGS"
15971        LIBS="$ac_save_LIBS"
15972   fi
15973
15974   if test "x$no_libOggFLAC" = "x" ; then
15975      { echo "$as_me:$LINENO: result: yes" >&5
15976 echo "${ECHO_T}yes" >&6; }
15977
15978       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
15979       for f in $LIBOGGFLAC_CFLAGS; do
15980     case ".$f" in
15981         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
15982         *)              CFLAGS="$CFLAGS $f" ;;
15983     esac
15984 done
15985
15986       LIBS="$LIBS $LIBOGGFLAC_LIBS"
15987
15988   else
15989      { echo "$as_me:$LINENO: result: no" >&5
15990 echo "${ECHO_T}no" >&6; }
15991      if test -f conf.libOggFLACtest ; then
15992        :
15993      else
15994        echo "*** Could not run libOggFLAC test program, checking why..."
15995        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15996        LIBS="$LIBS $LIBOGGFLAC_LIBS"
15997        cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h.  */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h.  */
16003
16004 #include <stdio.h>
16005 #include <OggFLAC/stream_decoder.h>
16006
16007 int
16008 main ()
16009 {
16010  return 0;
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 rm -f conftest.$ac_objext conftest$ac_exeext
16016 if { (ac_try="$ac_link"
16017 case "(($ac_try" in
16018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019   *) ac_try_echo=$ac_try;;
16020 esac
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022   (eval "$ac_link") 2>conftest.er1
16023   ac_status=$?
16024   grep -v '^ *+' conftest.er1 >conftest.err
16025   rm -f conftest.er1
16026   cat conftest.err >&5
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } && {
16029          test -z "$ac_c_werror_flag" ||
16030          test ! -s conftest.err
16031        } && test -s conftest$ac_exeext &&
16032        $as_test_x conftest$ac_exeext; then
16033    echo "*** The test program compiled, but did not run. This usually means"
16034        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
16035        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
16036        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16037        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
16038        echo "*** is required on your system"
16039        echo "***"
16040        echo "*** If you have an old version installed, it is best to remove it, although"
16041        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046          echo "*** The test program failed to compile or link. See the file config.log for the"
16047        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
16048        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
16049        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
16050 fi
16051
16052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16053       conftest$ac_exeext conftest.$ac_ext
16054        CFLAGS="$ac_save_CFLAGS"
16055        LIBS="$ac_save_LIBS"
16056      fi
16057      LIBOGGFLAC_CFLAGS=""
16058      LIBOGGFLAC_LIBS=""
16059      :
16060   fi
16061
16062
16063   rm -f conf.libOggFLACtest
16064
16065   else
16066     { echo "$as_me:$LINENO: result: no" >&5
16067 echo "${ECHO_T}no" >&6; }
16068   fi
16069 fi
16070 { echo "$as_me:$LINENO: checking enable_audio=speex" >&5
16071 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6; }
16072 if test "x$au_enable_speex" = xyes; then
16073   if test "${have_speex+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082
16083   #include <speex/speex.h>
16084   #include <ogg/ogg.h>
16085
16086 int
16087 main ()
16088 {
16089
16090     SpeexBits *dummy;
16091
16092   ;
16093   return 0;
16094 }
16095 _ACEOF
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (ac_try="$ac_link"
16098 case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_link") 2>conftest.er1
16104   ac_status=$?
16105   grep -v '^ *+' conftest.er1 >conftest.err
16106   rm -f conftest.er1
16107   cat conftest.err >&5
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } && {
16110          test -z "$ac_c_werror_flag" ||
16111          test ! -s conftest.err
16112        } && test -s conftest$ac_exeext &&
16113        $as_test_x conftest$ac_exeext; then
16114   have_speex=yes
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119         have_speex=no
16120 fi
16121
16122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16123       conftest$ac_exeext conftest.$ac_ext
16124 fi
16125
16126   { echo "$as_me:$LINENO: result: $have_speex" >&5
16127 echo "${ECHO_T}$have_speex" >&6; }
16128   if test "x$have_speex" = xyes; then
16129     SYSEXTRAS="$SYSEXTRAS speex_a.c"
16130     EXTRALIBS="$EXTRALIBS -lspeex -logg"
16131     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
16132   fi
16133 else
16134   { echo "$as_me:$LINENO: result: no" >&5
16135 echo "${ECHO_T}no" >&6; }
16136 fi
16137
16138 { echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
16139 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6; }
16140 if test "x$au_enable_gogo" = xyes; then
16141   if test "x$MSYS" = "xyes"; then
16142     { echo "$as_me:$LINENO: result: yes" >&5
16143 echo "${ECHO_T}yes" >&6; }
16144   else
16145     { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
16146 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
16147   fi
16148   if test "${ac_cv_header_gogo_gogo_h+set}" = set; then
16149   { echo "$as_me:$LINENO: checking for gogo/gogo.h" >&5
16150 echo $ECHO_N "checking for gogo/gogo.h... $ECHO_C" >&6; }
16151 if test "${ac_cv_header_gogo_gogo_h+set}" = set; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 fi
16154 { echo "$as_me:$LINENO: result: $ac_cv_header_gogo_gogo_h" >&5
16155 echo "${ECHO_T}$ac_cv_header_gogo_gogo_h" >&6; }
16156 else
16157   # Is the header compilable?
16158 { echo "$as_me:$LINENO: checking gogo/gogo.h usability" >&5
16159 echo $ECHO_N "checking gogo/gogo.h usability... $ECHO_C" >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h.  */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h.  */
16166 $ac_includes_default
16167 #include <gogo/gogo.h>
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_compile") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } && {
16183          test -z "$ac_c_werror_flag" ||
16184          test ! -s conftest.err
16185        } && test -s conftest.$ac_objext; then
16186   ac_header_compiler=yes
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191         ac_header_compiler=no
16192 fi
16193
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16196 echo "${ECHO_T}$ac_header_compiler" >&6; }
16197
16198 # Is the header present?
16199 { echo "$as_me:$LINENO: checking gogo/gogo.h presence" >&5
16200 echo $ECHO_N "checking gogo/gogo.h presence... $ECHO_C" >&6; }
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h.  */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h.  */
16207 #include <gogo/gogo.h>
16208 _ACEOF
16209 if { (ac_try="$ac_cpp conftest.$ac_ext"
16210 case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16216   ac_status=$?
16217   grep -v '^ *+' conftest.er1 >conftest.err
16218   rm -f conftest.er1
16219   cat conftest.err >&5
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); } >/dev/null && {
16222          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16223          test ! -s conftest.err
16224        }; then
16225   ac_header_preproc=yes
16226 else
16227   echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16229
16230   ac_header_preproc=no
16231 fi
16232
16233 rm -f conftest.err conftest.$ac_ext
16234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16235 echo "${ECHO_T}$ac_header_preproc" >&6; }
16236
16237 # So?  What about this header?
16238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16239   yes:no: )
16240     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: accepted by the compiler, rejected by the preprocessor!" >&5
16241 echo "$as_me: WARNING: gogo/gogo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16242     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: proceeding with the compiler's result" >&5
16243 echo "$as_me: WARNING: gogo/gogo.h: proceeding with the compiler's result" >&2;}
16244     ac_header_preproc=yes
16245     ;;
16246   no:yes:* )
16247     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: present but cannot be compiled" >&5
16248 echo "$as_me: WARNING: gogo/gogo.h: present but cannot be compiled" >&2;}
16249     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h:     check for missing prerequisite headers?" >&5
16250 echo "$as_me: WARNING: gogo/gogo.h:     check for missing prerequisite headers?" >&2;}
16251     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: see the Autoconf documentation" >&5
16252 echo "$as_me: WARNING: gogo/gogo.h: see the Autoconf documentation" >&2;}
16253     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h:     section \"Present But Cannot Be Compiled\"" >&5
16254 echo "$as_me: WARNING: gogo/gogo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16255     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: proceeding with the preprocessor's result" >&5
16256 echo "$as_me: WARNING: gogo/gogo.h: proceeding with the preprocessor's result" >&2;}
16257     { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: in the future, the compiler will take precedence" >&5
16258 echo "$as_me: WARNING: gogo/gogo.h: in the future, the compiler will take precedence" >&2;}
16259     ( cat <<\_ASBOX
16260 ## ------------------------------- ##
16261 ## Report this to root@mput.dip.jp ##
16262 ## ------------------------------- ##
16263 _ASBOX
16264      ) | sed "s/^/$as_me: WARNING:     /" >&2
16265     ;;
16266 esac
16267 { echo "$as_me:$LINENO: checking for gogo/gogo.h" >&5
16268 echo $ECHO_N "checking for gogo/gogo.h... $ECHO_C" >&6; }
16269 if test "${ac_cv_header_gogo_gogo_h+set}" = set; then
16270   echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272   ac_cv_header_gogo_gogo_h=$ac_header_preproc
16273 fi
16274 { echo "$as_me:$LINENO: result: $ac_cv_header_gogo_gogo_h" >&5
16275 echo "${ECHO_T}$ac_cv_header_gogo_gogo_h" >&6; }
16276
16277 fi
16278 if test $ac_cv_header_gogo_gogo_h = yes; then
16279
16280     have_gogo=yes
16281
16282 fi
16283
16284
16285   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
16286   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
16287 else
16288   { echo "$as_me:$LINENO: result: no" >&5
16289 echo "${ECHO_T}no" >&6; }
16290 fi
16291
16292 if test "x$au_enable_none" = xyes; then
16293     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
16294     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
16295 fi
16296 { echo "$as_me:$LINENO: checking default output mode" >&5
16297 echo $ECHO_N "checking default output mode... $ECHO_C" >&6; }
16298 if test "x$DEFAULT_PLAYMODE" = x; then
16299   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
16300 fi
16301 case ".$DEFAULT_PLAYMODE" in
16302   .default)  TIMIDITY_OUTPUT_ID=d ;;
16303   .oss)      TIMIDITY_OUTPUT_ID=d ;;
16304   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
16305   .sun)      TIMIDITY_OUTPUT_ID=d ;;
16306   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
16307   .irix)     TIMIDITY_OUTPUT_ID=d ;;
16308   .mme)      TIMIDITY_OUTPUT_ID=d ;;
16309   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
16310   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
16311   .w32)      TIMIDITY_OUTPUT_ID=d ;;
16312   .alib)     TIMIDITY_OUTPUT_ID=A ;;
16313   .nas)      TIMIDITY_OUTPUT_ID=n ;;
16314   .arts)     TIMIDITY_OUTPUT_ID=R ;;
16315   .esd)      TIMIDITY_OUTPUT_ID=e ;;
16316   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
16317   .npipe)    TIMIDITY_OUTPUT_ID=N ;;
16318   .wav)      TIMIDITY_OUTPUT_ID=w ;;
16319   .au)       TIMIDITY_OUTPUT_ID=u ;;
16320   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
16321   .list)     TIMIDITY_OUTPUT_ID=l ;;
16322   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
16323   .flac)     TIMIDITY_OUTPUT_ID=F ;;
16324   .speex)    TIMIDITY_OUTPUT_ID=S ;;
16325   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
16326   .jack)     TIMIDITY_OUTPUT_ID=j ;;
16327   .ao)       TIMIDITY_OUTPUT_ID=O ;;
16328   *)         TIMIDITY_OUTPUT_ID= ;;
16329 esac
16330 { echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
16331 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6; }
16332
16333
16334 #
16335 # Interface Section
16336 #
16337
16338 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng npsyn'
16339
16340 # Check whether --enable-interface was given.
16341 if test "${enable_interface+set}" = set; then
16342   enableval=$enable_interface;  for i in `echo $enableval | sed 's/,/ /g'`; do
16343       eval "enable_$i=yes"
16344     done
16345 fi
16346
16347
16348 #  Dynamic link configuration
16349 # Check whether --enable-dynamic was given.
16350 if test "${enable_dynamic+set}" = set; then
16351   enableval=$enable_dynamic;      if test "x$enable_dynamic" = xyes; then
16352       enable_dynamic=dynamic
16353     elif test "x$enable_dynamic" != xno; then
16354       for i in `echo $enableval | sed 's/,/ /g'`; do
16355         eval "enable_$i=dynamic"
16356       done
16357     fi
16358 fi
16359
16360
16361 join_targets=
16362 for i in $interface_targets; do
16363   eval "join_targets=$join_targets\$enable_$i"
16364 done
16365
16366 case ".$join_targets" in
16367 .*dynamic*) NEEDDLOPEN=yes;;
16368 *)          NEEDDLOPEN=no;;
16369 esac
16370
16371 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
16372 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
16373
16374 if test "$NEEDDLOPEN" = "yes"; then
16375   have_dl=no
16376
16377   { echo "$as_me:$LINENO: checking for LoadLibrary" >&5
16378 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6; }
16379 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 #include <windows.h>
16389
16390
16391 int
16392 main ()
16393 {
16394 LoadLibrary(0);
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406   (eval "$ac_link") 2>conftest.er1
16407   ac_status=$?
16408   grep -v '^ *+' conftest.er1 >conftest.err
16409   rm -f conftest.er1
16410   cat conftest.err >&5
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); } && {
16413          test -z "$ac_c_werror_flag" ||
16414          test ! -s conftest.err
16415        } && test -s conftest$ac_exeext &&
16416        $as_test_x conftest$ac_exeext; then
16417   wapi_cv_func_LoadLibrary=yes
16418 else
16419   echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422         wapi_cv_func_LoadLibrary=no
16423 fi
16424
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426       conftest$ac_exeext conftest.$ac_ext
16427 fi
16428
16429 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
16430   { echo "$as_me:$LINENO: result: yes" >&5
16431 echo "${ECHO_T}yes" >&6; }
16432   have_dl=w32
16433 else
16434   { echo "$as_me:$LINENO: result: no" >&5
16435 echo "${ECHO_T}no" >&6; }
16436 fi
16437
16438   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
16439
16440   if test "$have_dl" = "no"; then
16441     { echo "$as_me:$LINENO: checking for shl_load" >&5
16442 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16443 if test "${ac_cv_func_shl_load+set}" = set; then
16444   echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446   cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16454 #define shl_load innocuous_shl_load
16455
16456 /* System header to define __stub macros and hopefully few prototypes,
16457     which can conflict with char shl_load (); below.
16458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16459     <limits.h> exists even on freestanding compilers.  */
16460
16461 #ifdef __STDC__
16462 # include <limits.h>
16463 #else
16464 # include <assert.h>
16465 #endif
16466
16467 #undef shl_load
16468
16469 /* Override any GCC internal prototype to avoid an error.
16470    Use char because int might match the return type of a GCC
16471    builtin and then its argument prototype would still apply.  */
16472 #ifdef __cplusplus
16473 extern "C"
16474 #endif
16475 char shl_load ();
16476 /* The GNU C library defines this for functions which it implements
16477     to always fail with ENOSYS.  Some functions are actually named
16478     something starting with __ and the normal name is an alias.  */
16479 #if defined __stub_shl_load || defined __stub___shl_load
16480 choke me
16481 #endif
16482
16483 int
16484 main ()
16485 {
16486 return shl_load ();
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext conftest$ac_exeext
16492 if { (ac_try="$ac_link"
16493 case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498   (eval "$ac_link") 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } && {
16505          test -z "$ac_c_werror_flag" ||
16506          test ! -s conftest.err
16507        } && test -s conftest$ac_exeext &&
16508        $as_test_x conftest$ac_exeext; then
16509   ac_cv_func_shl_load=yes
16510 else
16511   echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514         ac_cv_func_shl_load=no
16515 fi
16516
16517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16518       conftest$ac_exeext conftest.$ac_ext
16519 fi
16520 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16521 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16522 if test $ac_cv_func_shl_load = yes; then
16523   have_dl=hpux
16524 fi
16525
16526   fi
16527   if test "$have_dl" = "no"; then
16528             { echo "$as_me:$LINENO: checking for NSLinkModule" >&5
16529 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6; }
16530 if test "${ac_cv_func_NSLinkModule+set}" = set; then
16531   echo $ECHO_N "(cached) $ECHO_C" >&6
16532 else
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
16540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16541 #define NSLinkModule innocuous_NSLinkModule
16542
16543 /* System header to define __stub macros and hopefully few prototypes,
16544     which can conflict with char NSLinkModule (); below.
16545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16546     <limits.h> exists even on freestanding compilers.  */
16547
16548 #ifdef __STDC__
16549 # include <limits.h>
16550 #else
16551 # include <assert.h>
16552 #endif
16553
16554 #undef NSLinkModule
16555
16556 /* Override any GCC internal prototype to avoid an error.
16557    Use char because int might match the return type of a GCC
16558    builtin and then its argument prototype would still apply.  */
16559 #ifdef __cplusplus
16560 extern "C"
16561 #endif
16562 char NSLinkModule ();
16563 /* The GNU C library defines this for functions which it implements
16564     to always fail with ENOSYS.  Some functions are actually named
16565     something starting with __ and the normal name is an alias.  */
16566 #if defined __stub_NSLinkModule || defined __stub___NSLinkModule
16567 choke me
16568 #endif
16569
16570 int
16571 main ()
16572 {
16573 return NSLinkModule ();
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (ac_try="$ac_link"
16580 case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_link") 2>conftest.er1
16586   ac_status=$?
16587   grep -v '^ *+' conftest.er1 >conftest.err
16588   rm -f conftest.er1
16589   cat conftest.err >&5
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); } && {
16592          test -z "$ac_c_werror_flag" ||
16593          test ! -s conftest.err
16594        } && test -s conftest$ac_exeext &&
16595        $as_test_x conftest$ac_exeext; then
16596   ac_cv_func_NSLinkModule=yes
16597 else
16598   echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601         ac_cv_func_NSLinkModule=no
16602 fi
16603
16604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16605       conftest$ac_exeext conftest.$ac_ext
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
16608 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6; }
16609 if test $ac_cv_func_NSLinkModule = yes; then
16610   have_dl=dyld
16611 fi
16612
16613   fi
16614   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
16615     have_dl=dlopen
16616   fi
16617   if test "$have_dl" = "no"; then
16618     { echo "$as_me:$LINENO: checking for dlopen" >&5
16619 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16620 if test "${ac_cv_func_dlopen+set}" = set; then
16621   echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623   cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h.  */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h.  */
16629 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16631 #define dlopen innocuous_dlopen
16632
16633 /* System header to define __stub macros and hopefully few prototypes,
16634     which can conflict with char dlopen (); below.
16635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636     <limits.h> exists even on freestanding compilers.  */
16637
16638 #ifdef __STDC__
16639 # include <limits.h>
16640 #else
16641 # include <assert.h>
16642 #endif
16643
16644 #undef dlopen
16645
16646 /* Override any GCC internal prototype to avoid an error.
16647    Use char because int might match the return type of a GCC
16648    builtin and then its argument prototype would still apply.  */
16649 #ifdef __cplusplus
16650 extern "C"
16651 #endif
16652 char dlopen ();
16653 /* The GNU C library defines this for functions which it implements
16654     to always fail with ENOSYS.  Some functions are actually named
16655     something starting with __ and the normal name is an alias.  */
16656 #if defined __stub_dlopen || defined __stub___dlopen
16657 choke me
16658 #endif
16659
16660 int
16661 main ()
16662 {
16663 return dlopen ();
16664   ;
16665   return 0;
16666 }
16667 _ACEOF
16668 rm -f conftest.$ac_objext conftest$ac_exeext
16669 if { (ac_try="$ac_link"
16670 case "(($ac_try" in
16671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672   *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675   (eval "$ac_link") 2>conftest.er1
16676   ac_status=$?
16677   grep -v '^ *+' conftest.er1 >conftest.err
16678   rm -f conftest.er1
16679   cat conftest.err >&5
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); } && {
16682          test -z "$ac_c_werror_flag" ||
16683          test ! -s conftest.err
16684        } && test -s conftest$ac_exeext &&
16685        $as_test_x conftest$ac_exeext; then
16686   ac_cv_func_dlopen=yes
16687 else
16688   echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691         ac_cv_func_dlopen=no
16692 fi
16693
16694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16695       conftest$ac_exeext conftest.$ac_ext
16696 fi
16697 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16698 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16699 if test $ac_cv_func_dlopen = yes; then
16700   have_dl=dlopen
16701 fi
16702
16703   fi
16704   if test "$have_dl" = "no"; then
16705     { echo "$as_me:$LINENO: checking for dld_init" >&5
16706 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6; }
16707 if test "${ac_cv_func_dld_init+set}" = set; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710   cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
16717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16718 #define dld_init innocuous_dld_init
16719
16720 /* System header to define __stub macros and hopefully few prototypes,
16721     which can conflict with char dld_init (); below.
16722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16723     <limits.h> exists even on freestanding compilers.  */
16724
16725 #ifdef __STDC__
16726 # include <limits.h>
16727 #else
16728 # include <assert.h>
16729 #endif
16730
16731 #undef dld_init
16732
16733 /* Override any GCC internal prototype to avoid an error.
16734    Use char because int might match the return type of a GCC
16735    builtin and then its argument prototype would still apply.  */
16736 #ifdef __cplusplus
16737 extern "C"
16738 #endif
16739 char dld_init ();
16740 /* The GNU C library defines this for functions which it implements
16741     to always fail with ENOSYS.  Some functions are actually named
16742     something starting with __ and the normal name is an alias.  */
16743 #if defined __stub_dld_init || defined __stub___dld_init
16744 choke me
16745 #endif
16746
16747 int
16748 main ()
16749 {
16750 return dld_init ();
16751   ;
16752   return 0;
16753 }
16754 _ACEOF
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (ac_try="$ac_link"
16757 case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_link") 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } && {
16769          test -z "$ac_c_werror_flag" ||
16770          test ! -s conftest.err
16771        } && test -s conftest$ac_exeext &&
16772        $as_test_x conftest$ac_exeext; then
16773   ac_cv_func_dld_init=yes
16774 else
16775   echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16777
16778         ac_cv_func_dld_init=no
16779 fi
16780
16781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16782       conftest$ac_exeext conftest.$ac_ext
16783 fi
16784 { echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
16785 echo "${ECHO_T}$ac_cv_func_dld_init" >&6; }
16786 if test $ac_cv_func_dld_init = yes; then
16787   have_dl=dld
16788 fi
16789
16790   fi
16791   if test "$have_dl" = "no"; then
16792     { echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
16793 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6; }
16794 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
16795   echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797   ac_check_lib_save_LIBS=$LIBS
16798 LIBS="-ldld  $LIBS"
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805
16806 /* Override any GCC internal prototype to avoid an error.
16807    Use char because int might match the return type of a GCC
16808    builtin and then its argument prototype would still apply.  */
16809 #ifdef __cplusplus
16810 extern "C"
16811 #endif
16812 char dld_init ();
16813 int
16814 main ()
16815 {
16816 return dld_init ();
16817   ;
16818   return 0;
16819 }
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_link") 2>conftest.er1
16829   ac_status=$?
16830   grep -v '^ *+' conftest.er1 >conftest.err
16831   rm -f conftest.er1
16832   cat conftest.err >&5
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } && {
16835          test -z "$ac_c_werror_flag" ||
16836          test ! -s conftest.err
16837        } && test -s conftest$ac_exeext &&
16838        $as_test_x conftest$ac_exeext; then
16839   ac_cv_lib_dld_dld_init=yes
16840 else
16841   echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844         ac_cv_lib_dld_dld_init=no
16845 fi
16846
16847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16848       conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16850 fi
16851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
16852 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6; }
16853 if test $ac_cv_lib_dld_dld_init = yes; then
16854   have_dl=dld;lib_dl_opt=-ldld
16855 fi
16856
16857   fi
16858
16859   { echo "$as_me:$LINENO: checking dynamic link method" >&5
16860 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6; }
16861   case "$have_dl" in
16862     dlopen)
16863       { echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
16864 echo "${ECHO_T}use dl_dlopen.c" >&6; }
16865       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
16866       { echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
16867 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6; }
16868 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   case "$ac_cv_header_dlfcn_h" in
16872 yes) i_dlfcn=define;;
16873 *)   i_dlfcn=undef;;
16874 esac
16875 cat > dyna.c <<EOM
16876 fred () { }
16877 EOM
16878
16879 cat > fred.c <<EOM
16880 #include <stdio.h>
16881 #$i_dlfcn I_DLFCN
16882 #ifdef I_DLFCN
16883 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
16884 #else
16885 #include <sys/types.h>
16886 #include <nlist.h>
16887 #include <link.h>
16888 #endif
16889
16890 extern int fred() ;
16891
16892 main()
16893 {
16894     void * handle ;
16895     void * symbol ;
16896 #ifndef RTLD_LAZY
16897     int mode = 1 ;
16898 #else
16899     int mode = RTLD_LAZY ;
16900 #endif
16901     handle = dlopen("./dyna.$so", mode) ;
16902     if (handle == NULL) {
16903         printf ("1\n") ;
16904         fflush (stdout) ;
16905         exit(0);
16906     }
16907     symbol = dlsym(handle, "fred") ;
16908     if (symbol == NULL) {
16909         /* try putting a leading underscore */
16910         symbol = dlsym(handle, "_fred") ;
16911         if (symbol == NULL) {
16912             printf ("2\n") ;
16913             fflush (stdout) ;
16914             exit(0);
16915         }
16916         printf ("3\n") ;
16917     }
16918     else
16919         printf ("4\n") ;
16920     fflush (stdout) ;
16921     exit(0);
16922 }
16923 EOM
16924 : Call the object file tmp-dyna.o in case dlext=o.
16925 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
16926         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
16927         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
16928         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
16929         xxx=`./fred`
16930         case $xxx in
16931         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
16932 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
16933                 ;;
16934         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
16935 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
16936                 ;;
16937         3)      timidity_cv_func_dlsym_underscore=yes
16938                 ;;
16939         4)      timidity_cv_func_dlsym_underscore=no
16940                 ;;
16941         esac
16942 else
16943         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
16944 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
16945 fi
16946 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
16947
16948 fi
16949
16950 case "x$timidity_cv_func_dlsym_underscore" in
16951 xyes)
16952 cat >>confdefs.h <<\_ACEOF
16953 #define DLSYM_NEEDS_UNDERSCORE 1
16954 _ACEOF
16955
16956         { echo "$as_me:$LINENO: result: yes" >&5
16957 echo "${ECHO_T}yes" >&6; }
16958         ;;
16959 xno)
16960         { echo "$as_me:$LINENO: result: no" >&5
16961 echo "${ECHO_T}no" >&6; }
16962         ;;
16963 esac
16964
16965       ;;
16966     dld)
16967       { echo "$as_me:$LINENO: result: use dl_dld.c" >&5
16968 echo "${ECHO_T}use dl_dld.c" >&6; }
16969       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
16970       ;;
16971     hpux)
16972       { echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
16973 echo "${ECHO_T}use dl_hpux.c" >&6; }
16974       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
16975       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
16976       ;;
16977     w32)
16978       { echo "$as_me:$LINENO: result: use dl_w32.c" >&5
16979 echo "${ECHO_T}use dl_w32.c" >&6; }
16980       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
16981       ;;
16982     dyld)
16983       { echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
16984 echo "${ECHO_T}use dl_dyld.c" >&6; }
16985       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
16986       ;;
16987     *)
16988       NEEDDLOPEN="no"
16989       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
16990 echo "$as_me: WARNING: no method to open a shared object" >&2;}
16991       ;;
16992   esac
16993 fi
16994
16995 if test "$NEEDDLOPEN" = "yes"; then
16996   cat >> confdefs.h <<EOF
16997 #define IA_DYNAMIC 1
16998 EOF
16999
17000
17001 cat >>confdefs.h <<_ACEOF
17002 #define SHARED_LIB_EXT ".$so"
17003 _ACEOF
17004
17005       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
17006 fi
17007
17008
17009
17010 if test "$NEEDDLOPEN" = "yes"; then
17011   NEEDDLOPEN_TRUE=
17012   NEEDDLOPEN_FALSE='#'
17013 else
17014   NEEDDLOPEN_TRUE='#'
17015   NEEDDLOPEN_FALSE=
17016 fi
17017
17018
17019 # Check whether --enable-xdnd was given.
17020 if test "${enable_xdnd+set}" = set; then
17021   enableval=$enable_xdnd;  if test "$enableval" = "yes"; then
17022
17023 cat >>confdefs.h <<\_ACEOF
17024 #define XDND 1
17025 _ACEOF
17026
17027     XDND_SRCS="xdnd.c"
17028     enable_xdnd=yes
17029     fi
17030
17031 fi
17032
17033
17034
17035 if test "x$enable_xdnd" = "xyes"; then
17036   ENABLE_XDND_TRUE=
17037   ENABLE_XDND_FALSE='#'
17038 else
17039   ENABLE_XDND_TRUE='#'
17040   ENABLE_XDND_FALSE=
17041 fi
17042
17043
17044
17045
17046
17047 if false; then
17048   ENABLE_NCURSES_TRUE=
17049   ENABLE_NCURSES_FALSE='#'
17050 else
17051   ENABLE_NCURSES_TRUE='#'
17052   ENABLE_NCURSES_FALSE=
17053 fi
17054
17055 # Check whether --enable-ncurses was given.
17056 if test "${enable_ncurses+set}" = set; then
17057   enableval=$enable_ncurses; case "x$enable_ncurses" in xyes|xdynamic)
17058
17059
17060 for ac_header in ncurses.h ncurses/curses.h curses.h
17061 do
17062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17064   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 fi
17069 ac_res=`eval echo '${'$as_ac_Header'}'`
17070                { echo "$as_me:$LINENO: result: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17072 else
17073   # Is the header compilable?
17074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082 $ac_includes_default
17083 #include <$ac_header>
17084 _ACEOF
17085 rm -f conftest.$ac_objext
17086 if { (ac_try="$ac_compile"
17087 case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_compile") 2>conftest.er1
17093   ac_status=$?
17094   grep -v '^ *+' conftest.er1 >conftest.err
17095   rm -f conftest.er1
17096   cat conftest.err >&5
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); } && {
17099          test -z "$ac_c_werror_flag" ||
17100          test ! -s conftest.err
17101        } && test -s conftest.$ac_objext; then
17102   ac_header_compiler=yes
17103 else
17104   echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17106
17107         ac_header_compiler=no
17108 fi
17109
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17112 echo "${ECHO_T}$ac_header_compiler" >&6; }
17113
17114 # Is the header present?
17115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123 #include <$ac_header>
17124 _ACEOF
17125 if { (ac_try="$ac_cpp conftest.$ac_ext"
17126 case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } >/dev/null && {
17138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17139          test ! -s conftest.err
17140        }; then
17141   ac_header_preproc=yes
17142 else
17143   echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146   ac_header_preproc=no
17147 fi
17148
17149 rm -f conftest.err conftest.$ac_ext
17150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17151 echo "${ECHO_T}$ac_header_preproc" >&6; }
17152
17153 # So?  What about this header?
17154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17155   yes:no: )
17156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17160     ac_header_preproc=yes
17161     ;;
17162   no:yes:* )
17163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17175     ( cat <<\_ASBOX
17176 ## ------------------------------- ##
17177 ## Report this to root@mput.dip.jp ##
17178 ## ------------------------------- ##
17179 _ASBOX
17180      ) | sed "s/^/$as_me: WARNING:     /" >&2
17181     ;;
17182 esac
17183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17186   echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188   eval "$as_ac_Header=\$ac_header_preproc"
17189 fi
17190 ac_res=`eval echo '${'$as_ac_Header'}'`
17191                { echo "$as_me:$LINENO: result: $ac_res" >&5
17192 echo "${ECHO_T}$ac_res" >&6; }
17193
17194 fi
17195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17196   cat >>confdefs.h <<_ACEOF
17197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17198 _ACEOF
17199
17200 fi
17201
17202 done
17203
17204
17205
17206   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
17207     *yes*);;
17208     *)  for i in /usr/include /usr/local/include; do
17209           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
17210             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
17211 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
17212             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
17213             break
17214           fi
17215         done
17216         ;;
17217     esac
17218
17219     { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
17220 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
17221 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
17222   echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224   ac_check_lib_save_LIBS=$LIBS
17225 LIBS="-lncurses  $LIBS"
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232
17233 /* Override any GCC internal prototype to avoid an error.
17234    Use char because int might match the return type of a GCC
17235    builtin and then its argument prototype would still apply.  */
17236 #ifdef __cplusplus
17237 extern "C"
17238 #endif
17239 char initscr ();
17240 int
17241 main ()
17242 {
17243 return initscr ();
17244   ;
17245   return 0;
17246 }
17247 _ACEOF
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252   *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255   (eval "$ac_link") 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } && {
17262          test -z "$ac_c_werror_flag" ||
17263          test ! -s conftest.err
17264        } && test -s conftest$ac_exeext &&
17265        $as_test_x conftest$ac_exeext; then
17266   ac_cv_lib_ncurses_initscr=yes
17267 else
17268   echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271         ac_cv_lib_ncurses_initscr=no
17272 fi
17273
17274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17275       conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17277 fi
17278 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
17279 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
17280 if test $ac_cv_lib_ncurses_initscr = yes; then
17281   lib_curses_opt=-lncurses
17282 else
17283         { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
17284 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6; }
17285 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288   ac_check_lib_save_LIBS=$LIBS
17289 LIBS="-lcurses $lib_user32_test $LIBS"
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h.  */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h.  */
17296
17297 /* Override any GCC internal prototype to avoid an error.
17298    Use char because int might match the return type of a GCC
17299    builtin and then its argument prototype would still apply.  */
17300 #ifdef __cplusplus
17301 extern "C"
17302 #endif
17303 char PDC_set_ctrl_break ();
17304 int
17305 main ()
17306 {
17307 return PDC_set_ctrl_break ();
17308   ;
17309   return 0;
17310 }
17311 _ACEOF
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (ac_try="$ac_link"
17314 case "(($ac_try" in
17315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316   *) ac_try_echo=$ac_try;;
17317 esac
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319   (eval "$ac_link") 2>conftest.er1
17320   ac_status=$?
17321   grep -v '^ *+' conftest.er1 >conftest.err
17322   rm -f conftest.er1
17323   cat conftest.err >&5
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); } && {
17326          test -z "$ac_c_werror_flag" ||
17327          test ! -s conftest.err
17328        } && test -s conftest$ac_exeext &&
17329        $as_test_x conftest$ac_exeext; then
17330   ac_cv_lib_curses_PDC_set_ctrl_break=yes
17331 else
17332   echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335         ac_cv_lib_curses_PDC_set_ctrl_break=no
17336 fi
17337
17338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17339       conftest$ac_exeext conftest.$ac_ext
17340 LIBS=$ac_check_lib_save_LIBS
17341 fi
17342 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
17343 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6; }
17344 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
17345    lib_curses_opt=-lcurses
17346
17347 cat >>confdefs.h <<\_ACEOF
17348 #define USE_PDCURSES 1
17349 _ACEOF
17350
17351             lib_user32_opt="$lib_user32_test"
17352
17353 else
17354             { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
17355 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6; }
17356 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359   ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-lpdcurses  $LIBS"
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367
17368 /* Override any GCC internal prototype to avoid an error.
17369    Use char because int might match the return type of a GCC
17370    builtin and then its argument prototype would still apply.  */
17371 #ifdef __cplusplus
17372 extern "C"
17373 #endif
17374 char PDC_set_ctrl_break ();
17375 int
17376 main ()
17377 {
17378 return PDC_set_ctrl_break ();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_link") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } && {
17397          test -z "$ac_c_werror_flag" ||
17398          test ! -s conftest.err
17399        } && test -s conftest$ac_exeext &&
17400        $as_test_x conftest$ac_exeext; then
17401   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406         ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
17407 fi
17408
17409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17410       conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17412 fi
17413 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
17414 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6; }
17415 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
17416    lib_curses_opt=-lpdcurses
17417
17418 cat >>confdefs.h <<\_ACEOF
17419 #define USE_PDCURSES 1
17420 _ACEOF
17421
17422               lib_user32_opt="$lib_user32_test"
17423
17424 else
17425               case "$target" in
17426                 *openbsd*)
17427                   { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
17428 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
17429 if test "${ac_cv_lib_curses_initscr+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   ac_check_lib_save_LIBS=$LIBS
17433 LIBS="-lcurses  $LIBS"
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h.  */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h.  */
17440
17441 /* Override any GCC internal prototype to avoid an error.
17442    Use char because int might match the return type of a GCC
17443    builtin and then its argument prototype would still apply.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char initscr ();
17448 int
17449 main ()
17450 {
17451 return initscr ();
17452   ;
17453   return 0;
17454 }
17455 _ACEOF
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (ac_try="$ac_link"
17458 case "(($ac_try" in
17459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460   *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463   (eval "$ac_link") 2>conftest.er1
17464   ac_status=$?
17465   grep -v '^ *+' conftest.er1 >conftest.err
17466   rm -f conftest.er1
17467   cat conftest.err >&5
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } && {
17470          test -z "$ac_c_werror_flag" ||
17471          test ! -s conftest.err
17472        } && test -s conftest$ac_exeext &&
17473        $as_test_x conftest$ac_exeext; then
17474   ac_cv_lib_curses_initscr=yes
17475 else
17476   echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17478
17479         ac_cv_lib_curses_initscr=no
17480 fi
17481
17482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17483       conftest$ac_exeext conftest.$ac_ext
17484 LIBS=$ac_check_lib_save_LIBS
17485 fi
17486 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
17487 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
17488 if test $ac_cv_lib_curses_initscr = yes; then
17489   lib_curses_opt=-lcurses
17490 else
17491    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
17492 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
17493                       enable_ncurses=no
17494 fi
17495
17496                   ;;
17497                 *)
17498                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
17499                     lib_curses_opt=libpdcurses.lib
17500
17501 cat >>confdefs.h <<\_ACEOF
17502 #define USE_PDCURSES 1
17503 _ACEOF
17504
17505                   else
17506                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
17507 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
17508                     enable_ncurses=no
17509                   fi
17510                   ;;
17511               esac
17512
17513 fi
17514
17515
17516 fi
17517
17518
17519 fi
17520
17521    ;; esac
17522 fi
17523
17524 case "x$enable_ncurses" in
17525 xyes)
17526   cat >> confdefs.h <<EOF
17527 #define IA_NCURSES 1
17528 EOF
17529
17530
17531
17532 if true; then
17533   ENABLE_NCURSES_TRUE=
17534   ENABLE_NCURSES_FALSE='#'
17535 else
17536   ENABLE_NCURSES_TRUE='#'
17537   ENABLE_NCURSES_FALSE=
17538 fi
17539
17540    LIBS="$LIBS $lib_curses_opt"
17541     case "$target" in
17542        *-*-freebsd123*)
17543          EXTRALIBS="$EXTRALIBS -lmytinfo"
17544          ;;
17545      esac
17546     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
17547
17548   ;;
17549 xdynamic)
17550   dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
17551    n_so_libs="$lib_curses_opt"
17552     case "$target" in
17553        *-*-freebsd123*)
17554          EXTRALIBS="$EXTRALIBS -lmytinfo"
17555          ;;
17556      esac
17557   ;;
17558 *)
17559
17560   ;;
17561 esac
17562
17563
17564
17565
17566
17567 if false; then
17568   ENABLE_SLANG_TRUE=
17569   ENABLE_SLANG_FALSE='#'
17570 else
17571   ENABLE_SLANG_TRUE='#'
17572   ENABLE_SLANG_FALSE=
17573 fi
17574
17575 # Check whether --enable-slang was given.
17576 if test "${enable_slang+set}" = set; then
17577   enableval=$enable_slang; case "x$enable_slang" in xyes|xdynamic)  { echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
17578 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; }
17579 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582   ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-lslang  $LIBS"
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h.  */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h.  */
17590
17591 /* Override any GCC internal prototype to avoid an error.
17592    Use char because int might match the return type of a GCC
17593    builtin and then its argument prototype would still apply.  */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char SLang_init_tty ();
17598 int
17599 main ()
17600 {
17601 return SLang_init_tty ();
17602   ;
17603   return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613   (eval "$ac_link") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest$ac_exeext &&
17623        $as_test_x conftest$ac_exeext; then
17624   ac_cv_lib_slang_SLang_init_tty=yes
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629         ac_cv_lib_slang_SLang_init_tty=no
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633       conftest$ac_exeext conftest.$ac_ext
17634 LIBS=$ac_check_lib_save_LIBS
17635 fi
17636 { echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
17637 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; }
17638 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
17639   :
17640 else
17641    enable_slang=no
17642       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
17643 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
17644
17645 fi
17646
17647
17648
17649 for ac_header in slang/slang.h slang.h
17650 do
17651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17653   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 fi
17658 ac_res=`eval echo '${'$as_ac_Header'}'`
17659                { echo "$as_me:$LINENO: result: $ac_res" >&5
17660 echo "${ECHO_T}$ac_res" >&6; }
17661 else
17662   # Is the header compilable?
17663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671 $ac_includes_default
17672 #include <$ac_header>
17673 _ACEOF
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678   *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681   (eval "$ac_compile") 2>conftest.er1
17682   ac_status=$?
17683   grep -v '^ *+' conftest.er1 >conftest.err
17684   rm -f conftest.er1
17685   cat conftest.err >&5
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } && {
17688          test -z "$ac_c_werror_flag" ||
17689          test ! -s conftest.err
17690        } && test -s conftest.$ac_objext; then
17691   ac_header_compiler=yes
17692 else
17693   echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696         ac_header_compiler=no
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17701 echo "${ECHO_T}$ac_header_compiler" >&6; }
17702
17703 # Is the header present?
17704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712 #include <$ac_header>
17713 _ACEOF
17714 if { (ac_try="$ac_cpp conftest.$ac_ext"
17715 case "(($ac_try" in
17716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717   *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17721   ac_status=$?
17722   grep -v '^ *+' conftest.er1 >conftest.err
17723   rm -f conftest.er1
17724   cat conftest.err >&5
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); } >/dev/null && {
17727          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17728          test ! -s conftest.err
17729        }; then
17730   ac_header_preproc=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735   ac_header_preproc=no
17736 fi
17737
17738 rm -f conftest.err conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17740 echo "${ECHO_T}$ac_header_preproc" >&6; }
17741
17742 # So?  What about this header?
17743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17744   yes:no: )
17745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17749     ac_header_preproc=yes
17750     ;;
17751   no:yes:* )
17752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17764     ( cat <<\_ASBOX
17765 ## ------------------------------- ##
17766 ## Report this to root@mput.dip.jp ##
17767 ## ------------------------------- ##
17768 _ASBOX
17769      ) | sed "s/^/$as_me: WARNING:     /" >&2
17770     ;;
17771 esac
17772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775   echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777   eval "$as_ac_Header=\$ac_header_preproc"
17778 fi
17779 ac_res=`eval echo '${'$as_ac_Header'}'`
17780                { echo "$as_me:$LINENO: result: $ac_res" >&5
17781 echo "${ECHO_T}$ac_res" >&6; }
17782
17783 fi
17784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17785   cat >>confdefs.h <<_ACEOF
17786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17787 _ACEOF
17788
17789 fi
17790
17791 done
17792
17793    ;; esac
17794 fi
17795
17796 case "x$enable_slang" in
17797 xyes)
17798   cat >> confdefs.h <<EOF
17799 #define IA_SLANG 1
17800 EOF
17801
17802
17803
17804 if true; then
17805   ENABLE_SLANG_TRUE=
17806   ENABLE_SLANG_FALSE='#'
17807 else
17808   ENABLE_SLANG_TRUE='#'
17809   ENABLE_SLANG_FALSE=
17810 fi
17811
17812    case "$target" in
17813        *openbsd*)
17814         { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
17815 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
17816 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819   ac_check_lib_save_LIBS=$LIBS
17820 LIBS="-ltermcap  $LIBS"
17821 cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h.  */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h.  */
17827
17828 /* Override any GCC internal prototype to avoid an error.
17829    Use char because int might match the return type of a GCC
17830    builtin and then its argument prototype would still apply.  */
17831 #ifdef __cplusplus
17832 extern "C"
17833 #endif
17834 char initscr ();
17835 int
17836 main ()
17837 {
17838 return initscr ();
17839   ;
17840   return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext conftest$ac_exeext
17844 if { (ac_try="$ac_link"
17845 case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850   (eval "$ac_link") 2>conftest.er1
17851   ac_status=$?
17852   grep -v '^ *+' conftest.er1 >conftest.err
17853   rm -f conftest.er1
17854   cat conftest.err >&5
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); } && {
17857          test -z "$ac_c_werror_flag" ||
17858          test ! -s conftest.err
17859        } && test -s conftest$ac_exeext &&
17860        $as_test_x conftest$ac_exeext; then
17861   ac_cv_lib_termcap_initscr=yes
17862 else
17863   echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17865
17866         ac_cv_lib_termcap_initscr=no
17867 fi
17868
17869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870       conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17872 fi
17873 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
17874 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
17875 if test $ac_cv_lib_termcap_initscr = yes; then
17876    LIBS="$LIBS -lslang -ltermcap"
17877                        INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
17878
17879                       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
17880 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
17881                        enable_slang=no
17882
17883 fi
17884
17885         ;;
17886        *)
17887         LIBS="$LIBS -lslang"
17888         INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
17889        ;;
17890     esac
17891
17892   ;;
17893 xdynamic)
17894   dynamic_targets="$dynamic_targets if_slang.\$(so)"
17895    s_so_libs="-lslang"
17896     { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
17897 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
17898 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
17899   echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901   ac_check_lib_save_LIBS=$LIBS
17902 LIBS="-ltermcap  $LIBS"
17903 cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h.  */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h.  */
17909
17910 /* Override any GCC internal prototype to avoid an error.
17911    Use char because int might match the return type of a GCC
17912    builtin and then its argument prototype would still apply.  */
17913 #ifdef __cplusplus
17914 extern "C"
17915 #endif
17916 char initscr ();
17917 int
17918 main ()
17919 {
17920 return initscr ();
17921   ;
17922   return 0;
17923 }
17924 _ACEOF
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932   (eval "$ac_link") 2>conftest.er1
17933   ac_status=$?
17934   grep -v '^ *+' conftest.er1 >conftest.err
17935   rm -f conftest.er1
17936   cat conftest.err >&5
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); } && {
17939          test -z "$ac_c_werror_flag" ||
17940          test ! -s conftest.err
17941        } && test -s conftest$ac_exeext &&
17942        $as_test_x conftest$ac_exeext; then
17943   ac_cv_lib_termcap_initscr=yes
17944 else
17945   echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17947
17948         ac_cv_lib_termcap_initscr=no
17949 fi
17950
17951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17952       conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17954 fi
17955 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
17956 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
17957 if test $ac_cv_lib_termcap_initscr = yes; then
17958   s_so_libs="$s_so_libs -ltermcap"
17959 fi
17960
17961
17962   ;;
17963 *)
17964
17965   ;;
17966 esac
17967
17968
17969
17970
17971
17972 if false; then
17973   ENABLE_MOTIF_TRUE=
17974   ENABLE_MOTIF_FALSE='#'
17975 else
17976   ENABLE_MOTIF_TRUE='#'
17977   ENABLE_MOTIF_FALSE=
17978 fi
17979
17980 # Check whether --enable-motif was given.
17981 if test "${enable_motif+set}" = set; then
17982   enableval=$enable_motif; case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17983         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
17984 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
17985    { (exit 1); exit 1; }; }
17986     fi
17987     if test "x$have_xm" != xyes; then
17988       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
17989 echo "$as_me: WARNING: Motif library is not found." >&2;}
17990       enable_motif=no
17991     fi
17992    ;; esac
17993 fi
17994
17995 case "x$enable_motif" in
17996 xyes)
17997   cat >> confdefs.h <<EOF
17998 #define IA_MOTIF 1
17999 EOF
18000
18001
18002
18003 if true; then
18004   ENABLE_MOTIF_TRUE=
18005   ENABLE_MOTIF_FALSE='#'
18006 else
18007   ENABLE_MOTIF_TRUE='#'
18008   ENABLE_MOTIF_FALSE=
18009 fi
18010
18011    lib_xm_opt=-lXm
18012     lib_xt_opt=-lXt
18013     lib_xext_opt=-lXext
18014     if test "x$have_xprelibs" = xyes; then
18015         lib_xprelibs_opt='-lSM -lICE'
18016     fi
18017     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
18018
18019   ;;
18020 xdynamic)
18021   dynamic_targets="$dynamic_targets if_motif.\$(so)"
18022    if test x$have_xprelibs = xyes; then
18023       m_so_libs="-lXext -lSM -lICE"
18024     fi
18025     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
18026
18027   ;;
18028 *)
18029
18030   ;;
18031 esac
18032
18033
18034
18035
18036
18037 if false; then
18038   ENABLE_TCLTK_TRUE=
18039   ENABLE_TCLTK_FALSE='#'
18040 else
18041   ENABLE_TCLTK_TRUE='#'
18042   ENABLE_TCLTK_FALSE=
18043 fi
18044
18045 # Check whether --enable-tcltk was given.
18046 if test "${enable_tcltk+set}" = set; then
18047   enableval=$enable_tcltk; case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
18048         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
18049 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
18050    { (exit 1); exit 1; }; }
18051     fi
18052
18053         KEEPCPPFLAGS=$CPPFLAGS
18054     KEEPLDFLAGS=$LDFLAGS
18055     KEEPLIBS=$LIBS
18056
18057     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
18058     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
18059     LIBS="$LIBS $lib_dl_opt"
18060
18061     tcl_lib=
18062     tk_lib=
18063     for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
18064       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
18065 { echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
18066 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6; }
18067 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18068   echo $ECHO_N "(cached) $ECHO_C" >&6
18069 else
18070   ac_check_lib_save_LIBS=$LIBS
18071 LIBS="-l$l  $LIBS"
18072 cat >conftest.$ac_ext <<_ACEOF
18073 /* confdefs.h.  */
18074 _ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h.  */
18078
18079 /* Override any GCC internal prototype to avoid an error.
18080    Use char because int might match the return type of a GCC
18081    builtin and then its argument prototype would still apply.  */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 char Tcl_Init ();
18086 int
18087 main ()
18088 {
18089 return Tcl_Init ();
18090   ;
18091   return 0;
18092 }
18093 _ACEOF
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098   *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101   (eval "$ac_link") 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } && {
18108          test -z "$ac_c_werror_flag" ||
18109          test ! -s conftest.err
18110        } && test -s conftest$ac_exeext &&
18111        $as_test_x conftest$ac_exeext; then
18112   eval "$as_ac_Lib=yes"
18113 else
18114   echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18116
18117         eval "$as_ac_Lib=no"
18118 fi
18119
18120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18121       conftest$ac_exeext conftest.$ac_ext
18122 LIBS=$ac_check_lib_save_LIBS
18123 fi
18124 ac_res=`eval echo '${'$as_ac_Lib'}'`
18125                { echo "$as_me:$LINENO: result: $ac_res" >&5
18126 echo "${ECHO_T}$ac_res" >&6; }
18127 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18128   tcl_lib=-l$l
18129 fi
18130 ;; esac
18131     done
18132     LIBS="$LIBS $tcl_lib"
18133     for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
18134       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
18135 { echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
18136 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6; }
18137 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   ac_check_lib_save_LIBS=$LIBS
18141 LIBS="-l$l  $LIBS"
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148
18149 /* Override any GCC internal prototype to avoid an error.
18150    Use char because int might match the return type of a GCC
18151    builtin and then its argument prototype would still apply.  */
18152 #ifdef __cplusplus
18153 extern "C"
18154 #endif
18155 char Tk_Init ();
18156 int
18157 main ()
18158 {
18159 return Tk_Init ();
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_link") 2>conftest.er1
18172   ac_status=$?
18173   grep -v '^ *+' conftest.er1 >conftest.err
18174   rm -f conftest.er1
18175   cat conftest.err >&5
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); } && {
18178          test -z "$ac_c_werror_flag" ||
18179          test ! -s conftest.err
18180        } && test -s conftest$ac_exeext &&
18181        $as_test_x conftest$ac_exeext; then
18182   eval "$as_ac_Lib=yes"
18183 else
18184   echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187         eval "$as_ac_Lib=no"
18188 fi
18189
18190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18191       conftest$ac_exeext conftest.$ac_ext
18192 LIBS=$ac_check_lib_save_LIBS
18193 fi
18194 ac_res=`eval echo '${'$as_ac_Lib'}'`
18195                { echo "$as_me:$LINENO: result: $ac_res" >&5
18196 echo "${ECHO_T}$ac_res" >&6; }
18197 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18198   tk_lib=-l$l
18199 fi
18200 ;; esac
18201     done
18202
18203     LIBS=$KEEPLIBS
18204     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
18205       CPPFLAGS=$KEEPCPPFLAGS
18206       LDFLAGS=$KEEPLDFLAGS
18207       enable_tcltk=no
18208       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
18209 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
18210     else
18211       tcltk_dep='tclIndex'
18212     fi
18213    ;; esac
18214 fi
18215
18216 case "x$enable_tcltk" in
18217 xyes)
18218   cat >> confdefs.h <<EOF
18219 #define IA_TCLTK 1
18220 EOF
18221
18222
18223
18224 if true; then
18225   ENABLE_TCLTK_TRUE=
18226   ENABLE_TCLTK_FALSE='#'
18227 else
18228   ENABLE_TCLTK_TRUE='#'
18229   ENABLE_TCLTK_FALSE=
18230 fi
18231
18232    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
18233     case "$target" in
18234       *-*-bsdi*)
18235         EXTRALIBS="$EXTRALIBS -lipc"
18236         ;;
18237     esac
18238     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
18239
18240   ;;
18241 xdynamic)
18242   dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
18243    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
18244     case "$target" in
18245       *-*-bsdi*)
18246         k_so_libs="$k_so_libs -lipc"
18247         ;;
18248     esac
18249     k_so_libs="$k_so_libs -lX11 -lm"
18250
18251   ;;
18252 *)
18253
18254   ;;
18255 esac
18256
18257
18258
18259
18260 if test "x$enable_tcltk" = "xdynamic"; then
18261   ENABLE_DYNAMIC_TCLTK_TRUE=
18262   ENABLE_DYNAMIC_TCLTK_FALSE='#'
18263 else
18264   ENABLE_DYNAMIC_TCLTK_TRUE='#'
18265   ENABLE_DYNAMIC_TCLTK_FALSE=
18266 fi
18267
18268
18269
18270
18271 if false; then
18272   ENABLE_EMACS_TRUE=
18273   ENABLE_EMACS_FALSE='#'
18274 else
18275   ENABLE_EMACS_TRUE='#'
18276   ENABLE_EMACS_FALSE=
18277 fi
18278
18279 # Check whether --enable-emacs was given.
18280 if test "${enable_emacs+set}" = set; then
18281   enableval=$enable_emacs; case "x$enable_emacs" in xyes|xdynamic)  ;; esac
18282 fi
18283
18284 case "x$enable_emacs" in
18285 xyes)
18286   cat >> confdefs.h <<EOF
18287 #define IA_EMACS 1
18288 EOF
18289
18290
18291
18292 if true; then
18293   ENABLE_EMACS_TRUE=
18294   ENABLE_EMACS_FALSE='#'
18295 else
18296   ENABLE_EMACS_TRUE='#'
18297   ENABLE_EMACS_FALSE=
18298 fi
18299
18300    ELFILES="$ELFILES timidity.el"
18301     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
18302
18303   ;;
18304 xdynamic)
18305   dynamic_targets="$dynamic_targets if_emacs.\$(so)"
18306    ELFILES="$ELFILES timidity.el"
18307   ;;
18308 *)
18309
18310   ;;
18311 esac
18312
18313
18314
18315
18316
18317 if false; then
18318   ENABLE_VT100_TRUE=
18319   ENABLE_VT100_FALSE='#'
18320 else
18321   ENABLE_VT100_TRUE='#'
18322   ENABLE_VT100_FALSE=
18323 fi
18324
18325 # Check whether --enable-vt100 was given.
18326 if test "${enable_vt100+set}" = set; then
18327   enableval=$enable_vt100; case "x$enable_vt100" in xyes|xdynamic)  ;; esac
18328 fi
18329
18330 case "x$enable_vt100" in
18331 xyes)
18332   cat >> confdefs.h <<EOF
18333 #define IA_VT100 1
18334 EOF
18335
18336
18337
18338 if true; then
18339   ENABLE_VT100_TRUE=
18340   ENABLE_VT100_FALSE='#'
18341 else
18342   ENABLE_VT100_TRUE='#'
18343   ENABLE_VT100_FALSE=
18344 fi
18345
18346    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
18347   ;;
18348 xdynamic)
18349   dynamic_targets="$dynamic_targets if_vt100.\$(so)"
18350
18351   ;;
18352 *)
18353
18354   ;;
18355 esac
18356
18357
18358
18359
18360
18361 if false; then
18362   ENABLE_XAW_TRUE=
18363   ENABLE_XAW_FALSE='#'
18364 else
18365   ENABLE_XAW_TRUE='#'
18366   ENABLE_XAW_FALSE=
18367 fi
18368
18369 # Check whether --enable-xaw was given.
18370 if test "${enable_xaw+set}" = set; then
18371   enableval=$enable_xaw; case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
18372         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
18373 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
18374    { (exit 1); exit 1; }; }
18375     fi
18376     if test "x$have_xaw" = "xno"; then
18377       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
18378 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
18379       enable_xaw=no
18380     fi  ;; esac
18381 fi
18382
18383 case "x$enable_xaw" in
18384 xyes)
18385   cat >> confdefs.h <<EOF
18386 #define IA_XAW 1
18387 EOF
18388
18389
18390
18391 if true; then
18392   ENABLE_XAW_TRUE=
18393   ENABLE_XAW_FALSE='#'
18394 else
18395   ENABLE_XAW_TRUE='#'
18396   ENABLE_XAW_FALSE=
18397 fi
18398
18399        if test "x$have_xext" = xyes; then
18400       lib_xext_opt=-lXext
18401     fi
18402     if test "x$have_xprelibs" = xyes; then
18403       lib_xprelibs_opt='-lSM -lICE'
18404     fi
18405     lib_xmu_opt=-lXmu
18406     lib_xt_opt=-lXt
18407     case "$have_xaw" in
18408       "yes")
18409         lib_xaw_opt=-lXaw
18410         ;;
18411       "3d")
18412
18413 cat >>confdefs.h <<\_ACEOF
18414 #define XAW3D 1
18415 _ACEOF
18416
18417         lib_xaw_opt=-lXaw3d
18418         ;;
18419       "plus")
18420
18421 cat >>confdefs.h <<\_ACEOF
18422 #define XAWPLUS 1
18423 _ACEOF
18424
18425         lib_xaw_opt="-lXpm -lXawPlus"
18426         ;;
18427       "next")
18428
18429 cat >>confdefs.h <<\_ACEOF
18430 #define NEXTAW 1
18431 _ACEOF
18432
18433         lib_xaw_opt=-lneXtaw
18434         ;;
18435     esac
18436     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c x_trace.c $XDND_SRCS"
18437
18438   ;;
18439 xdynamic)
18440   dynamic_targets="$dynamic_targets if_xaw.\$(so)"
18441    if test "x$have_xext" = xyes; then
18442       a_so_libs="-lXext -lX11"
18443     else
18444       a_so_libs="-lX11"
18445     fi
18446     case "$target" in
18447       *darwin*)
18448         a_so_libs="$a_so_libs -lcc_dynamic"
18449         ;;
18450     esac
18451     if test "x$have_xprelibs" = xyes; then
18452       a_so_libs="-lSM -lICE $a_so_libs"
18453     fi
18454     if test "x$have_xaw" = xyes; then
18455       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
18456     elif test "x$have_xaw" = x3d; then
18457
18458 cat >>confdefs.h <<\_ACEOF
18459 #define XAW3D 1
18460 _ACEOF
18461
18462       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
18463     fi
18464     a_so_libs="$ldflags_x_opt $a_so_libs"
18465
18466   ;;
18467 *)
18468
18469   ;;
18470 esac
18471
18472
18473
18474
18475 if test "x$enable_xaw" = "xdynamic"; then
18476   ENABLE_DYNAMIC_XAW_TRUE=
18477   ENABLE_DYNAMIC_XAW_FALSE='#'
18478 else
18479   ENABLE_DYNAMIC_XAW_TRUE='#'
18480   ENABLE_DYNAMIC_XAW_FALSE=
18481 fi
18482
18483
18484
18485
18486 if false; then
18487   ENABLE_XSKIN_TRUE=
18488   ENABLE_XSKIN_FALSE='#'
18489 else
18490   ENABLE_XSKIN_TRUE='#'
18491   ENABLE_XSKIN_FALSE=
18492 fi
18493
18494 # Check whether --enable-xskin was given.
18495 if test "${enable_xskin+set}" = set; then
18496   enableval=$enable_xskin; case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
18497         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
18498 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
18499    { (exit 1); exit 1; }; }
18500     fi
18501    ;; esac
18502 fi
18503
18504 case "x$enable_xskin" in
18505 xyes)
18506   cat >> confdefs.h <<EOF
18507 #define IA_XSKIN 1
18508 EOF
18509
18510
18511
18512 if true; then
18513   ENABLE_XSKIN_TRUE=
18514   ENABLE_XSKIN_FALSE='#'
18515 else
18516   ENABLE_XSKIN_TRUE='#'
18517   ENABLE_XSKIN_FALSE=
18518 fi
18519
18520    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
18521   ;;
18522 xdynamic)
18523   dynamic_targets="$dynamic_targets if_xskin.\$(so)"
18524    i_so_libs="$ldflags_x_opt -lX11"
18525   ;;
18526 *)
18527
18528   ;;
18529 esac
18530
18531
18532
18533
18534
18535 if false; then
18536   ENABLE_GTK_TRUE=
18537   ENABLE_GTK_FALSE='#'
18538 else
18539   ENABLE_GTK_TRUE='#'
18540   ENABLE_GTK_FALSE=
18541 fi
18542
18543 # Check whether --enable-gtk was given.
18544 if test "${enable_gtk+set}" = set; then
18545   enableval=$enable_gtk; case "x$enable_gtk" in xyes|xdynamic)  # Check whether --enable-gtktest was given.
18546 if test "${enable_gtktest+set}" = set; then
18547   enableval=$enable_gtktest;
18548 else
18549   enable_gtktest=yes
18550 fi
18551
18552
18553   pkg_config_args=gtk+-2.0
18554   for module in .
18555   do
18556       case "$module" in
18557          gthread)
18558              pkg_config_args="$pkg_config_args gthread-2.0"
18559          ;;
18560       esac
18561   done
18562
18563   no_gtk=""
18564
18565   # Extract the first word of "pkg-config", so it can be a program name with args.
18566 set dummy pkg-config; ac_word=$2
18567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   case $PKG_CONFIG in
18573   [\\/]* | ?:[\\/]*)
18574   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18575   ;;
18576   *)
18577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18578 for as_dir in $PATH
18579 do
18580   IFS=$as_save_IFS
18581   test -z "$as_dir" && as_dir=.
18582   for ac_exec_ext in '' $ac_executable_extensions; do
18583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18584     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18586     break 2
18587   fi
18588 done
18589 done
18590 IFS=$as_save_IFS
18591
18592   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18593   ;;
18594 esac
18595 fi
18596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18597 if test -n "$PKG_CONFIG"; then
18598   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18599 echo "${ECHO_T}$PKG_CONFIG" >&6; }
18600 else
18601   { echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6; }
18603 fi
18604
18605
18606
18607   if test x$PKG_CONFIG != xno ; then
18608     if pkg-config --atleast-pkgconfig-version 0.7 ; then
18609       :
18610     else
18611       echo *** pkg-config too old; version 0.7 or better required.
18612       no_gtk=yes
18613       PKG_CONFIG=no
18614     fi
18615   else
18616     no_gtk=yes
18617   fi
18618
18619   min_gtk_version=2.0.0
18620   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
18621 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
18622
18623   if test x$PKG_CONFIG != xno ; then
18624     ## don't try to run the test against uninstalled libtool libs
18625     if $PKG_CONFIG --uninstalled $pkg_config_args; then
18626           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
18627           enable_gtktest=no
18628     fi
18629
18630     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
18631           :
18632     else
18633           no_gtk=yes
18634     fi
18635   fi
18636
18637   if test x"$no_gtk" = x ; then
18638     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
18639     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
18640     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
18641            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18642     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
18643            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18644     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
18645            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18646     if test "x$enable_gtktest" = "xyes" ; then
18647       ac_save_CFLAGS="$CFLAGS"
18648       ac_save_LIBS="$LIBS"
18649       CFLAGS="$CFLAGS $GTK_CFLAGS"
18650       LIBS="$GTK_LIBS $LIBS"
18651       rm -f conf.gtktest
18652       if test "$cross_compiling" = yes; then
18653   echo $ac_n "cross compiling; assumed OK... $ac_c"
18654 else
18655   cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661
18662 #include <gtk/gtk.h>
18663 #include <stdio.h>
18664 #include <stdlib.h>
18665
18666 int
18667 main ()
18668 {
18669   int major, minor, micro;
18670   char *tmp_version;
18671
18672   system ("touch conf.gtktest");
18673
18674   /* HP/UX 9 (%@#!) writes to sscanf strings */
18675   tmp_version = g_strdup("$min_gtk_version");
18676   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18677      printf("%s, bad version string\n", "$min_gtk_version");
18678      exit(1);
18679    }
18680
18681   if ((gtk_major_version != $gtk_config_major_version) ||
18682       (gtk_minor_version != $gtk_config_minor_version) ||
18683       (gtk_micro_version != $gtk_config_micro_version))
18684     {
18685       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
18686              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
18687              gtk_major_version, gtk_minor_version, gtk_micro_version);
18688       printf ("*** was found! If pkg-config was correct, then it is best\n");
18689       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
18690       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18691       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18692       printf("*** required on your system.\n");
18693       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
18694       printf("*** to point to the correct configuration files\n");
18695     }
18696   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
18697            (gtk_minor_version != GTK_MINOR_VERSION) ||
18698            (gtk_micro_version != GTK_MICRO_VERSION))
18699     {
18700       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
18701              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
18702       printf("*** library (version %d.%d.%d)\n",
18703              gtk_major_version, gtk_minor_version, gtk_micro_version);
18704     }
18705   else
18706     {
18707       if ((gtk_major_version > major) ||
18708         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
18709         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
18710       {
18711         return 0;
18712        }
18713      else
18714       {
18715         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
18716                gtk_major_version, gtk_minor_version, gtk_micro_version);
18717         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
18718                major, minor, micro);
18719         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
18720         printf("***\n");
18721         printf("*** If you have already installed a sufficiently new version, this error\n");
18722         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
18723         printf("*** being found. The easiest way to fix this is to remove the old version\n");
18724         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
18725         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
18726         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18727         printf("*** so that the correct libraries are found at run-time))\n");
18728       }
18729     }
18730   return 1;
18731 }
18732
18733 _ACEOF
18734 rm -f conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738   *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741   (eval "$ac_link") 2>&5
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18745   { (case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_try") 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; }; then
18754   :
18755 else
18756   echo "$as_me: program exited with status $ac_status" >&5
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18759
18760 ( exit $ac_status )
18761 no_gtk=yes
18762 fi
18763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18764 fi
18765
18766
18767        CFLAGS="$ac_save_CFLAGS"
18768        LIBS="$ac_save_LIBS"
18769      fi
18770   fi
18771   if test "x$no_gtk" = x ; then
18772      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
18773 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
18774
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE_GTK_2 1
18777 _ACEOF
18778
18779   else
18780      { echo "$as_me:$LINENO: result: no" >&5
18781 echo "${ECHO_T}no" >&6; }
18782      if test "$PKG_CONFIG" = "no" ; then
18783        echo "*** A new enough version of pkg-config was not found."
18784        echo "*** See http://pkgconfig.sourceforge.net"
18785      else
18786        if test -f conf.gtktest ; then
18787         :
18788        else
18789           echo "*** Could not run GTK+ test program, checking why..."
18790           ac_save_CFLAGS="$CFLAGS"
18791           ac_save_LIBS="$LIBS"
18792           CFLAGS="$CFLAGS $GTK_CFLAGS"
18793           LIBS="$LIBS $GTK_LIBS"
18794           cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800
18801 #include <gtk/gtk.h>
18802 #include <stdio.h>
18803
18804 int
18805 main ()
18806 {
18807  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
18808   ;
18809   return 0;
18810 }
18811 _ACEOF
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (ac_try="$ac_link"
18814 case "(($ac_try" in
18815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816   *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819   (eval "$ac_link") 2>conftest.er1
18820   ac_status=$?
18821   grep -v '^ *+' conftest.er1 >conftest.err
18822   rm -f conftest.er1
18823   cat conftest.err >&5
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); } && {
18826          test -z "$ac_c_werror_flag" ||
18827          test ! -s conftest.err
18828        } && test -s conftest$ac_exeext &&
18829        $as_test_x conftest$ac_exeext; then
18830    echo "*** The test program compiled, but did not run. This usually means"
18831           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
18832           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
18833           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18834           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18835           echo "*** is required on your system"
18836           echo "***"
18837           echo "*** If you have an old version installed, it is best to remove it, although"
18838           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18839 else
18840   echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843          echo "*** The test program failed to compile or link. See the file config.log for the"
18844           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
18845 fi
18846
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848       conftest$ac_exeext conftest.$ac_ext
18849           CFLAGS="$ac_save_CFLAGS"
18850           LIBS="$ac_save_LIBS"
18851        fi
18852      fi
18853      GTK_CFLAGS=""
18854      GTK_LIBS=""
18855
18856 # Check whether --with-gtk-prefix was given.
18857 if test "${with_gtk_prefix+set}" = set; then
18858   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
18859 else
18860   gtk_config_prefix=""
18861 fi
18862
18863
18864 # Check whether --with-gtk-exec-prefix was given.
18865 if test "${with_gtk_exec_prefix+set}" = set; then
18866   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
18867 else
18868   gtk_config_exec_prefix=""
18869 fi
18870
18871 # Check whether --enable-gtktest was given.
18872 if test "${enable_gtktest+set}" = set; then
18873   enableval=$enable_gtktest;
18874 else
18875   enable_gtktest=yes
18876 fi
18877
18878
18879   for module in .
18880   do
18881       case "$module" in
18882          gthread)
18883              gtk_config_args="$gtk_config_args gthread"
18884          ;;
18885       esac
18886   done
18887
18888   if test x$gtk_config_exec_prefix != x ; then
18889      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
18890      if test x${GTK_CONFIG+set} != xset ; then
18891         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
18892      fi
18893   fi
18894   if test x$gtk_config_prefix != x ; then
18895      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
18896      if test x${GTK_CONFIG+set} != xset ; then
18897         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
18898      fi
18899   fi
18900
18901   # Extract the first word of "gtk-config", so it can be a program name with args.
18902 set dummy gtk-config; ac_word=$2
18903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18905 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
18906   echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908   case $GTK_CONFIG in
18909   [\\/]* | ?:[\\/]*)
18910   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
18911   ;;
18912   *)
18913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18914 for as_dir in $PATH
18915 do
18916   IFS=$as_save_IFS
18917   test -z "$as_dir" && as_dir=.
18918   for ac_exec_ext in '' $ac_executable_extensions; do
18919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18920     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18922     break 2
18923   fi
18924 done
18925 done
18926 IFS=$as_save_IFS
18927
18928   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
18929   ;;
18930 esac
18931 fi
18932 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
18933 if test -n "$GTK_CONFIG"; then
18934   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
18935 echo "${ECHO_T}$GTK_CONFIG" >&6; }
18936 else
18937   { echo "$as_me:$LINENO: result: no" >&5
18938 echo "${ECHO_T}no" >&6; }
18939 fi
18940
18941
18942   min_gtk_version=1.1.3
18943   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
18944 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
18945   no_gtk=""
18946   if test "$GTK_CONFIG" = "no" ; then
18947     no_gtk=yes
18948   else
18949     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
18950     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
18951     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
18952            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18953     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
18954            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18955     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
18956            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18957     if test "x$enable_gtktest" = "xyes" ; then
18958       ac_save_CFLAGS="$CFLAGS"
18959       ac_save_LIBS="$LIBS"
18960       CFLAGS="$CFLAGS $GTK_CFLAGS"
18961       LIBS="$GTK_LIBS $LIBS"
18962       rm -f conf.gtktest
18963       if test "$cross_compiling" = yes; then
18964   echo $ac_n "cross compiling; assumed OK... $ac_c"
18965 else
18966   cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972
18973 #include <gtk/gtk.h>
18974 #include <stdio.h>
18975 #include <stdlib.h>
18976
18977 int
18978 main ()
18979 {
18980   int major, minor, micro;
18981   char *tmp_version;
18982
18983   system ("touch conf.gtktest");
18984
18985   /* HP/UX 9 (%@#!) writes to sscanf strings */
18986   tmp_version = g_strdup("$min_gtk_version");
18987   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18988      printf("%s, bad version string\n", "$min_gtk_version");
18989      exit(1);
18990    }
18991
18992   if ((gtk_major_version != $gtk_config_major_version) ||
18993       (gtk_minor_version != $gtk_config_minor_version) ||
18994       (gtk_micro_version != $gtk_config_micro_version))
18995     {
18996       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
18997              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
18998              gtk_major_version, gtk_minor_version, gtk_micro_version);
18999       printf ("*** was found! If gtk-config was correct, then it is best\n");
19000       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19001       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19002       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19003       printf("*** required on your system.\n");
19004       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19005       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19006       printf("*** before re-running configure\n");
19007     }
19008 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19009   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19010            (gtk_minor_version != GTK_MINOR_VERSION) ||
19011            (gtk_micro_version != GTK_MICRO_VERSION))
19012     {
19013       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19014              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19015       printf("*** library (version %d.%d.%d)\n",
19016              gtk_major_version, gtk_minor_version, gtk_micro_version);
19017     }
19018 #endif /* defined (GTK_MAJOR_VERSION) ... */
19019   else
19020     {
19021       if ((gtk_major_version > major) ||
19022         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19023         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19024       {
19025         return 0;
19026        }
19027      else
19028       {
19029         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19030                gtk_major_version, gtk_minor_version, gtk_micro_version);
19031         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19032                major, minor, micro);
19033         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19034         printf("***\n");
19035         printf("*** If you have already installed a sufficiently new version, this error\n");
19036         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19037         printf("*** being found. The easiest way to fix this is to remove the old version\n");
19038         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19039         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19040         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19041         printf("*** so that the correct libraries are found at run-time))\n");
19042       }
19043     }
19044   return 1;
19045 }
19046
19047 _ACEOF
19048 rm -f conftest$ac_exeext
19049 if { (ac_try="$ac_link"
19050 case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_link") 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19059   { (case "(($ac_try" in
19060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061   *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064   (eval "$ac_try") 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; }; then
19068   :
19069 else
19070   echo "$as_me: program exited with status $ac_status" >&5
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 ( exit $ac_status )
19075 no_gtk=yes
19076 fi
19077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19078 fi
19079
19080
19081        CFLAGS="$ac_save_CFLAGS"
19082        LIBS="$ac_save_LIBS"
19083      fi
19084   fi
19085   if test "x$no_gtk" = x ; then
19086      { echo "$as_me:$LINENO: result: yes" >&5
19087 echo "${ECHO_T}yes" >&6; }
19088      :
19089   else
19090      { echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6; }
19092      if test "$GTK_CONFIG" = "no" ; then
19093        echo "*** The gtk-config script installed by GTK could not be found"
19094        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
19095        echo "*** your path, or set the GTK_CONFIG environment variable to the"
19096        echo "*** full path to gtk-config."
19097      else
19098        if test -f conf.gtktest ; then
19099         :
19100        else
19101           echo "*** Could not run GTK test program, checking why..."
19102           CFLAGS="$CFLAGS $GTK_CFLAGS"
19103           LIBS="$LIBS $GTK_LIBS"
19104           cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110
19111 #include <gtk/gtk.h>
19112 #include <stdio.h>
19113
19114 int
19115 main ()
19116 {
19117  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129   (eval "$ac_link") 2>conftest.er1
19130   ac_status=$?
19131   grep -v '^ *+' conftest.er1 >conftest.err
19132   rm -f conftest.er1
19133   cat conftest.err >&5
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); } && {
19136          test -z "$ac_c_werror_flag" ||
19137          test ! -s conftest.err
19138        } && test -s conftest$ac_exeext &&
19139        $as_test_x conftest$ac_exeext; then
19140    echo "*** The test program compiled, but did not run. This usually means"
19141           echo "*** that the run-time linker is not finding GTK or finding the wrong"
19142           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
19143           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19144           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
19145           echo "*** is required on your system"
19146           echo "***"
19147           echo "*** If you have an old version installed, it is best to remove it, although"
19148           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19149           echo "***"
19150           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
19151           echo "*** came with the system with the command"
19152           echo "***"
19153           echo "***    rpm --erase --nodeps gtk gtk-devel"
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158          echo "*** The test program failed to compile or link. See the file config.log for the"
19159           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
19160           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
19161           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
19162 fi
19163
19164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19165       conftest$ac_exeext conftest.$ac_ext
19166           CFLAGS="$ac_save_CFLAGS"
19167           LIBS="$ac_save_LIBS"
19168        fi
19169      fi
19170      GTK_CFLAGS=""
19171      GTK_LIBS=""
19172      enable_gtk=no
19173   fi
19174
19175
19176   rm -f conf.gtktest
19177
19178   fi
19179
19180
19181   rm -f conf.gtktest
19182   ;; esac
19183 fi
19184
19185 case "x$enable_gtk" in
19186 xyes)
19187   cat >> confdefs.h <<EOF
19188 #define IA_GTK 1
19189 EOF
19190
19191
19192
19193 if true; then
19194   ENABLE_GTK_TRUE=
19195   ENABLE_GTK_FALSE='#'
19196 else
19197   ENABLE_GTK_TRUE='#'
19198   ENABLE_GTK_FALSE=
19199 fi
19200
19201    LIBS="$LIBS $GTK_LIBS"
19202     for f in $GTK_CFLAGS; do
19203     case ".$f" in
19204         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
19205         *)              CFLAGS="$CFLAGS $f" ;;
19206     esac
19207 done
19208
19209     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
19210
19211   ;;
19212 xdynamic)
19213   dynamic_targets="$dynamic_targets if_gtk.\$(so)"
19214    if test "x$GCC" = xyes; then
19215                 for i in $GTK_LIBS; do
19216             case "x$i" in
19217                 x-rdynamic) ;;
19218                 *) g_so_libs="$g_so_libs $i" ;;
19219             esac
19220         done
19221     else
19222         g_so_libs="$GTK_LIBS"
19223     fi
19224     for f in $GTK_CFLAGS; do
19225     case ".$f" in
19226         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
19227         *)              CFLAGS="$CFLAGS $f" ;;
19228     esac
19229 done
19230
19231   ;;
19232 *)
19233
19234   ;;
19235 esac
19236
19237
19238
19239
19240
19241 if false; then
19242   ENABLE_SERVER_TRUE=
19243   ENABLE_SERVER_FALSE='#'
19244 else
19245   ENABLE_SERVER_TRUE='#'
19246   ENABLE_SERVER_FALSE=
19247 fi
19248
19249 # Check whether --enable-server was given.
19250 if test "${enable_server+set}" = set; then
19251   enableval=$enable_server; case "x$enable_server" in xyes|xdynamic)  ;; esac
19252 fi
19253
19254 case "x$enable_server" in
19255 xyes)
19256   cat >> confdefs.h <<EOF
19257 #define IA_SERVER 1
19258 EOF
19259
19260
19261
19262 if true; then
19263   ENABLE_SERVER_TRUE=
19264   ENABLE_SERVER_FALSE='#'
19265 else
19266   ENABLE_SERVER_TRUE='#'
19267   ENABLE_SERVER_FALSE=
19268 fi
19269
19270    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
19271
19272 for ac_header in sys/soundcard.h
19273 do
19274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19276   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19279   echo $ECHO_N "(cached) $ECHO_C" >&6
19280 fi
19281 ac_res=`eval echo '${'$as_ac_Header'}'`
19282                { echo "$as_me:$LINENO: result: $ac_res" >&5
19283 echo "${ECHO_T}$ac_res" >&6; }
19284 else
19285   # Is the header compilable?
19286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19288 cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294 $ac_includes_default
19295 #include <$ac_header>
19296 _ACEOF
19297 rm -f conftest.$ac_objext
19298 if { (ac_try="$ac_compile"
19299 case "(($ac_try" in
19300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301   *) ac_try_echo=$ac_try;;
19302 esac
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304   (eval "$ac_compile") 2>conftest.er1
19305   ac_status=$?
19306   grep -v '^ *+' conftest.er1 >conftest.err
19307   rm -f conftest.er1
19308   cat conftest.err >&5
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); } && {
19311          test -z "$ac_c_werror_flag" ||
19312          test ! -s conftest.err
19313        } && test -s conftest.$ac_objext; then
19314   ac_header_compiler=yes
19315 else
19316   echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19318
19319         ac_header_compiler=no
19320 fi
19321
19322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19324 echo "${ECHO_T}$ac_header_compiler" >&6; }
19325
19326 # Is the header present?
19327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335 #include <$ac_header>
19336 _ACEOF
19337 if { (ac_try="$ac_cpp conftest.$ac_ext"
19338 case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19344   ac_status=$?
19345   grep -v '^ *+' conftest.er1 >conftest.err
19346   rm -f conftest.er1
19347   cat conftest.err >&5
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } >/dev/null && {
19350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19351          test ! -s conftest.err
19352        }; then
19353   ac_header_preproc=yes
19354 else
19355   echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358   ac_header_preproc=no
19359 fi
19360
19361 rm -f conftest.err conftest.$ac_ext
19362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19363 echo "${ECHO_T}$ac_header_preproc" >&6; }
19364
19365 # So?  What about this header?
19366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19367   yes:no: )
19368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19372     ac_header_preproc=yes
19373     ;;
19374   no:yes:* )
19375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19387     ( cat <<\_ASBOX
19388 ## ------------------------------- ##
19389 ## Report this to root@mput.dip.jp ##
19390 ## ------------------------------- ##
19391 _ASBOX
19392      ) | sed "s/^/$as_me: WARNING:     /" >&2
19393     ;;
19394 esac
19395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19398   echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400   eval "$as_ac_Header=\$ac_header_preproc"
19401 fi
19402 ac_res=`eval echo '${'$as_ac_Header'}'`
19403                { echo "$as_me:$LINENO: result: $ac_res" >&5
19404 echo "${ECHO_T}$ac_res" >&6; }
19405
19406 fi
19407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19408   cat >>confdefs.h <<_ACEOF
19409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19410 _ACEOF
19411
19412 fi
19413
19414 done
19415
19416
19417   ;;
19418 xdynamic)
19419   dynamic_targets="$dynamic_targets if_server.\$(so)"
19420
19421   ;;
19422 *)
19423
19424   ;;
19425 esac
19426
19427
19428
19429
19430
19431 if false; then
19432   ENABLE_ALSASEQ_TRUE=
19433   ENABLE_ALSASEQ_FALSE='#'
19434 else
19435   ENABLE_ALSASEQ_TRUE='#'
19436   ENABLE_ALSASEQ_FALSE=
19437 fi
19438
19439 # Check whether --enable-alsaseq was given.
19440 if test "${enable_alsaseq+set}" = set; then
19441   enableval=$enable_alsaseq; case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
19442 fi
19443
19444 case "x$enable_alsaseq" in
19445 xyes)
19446   cat >> confdefs.h <<EOF
19447 #define IA_ALSASEQ 1
19448 EOF
19449
19450
19451
19452 if true; then
19453   ENABLE_ALSASEQ_TRUE=
19454   ENABLE_ALSASEQ_FALSE='#'
19455 else
19456   ENABLE_ALSASEQ_TRUE='#'
19457   ENABLE_ALSASEQ_FALSE=
19458 fi
19459
19460    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
19461     alsa_save_CFLAGS="$CFLAGS"
19462 alsa_save_LDFLAGS="$LDFLAGS"
19463 alsa_save_LIBS="$LIBS"
19464 alsa_found=yes
19465
19466
19467 # Check whether --with-alsa-prefix was given.
19468 if test "${with_alsa_prefix+set}" = set; then
19469   withval=$with_alsa_prefix; alsa_prefix="$withval"
19470 else
19471   alsa_prefix=""
19472 fi
19473
19474
19475
19476 # Check whether --with-alsa-inc-prefix was given.
19477 if test "${with_alsa_inc_prefix+set}" = set; then
19478   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
19479 else
19480   alsa_inc_prefix=""
19481 fi
19482
19483
19484 # Check whether --enable-alsatest was given.
19485 if test "${enable_alsatest+set}" = set; then
19486   enableval=$enable_alsatest; enable_alsatest=no
19487 else
19488   enable_alsatest=yes
19489 fi
19490
19491
19492 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
19493 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
19494 if test "$alsa_inc_prefix" != "" ; then
19495         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
19496         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
19497 fi
19498 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
19499 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
19500
19501 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
19502 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
19503 if test "$alsa_prefix" != "" ; then
19504         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
19505         LDFLAGS="$LDFLAGS $ALSA_LIBS"
19506 fi
19507
19508 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
19509 LIBS=`echo $LIBS | sed 's/-lm//'`
19510 LIBS=`echo $LIBS | sed 's/-ldl//'`
19511 LIBS=`echo $LIBS | sed 's/-lpthread//'`
19512 LIBS=`echo $LIBS | sed 's/  //'`
19513 LIBS="$ALSA_LIBS $LIBS"
19514 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
19515 echo "${ECHO_T}$ALSA_LIBS" >&6; }
19516
19517 min_alsa_version=0.1.1
19518 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
19519 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
19520 no_alsa=""
19521     alsa_min_major_version=`echo $min_alsa_version | \
19522            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19523     alsa_min_minor_version=`echo $min_alsa_version | \
19524            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19525     alsa_min_micro_version=`echo $min_alsa_version | \
19526            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19527
19528
19529
19530 ac_ext=c
19531 ac_cpp='$CPP $CPPFLAGS'
19532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19535
19536 cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h.  */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h.  */
19542
19543 #include <alsa/asoundlib.h>
19544
19545 int
19546 main ()
19547 {
19548
19549 /* ensure backward compatibility */
19550 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
19551 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
19552 #endif
19553 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
19554 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
19555 #endif
19556 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
19557 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
19558 #endif
19559
19560 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
19561   exit(0);
19562 #  else
19563 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
19564 #       error not present
19565 #    endif
19566
19567 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
19568   exit(0);
19569 #   else
19570 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
19571 #          error not present
19572 #      endif
19573
19574 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
19575 #        error not present
19576 #      endif
19577 #    endif
19578 #  endif
19579 exit(0);
19580
19581   ;
19582   return 0;
19583 }
19584 _ACEOF
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589   *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592   (eval "$ac_compile") 2>conftest.er1
19593   ac_status=$?
19594   grep -v '^ *+' conftest.er1 >conftest.err
19595   rm -f conftest.er1
19596   cat conftest.err >&5
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } && {
19599          test -z "$ac_c_werror_flag" ||
19600          test ! -s conftest.err
19601        } && test -s conftest.$ac_objext; then
19602   { echo "$as_me:$LINENO: result: found." >&5
19603 echo "${ECHO_T}found." >&6; }
19604 else
19605   echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608         cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614
19615 #include <sys/asoundlib.h>
19616
19617 int
19618 main ()
19619 {
19620
19621 /* ensure backward compatibility */
19622 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
19623 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
19624 #endif
19625 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
19626 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
19627 #endif
19628 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
19629 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
19630 #endif
19631
19632 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
19633   exit(0);
19634 #  else
19635 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
19636 #       error not present
19637 #    endif
19638
19639 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
19640   exit(0);
19641 #   else
19642 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
19643 #          error not present
19644 #      endif
19645
19646 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
19647 #        error not present
19648 #      endif
19649 #    endif
19650 #  endif
19651 exit(0);
19652
19653   ;
19654   return 0;
19655 }
19656 _ACEOF
19657 rm -f conftest.$ac_objext
19658 if { (ac_try="$ac_compile"
19659 case "(($ac_try" in
19660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661   *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664   (eval "$ac_compile") 2>conftest.er1
19665   ac_status=$?
19666   grep -v '^ *+' conftest.er1 >conftest.err
19667   rm -f conftest.er1
19668   cat conftest.err >&5
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } && {
19671          test -z "$ac_c_werror_flag" ||
19672          test ! -s conftest.err
19673        } && test -s conftest.$ac_objext; then
19674   { echo "$as_me:$LINENO: result: found." >&5
19675 echo "${ECHO_T}found." >&6; }
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680         { echo "$as_me:$LINENO: result: not present." >&5
19681 echo "${ECHO_T}not present." >&6; }
19682    { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
19683 echo "${ECHO_T}libasound was not found anywhere." >&6; }
19684    alsa_found=no
19685 fi
19686
19687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19688    { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
19689 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
19690
19691 fi
19692
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694 ac_ext=c
19695 ac_cpp='$CPP $CPPFLAGS'
19696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19699
19700
19701
19702 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
19703 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707   ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lasound  $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715
19716 /* Override any GCC internal prototype to avoid an error.
19717    Use char because int might match the return type of a GCC
19718    builtin and then its argument prototype would still apply.  */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char snd_ctl_open ();
19723 int
19724 main ()
19725 {
19726 return snd_ctl_open ();
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_link") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest$ac_exeext &&
19748        $as_test_x conftest$ac_exeext; then
19749   ac_cv_lib_asound_snd_ctl_open=yes
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754         ac_cv_lib_asound_snd_ctl_open=no
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758       conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19760 fi
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
19762 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
19763 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
19764   cat >>confdefs.h <<_ACEOF
19765 #define HAVE_LIBASOUND 1
19766 _ACEOF
19767
19768   LIBS="-lasound $LIBS"
19769
19770 else
19771   { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
19772 echo "${ECHO_T}No linkable libasound was found." >&6; }
19773    alsa_found=no
19774
19775 fi
19776
19777
19778 if test "x$alsa_found" = "xyes" ; then
19779    :
19780    LIBS=`echo $LIBS | sed 's/-lasound//g'`
19781    LIBS=`echo $LIBS | sed 's/  //'`
19782    LIBS="-lasound $LIBS"
19783 else
19784    :
19785    CFLAGS="$alsa_save_CFLAGS"
19786    LDFLAGS="$alsa_save_LDFLAGS"
19787    LIBS="$alsa_save_LIBS"
19788    ALSA_CFLAGS=""
19789    ALSA_LIBS=""
19790 fi
19791
19792
19793
19794
19795
19796   ;;
19797 xdynamic)
19798   dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
19799
19800   ;;
19801 *)
19802
19803   ;;
19804 esac
19805
19806
19807
19808
19809
19810 if false; then
19811   ENABLE_WINSYN_TRUE=
19812   ENABLE_WINSYN_FALSE='#'
19813 else
19814   ENABLE_WINSYN_TRUE='#'
19815   ENABLE_WINSYN_FALSE=
19816 fi
19817
19818 # Check whether --enable-winsyn was given.
19819 if test "${enable_winsyn+set}" = set; then
19820   enableval=$enable_winsyn; case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
19821 fi
19822
19823 case "x$enable_winsyn" in
19824 xyes)
19825   cat >> confdefs.h <<EOF
19826 #define IA_WINSYN 1
19827 EOF
19828
19829
19830
19831 if true; then
19832   ENABLE_WINSYN_TRUE=
19833   ENABLE_WINSYN_FALSE='#'
19834 else
19835   ENABLE_WINSYN_TRUE='#'
19836   ENABLE_WINSYN_FALSE=
19837 fi
19838
19839    WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
19840   ;;
19841 xdynamic)
19842   dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
19843
19844   ;;
19845 *)
19846
19847   ;;
19848 esac
19849
19850
19851
19852
19853
19854 if false; then
19855   ENABLE_PORTMIDISYN_TRUE=
19856   ENABLE_PORTMIDISYN_FALSE='#'
19857 else
19858   ENABLE_PORTMIDISYN_TRUE='#'
19859   ENABLE_PORTMIDISYN_FALSE=
19860 fi
19861
19862 # Check whether --enable-portmidisyn was given.
19863 if test "${enable_portmidisyn+set}" = set; then
19864   enableval=$enable_portmidisyn; case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
19865 fi
19866
19867 case "x$enable_portmidisyn" in
19868 xyes)
19869   cat >> confdefs.h <<EOF
19870 #define IA_PORTMIDISYN 1
19871 EOF
19872
19873
19874
19875 if true; then
19876   ENABLE_PORTMIDISYN_TRUE=
19877   ENABLE_PORTMIDISYN_FALSE='#'
19878 else
19879   ENABLE_PORTMIDISYN_TRUE='#'
19880   ENABLE_PORTMIDISYN_FALSE=
19881 fi
19882
19883    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
19884   ;;
19885 xdynamic)
19886   dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
19887
19888   ;;
19889 *)
19890
19891   ;;
19892 esac
19893
19894
19895
19896
19897
19898 if false; then
19899   ENABLE_NPSYN_TRUE=
19900   ENABLE_NPSYN_FALSE='#'
19901 else
19902   ENABLE_NPSYN_TRUE='#'
19903   ENABLE_NPSYN_FALSE=
19904 fi
19905
19906 # Check whether --enable-npsyn was given.
19907 if test "${enable_npsyn+set}" = set; then
19908   enableval=$enable_npsyn; case "x$enable_npsyn" in xyes|xdynamic)  ;; esac
19909 fi
19910
19911 case "x$enable_npsyn" in
19912 xyes)
19913   cat >> confdefs.h <<EOF
19914 #define IA_NPSYN 1
19915 EOF
19916
19917
19918
19919 if true; then
19920   ENABLE_NPSYN_TRUE=
19921   ENABLE_NPSYN_FALSE='#'
19922 else
19923   ENABLE_NPSYN_TRUE='#'
19924   ENABLE_NPSYN_FALSE=
19925 fi
19926
19927    NPSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS npsyn_c.c rtsyn_common.c rtsyn_npipe.c"
19928   ;;
19929 xdynamic)
19930   dynamic_targets="$dynamic_targets if_npsyn.\$(so)"
19931
19932   ;;
19933 *)
19934
19935   ;;
19936 esac
19937
19938
19939
19940
19941
19942
19943
19944 if false; then
19945   ENABLE_W32G_SYN_TRUE=
19946   ENABLE_W32G_SYN_FALSE='#'
19947 else
19948   ENABLE_W32G_SYN_TRUE='#'
19949   ENABLE_W32G_SYN_FALSE=
19950 fi
19951
19952 # Check whether --enable-winsyng was given.
19953 if test "${enable_winsyng+set}" = set; then
19954   enableval=$enable_winsyng; case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
19955 fi
19956
19957 case "x$enable_winsyng" in
19958 xyes)
19959   cat >> confdefs.h <<EOF
19960 #define IA_W32G_SYN 1
19961 EOF
19962
19963
19964
19965 if true; then
19966   ENABLE_W32G_SYN_TRUE=
19967   ENABLE_W32G_SYN_FALSE='#'
19968 else
19969   ENABLE_W32G_SYN_TRUE='#'
19970   ENABLE_W32G_SYN_FALSE=
19971 fi
19972
19973
19974   W32G_GUI=yes
19975   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
19976     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
19977     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
19978     lib_user32_opt='user32.lib'
19979     if test "x$VCPP" = xyes; then
19980           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
19981         fi
19982         if test "x$BORLANDC" = xyes; then
19983           BORLANDC_START='C0W32.OBJ'
19984           CFLAGS="$CFLAGS -tW"
19985           lib_w32gui_opt="-aa $lib_w32gui_opt"
19986         fi
19987         if test "x$WATCOM_C" = xyes; then
19988           CFLAGS="$CFLAGS -bw"
19989           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
19990         fi
19991         if test "x$DMC" = xyes; then
19992           DLLFLAG="-WA"
19993           lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
19994         fi
19995     if test "x$POCC" = xyes; then
19996           POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
19997     fi
19998   else
19999         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
20000     lib_user32_opt='-luser32'
20001     LDFLAGS="-mwindows $LDFLAGS"
20002     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
20003   fi
20004
20005   ;;
20006 xdynamic)
20007   dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
20008
20009   ;;
20010 *)
20011
20012   ;;
20013 esac
20014
20015
20016
20017
20018
20019
20020 if false; then
20021   ENABLE_W32GUI_TRUE=
20022   ENABLE_W32GUI_FALSE='#'
20023 else
20024   ENABLE_W32GUI_TRUE='#'
20025   ENABLE_W32GUI_FALSE=
20026 fi
20027
20028 # Check whether --enable-w32gui was given.
20029 if test "${enable_w32gui+set}" = set; then
20030   enableval=$enable_w32gui; case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
20031 fi
20032
20033 case "x$enable_w32gui" in
20034 xyes)
20035   cat >> confdefs.h <<EOF
20036 #define IA_W32GUI 1
20037 EOF
20038
20039
20040
20041 if true; then
20042   ENABLE_W32GUI_TRUE=
20043   ENABLE_W32GUI_FALSE='#'
20044 else
20045   ENABLE_W32GUI_TRUE='#'
20046   ENABLE_W32GUI_FALSE=
20047 fi
20048
20049
20050   W32G_GUI=yes
20051   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
20052         INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
20053     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
20054     lib_user32_opt='user32.lib'
20055     if test "x$VCPP" = xyes; then
20056           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
20057         fi
20058         if test "x$BORLANDC" = xyes; then
20059           BORLANDC_START='C0W32.OBJ'
20060           CFLAGS="$CFLAGS -tW"
20061           lib_w32gui_opt="-aa $lib_w32gui_opt"
20062         fi
20063         if test "x$WATCOM_C" = xyes; then
20064           CFLAGS="$CFLAGS -bw"
20065           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
20066         fi
20067         if test "x$DMC" = xyes; then
20068           lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
20069           DLLFLAG="-WA"
20070         fi
20071     if test "x$POCC" = xyes; then
20072           POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
20073     fi
20074   else
20075     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
20076     lib_user32_opt='-luser32'
20077     LDFLAGS="-mwindows $LDFLAGS"
20078     INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
20079   fi
20080
20081   ;;
20082 xdynamic)
20083   dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
20084
20085   ;;
20086 *)
20087
20088   ;;
20089 esac
20090
20091
20092
20093
20094
20095 if false; then
20096   ENABLE_PLUGIN_TRUE=
20097   ENABLE_PLUGIN_FALSE='#'
20098 else
20099   ENABLE_PLUGIN_TRUE='#'
20100   ENABLE_PLUGIN_FALSE=
20101 fi
20102
20103 # Check whether --enable-ump was given.
20104 if test "${enable_ump+set}" = set; then
20105   enableval=$enable_ump; case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
20106         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
20107 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
20108    { (exit 1); exit 1; }; }
20109     fi
20110     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
20111   { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
20112 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
20113 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
20114   echo $ECHO_N "(cached) $ECHO_C" >&6
20115 fi
20116 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
20117 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
20118 else
20119   # Is the header compilable?
20120 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
20121 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 $ac_includes_default
20129 #include <X11/xpm.h>
20130 _ACEOF
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_compile") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && {
20145          test -z "$ac_c_werror_flag" ||
20146          test ! -s conftest.err
20147        } && test -s conftest.$ac_objext; then
20148   ac_header_compiler=yes
20149 else
20150   echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153         ac_header_compiler=no
20154 fi
20155
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158 echo "${ECHO_T}$ac_header_compiler" >&6; }
20159
20160 # Is the header present?
20161 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
20162 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <X11/xpm.h>
20170 _ACEOF
20171 if { (ac_try="$ac_cpp conftest.$ac_ext"
20172 case "(($ac_try" in
20173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174   *) ac_try_echo=$ac_try;;
20175 esac
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20178   ac_status=$?
20179   grep -v '^ *+' conftest.er1 >conftest.err
20180   rm -f conftest.er1
20181   cat conftest.err >&5
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); } >/dev/null && {
20184          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20185          test ! -s conftest.err
20186        }; then
20187   ac_header_preproc=yes
20188 else
20189   echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20191
20192   ac_header_preproc=no
20193 fi
20194
20195 rm -f conftest.err conftest.$ac_ext
20196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20197 echo "${ECHO_T}$ac_header_preproc" >&6; }
20198
20199 # So?  What about this header?
20200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20201   yes:no: )
20202     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20203 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20204     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
20205 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
20206     ac_header_preproc=yes
20207     ;;
20208   no:yes:* )
20209     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
20210 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
20211     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
20212 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
20213     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
20214 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
20215     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
20216 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20217     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
20218 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
20219     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
20220 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
20221     ( cat <<\_ASBOX
20222 ## ------------------------------- ##
20223 ## Report this to root@mput.dip.jp ##
20224 ## ------------------------------- ##
20225 _ASBOX
20226      ) | sed "s/^/$as_me: WARNING:     /" >&2
20227     ;;
20228 esac
20229 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
20230 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
20231 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
20232   echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234   ac_cv_header_X11_xpm_h=$ac_header_preproc
20235 fi
20236 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
20237 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
20238
20239 fi
20240 if test $ac_cv_header_X11_xpm_h = yes; then
20241   :
20242 else
20243   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
20244 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
20245    { (exit 1); exit 1; }; }
20246 fi
20247
20248
20249     { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
20250 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   ac_check_lib_save_LIBS=$LIBS
20255 LIBS="-lXpm  $LIBS"
20256 cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262
20263 /* Override any GCC internal prototype to avoid an error.
20264    Use char because int might match the return type of a GCC
20265    builtin and then its argument prototype would still apply.  */
20266 #ifdef __cplusplus
20267 extern "C"
20268 #endif
20269 char XpmCreatePixmapFromData ();
20270 int
20271 main ()
20272 {
20273 return XpmCreatePixmapFromData ();
20274   ;
20275   return 0;
20276 }
20277 _ACEOF
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_link") 2>conftest.er1
20286   ac_status=$?
20287   grep -v '^ *+' conftest.er1 >conftest.err
20288   rm -f conftest.er1
20289   cat conftest.err >&5
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } && {
20292          test -z "$ac_c_werror_flag" ||
20293          test ! -s conftest.err
20294        } && test -s conftest$ac_exeext &&
20295        $as_test_x conftest$ac_exeext; then
20296   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
20297 else
20298   echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301         ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
20302 fi
20303
20304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20305       conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
20309 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
20310 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
20311   :
20312 else
20313   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
20314 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
20315    { (exit 1); exit 1; }; }
20316 fi
20317
20318     if test "x$have_xext" = xyes; then
20319       lib_xext_opt=-lXext
20320     fi
20321     if test "x$have_xprelibs" = xyes; then
20322       lib_xprelibs_opt='-lSM -lICE'
20323     fi
20324     lib_xmu_opt=-lXmu
20325     lib_xt_opt=-lXt
20326    ;; esac
20327 fi
20328
20329 case "x$enable_ump" in
20330 xyes)
20331   cat >> confdefs.h <<EOF
20332 #define IA_PLUGIN 1
20333 EOF
20334
20335
20336
20337 if true; then
20338   ENABLE_PLUGIN_TRUE=
20339   ENABLE_PLUGIN_FALSE='#'
20340 else
20341   ENABLE_PLUGIN_TRUE='#'
20342   ENABLE_PLUGIN_FALSE=
20343 fi
20344
20345
20346   ;;
20347 xdynamic)
20348   dynamic_targets="$dynamic_targets if_ump.\$(so)"
20349
20350   ;;
20351 *)
20352
20353   ;;
20354 esac
20355
20356
20357
20358 # Check whether --enable-windrv was given.
20359 if test "${enable_windrv+set}" = set; then
20360   enableval=$enable_windrv;  if test "$enableval" = "yes"; then
20361       if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes" && test "x$POCC" != "xyes"; then
20362         { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&5
20363 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&2;}
20364    { (exit 1); exit 1; }; }
20365           elif test "x$WINSYN" != "xyes"; then
20366         { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
20367 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
20368    { (exit 1); exit 1; }; }
20369           else
20370
20371 cat >>confdefs.h <<\_ACEOF
20372 #define WINDRV 1
20373 _ACEOF
20374
20375     WINDRV=yes
20376     if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
20377     if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
20378     CFLAGS="$CFLAGS -DANOTHER_MAIN "
20379       fi
20380     fi
20381 fi
20382
20383 CFLAGS="$CFLAGS $DLLFLAG "
20384
20385 # Check whether --enable-offix was given.
20386 if test "${enable_offix+set}" = set; then
20387   enableval=$enable_offix;  if test "$enableval" = "yes"; then
20388       KEEPCPPFLAGS=$CPPFLAGS
20389       KEEPLIBS=$LIBS
20390       KEEPLDFLAGS=$LDFLAGS
20391       CPPFLAGS="$CPPFLAGS $offix_include_dir"
20392       LDFLAGS="$LDFLAGS $offix_lib_dir"
20393       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
20394       { echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
20395 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6; }
20396 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399   ac_check_lib_save_LIBS=$LIBS
20400 LIBS="-lDnd  $LIBS"
20401 cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h.  */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h.  */
20407
20408 /* Override any GCC internal prototype to avoid an error.
20409    Use char because int might match the return type of a GCC
20410    builtin and then its argument prototype would still apply.  */
20411 #ifdef __cplusplus
20412 extern "C"
20413 #endif
20414 char DndInitialize ();
20415 int
20416 main ()
20417 {
20418 return DndInitialize ();
20419   ;
20420   return 0;
20421 }
20422 _ACEOF
20423 rm -f conftest.$ac_objext conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427   *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430   (eval "$ac_link") 2>conftest.er1
20431   ac_status=$?
20432   grep -v '^ *+' conftest.er1 >conftest.err
20433   rm -f conftest.er1
20434   cat conftest.err >&5
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } && {
20437          test -z "$ac_c_werror_flag" ||
20438          test ! -s conftest.err
20439        } && test -s conftest$ac_exeext &&
20440        $as_test_x conftest$ac_exeext; then
20441   ac_cv_lib_Dnd_DndInitialize=yes
20442 else
20443   echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446         ac_cv_lib_Dnd_DndInitialize=no
20447 fi
20448
20449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20450       conftest$ac_exeext conftest.$ac_ext
20451 LIBS=$ac_check_lib_save_LIBS
20452 fi
20453 { echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
20454 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6; }
20455 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
20456
20457         LIBS=$KEEPLIBS
20458         lib_offix_opt="-lDnd"
20459
20460 cat >>confdefs.h <<\_ACEOF
20461 #define OFFIX 1
20462 _ACEOF
20463
20464
20465 else
20466    LDFLAGS=$KEEPLDFLAGS
20467         CPPFLAGS=$KEEPCPPFLAGS
20468         LIBS=$KEEPLIBS
20469
20470 fi
20471
20472     fi
20473
20474 fi
20475
20476
20477 # Check whether --enable-network was given.
20478 if test "${enable_network+set}" = set; then
20479   enableval=$enable_network;  if test "$enableval" = "yes"; then
20480
20481 cat >>confdefs.h <<\_ACEOF
20482 #define SUPPORT_SOCKET 1
20483 _ACEOF
20484
20485     fi
20486 fi
20487
20488
20489
20490 if test "x$enable_network" = "xyes"; then
20491   ENABLE_NETWORK_TRUE=
20492   ENABLE_NETWORK_FALSE='#'
20493 else
20494   ENABLE_NETWORK_TRUE='#'
20495   ENABLE_NETWORK_FALSE=
20496 fi
20497
20498
20499 # Check whether --enable-spectrogram was given.
20500 if test "${enable_spectrogram+set}" = set; then
20501   enableval=$enable_spectrogram;  if test "$enableval" = "yes"; then
20502       if test "x$with_x" != xyes; then
20503         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
20504 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
20505    { (exit 1); exit 1; }; }
20506       fi
20507
20508 cat >>confdefs.h <<\_ACEOF
20509 #define SUPPORT_SOUNDSPEC 1
20510 _ACEOF
20511
20512     fi
20513 fi
20514
20515
20516
20517 if test "x$enable_spectrogram" = "xyes"; then
20518   ENABLE_SOUND_SPEC_TRUE=
20519   ENABLE_SOUND_SPEC_FALSE='#'
20520 else
20521   ENABLE_SOUND_SPEC_TRUE='#'
20522   ENABLE_SOUND_SPEC_FALSE=
20523 fi
20524
20525
20526 # Check whether --enable-spline was given.
20527 if test "${enable_spline+set}" = set; then
20528   enableval=$enable_spline;  case "x$enableval" in
20529       xlinear)
20530
20531 cat >>confdefs.h <<\_ACEOF
20532 #define DEFAULT_RESAMPLATION resample_linear
20533 _ACEOF
20534
20535         ;;
20536       xcubic)
20537
20538 cat >>confdefs.h <<\_ACEOF
20539 #define DEFAULT_RESAMPLATION resample_cspline
20540 _ACEOF
20541
20542         ;;
20543       xlagrange)
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define DEFAULT_RESAMPLATION resample_lagrange
20547 _ACEOF
20548
20549         ;;
20550       xnewton)
20551
20552 cat >>confdefs.h <<\_ACEOF
20553 #define DEFAULT_RESAMPLATION resample_newton
20554 _ACEOF
20555
20556         ;;
20557       xgauss)
20558
20559 cat >>confdefs.h <<\_ACEOF
20560 #define DEFAULT_RESAMPLATION resample_gauss
20561 _ACEOF
20562
20563         ;;
20564       xno)
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define DEFAULT_RESAMPLATION resample_none
20568 _ACEOF
20569
20570         ;;
20571       *)
20572         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
20573 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
20574    { (exit 1); exit 1; }; }
20575         ;;
20576     esac
20577 fi
20578
20579
20580 # Check whether --enable-wrd was given.
20581 if test "${enable_wrd+set}" = set; then
20582   enableval=$enable_wrd;  if test "$enableval" = "yes"; then
20583       if test "x$with_x" != xyes; then
20584         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
20585 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
20586    { (exit 1); exit 1; }; }
20587       fi
20588
20589 cat >>confdefs.h <<\_ACEOF
20590 #define WRDT_X 1
20591 _ACEOF
20592
20593       enable_sherry_wrd=yes
20594       { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
20595 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
20596 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
20597   echo $ECHO_N "(cached) $ECHO_C" >&6
20598 else
20599   ac_check_lib_save_LIBS=$LIBS
20600 LIBS="-lz  $LIBS"
20601 cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607
20608 /* Override any GCC internal prototype to avoid an error.
20609    Use char because int might match the return type of a GCC
20610    builtin and then its argument prototype would still apply.  */
20611 #ifdef __cplusplus
20612 extern "C"
20613 #endif
20614 char zlibVersion ();
20615 int
20616 main ()
20617 {
20618 return zlibVersion ();
20619   ;
20620   return 0;
20621 }
20622 _ACEOF
20623 rm -f conftest.$ac_objext conftest$ac_exeext
20624 if { (ac_try="$ac_link"
20625 case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_link") 2>conftest.er1
20631   ac_status=$?
20632   grep -v '^ *+' conftest.er1 >conftest.err
20633   rm -f conftest.er1
20634   cat conftest.err >&5
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } && {
20637          test -z "$ac_c_werror_flag" ||
20638          test ! -s conftest.err
20639        } && test -s conftest$ac_exeext &&
20640        $as_test_x conftest$ac_exeext; then
20641   ac_cv_lib_z_zlibVersion=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646         ac_cv_lib_z_zlibVersion=no
20647 fi
20648
20649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20650       conftest$ac_exeext conftest.$ac_ext
20651 LIBS=$ac_check_lib_save_LIBS
20652 fi
20653 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
20654 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
20655 if test $ac_cv_lib_z_zlibVersion = yes; then
20656   :
20657 else
20658   enable_sherry_wrd=no
20659 fi
20660
20661       if test "${ac_cv_header_png_h+set}" = set; then
20662   { echo "$as_me:$LINENO: checking for png.h" >&5
20663 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
20664 if test "${ac_cv_header_png_h+set}" = set; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 fi
20667 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20668 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
20669 else
20670   # Is the header compilable?
20671 { echo "$as_me:$LINENO: checking png.h usability" >&5
20672 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 $ac_includes_default
20680 #include <png.h>
20681 _ACEOF
20682 rm -f conftest.$ac_objext
20683 if { (ac_try="$ac_compile"
20684 case "(($ac_try" in
20685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686   *) ac_try_echo=$ac_try;;
20687 esac
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689   (eval "$ac_compile") 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } && {
20696          test -z "$ac_c_werror_flag" ||
20697          test ! -s conftest.err
20698        } && test -s conftest.$ac_objext; then
20699   ac_header_compiler=yes
20700 else
20701   echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20703
20704         ac_header_compiler=no
20705 fi
20706
20707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20709 echo "${ECHO_T}$ac_header_compiler" >&6; }
20710
20711 # Is the header present?
20712 { echo "$as_me:$LINENO: checking png.h presence" >&5
20713 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 #include <png.h>
20721 _ACEOF
20722 if { (ac_try="$ac_cpp conftest.$ac_ext"
20723 case "(($ac_try" in
20724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725   *) ac_try_echo=$ac_try;;
20726 esac
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20729   ac_status=$?
20730   grep -v '^ *+' conftest.er1 >conftest.err
20731   rm -f conftest.er1
20732   cat conftest.err >&5
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); } >/dev/null && {
20735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20736          test ! -s conftest.err
20737        }; then
20738   ac_header_preproc=yes
20739 else
20740   echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20742
20743   ac_header_preproc=no
20744 fi
20745
20746 rm -f conftest.err conftest.$ac_ext
20747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20748 echo "${ECHO_T}$ac_header_preproc" >&6; }
20749
20750 # So?  What about this header?
20751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20752   yes:no: )
20753     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20754 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20755     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20756 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20757     ac_header_preproc=yes
20758     ;;
20759   no:yes:* )
20760     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20761 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20762     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
20763 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
20764     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20765 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20766     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
20767 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20768     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20769 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20770     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20771 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20772     ( cat <<\_ASBOX
20773 ## ------------------------------- ##
20774 ## Report this to root@mput.dip.jp ##
20775 ## ------------------------------- ##
20776 _ASBOX
20777      ) | sed "s/^/$as_me: WARNING:     /" >&2
20778     ;;
20779 esac
20780 { echo "$as_me:$LINENO: checking for png.h" >&5
20781 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
20782 if test "${ac_cv_header_png_h+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785   ac_cv_header_png_h=$ac_header_preproc
20786 fi
20787 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20788 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
20789
20790 fi
20791 if test $ac_cv_header_png_h = yes; then
20792   :
20793 else
20794   enable_sherry_wrd=no
20795 fi
20796
20797
20798       { echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
20799 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6; }
20800 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
20801   echo $ECHO_N "(cached) $ECHO_C" >&6
20802 else
20803   ac_check_lib_save_LIBS=$LIBS
20804 LIBS="-lpng -lz $LIBS"
20805 cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811
20812 /* Override any GCC internal prototype to avoid an error.
20813    Use char because int might match the return type of a GCC
20814    builtin and then its argument prototype would still apply.  */
20815 #ifdef __cplusplus
20816 extern "C"
20817 #endif
20818 char png_init_io ();
20819 int
20820 main ()
20821 {
20822 return png_init_io ();
20823   ;
20824   return 0;
20825 }
20826 _ACEOF
20827 rm -f conftest.$ac_objext conftest$ac_exeext
20828 if { (ac_try="$ac_link"
20829 case "(($ac_try" in
20830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831   *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834   (eval "$ac_link") 2>conftest.er1
20835   ac_status=$?
20836   grep -v '^ *+' conftest.er1 >conftest.err
20837   rm -f conftest.er1
20838   cat conftest.err >&5
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } && {
20841          test -z "$ac_c_werror_flag" ||
20842          test ! -s conftest.err
20843        } && test -s conftest$ac_exeext &&
20844        $as_test_x conftest$ac_exeext; then
20845   ac_cv_lib_png_png_init_io=yes
20846 else
20847   echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20849
20850         ac_cv_lib_png_png_init_io=no
20851 fi
20852
20853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20854       conftest$ac_exeext conftest.$ac_ext
20855 LIBS=$ac_check_lib_save_LIBS
20856 fi
20857 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
20858 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6; }
20859 if test $ac_cv_lib_png_png_init_io = yes; then
20860   :
20861 else
20862   enable_sherry_wrd=no
20863 fi
20864
20865       if test "$enable_sherry_wrd" = yes; then
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define ENABLE_SHERRY 1
20869 _ACEOF
20870
20871         lib_zip_opt=-lz
20872         lib_png_opt=-lpng
20873       else
20874          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
20875 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
20876       fi
20877       if test "x$have_xext" = xyes; then
20878         lib_xext_opt=-lXext
20879       fi
20880     fi
20881 fi
20882
20883
20884
20885
20886
20887 #
20888 # Finish up
20889 #
20890
20891
20892
20893 if test "x$enable_wrd" = "xyes"; then
20894   ENABLE_WRD_TRUE=
20895   ENABLE_WRD_FALSE='#'
20896 else
20897   ENABLE_WRD_TRUE='#'
20898   ENABLE_WRD_FALSE=
20899 fi
20900
20901
20902
20903 if test "x$W32G_GUI" = xyes; then
20904   W32G_GUI_TRUE=
20905   W32G_GUI_FALSE='#'
20906 else
20907   W32G_GUI_TRUE='#'
20908   W32G_GUI_FALSE=
20909 fi
20910
20911
20912
20913 if test "x$WINDRV" = xyes; then
20914   WINDRV_TRUE=
20915   WINDRV_FALSE='#'
20916 else
20917   WINDRV_TRUE='#'
20918   WINDRV_FALSE=
20919 fi
20920
20921
20922
20923 if test "x$MSYS" = xyes; then
20924   MSYS_TRUE=
20925   MSYS_FALSE='#'
20926 else
20927   MSYS_TRUE='#'
20928   MSYS_FALSE=
20929 fi
20930
20931
20932
20933 if test "x$VCPP" = xyes; then
20934   VCPP_TRUE=
20935   VCPP_FALSE='#'
20936 else
20937   VCPP_TRUE='#'
20938   VCPP_FALSE=
20939 fi
20940
20941
20942
20943 if test "x$POCC" = xyes; then
20944   POCC_TRUE=
20945   POCC_FALSE='#'
20946 else
20947   POCC_TRUE='#'
20948   POCC_FALSE=
20949 fi
20950
20951
20952
20953 if test "x$BORLANDC" = xyes; then
20954   BORLANDC_TRUE=
20955   BORLANDC_FALSE='#'
20956 else
20957   BORLANDC_TRUE='#'
20958   BORLANDC_FALSE=
20959 fi
20960
20961
20962
20963 if test "x$WATCOM_C" = xyes; then
20964   WATCOM_C_TRUE=
20965   WATCOM_C_FALSE='#'
20966 else
20967   WATCOM_C_TRUE='#'
20968   WATCOM_C_FALSE=
20969 fi
20970
20971
20972
20973 if test "x$DMC" = xyes; then
20974   DMC_TRUE=
20975   DMC_FALSE='#'
20976 else
20977   DMC_TRUE='#'
20978   DMC_FALSE=
20979 fi
20980
20981
20982
20983 if test "x$MINGWGCC" = xyes; then
20984   MINGWGCC_TRUE=
20985   MINGWGCC_FALSE='#'
20986 else
20987   MINGWGCC_TRUE='#'
20988   MINGWGCC_FALSE=
20989 fi
20990
20991
20992
20993
20994 if test "x$W32READDIR" = "xyes"; then
20995   W32READDIR_TRUE=
20996   W32READDIR_FALSE='#'
20997 else
20998   W32READDIR_TRUE='#'
20999   W32READDIR_FALSE=
21000 fi
21001
21002
21003 rm -f wordtmp >/dev/null 2>&1
21004 val=''
21005 for f in $LDFLAGS; do
21006   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21007   :
21008 else
21009   echo $f >>wordtmp; val="$val $f"
21010 fi
21011
21012 done
21013 LDFLAGS="$val"
21014 rm -f wordtmp >/dev/null 2>&1
21015
21016 rm -f wordtmp >/dev/null 2>&1
21017 val=''
21018 for f in $SHLDFLAGS; do
21019   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21020   :
21021 else
21022   echo $f >>wordtmp; val="$val $f"
21023 fi
21024
21025 done
21026 SHLDFLAGS="$val"
21027 rm -f wordtmp >/dev/null 2>&1
21028
21029 rm -f wordtmp >/dev/null 2>&1
21030 val=''
21031 for f in $EXTRACFLAGS $CFLAGS; do
21032   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21033   :
21034 else
21035   echo $f >>wordtmp; val="$val $f"
21036 fi
21037
21038 done
21039 CFLAGS="$val"
21040 rm -f wordtmp >/dev/null 2>&1
21041
21042 rm -f wordtmp >/dev/null 2>&1
21043 val=''
21044 for f in $CPPFLAGS $EXTRADEFS; do
21045   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
21046   :
21047 else
21048   echo $f >>wordtmp; val="$val $f"
21049 fi
21050
21051 done
21052 CPPFLAGS="$val"
21053 rm -f wordtmp >/dev/null 2>&1
21054
21055
21056 if test "x$oss_device" != x; then
21057
21058 cat >>confdefs.h <<_ACEOF
21059 #define OSS_DEVICE "$oss_device"
21060 _ACEOF
21061
21062 fi
21063
21064 if test "x$TIMIDITY_OUTPUT_ID" != x; then
21065
21066 cat >>confdefs.h <<_ACEOF
21067 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
21068 _ACEOF
21069
21070 fi
21071
21072 if test "x$with_x" = xyes; then
21073     LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
21074 fi
21075 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
21076 SHLD="$SHLD $SHLDFLAGS"
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile windrv/Makefile utils/Makefile script/Makefile"
21103
21104 cat >confcache <<\_ACEOF
21105 # This file is a shell script that caches the results of configure
21106 # tests run on this system so they can be shared between configure
21107 # scripts and configure runs, see configure's option --config-cache.
21108 # It is not useful on other systems.  If it contains results you don't
21109 # want to keep, you may remove or edit it.
21110 #
21111 # config.status only pays attention to the cache file if you give it
21112 # the --recheck option to rerun configure.
21113 #
21114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21116 # following values.
21117
21118 _ACEOF
21119
21120 # The following way of writing the cache mishandles newlines in values,
21121 # but we know of no workaround that is simple, portable, and efficient.
21122 # So, we kill variables containing newlines.
21123 # Ultrix sh set writes to stderr and can't be redirected directly,
21124 # and sets the high bit in the cache file unless we assign to the vars.
21125 (
21126   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21127     eval ac_val=\$$ac_var
21128     case $ac_val in #(
21129     *${as_nl}*)
21130       case $ac_var in #(
21131       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21132 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21133       esac
21134       case $ac_var in #(
21135       _ | IFS | as_nl) ;; #(
21136       *) $as_unset $ac_var ;;
21137       esac ;;
21138     esac
21139   done
21140
21141   (set) 2>&1 |
21142     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21143     *${as_nl}ac_space=\ *)
21144       # `set' does not quote correctly, so add quotes (double-quote
21145       # substitution turns \\\\ into \\, and sed turns \\ into \).
21146       sed -n \
21147         "s/'/'\\\\''/g;
21148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21149       ;; #(
21150     *)
21151       # `set' quotes correctly as required by POSIX, so do not add quotes.
21152       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21153       ;;
21154     esac |
21155     sort
21156 ) |
21157   sed '
21158      /^ac_cv_env_/b end
21159      t clear
21160      :clear
21161      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21162      t end
21163      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21164      :end' >>confcache
21165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21166   if test -w "$cache_file"; then
21167     test "x$cache_file" != "x/dev/null" &&
21168       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21169 echo "$as_me: updating cache $cache_file" >&6;}
21170     cat confcache >$cache_file
21171   else
21172     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21173 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21174   fi
21175 fi
21176 rm -f confcache
21177
21178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21179 # Let make expand exec_prefix.
21180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21181
21182 DEFS=-DHAVE_CONFIG_H
21183
21184 ac_libobjs=
21185 ac_ltlibobjs=
21186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21187   # 1. Remove the extension, and $U if already installed.
21188   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21189   ac_i=`echo "$ac_i" | sed "$ac_script"`
21190   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21191   #    will be set to the directory where LIBOBJS objects are built.
21192   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21193   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21194 done
21195 LIBOBJS=$ac_libobjs
21196
21197 LTLIBOBJS=$ac_ltlibobjs
21198
21199
21200 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21201   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21202 Usually this means the macro was only invoked conditionally." >&5
21203 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21204 Usually this means the macro was only invoked conditionally." >&2;}
21205    { (exit 1); exit 1; }; }
21206 fi
21207 if test -z "${XAW_INSTALL_RESOURCE_FILES_TRUE}" && test -z "${XAW_INSTALL_RESOURCE_FILES_FALSE}"; then
21208   { { echo "$as_me:$LINENO: error: conditional \"XAW_INSTALL_RESOURCE_FILES\" was never defined.
21209 Usually this means the macro was only invoked conditionally." >&5
21210 echo "$as_me: error: conditional \"XAW_INSTALL_RESOURCE_FILES\" was never defined.
21211 Usually this means the macro was only invoked conditionally." >&2;}
21212    { (exit 1); exit 1; }; }
21213 fi
21214 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21215   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21216 Usually this means the macro was only invoked conditionally." >&5
21217 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21218 Usually this means the macro was only invoked conditionally." >&2;}
21219    { (exit 1); exit 1; }; }
21220 fi
21221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21222   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21223 Usually this means the macro was only invoked conditionally." >&5
21224 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21225 Usually this means the macro was only invoked conditionally." >&2;}
21226    { (exit 1); exit 1; }; }
21227 fi
21228 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
21229   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
21230 Usually this means the macro was only invoked conditionally." >&5
21231 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
21232 Usually this means the macro was only invoked conditionally." >&2;}
21233    { (exit 1); exit 1; }; }
21234 fi
21235 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
21236   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
21237 Usually this means the macro was only invoked conditionally." >&5
21238 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
21239 Usually this means the macro was only invoked conditionally." >&2;}
21240    { (exit 1); exit 1; }; }
21241 fi
21242 if test -z "${ENABLE_XDND_TRUE}" && test -z "${ENABLE_XDND_FALSE}"; then
21243   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XDND\" was never defined.
21244 Usually this means the macro was only invoked conditionally." >&5
21245 echo "$as_me: error: conditional \"ENABLE_XDND\" was never defined.
21246 Usually this means the macro was only invoked conditionally." >&2;}
21247    { (exit 1); exit 1; }; }
21248 fi
21249 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
21250   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&5
21252 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&2;}
21254    { (exit 1); exit 1; }; }
21255 fi
21256 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
21257   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
21258 Usually this means the macro was only invoked conditionally." >&5
21259 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
21260 Usually this means the macro was only invoked conditionally." >&2;}
21261    { (exit 1); exit 1; }; }
21262 fi
21263 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
21264   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
21265 Usually this means the macro was only invoked conditionally." >&5
21266 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
21267 Usually this means the macro was only invoked conditionally." >&2;}
21268    { (exit 1); exit 1; }; }
21269 fi
21270 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
21271   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
21272 Usually this means the macro was only invoked conditionally." >&5
21273 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
21274 Usually this means the macro was only invoked conditionally." >&2;}
21275    { (exit 1); exit 1; }; }
21276 fi
21277 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
21278   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&5
21280 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
21281 Usually this means the macro was only invoked conditionally." >&2;}
21282    { (exit 1); exit 1; }; }
21283 fi
21284 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
21285   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
21286 Usually this means the macro was only invoked conditionally." >&5
21287 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
21288 Usually this means the macro was only invoked conditionally." >&2;}
21289    { (exit 1); exit 1; }; }
21290 fi
21291 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
21292   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
21293 Usually this means the macro was only invoked conditionally." >&5
21294 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
21295 Usually this means the macro was only invoked conditionally." >&2;}
21296    { (exit 1); exit 1; }; }
21297 fi
21298 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
21299   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
21300 Usually this means the macro was only invoked conditionally." >&5
21301 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
21302 Usually this means the macro was only invoked conditionally." >&2;}
21303    { (exit 1); exit 1; }; }
21304 fi
21305 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
21306   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&5
21308 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&2;}
21310    { (exit 1); exit 1; }; }
21311 fi
21312 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
21313   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
21314 Usually this means the macro was only invoked conditionally." >&5
21315 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&2;}
21317    { (exit 1); exit 1; }; }
21318 fi
21319 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
21320   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
21321 Usually this means the macro was only invoked conditionally." >&5
21322 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
21323 Usually this means the macro was only invoked conditionally." >&2;}
21324    { (exit 1); exit 1; }; }
21325 fi
21326 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
21327   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
21328 Usually this means the macro was only invoked conditionally." >&5
21329 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
21330 Usually this means the macro was only invoked conditionally." >&2;}
21331    { (exit 1); exit 1; }; }
21332 fi
21333 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
21334   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
21335 Usually this means the macro was only invoked conditionally." >&5
21336 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
21337 Usually this means the macro was only invoked conditionally." >&2;}
21338    { (exit 1); exit 1; }; }
21339 fi
21340 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
21341   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
21342 Usually this means the macro was only invoked conditionally." >&5
21343 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
21344 Usually this means the macro was only invoked conditionally." >&2;}
21345    { (exit 1); exit 1; }; }
21346 fi
21347 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
21348   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
21349 Usually this means the macro was only invoked conditionally." >&5
21350 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
21351 Usually this means the macro was only invoked conditionally." >&2;}
21352    { (exit 1); exit 1; }; }
21353 fi
21354 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
21355   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
21356 Usually this means the macro was only invoked conditionally." >&5
21357 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
21358 Usually this means the macro was only invoked conditionally." >&2;}
21359    { (exit 1); exit 1; }; }
21360 fi
21361 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
21362   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
21363 Usually this means the macro was only invoked conditionally." >&5
21364 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
21365 Usually this means the macro was only invoked conditionally." >&2;}
21366    { (exit 1); exit 1; }; }
21367 fi
21368 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
21369   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
21370 Usually this means the macro was only invoked conditionally." >&5
21371 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
21372 Usually this means the macro was only invoked conditionally." >&2;}
21373    { (exit 1); exit 1; }; }
21374 fi
21375 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
21376   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
21377 Usually this means the macro was only invoked conditionally." >&5
21378 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
21379 Usually this means the macro was only invoked conditionally." >&2;}
21380    { (exit 1); exit 1; }; }
21381 fi
21382 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
21383   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
21384 Usually this means the macro was only invoked conditionally." >&5
21385 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
21386 Usually this means the macro was only invoked conditionally." >&2;}
21387    { (exit 1); exit 1; }; }
21388 fi
21389 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
21390   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
21391 Usually this means the macro was only invoked conditionally." >&5
21392 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
21393 Usually this means the macro was only invoked conditionally." >&2;}
21394    { (exit 1); exit 1; }; }
21395 fi
21396 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
21397   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
21398 Usually this means the macro was only invoked conditionally." >&5
21399 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
21400 Usually this means the macro was only invoked conditionally." >&2;}
21401    { (exit 1); exit 1; }; }
21402 fi
21403 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
21404   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21405 Usually this means the macro was only invoked conditionally." >&5
21406 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21407 Usually this means the macro was only invoked conditionally." >&2;}
21408    { (exit 1); exit 1; }; }
21409 fi
21410 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
21411   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21412 Usually this means the macro was only invoked conditionally." >&5
21413 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
21414 Usually this means the macro was only invoked conditionally." >&2;}
21415    { (exit 1); exit 1; }; }
21416 fi
21417 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
21418   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
21419 Usually this means the macro was only invoked conditionally." >&5
21420 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
21421 Usually this means the macro was only invoked conditionally." >&2;}
21422    { (exit 1); exit 1; }; }
21423 fi
21424 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
21425   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
21426 Usually this means the macro was only invoked conditionally." >&5
21427 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
21428 Usually this means the macro was only invoked conditionally." >&2;}
21429    { (exit 1); exit 1; }; }
21430 fi
21431 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
21432   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21433 Usually this means the macro was only invoked conditionally." >&5
21434 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21435 Usually this means the macro was only invoked conditionally." >&2;}
21436    { (exit 1); exit 1; }; }
21437 fi
21438 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
21439   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21440 Usually this means the macro was only invoked conditionally." >&5
21441 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
21442 Usually this means the macro was only invoked conditionally." >&2;}
21443    { (exit 1); exit 1; }; }
21444 fi
21445 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
21446   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
21447 Usually this means the macro was only invoked conditionally." >&5
21448 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
21449 Usually this means the macro was only invoked conditionally." >&2;}
21450    { (exit 1); exit 1; }; }
21451 fi
21452 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
21453   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
21454 Usually this means the macro was only invoked conditionally." >&5
21455 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
21456 Usually this means the macro was only invoked conditionally." >&2;}
21457    { (exit 1); exit 1; }; }
21458 fi
21459 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
21460   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21461 Usually this means the macro was only invoked conditionally." >&5
21462 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21463 Usually this means the macro was only invoked conditionally." >&2;}
21464    { (exit 1); exit 1; }; }
21465 fi
21466 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
21467   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21468 Usually this means the macro was only invoked conditionally." >&5
21469 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
21470 Usually this means the macro was only invoked conditionally." >&2;}
21471    { (exit 1); exit 1; }; }
21472 fi
21473 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
21474   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
21475 Usually this means the macro was only invoked conditionally." >&5
21476 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
21477 Usually this means the macro was only invoked conditionally." >&2;}
21478    { (exit 1); exit 1; }; }
21479 fi
21480 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
21481   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
21482 Usually this means the macro was only invoked conditionally." >&5
21483 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
21484 Usually this means the macro was only invoked conditionally." >&2;}
21485    { (exit 1); exit 1; }; }
21486 fi
21487 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
21488   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
21489 Usually this means the macro was only invoked conditionally." >&5
21490 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
21491 Usually this means the macro was only invoked conditionally." >&2;}
21492    { (exit 1); exit 1; }; }
21493 fi
21494 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
21495   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
21496 Usually this means the macro was only invoked conditionally." >&5
21497 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
21498 Usually this means the macro was only invoked conditionally." >&2;}
21499    { (exit 1); exit 1; }; }
21500 fi
21501 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
21502   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
21503 Usually this means the macro was only invoked conditionally." >&5
21504 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
21505 Usually this means the macro was only invoked conditionally." >&2;}
21506    { (exit 1); exit 1; }; }
21507 fi
21508 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
21509   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
21510 Usually this means the macro was only invoked conditionally." >&5
21511 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
21512 Usually this means the macro was only invoked conditionally." >&2;}
21513    { (exit 1); exit 1; }; }
21514 fi
21515 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
21516   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
21517 Usually this means the macro was only invoked conditionally." >&5
21518 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
21519 Usually this means the macro was only invoked conditionally." >&2;}
21520    { (exit 1); exit 1; }; }
21521 fi
21522 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
21523   { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
21524 Usually this means the macro was only invoked conditionally." >&5
21525 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
21526 Usually this means the macro was only invoked conditionally." >&2;}
21527    { (exit 1); exit 1; }; }
21528 fi
21529 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
21530   { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
21531 Usually this means the macro was only invoked conditionally." >&5
21532 echo "$as_me: error: conditional \"WINDRV\" was never defined.
21533 Usually this means the macro was only invoked conditionally." >&2;}
21534    { (exit 1); exit 1; }; }
21535 fi
21536 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
21537   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
21538 Usually this means the macro was only invoked conditionally." >&5
21539 echo "$as_me: error: conditional \"MSYS\" was never defined.
21540 Usually this means the macro was only invoked conditionally." >&2;}
21541    { (exit 1); exit 1; }; }
21542 fi
21543 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
21544   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
21545 Usually this means the macro was only invoked conditionally." >&5
21546 echo "$as_me: error: conditional \"VCPP\" was never defined.
21547 Usually this means the macro was only invoked conditionally." >&2;}
21548    { (exit 1); exit 1; }; }
21549 fi
21550 if test -z "${POCC_TRUE}" && test -z "${POCC_FALSE}"; then
21551   { { echo "$as_me:$LINENO: error: conditional \"POCC\" was never defined.
21552 Usually this means the macro was only invoked conditionally." >&5
21553 echo "$as_me: error: conditional \"POCC\" was never defined.
21554 Usually this means the macro was only invoked conditionally." >&2;}
21555    { (exit 1); exit 1; }; }
21556 fi
21557 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
21558   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&5
21560 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
21561 Usually this means the macro was only invoked conditionally." >&2;}
21562    { (exit 1); exit 1; }; }
21563 fi
21564 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
21565   { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
21566 Usually this means the macro was only invoked conditionally." >&5
21567 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
21568 Usually this means the macro was only invoked conditionally." >&2;}
21569    { (exit 1); exit 1; }; }
21570 fi
21571 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
21572   { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
21573 Usually this means the macro was only invoked conditionally." >&5
21574 echo "$as_me: error: conditional \"DMC\" was never defined.
21575 Usually this means the macro was only invoked conditionally." >&2;}
21576    { (exit 1); exit 1; }; }
21577 fi
21578 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
21579   { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
21580 Usually this means the macro was only invoked conditionally." >&5
21581 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
21582 Usually this means the macro was only invoked conditionally." >&2;}
21583    { (exit 1); exit 1; }; }
21584 fi
21585 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
21586   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
21587 Usually this means the macro was only invoked conditionally." >&5
21588 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
21589 Usually this means the macro was only invoked conditionally." >&2;}
21590    { (exit 1); exit 1; }; }
21591 fi
21592
21593 : ${CONFIG_STATUS=./config.status}
21594 ac_clean_files_save=$ac_clean_files
21595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21596 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21597 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21598 cat >$CONFIG_STATUS <<_ACEOF
21599 #! $SHELL
21600 # Generated by $as_me.
21601 # Run this file to recreate the current configuration.
21602 # Compiler output produced by configure, useful for debugging
21603 # configure, is in config.log if it exists.
21604
21605 debug=false
21606 ac_cs_recheck=false
21607 ac_cs_silent=false
21608 SHELL=\${CONFIG_SHELL-$SHELL}
21609 _ACEOF
21610
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612 ## --------------------- ##
21613 ## M4sh Initialization.  ##
21614 ## --------------------- ##
21615
21616 # Be more Bourne compatible
21617 DUALCASE=1; export DUALCASE # for MKS sh
21618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21619   emulate sh
21620   NULLCMD=:
21621   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21622   # is contrary to our usage.  Disable this feature.
21623   alias -g '${1+"$@"}'='"$@"'
21624   setopt NO_GLOB_SUBST
21625 else
21626   case `(set -o) 2>/dev/null` in
21627   *posix*) set -o posix ;;
21628 esac
21629
21630 fi
21631
21632
21633
21634
21635 # PATH needs CR
21636 # Avoid depending upon Character Ranges.
21637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21640 as_cr_digits='0123456789'
21641 as_cr_alnum=$as_cr_Letters$as_cr_digits
21642
21643 # The user is always right.
21644 if test "${PATH_SEPARATOR+set}" != set; then
21645   echo "#! /bin/sh" >conf$$.sh
21646   echo  "exit 0"   >>conf$$.sh
21647   chmod +x conf$$.sh
21648   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21649     PATH_SEPARATOR=';'
21650   else
21651     PATH_SEPARATOR=:
21652   fi
21653   rm -f conf$$.sh
21654 fi
21655
21656 # Support unset when possible.
21657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21658   as_unset=unset
21659 else
21660   as_unset=false
21661 fi
21662
21663
21664 # IFS
21665 # We need space, tab and new line, in precisely that order.  Quoting is
21666 # there to prevent editors from complaining about space-tab.
21667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21668 # splitting by setting IFS to empty value.)
21669 as_nl='
21670 '
21671 IFS=" ""        $as_nl"
21672
21673 # Find who we are.  Look in the path if we contain no directory separator.
21674 case $0 in
21675   *[\\/]* ) as_myself=$0 ;;
21676   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21677 for as_dir in $PATH
21678 do
21679   IFS=$as_save_IFS
21680   test -z "$as_dir" && as_dir=.
21681   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21682 done
21683 IFS=$as_save_IFS
21684
21685      ;;
21686 esac
21687 # We did not find ourselves, most probably we were run as `sh COMMAND'
21688 # in which case we are not to be found in the path.
21689 if test "x$as_myself" = x; then
21690   as_myself=$0
21691 fi
21692 if test ! -f "$as_myself"; then
21693   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21694   { (exit 1); exit 1; }
21695 fi
21696
21697 # Work around bugs in pre-3.0 UWIN ksh.
21698 for as_var in ENV MAIL MAILPATH
21699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21700 done
21701 PS1='$ '
21702 PS2='> '
21703 PS4='+ '
21704
21705 # NLS nuisances.
21706 for as_var in \
21707   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21708   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21709   LC_TELEPHONE LC_TIME
21710 do
21711   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21712     eval $as_var=C; export $as_var
21713   else
21714     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21715   fi
21716 done
21717
21718 # Required to use basename.
21719 if expr a : '\(a\)' >/dev/null 2>&1 &&
21720    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21721   as_expr=expr
21722 else
21723   as_expr=false
21724 fi
21725
21726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21727   as_basename=basename
21728 else
21729   as_basename=false
21730 fi
21731
21732
21733 # Name of the executable.
21734 as_me=`$as_basename -- "$0" ||
21735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21736          X"$0" : 'X\(//\)$' \| \
21737          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21738 echo X/"$0" |
21739     sed '/^.*\/\([^/][^/]*\)\/*$/{
21740             s//\1/
21741             q
21742           }
21743           /^X\/\(\/\/\)$/{
21744             s//\1/
21745             q
21746           }
21747           /^X\/\(\/\).*/{
21748             s//\1/
21749             q
21750           }
21751           s/.*/./; q'`
21752
21753 # CDPATH.
21754 $as_unset CDPATH
21755
21756
21757
21758   as_lineno_1=$LINENO
21759   as_lineno_2=$LINENO
21760   test "x$as_lineno_1" != "x$as_lineno_2" &&
21761   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21762
21763   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21764   # uniformly replaced by the line number.  The first 'sed' inserts a
21765   # line-number line after each line using $LINENO; the second 'sed'
21766   # does the real work.  The second script uses 'N' to pair each
21767   # line-number line with the line containing $LINENO, and appends
21768   # trailing '-' during substitution so that $LINENO is not a special
21769   # case at line end.
21770   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21771   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21772   # E. McMahon (1931-1989) for sed's syntax.  :-)
21773   sed -n '
21774     p
21775     /[$]LINENO/=
21776   ' <$as_myself |
21777     sed '
21778       s/[$]LINENO.*/&-/
21779       t lineno
21780       b
21781       :lineno
21782       N
21783       :loop
21784       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21785       t loop
21786       s/-\n.*//
21787     ' >$as_me.lineno &&
21788   chmod +x "$as_me.lineno" ||
21789     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21790    { (exit 1); exit 1; }; }
21791
21792   # Don't try to exec as it changes $[0], causing all sort of problems
21793   # (the dirname of $[0] is not the place where we might find the
21794   # original and so on.  Autoconf is especially sensitive to this).
21795   . "./$as_me.lineno"
21796   # Exit status is that of the last command.
21797   exit
21798 }
21799
21800
21801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21802   as_dirname=dirname
21803 else
21804   as_dirname=false
21805 fi
21806
21807 ECHO_C= ECHO_N= ECHO_T=
21808 case `echo -n x` in
21809 -n*)
21810   case `echo 'x\c'` in
21811   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21812   *)   ECHO_C='\c';;
21813   esac;;
21814 *)
21815   ECHO_N='-n';;
21816 esac
21817
21818 if expr a : '\(a\)' >/dev/null 2>&1 &&
21819    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21820   as_expr=expr
21821 else
21822   as_expr=false
21823 fi
21824
21825 rm -f conf$$ conf$$.exe conf$$.file
21826 if test -d conf$$.dir; then
21827   rm -f conf$$.dir/conf$$.file
21828 else
21829   rm -f conf$$.dir
21830   mkdir conf$$.dir
21831 fi
21832 echo >conf$$.file
21833 if ln -s conf$$.file conf$$ 2>/dev/null; then
21834   as_ln_s='ln -s'
21835   # ... but there are two gotchas:
21836   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21837   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21838   # In both cases, we have to default to `cp -p'.
21839   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21840     as_ln_s='cp -p'
21841 elif ln conf$$.file conf$$ 2>/dev/null; then
21842   as_ln_s=ln
21843 else
21844   as_ln_s='cp -p'
21845 fi
21846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21847 rmdir conf$$.dir 2>/dev/null
21848
21849 if mkdir -p . 2>/dev/null; then
21850   as_mkdir_p=:
21851 else
21852   test -d ./-p && rmdir ./-p
21853   as_mkdir_p=false
21854 fi
21855
21856 if test -x / >/dev/null 2>&1; then
21857   as_test_x='test -x'
21858 else
21859   if ls -dL / >/dev/null 2>&1; then
21860     as_ls_L_option=L
21861   else
21862     as_ls_L_option=
21863   fi
21864   as_test_x='
21865     eval sh -c '\''
21866       if test -d "$1"; then
21867         test -d "$1/.";
21868       else
21869         case $1 in
21870         -*)set "./$1";;
21871         esac;
21872         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21873         ???[sx]*):;;*)false;;esac;fi
21874     '\'' sh
21875   '
21876 fi
21877 as_executable_p=$as_test_x
21878
21879 # Sed expression to map a string onto a valid CPP name.
21880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21881
21882 # Sed expression to map a string onto a valid variable name.
21883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21884
21885
21886 exec 6>&1
21887
21888 # Save the log message, to keep $[0] and so on meaningful, and to
21889 # report actual input values of CONFIG_FILES etc. instead of their
21890 # values after options handling.
21891 ac_log="
21892 This file was extended by TiMidity++ $as_me 2.13.2, which was
21893 generated by GNU Autoconf 2.61.  Invocation command line was
21894
21895   CONFIG_FILES    = $CONFIG_FILES
21896   CONFIG_HEADERS  = $CONFIG_HEADERS
21897   CONFIG_LINKS    = $CONFIG_LINKS
21898   CONFIG_COMMANDS = $CONFIG_COMMANDS
21899   $ $0 $@
21900
21901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21902 "
21903
21904 _ACEOF
21905
21906 cat >>$CONFIG_STATUS <<_ACEOF
21907 # Files that config.status was made for.
21908 config_files="$ac_config_files"
21909 config_headers="$ac_config_headers"
21910 config_commands="$ac_config_commands"
21911
21912 _ACEOF
21913
21914 cat >>$CONFIG_STATUS <<\_ACEOF
21915 ac_cs_usage="\
21916 \`$as_me' instantiates files from templates according to the
21917 current configuration.
21918
21919 Usage: $0 [OPTIONS] [FILE]...
21920
21921   -h, --help       print this help, then exit
21922   -V, --version    print version number and configuration settings, then exit
21923   -q, --quiet      do not print progress messages
21924   -d, --debug      don't remove temporary files
21925       --recheck    update $as_me by reconfiguring in the same conditions
21926   --file=FILE[:TEMPLATE]
21927                    instantiate the configuration file FILE
21928   --header=FILE[:TEMPLATE]
21929                    instantiate the configuration header FILE
21930
21931 Configuration files:
21932 $config_files
21933
21934 Configuration headers:
21935 $config_headers
21936
21937 Configuration commands:
21938 $config_commands
21939
21940 Report bugs to <bug-autoconf@gnu.org>."
21941
21942 _ACEOF
21943 cat >>$CONFIG_STATUS <<_ACEOF
21944 ac_cs_version="\\
21945 TiMidity++ config.status 2.13.2
21946 configured by $0, generated by GNU Autoconf 2.61,
21947   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21948
21949 Copyright (C) 2006 Free Software Foundation, Inc.
21950 This config.status script is free software; the Free Software Foundation
21951 gives unlimited permission to copy, distribute and modify it."
21952
21953 ac_pwd='$ac_pwd'
21954 srcdir='$srcdir'
21955 INSTALL='$INSTALL'
21956 _ACEOF
21957
21958 cat >>$CONFIG_STATUS <<\_ACEOF
21959 # If no file are specified by the user, then we need to provide default
21960 # value.  By we need to know if files were specified by the user.
21961 ac_need_defaults=:
21962 while test $# != 0
21963 do
21964   case $1 in
21965   --*=*)
21966     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21967     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21968     ac_shift=:
21969     ;;
21970   *)
21971     ac_option=$1
21972     ac_optarg=$2
21973     ac_shift=shift
21974     ;;
21975   esac
21976
21977   case $ac_option in
21978   # Handling of the options.
21979   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21980     ac_cs_recheck=: ;;
21981   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21982     echo "$ac_cs_version"; exit ;;
21983   --debug | --debu | --deb | --de | --d | -d )
21984     debug=: ;;
21985   --file | --fil | --fi | --f )
21986     $ac_shift
21987     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21988     ac_need_defaults=false;;
21989   --header | --heade | --head | --hea )
21990     $ac_shift
21991     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21992     ac_need_defaults=false;;
21993   --he | --h)
21994     # Conflict between --help and --header
21995     { echo "$as_me: error: ambiguous option: $1
21996 Try \`$0 --help' for more information." >&2
21997    { (exit 1); exit 1; }; };;
21998   --help | --hel | -h )
21999     echo "$ac_cs_usage"; exit ;;
22000   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22001   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22002     ac_cs_silent=: ;;
22003
22004   # This is an error.
22005   -*) { echo "$as_me: error: unrecognized option: $1
22006 Try \`$0 --help' for more information." >&2
22007    { (exit 1); exit 1; }; } ;;
22008
22009   *) ac_config_targets="$ac_config_targets $1"
22010      ac_need_defaults=false ;;
22011
22012   esac
22013   shift
22014 done
22015
22016 ac_configure_extra_args=
22017
22018 if $ac_cs_silent; then
22019   exec 6>/dev/null
22020   ac_configure_extra_args="$ac_configure_extra_args --silent"
22021 fi
22022
22023 _ACEOF
22024 cat >>$CONFIG_STATUS <<_ACEOF
22025 if \$ac_cs_recheck; then
22026   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22027   CONFIG_SHELL=$SHELL
22028   export CONFIG_SHELL
22029   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22030 fi
22031
22032 _ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034 exec 5>>config.log
22035 {
22036   echo
22037   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22038 ## Running $as_me. ##
22039 _ASBOX
22040   echo "$ac_log"
22041 } >&5
22042
22043 _ACEOF
22044 cat >>$CONFIG_STATUS <<_ACEOF
22045 #
22046 # INIT-COMMANDS
22047 #
22048 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22049
22050 _ACEOF
22051
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22053
22054 # Handling of arguments.
22055 for ac_config_target in $ac_config_targets
22056 do
22057   case $ac_config_target in
22058     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22059     "interface.h") CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
22060     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22061     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22062     "autoconf/Makefile") CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
22063     "common.makefile") CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
22064     "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
22065     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22066     "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
22067     "doc/ja_JP.eucJP/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
22068     "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
22069     "interface/motif_bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
22070     "interface/bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
22071     "interface/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
22072     "libarc/Makefile") CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
22073     "libunimod/Makefile") CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
22074     "timidity/Makefile") CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
22075     "windrv/Makefile") CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
22076     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22077     "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
22078
22079   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22080 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22081    { (exit 1); exit 1; }; };;
22082   esac
22083 done
22084
22085
22086 # If the user did not use the arguments to specify the items to instantiate,
22087 # then the envvar interface is used.  Set only those that are not.
22088 # We use the long form for the default assignment because of an extremely
22089 # bizarre bug on SunOS 4.1.3.
22090 if $ac_need_defaults; then
22091   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22092   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22093   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22094 fi
22095
22096 # Have a temporary directory for convenience.  Make it in the build tree
22097 # simply because there is no reason against having it here, and in addition,
22098 # creating and moving files from /tmp can sometimes cause problems.
22099 # Hook for its removal unless debugging.
22100 # Note that there is a small window in which the directory will not be cleaned:
22101 # after its creation but before its name has been assigned to `$tmp'.
22102 $debug ||
22103 {
22104   tmp=
22105   trap 'exit_status=$?
22106   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22107 ' 0
22108   trap '{ (exit 1); exit 1; }' 1 2 13 15
22109 }
22110 # Create a (secure) tmp directory for tmp files.
22111
22112 {
22113   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22114   test -n "$tmp" && test -d "$tmp"
22115 }  ||
22116 {
22117   tmp=./conf$$-$RANDOM
22118   (umask 077 && mkdir "$tmp")
22119 } ||
22120 {
22121    echo "$me: cannot create a temporary directory in ." >&2
22122    { (exit 1); exit 1; }
22123 }
22124
22125 #
22126 # Set up the sed scripts for CONFIG_FILES section.
22127 #
22128
22129 # No need to generate the scripts if there are no CONFIG_FILES.
22130 # This happens for instance when ./config.status config.h
22131 if test -n "$CONFIG_FILES"; then
22132
22133 _ACEOF
22134
22135
22136
22137 ac_delim='%!_!# '
22138 for ac_last_try in false false false false false :; do
22139   cat >conf$$subs.sed <<_ACEOF
22140 SHELL!$SHELL$ac_delim
22141 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22142 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22143 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22144 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22145 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22146 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22147 exec_prefix!$exec_prefix$ac_delim
22148 prefix!$prefix$ac_delim
22149 program_transform_name!$program_transform_name$ac_delim
22150 bindir!$bindir$ac_delim
22151 sbindir!$sbindir$ac_delim
22152 libexecdir!$libexecdir$ac_delim
22153 datarootdir!$datarootdir$ac_delim
22154 datadir!$datadir$ac_delim
22155 sysconfdir!$sysconfdir$ac_delim
22156 sharedstatedir!$sharedstatedir$ac_delim
22157 localstatedir!$localstatedir$ac_delim
22158 includedir!$includedir$ac_delim
22159 oldincludedir!$oldincludedir$ac_delim
22160 docdir!$docdir$ac_delim
22161 infodir!$infodir$ac_delim
22162 htmldir!$htmldir$ac_delim
22163 dvidir!$dvidir$ac_delim
22164 pdfdir!$pdfdir$ac_delim
22165 psdir!$psdir$ac_delim
22166 libdir!$libdir$ac_delim
22167 localedir!$localedir$ac_delim
22168 mandir!$mandir$ac_delim
22169 DEFS!$DEFS$ac_delim
22170 ECHO_C!$ECHO_C$ac_delim
22171 ECHO_N!$ECHO_N$ac_delim
22172 ECHO_T!$ECHO_T$ac_delim
22173 LIBS!$LIBS$ac_delim
22174 build_alias!$build_alias$ac_delim
22175 host_alias!$host_alias$ac_delim
22176 target_alias!$target_alias$ac_delim
22177 build!$build$ac_delim
22178 build_cpu!$build_cpu$ac_delim
22179 build_vendor!$build_vendor$ac_delim
22180 build_os!$build_os$ac_delim
22181 host!$host$ac_delim
22182 host_cpu!$host_cpu$ac_delim
22183 host_vendor!$host_vendor$ac_delim
22184 host_os!$host_os$ac_delim
22185 target!$target$ac_delim
22186 target_cpu!$target_cpu$ac_delim
22187 target_vendor!$target_vendor$ac_delim
22188 target_os!$target_os$ac_delim
22189 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22190 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22191 INSTALL_DATA!$INSTALL_DATA$ac_delim
22192 CYGPATH_W!$CYGPATH_W$ac_delim
22193 PACKAGE!$PACKAGE$ac_delim
22194 VERSION!$VERSION$ac_delim
22195 ACLOCAL!$ACLOCAL$ac_delim
22196 AUTOCONF!$AUTOCONF$ac_delim
22197 AUTOMAKE!$AUTOMAKE$ac_delim
22198 AUTOHEADER!$AUTOHEADER$ac_delim
22199 MAKEINFO!$MAKEINFO$ac_delim
22200 AMTAR!$AMTAR$ac_delim
22201 install_sh!$install_sh$ac_delim
22202 STRIP!$STRIP$ac_delim
22203 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22204 AWK!$AWK$ac_delim
22205 SET_MAKE!$SET_MAKE$ac_delim
22206 am__leading_dot!$am__leading_dot$ac_delim
22207 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22208 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22209 MAINT!$MAINT$ac_delim
22210 XAW_INSTALL_RESOURCE_FILES_TRUE!$XAW_INSTALL_RESOURCE_FILES_TRUE$ac_delim
22211 XAW_INSTALL_RESOURCE_FILES_FALSE!$XAW_INSTALL_RESOURCE_FILES_FALSE$ac_delim
22212 xawresdir!$xawresdir$ac_delim
22213 EMACS!$EMACS$ac_delim
22214 lispdir!$lispdir$ac_delim
22215 CC!$CC$ac_delim
22216 CFLAGS!$CFLAGS$ac_delim
22217 LDFLAGS!$LDFLAGS$ac_delim
22218 CPPFLAGS!$CPPFLAGS$ac_delim
22219 ac_ct_CC!$ac_ct_CC$ac_delim
22220 EXEEXT!$EXEEXT$ac_delim
22221 OBJEXT!$OBJEXT$ac_delim
22222 DEPDIR!$DEPDIR$ac_delim
22223 am__include!$am__include$ac_delim
22224 am__quote!$am__quote$ac_delim
22225 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22226 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22227 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22228 CCDEPMODE!$CCDEPMODE$ac_delim
22229 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22230 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22231 CPP!$CPP$ac_delim
22232 GREP!$GREP$ac_delim
22233 EGREP!$EGREP$ac_delim
22234 RANLIB!$RANLIB$ac_delim
22235 LN_S!$LN_S$ac_delim
22236 XMKMF!$XMKMF$ac_delim
22237 _ACEOF
22238
22239   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22240     break
22241   elif $ac_last_try; then
22242     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22244    { (exit 1); exit 1; }; }
22245   else
22246     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22247   fi
22248 done
22249
22250 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22251 if test -n "$ac_eof"; then
22252   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22253   ac_eof=`expr $ac_eof + 1`
22254 fi
22255
22256 cat >>$CONFIG_STATUS <<_ACEOF
22257 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22259 _ACEOF
22260 sed '
22261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22262 s/^/s,@/; s/!/@,|#_!!_#|/
22263 :n
22264 t n
22265 s/'"$ac_delim"'$/,g/; t
22266 s/$/\\/; p
22267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22268 ' >>$CONFIG_STATUS <conf$$subs.sed
22269 rm -f conf$$subs.sed
22270 cat >>$CONFIG_STATUS <<_ACEOF
22271 CEOF$ac_eof
22272 _ACEOF
22273
22274
22275 ac_delim='%!_!# '
22276 for ac_last_try in false false false false false :; do
22277   cat >conf$$subs.sed <<_ACEOF
22278 X_CFLAGS!$X_CFLAGS$ac_delim
22279 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22280 X_LIBS!$X_LIBS$ac_delim
22281 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
22282 LIBOBJS!$LIBOBJS$ac_delim
22283 NEEDGETOPT_TRUE!$NEEDGETOPT_TRUE$ac_delim
22284 NEEDGETOPT_FALSE!$NEEDGETOPT_FALSE$ac_delim
22285 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
22286 ALSA_LIBS!$ALSA_LIBS$ac_delim
22287 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
22288 ARTSLIBS!$ARTSLIBS$ac_delim
22289 ARTSINCL!$ARTSINCL$ac_delim
22290 ESD_CONFIG!$ESD_CONFIG$ac_delim
22291 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
22292 ESD_LIBS!$ESD_LIBS$ac_delim
22293 AO_CFLAGS!$AO_CFLAGS$ac_delim
22294 AO_LIBS!$AO_LIBS$ac_delim
22295 VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
22296 VORBIS_LIBS!$VORBIS_LIBS$ac_delim
22297 VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
22298 VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
22299 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
22300 OGG_LIBS!$OGG_LIBS$ac_delim
22301 LIBFLAC_CFLAGS!$LIBFLAC_CFLAGS$ac_delim
22302 LIBFLAC_LIBS!$LIBFLAC_LIBS$ac_delim
22303 LIBOGGFLAC_CFLAGS!$LIBOGGFLAC_CFLAGS$ac_delim
22304 LIBOGGFLAC_LIBS!$LIBOGGFLAC_LIBS$ac_delim
22305 NEEDDLOPEN_TRUE!$NEEDDLOPEN_TRUE$ac_delim
22306 NEEDDLOPEN_FALSE!$NEEDDLOPEN_FALSE$ac_delim
22307 ENABLE_XDND_TRUE!$ENABLE_XDND_TRUE$ac_delim
22308 ENABLE_XDND_FALSE!$ENABLE_XDND_FALSE$ac_delim
22309 ENABLE_NCURSES_TRUE!$ENABLE_NCURSES_TRUE$ac_delim
22310 ENABLE_NCURSES_FALSE!$ENABLE_NCURSES_FALSE$ac_delim
22311 n_so_libs!$n_so_libs$ac_delim
22312 ENABLE_SLANG_TRUE!$ENABLE_SLANG_TRUE$ac_delim
22313 ENABLE_SLANG_FALSE!$ENABLE_SLANG_FALSE$ac_delim
22314 s_so_libs!$s_so_libs$ac_delim
22315 ENABLE_MOTIF_TRUE!$ENABLE_MOTIF_TRUE$ac_delim
22316 ENABLE_MOTIF_FALSE!$ENABLE_MOTIF_FALSE$ac_delim
22317 m_so_libs!$m_so_libs$ac_delim
22318 ENABLE_TCLTK_TRUE!$ENABLE_TCLTK_TRUE$ac_delim
22319 ENABLE_TCLTK_FALSE!$ENABLE_TCLTK_FALSE$ac_delim
22320 k_so_libs!$k_so_libs$ac_delim
22321 ENABLE_DYNAMIC_TCLTK_TRUE!$ENABLE_DYNAMIC_TCLTK_TRUE$ac_delim
22322 ENABLE_DYNAMIC_TCLTK_FALSE!$ENABLE_DYNAMIC_TCLTK_FALSE$ac_delim
22323 ENABLE_EMACS_TRUE!$ENABLE_EMACS_TRUE$ac_delim
22324 ENABLE_EMACS_FALSE!$ENABLE_EMACS_FALSE$ac_delim
22325 e_so_libs!$e_so_libs$ac_delim
22326 ENABLE_VT100_TRUE!$ENABLE_VT100_TRUE$ac_delim
22327 ENABLE_VT100_FALSE!$ENABLE_VT100_FALSE$ac_delim
22328 T_so_libs!$T_so_libs$ac_delim
22329 ENABLE_XAW_TRUE!$ENABLE_XAW_TRUE$ac_delim
22330 ENABLE_XAW_FALSE!$ENABLE_XAW_FALSE$ac_delim
22331 a_so_libs!$a_so_libs$ac_delim
22332 ENABLE_DYNAMIC_XAW_TRUE!$ENABLE_DYNAMIC_XAW_TRUE$ac_delim
22333 ENABLE_DYNAMIC_XAW_FALSE!$ENABLE_DYNAMIC_XAW_FALSE$ac_delim
22334 ENABLE_XSKIN_TRUE!$ENABLE_XSKIN_TRUE$ac_delim
22335 ENABLE_XSKIN_FALSE!$ENABLE_XSKIN_FALSE$ac_delim
22336 i_so_libs!$i_so_libs$ac_delim
22337 ENABLE_GTK_TRUE!$ENABLE_GTK_TRUE$ac_delim
22338 ENABLE_GTK_FALSE!$ENABLE_GTK_FALSE$ac_delim
22339 PKG_CONFIG!$PKG_CONFIG$ac_delim
22340 GTK_CONFIG!$GTK_CONFIG$ac_delim
22341 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
22342 GTK_LIBS!$GTK_LIBS$ac_delim
22343 g_so_libs!$g_so_libs$ac_delim
22344 ENABLE_SERVER_TRUE!$ENABLE_SERVER_TRUE$ac_delim
22345 ENABLE_SERVER_FALSE!$ENABLE_SERVER_FALSE$ac_delim
22346 r_so_libs!$r_so_libs$ac_delim
22347 ENABLE_ALSASEQ_TRUE!$ENABLE_ALSASEQ_TRUE$ac_delim
22348 ENABLE_ALSASEQ_FALSE!$ENABLE_ALSASEQ_FALSE$ac_delim
22349 A_so_libs!$A_so_libs$ac_delim
22350 ENABLE_WINSYN_TRUE!$ENABLE_WINSYN_TRUE$ac_delim
22351 ENABLE_WINSYN_FALSE!$ENABLE_WINSYN_FALSE$ac_delim
22352 W_so_libs!$W_so_libs$ac_delim
22353 ENABLE_PORTMIDISYN_TRUE!$ENABLE_PORTMIDISYN_TRUE$ac_delim
22354 ENABLE_PORTMIDISYN_FALSE!$ENABLE_PORTMIDISYN_FALSE$ac_delim
22355 P_so_libs!$P_so_libs$ac_delim
22356 ENABLE_NPSYN_TRUE!$ENABLE_NPSYN_TRUE$ac_delim
22357 ENABLE_NPSYN_FALSE!$ENABLE_NPSYN_FALSE$ac_delim
22358 ENABLE_W32G_SYN_TRUE!$ENABLE_W32G_SYN_TRUE$ac_delim
22359 ENABLE_W32G_SYN_FALSE!$ENABLE_W32G_SYN_FALSE$ac_delim
22360 ENABLE_W32GUI_TRUE!$ENABLE_W32GUI_TRUE$ac_delim
22361 ENABLE_W32GUI_FALSE!$ENABLE_W32GUI_FALSE$ac_delim
22362 w_so_libs!$w_so_libs$ac_delim
22363 ENABLE_PLUGIN_TRUE!$ENABLE_PLUGIN_TRUE$ac_delim
22364 ENABLE_PLUGIN_FALSE!$ENABLE_PLUGIN_FALSE$ac_delim
22365 p_so_libs!$p_so_libs$ac_delim
22366 ENABLE_NETWORK_TRUE!$ENABLE_NETWORK_TRUE$ac_delim
22367 ENABLE_NETWORK_FALSE!$ENABLE_NETWORK_FALSE$ac_delim
22368 ENABLE_SOUND_SPEC_TRUE!$ENABLE_SOUND_SPEC_TRUE$ac_delim
22369 ENABLE_SOUND_SPEC_FALSE!$ENABLE_SOUND_SPEC_FALSE$ac_delim
22370 ENABLE_WRD_TRUE!$ENABLE_WRD_TRUE$ac_delim
22371 ENABLE_WRD_FALSE!$ENABLE_WRD_FALSE$ac_delim
22372 W32G_GUI_TRUE!$W32G_GUI_TRUE$ac_delim
22373 W32G_GUI_FALSE!$W32G_GUI_FALSE$ac_delim
22374 WINDRV_TRUE!$WINDRV_TRUE$ac_delim
22375 _ACEOF
22376
22377   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22378     break
22379   elif $ac_last_try; then
22380     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22381 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22382    { (exit 1); exit 1; }; }
22383   else
22384     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22385   fi
22386 done
22387
22388 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22389 if test -n "$ac_eof"; then
22390   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22391   ac_eof=`expr $ac_eof + 1`
22392 fi
22393
22394 cat >>$CONFIG_STATUS <<_ACEOF
22395 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22397 _ACEOF
22398 sed '
22399 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22400 s/^/s,@/; s/!/@,|#_!!_#|/
22401 :n
22402 t n
22403 s/'"$ac_delim"'$/,g/; t
22404 s/$/\\/; p
22405 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22406 ' >>$CONFIG_STATUS <conf$$subs.sed
22407 rm -f conf$$subs.sed
22408 cat >>$CONFIG_STATUS <<_ACEOF
22409 CEOF$ac_eof
22410 _ACEOF
22411
22412
22413 ac_delim='%!_!# '
22414 for ac_last_try in false false false false false :; do
22415   cat >conf$$subs.sed <<_ACEOF
22416 WINDRV_FALSE!$WINDRV_FALSE$ac_delim
22417 MSYS_TRUE!$MSYS_TRUE$ac_delim
22418 MSYS_FALSE!$MSYS_FALSE$ac_delim
22419 VCPP_TRUE!$VCPP_TRUE$ac_delim
22420 VCPP_FALSE!$VCPP_FALSE$ac_delim
22421 POCC_TRUE!$POCC_TRUE$ac_delim
22422 POCC_FALSE!$POCC_FALSE$ac_delim
22423 BORLANDC_TRUE!$BORLANDC_TRUE$ac_delim
22424 BORLANDC_FALSE!$BORLANDC_FALSE$ac_delim
22425 WATCOM_C_TRUE!$WATCOM_C_TRUE$ac_delim
22426 WATCOM_C_FALSE!$WATCOM_C_FALSE$ac_delim
22427 DMC_TRUE!$DMC_TRUE$ac_delim
22428 DMC_FALSE!$DMC_FALSE$ac_delim
22429 MINGWGCC_TRUE!$MINGWGCC_TRUE$ac_delim
22430 MINGWGCC_FALSE!$MINGWGCC_FALSE$ac_delim
22431 W32READDIR_TRUE!$W32READDIR_TRUE$ac_delim
22432 W32READDIR_FALSE!$W32READDIR_FALSE$ac_delim
22433 BORLANDC_START!$BORLANDC_START$ac_delim
22434 BORLANDC_LDFLAGS!$BORLANDC_LDFLAGS$ac_delim
22435 timidity_LDFLAGS!$timidity_LDFLAGS$ac_delim
22436 WATCOM_LDFLAGS!$WATCOM_LDFLAGS$ac_delim
22437 DMC_LDFLAGS!$DMC_LDFLAGS$ac_delim
22438 VCPP_LDFLAGS!$VCPP_LDFLAGS$ac_delim
22439 POCC_LDFLAGS!$POCC_LDFLAGS$ac_delim
22440 SYSEXTRAS!$SYSEXTRAS$ac_delim
22441 EXTRALIBS!$EXTRALIBS$ac_delim
22442 NETSRCS!$NETSRCS$ac_delim
22443 ELFILES!$ELFILES$ac_delim
22444 SHLD!$SHLD$ac_delim
22445 SHCFLAGS!$SHCFLAGS$ac_delim
22446 dynamic_targets!$dynamic_targets$ac_delim
22447 so!$so$ac_delim
22448 WISH!$WISH$ac_delim
22449 tcltk_dep!$tcltk_dep$ac_delim
22450 INTERFACE_SRCS!$INTERFACE_SRCS$ac_delim
22451 pkgdatadir!$pkgdatadir$ac_delim
22452 pkglibdir!$pkglibdir$ac_delim
22453 LTLIBOBJS!$LTLIBOBJS$ac_delim
22454 _ACEOF
22455
22456   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
22457     break
22458   elif $ac_last_try; then
22459     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22460 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22461    { (exit 1); exit 1; }; }
22462   else
22463     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22464   fi
22465 done
22466
22467 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22468 if test -n "$ac_eof"; then
22469   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22470   ac_eof=`expr $ac_eof + 1`
22471 fi
22472
22473 cat >>$CONFIG_STATUS <<_ACEOF
22474 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22476 _ACEOF
22477 sed '
22478 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22479 s/^/s,@/; s/!/@,|#_!!_#|/
22480 :n
22481 t n
22482 s/'"$ac_delim"'$/,g/; t
22483 s/$/\\/; p
22484 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22485 ' >>$CONFIG_STATUS <conf$$subs.sed
22486 rm -f conf$$subs.sed
22487 cat >>$CONFIG_STATUS <<_ACEOF
22488 :end
22489 s/|#_!!_#|//g
22490 CEOF$ac_eof
22491 _ACEOF
22492
22493
22494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22496 # trailing colons and then remove the whole line if VPATH becomes empty
22497 # (actually we leave an empty line to preserve line numbers).
22498 if test "x$srcdir" = x.; then
22499   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22500 s/:*\$(srcdir):*/:/
22501 s/:*\${srcdir}:*/:/
22502 s/:*@srcdir@:*/:/
22503 s/^\([^=]*=[     ]*\):*/\1/
22504 s/:*$//
22505 s/^[^=]*=[       ]*$//
22506 }'
22507 fi
22508
22509 cat >>$CONFIG_STATUS <<\_ACEOF
22510 fi # test -n "$CONFIG_FILES"
22511
22512
22513 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22514 do
22515   case $ac_tag in
22516   :[FHLC]) ac_mode=$ac_tag; continue;;
22517   esac
22518   case $ac_mode$ac_tag in
22519   :[FHL]*:*);;
22520   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22521 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22522    { (exit 1); exit 1; }; };;
22523   :[FH]-) ac_tag=-:-;;
22524   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22525   esac
22526   ac_save_IFS=$IFS
22527   IFS=:
22528   set x $ac_tag
22529   IFS=$ac_save_IFS
22530   shift
22531   ac_file=$1
22532   shift
22533
22534   case $ac_mode in
22535   :L) ac_source=$1;;
22536   :[FH])
22537     ac_file_inputs=
22538     for ac_f
22539     do
22540       case $ac_f in
22541       -) ac_f="$tmp/stdin";;
22542       *) # Look for the file first in the build tree, then in the source tree
22543          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22544          # because $ac_f cannot contain `:'.
22545          test -f "$ac_f" ||
22546            case $ac_f in
22547            [\\/$]*) false;;
22548            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22549            esac ||
22550            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22551 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22552    { (exit 1); exit 1; }; };;
22553       esac
22554       ac_file_inputs="$ac_file_inputs $ac_f"
22555     done
22556
22557     # Let's still pretend it is `configure' which instantiates (i.e., don't
22558     # use $as_me), people would be surprised to read:
22559     #    /* config.h.  Generated by config.status.  */
22560     configure_input="Generated from "`IFS=:
22561           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22562     if test x"$ac_file" != x-; then
22563       configure_input="$ac_file.  $configure_input"
22564       { echo "$as_me:$LINENO: creating $ac_file" >&5
22565 echo "$as_me: creating $ac_file" >&6;}
22566     fi
22567
22568     case $ac_tag in
22569     *:-:* | *:-) cat >"$tmp/stdin";;
22570     esac
22571     ;;
22572   esac
22573
22574   ac_dir=`$as_dirname -- "$ac_file" ||
22575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576          X"$ac_file" : 'X\(//\)[^/]' \| \
22577          X"$ac_file" : 'X\(//\)$' \| \
22578          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22579 echo X"$ac_file" |
22580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22581             s//\1/
22582             q
22583           }
22584           /^X\(\/\/\)[^/].*/{
22585             s//\1/
22586             q
22587           }
22588           /^X\(\/\/\)$/{
22589             s//\1/
22590             q
22591           }
22592           /^X\(\/\).*/{
22593             s//\1/
22594             q
22595           }
22596           s/.*/./; q'`
22597   { as_dir="$ac_dir"
22598   case $as_dir in #(
22599   -*) as_dir=./$as_dir;;
22600   esac
22601   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22602     as_dirs=
22603     while :; do
22604       case $as_dir in #(
22605       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22606       *) as_qdir=$as_dir;;
22607       esac
22608       as_dirs="'$as_qdir' $as_dirs"
22609       as_dir=`$as_dirname -- "$as_dir" ||
22610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22611          X"$as_dir" : 'X\(//\)[^/]' \| \
22612          X"$as_dir" : 'X\(//\)$' \| \
22613          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22614 echo X"$as_dir" |
22615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22616             s//\1/
22617             q
22618           }
22619           /^X\(\/\/\)[^/].*/{
22620             s//\1/
22621             q
22622           }
22623           /^X\(\/\/\)$/{
22624             s//\1/
22625             q
22626           }
22627           /^X\(\/\).*/{
22628             s//\1/
22629             q
22630           }
22631           s/.*/./; q'`
22632       test -d "$as_dir" && break
22633     done
22634     test -z "$as_dirs" || eval "mkdir $as_dirs"
22635   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22636 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22637    { (exit 1); exit 1; }; }; }
22638   ac_builddir=.
22639
22640 case "$ac_dir" in
22641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22642 *)
22643   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22644   # A ".." for each directory in $ac_dir_suffix.
22645   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22646   case $ac_top_builddir_sub in
22647   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22648   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22649   esac ;;
22650 esac
22651 ac_abs_top_builddir=$ac_pwd
22652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22653 # for backward compatibility:
22654 ac_top_builddir=$ac_top_build_prefix
22655
22656 case $srcdir in
22657   .)  # We are building in place.
22658     ac_srcdir=.
22659     ac_top_srcdir=$ac_top_builddir_sub
22660     ac_abs_top_srcdir=$ac_pwd ;;
22661   [\\/]* | ?:[\\/]* )  # Absolute name.
22662     ac_srcdir=$srcdir$ac_dir_suffix;
22663     ac_top_srcdir=$srcdir
22664     ac_abs_top_srcdir=$srcdir ;;
22665   *) # Relative name.
22666     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22667     ac_top_srcdir=$ac_top_build_prefix$srcdir
22668     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22669 esac
22670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22671
22672
22673   case $ac_mode in
22674   :F)
22675   #
22676   # CONFIG_FILE
22677   #
22678
22679   case $INSTALL in
22680   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22681   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22682   esac
22683 _ACEOF
22684
22685 cat >>$CONFIG_STATUS <<\_ACEOF
22686 # If the template does not know about datarootdir, expand it.
22687 # FIXME: This hack should be removed a few years after 2.60.
22688 ac_datarootdir_hack=; ac_datarootdir_seen=
22689
22690 case `sed -n '/datarootdir/ {
22691   p
22692   q
22693 }
22694 /@datadir@/p
22695 /@docdir@/p
22696 /@infodir@/p
22697 /@localedir@/p
22698 /@mandir@/p
22699 ' $ac_file_inputs` in
22700 *datarootdir*) ac_datarootdir_seen=yes;;
22701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22702   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22703 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22704 _ACEOF
22705 cat >>$CONFIG_STATUS <<_ACEOF
22706   ac_datarootdir_hack='
22707   s&@datadir@&$datadir&g
22708   s&@docdir@&$docdir&g
22709   s&@infodir@&$infodir&g
22710   s&@localedir@&$localedir&g
22711   s&@mandir@&$mandir&g
22712     s&\\\${datarootdir}&$datarootdir&g' ;;
22713 esac
22714 _ACEOF
22715
22716 # Neutralize VPATH when `$srcdir' = `.'.
22717 # Shell code in configure.ac might set extrasub.
22718 # FIXME: do we really want to maintain this feature?
22719 cat >>$CONFIG_STATUS <<_ACEOF
22720   sed "$ac_vpsub
22721 $extrasub
22722 _ACEOF
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 :t
22725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22726 s&@configure_input@&$configure_input&;t t
22727 s&@top_builddir@&$ac_top_builddir_sub&;t t
22728 s&@srcdir@&$ac_srcdir&;t t
22729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22730 s&@top_srcdir@&$ac_top_srcdir&;t t
22731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22732 s&@builddir@&$ac_builddir&;t t
22733 s&@abs_builddir@&$ac_abs_builddir&;t t
22734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22735 s&@INSTALL@&$ac_INSTALL&;t t
22736 $ac_datarootdir_hack
22737 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22738
22739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22740   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22741   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22742   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22743 which seems to be undefined.  Please make sure it is defined." >&5
22744 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22745 which seems to be undefined.  Please make sure it is defined." >&2;}
22746
22747   rm -f "$tmp/stdin"
22748   case $ac_file in
22749   -) cat "$tmp/out"; rm -f "$tmp/out";;
22750   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22751   esac
22752  ;;
22753   :H)
22754   #
22755   # CONFIG_HEADER
22756   #
22757 _ACEOF
22758
22759 # Transform confdefs.h into a sed script `conftest.defines', that
22760 # substitutes the proper values into config.h.in to produce config.h.
22761 rm -f conftest.defines conftest.tail
22762 # First, append a space to every undef/define line, to ease matching.
22763 echo 's/$/ /' >conftest.defines
22764 # Then, protect against being on the right side of a sed subst, or in
22765 # an unquoted here document, in config.status.  If some macros were
22766 # called several times there might be several #defines for the same
22767 # symbol, which is useless.  But do not sort them, since the last
22768 # AC_DEFINE must be honored.
22769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22770 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22771 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22772 # PARAMS is the parameter list in the macro definition--in most cases, it's
22773 # just an empty string.
22774 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22775 ac_dB='\\)[      (].*,\\1define\\2'
22776 ac_dC=' '
22777 ac_dD=' ,'
22778
22779 uniq confdefs.h |
22780   sed -n '
22781         t rset
22782         :rset
22783         s/^[     ]*#[    ]*define[       ][      ]*//
22784         t ok
22785         d
22786         :ok
22787         s/[\\&,]/\\&/g
22788         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22789         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22790   ' >>conftest.defines
22791
22792 # Remove the space that was appended to ease matching.
22793 # Then replace #undef with comments.  This is necessary, for
22794 # example, in the case of _POSIX_SOURCE, which is predefined and required
22795 # on some systems where configure will not decide to define it.
22796 # (The regexp can be short, since the line contains either #define or #undef.)
22797 echo 's/ $//
22798 s,^[     #]*u.*,/* & */,' >>conftest.defines
22799
22800 # Break up conftest.defines:
22801 ac_max_sed_lines=50
22802
22803 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22804 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22805 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22806 # et cetera.
22807 ac_in='$ac_file_inputs'
22808 ac_out='"$tmp/out1"'
22809 ac_nxt='"$tmp/out2"'
22810
22811 while :
22812 do
22813   # Write a here document:
22814     cat >>$CONFIG_STATUS <<_ACEOF
22815     # First, check the format of the line:
22816     cat >"\$tmp/defines.sed" <<\\CEOF
22817 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22818 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22819 b
22820 :def
22821 _ACEOF
22822   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22823   echo 'CEOF
22824     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22825   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22826   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22827   grep . conftest.tail >/dev/null || break
22828   rm -f conftest.defines
22829   mv conftest.tail conftest.defines
22830 done
22831 rm -f conftest.defines conftest.tail
22832
22833 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22835   if test x"$ac_file" != x-; then
22836     echo "/* $configure_input  */" >"$tmp/config.h"
22837     cat "$ac_result" >>"$tmp/config.h"
22838     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22839       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22840 echo "$as_me: $ac_file is unchanged" >&6;}
22841     else
22842       rm -f $ac_file
22843       mv "$tmp/config.h" $ac_file
22844     fi
22845   else
22846     echo "/* $configure_input  */"
22847     cat "$ac_result"
22848   fi
22849   rm -f "$tmp/out12"
22850 # Compute $ac_file's index in $config_headers.
22851 _am_stamp_count=1
22852 for _am_header in $config_headers :; do
22853   case $_am_header in
22854     $ac_file | $ac_file:* )
22855       break ;;
22856     * )
22857       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22858   esac
22859 done
22860 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22861 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22862          X$ac_file : 'X\(//\)[^/]' \| \
22863          X$ac_file : 'X\(//\)$' \| \
22864          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22865 echo X$ac_file |
22866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22867             s//\1/
22868             q
22869           }
22870           /^X\(\/\/\)[^/].*/{
22871             s//\1/
22872             q
22873           }
22874           /^X\(\/\/\)$/{
22875             s//\1/
22876             q
22877           }
22878           /^X\(\/\).*/{
22879             s//\1/
22880             q
22881           }
22882           s/.*/./; q'`/stamp-h$_am_stamp_count
22883  ;;
22884
22885   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22886 echo "$as_me: executing $ac_file commands" >&6;}
22887  ;;
22888   esac
22889
22890
22891   case $ac_file$ac_mode in
22892     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22893   # Strip MF so we end up with the name of the file.
22894   mf=`echo "$mf" | sed -e 's/:.*$//'`
22895   # Check whether this is an Automake generated Makefile or not.
22896   # We used to match only the files named `Makefile.in', but
22897   # some people rename them; so instead we look at the file content.
22898   # Grep'ing the first line is not enough: some people post-process
22899   # each Makefile.in and add a new line on top of each file to say so.
22900   # So let's grep whole file.
22901   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22902     dirpart=`$as_dirname -- "$mf" ||
22903 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904          X"$mf" : 'X\(//\)[^/]' \| \
22905          X"$mf" : 'X\(//\)$' \| \
22906          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22907 echo X"$mf" |
22908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22909             s//\1/
22910             q
22911           }
22912           /^X\(\/\/\)[^/].*/{
22913             s//\1/
22914             q
22915           }
22916           /^X\(\/\/\)$/{
22917             s//\1/
22918             q
22919           }
22920           /^X\(\/\).*/{
22921             s//\1/
22922             q
22923           }
22924           s/.*/./; q'`
22925   else
22926     continue
22927   fi
22928   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22929   # Extract the definition of DEP_FILES from the Makefile without
22930   # running `make'.
22931   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22932   test -z "$DEPDIR" && continue
22933   # When using ansi2knr, U may be empty or an underscore; expand it
22934   U=`sed -n -e '/^U = / s///p' < "$mf"`
22935   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22936   # We invoke sed twice because it is the simplest approach to
22937   # changing $(DEPDIR) to its actual value in the expansion.
22938   for file in `sed -n -e '
22939     /^DEP_FILES = .*\\\\$/ {
22940       s/^DEP_FILES = //
22941       :loop
22942         s/\\\\$//
22943         p
22944         n
22945         /\\\\$/ b loop
22946       p
22947     }
22948     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22949        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22950     # Make sure the directory exists.
22951     test -f "$dirpart/$file" && continue
22952     fdir=`$as_dirname -- "$file" ||
22953 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954          X"$file" : 'X\(//\)[^/]' \| \
22955          X"$file" : 'X\(//\)$' \| \
22956          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22957 echo X"$file" |
22958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22959             s//\1/
22960             q
22961           }
22962           /^X\(\/\/\)[^/].*/{
22963             s//\1/
22964             q
22965           }
22966           /^X\(\/\/\)$/{
22967             s//\1/
22968             q
22969           }
22970           /^X\(\/\).*/{
22971             s//\1/
22972             q
22973           }
22974           s/.*/./; q'`
22975     { as_dir=$dirpart/$fdir
22976   case $as_dir in #(
22977   -*) as_dir=./$as_dir;;
22978   esac
22979   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22980     as_dirs=
22981     while :; do
22982       case $as_dir in #(
22983       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22984       *) as_qdir=$as_dir;;
22985       esac
22986       as_dirs="'$as_qdir' $as_dirs"
22987       as_dir=`$as_dirname -- "$as_dir" ||
22988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22989          X"$as_dir" : 'X\(//\)[^/]' \| \
22990          X"$as_dir" : 'X\(//\)$' \| \
22991          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22992 echo X"$as_dir" |
22993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22994             s//\1/
22995             q
22996           }
22997           /^X\(\/\/\)[^/].*/{
22998             s//\1/
22999             q
23000           }
23001           /^X\(\/\/\)$/{
23002             s//\1/
23003             q
23004           }
23005           /^X\(\/\).*/{
23006             s//\1/
23007             q
23008           }
23009           s/.*/./; q'`
23010       test -d "$as_dir" && break
23011     done
23012     test -z "$as_dirs" || eval "mkdir $as_dirs"
23013   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23014 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23015    { (exit 1); exit 1; }; }; }
23016     # echo "creating $dirpart/$file"
23017     echo '# dummy' > "$dirpart/$file"
23018   done
23019 done
23020  ;;
23021
23022   esac
23023 done # for ac_tag
23024
23025
23026 { (exit 0); exit 0; }
23027 _ACEOF
23028 chmod +x $CONFIG_STATUS
23029 ac_clean_files=$ac_clean_files_save
23030
23031
23032 # configure is writing to config.log, and then calls config.status.
23033 # config.status does its own redirection, appending to config.log.
23034 # Unfortunately, on DOS this fails, as config.log is still kept open
23035 # by configure, so config.status won't be able to write to it; its
23036 # output is simply discarded.  So we exec the FD to /dev/null,
23037 # effectively closing config.log, so it can be properly (re)opened and
23038 # appended to by config.status.  When coming back to configure, we
23039 # need to make the FD available again.
23040 if test "$no_create" != yes; then
23041   ac_cs_success=:
23042   ac_config_status_args=
23043   test "$silent" = yes &&
23044     ac_config_status_args="$ac_config_status_args --quiet"
23045   exec 5>/dev/null
23046   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23047   exec 5>>config.log
23048   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23049   # would make configure fail if this is the last instruction.
23050   $ac_cs_success || { (exit 1); exit 1; }
23051 fi
23052