OSDN Git Service

Cygwin Mingw32 fixes.
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
275
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848   --target=TARGET   configure for building compilers for TARGET [HOST]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of TiMidity++ current:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-maintainer-mode enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --enable-debug          Build a debugging version.
864   --disable-dependency-tracking Speeds up one-time builds
865   --enable-dependency-tracking  Do not reject slow dependency extractors
866   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867                               default:   Automatically select audio device.
868                               oss:       OSS /dev/dsp
869                               sun:       SunOS /dev/audio
870                               hpux:      HPUX /dev/audio
871                               irix:      IRIX audio library
872                               mme:       OSF/1 MME
873                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
874                               w32:       Windows MMS
875                               darwin:    Darwin CoreAudio
876                               alsa:      ALSA pcm device
877                               alib:      HPUX network audio (Alib)
878                               nas:       NAS - Network Audio System
879                               arts:      aRts
880                               esd:       EsounD - Enlightened Sound Daemon
881                               portaudio: PortAudio
882                               jack:      JACK
883                               ao:        Libao
884                               vorbis:    Ogg Vorbis
885                               flac:      FLAC / OggFLAC
886                               speex:     Ogg Speex
887                               gogo:      MP3 GOGO (Only Windows is supported)
888   --disable-alsatest      Do not try to compile and run a test Alsa program
889   --disable-artstest       Do not try to compile and run a test ARTS program
890   --disable-esdtest       Do not try to compile and run a test ESD program
891   --disable-aotest       Do not try to compile and run a test ao program
892   --disable-oggtest       Do not try to compile and run a test Ogg program
893   --disable-vorbistest       Do not try to compile and run a test Vorbis program
894   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
895   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
896   --enable-interface=interface_list
897                           Comma separated interface list
898   --enable-dynamic        Enable dynamic link interface   (default is no)
899   --enable-dynamic=dynamic_list
900                           Comma separated dynamic interface list
901   --enable-ncurses        Enable ncurses interface        (default is no)
902   --enable-slang          Enable slang interface          (default is no)
903   --enable-motif          Enable motif interface          (default is no)
904   --enable-tcltk          Enable tcltk interface          (default is no)
905   --enable-emacs          Enable emacs interface          (default is no)
906   --enable-vt100          Enable VT100 interface          (default is no)
907   --enable-xaw            Enable athena interface         (default is no)
908   --enable-xskin          Enable X skin interface         (default is no)
909   --enable-gtk            Enable GTK+ interface           (default is no)
910   --disable-gtktest       Do not try to compile and run a test GTK program
911   --enable-server         Enable server interface         (default is no)
912   --enable-alsaseq        Enable ALSA sequencer server interface
913                                                           (default is no)
914   --enable-winsyn        Enable Windows Synthesizer interface
915                                                           (default is no)
916   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
917                                                           (default is no)
918   --enable-winsyng        Enable Windows GUI Synthesizer interface
919                                                           (default is no)
920   --enable-w32gui         Enable Windows GUI interface    (default is no)
921   --enable-ump            UMP configuration               (default is no)
922   --enable-offix          Enable offix support            (default is no)
923   --enable-network        Enable network support          (default is no)
924   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
925   --enable-spline=method  Specify spline method.
926                                   one of no,linear,cubic,lagrange,newton,gauss
927                                                           (default is linear)
928   --enable-wrd            Enable WRD interface for X      (default is no)
929
930 Optional Packages:
931   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
932   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
933   --with-includes=DIR     Specify include directories (colon separated)
934   --with-libraries=DIR    Specify library directories (colon separated)
935   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
936   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
937   --with-lispdir          Override the default lisp directory
938   --with-elf              create ELF shared object instead of AOUT
939   --with-x                use the X Window System
940   --with-tcl-includes=DIR Tcl include file path
941   --with-tcl-libs=DIR     Tcl library file path
942   --with-tk-includes=DIR  Tk include file path
943   --with-tk-libs=DIR      Tk library file path
944   --with-offix-includes=DIR Offix include file path
945   --with-offix-libs=DIR   Offix include file path
946   --with-nas-library=library NAS absolute library path(Don't use -laudio)
947   --with-nas-includes=DIR NAS include files are in dir
948   --with-default-output=<mode>  Specify default output mode (optional):
949                                 (default|alsa|alib|arts|nas|
950                                 esd|wav|au|aiff|list|vorbis|flac|speex|
951                                 gogo|portaudio|jack|ao)
952   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
953   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
954   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
955   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
956   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
957   --with-ao=PFX   Prefix where libao is installed (optional)
958   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
959   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
960   --with-ogg=PFX   Prefix where libogg is installed (optional)
961   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
962   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
963   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
964   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
965   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
966   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
967   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
968   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
969   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
970   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
971   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
972   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
973   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
974
975 Some influential environment variables:
976   CC          C compiler command
977   CFLAGS      C compiler flags
978   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
979               nonstandard directory <lib dir>
980   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
981               headers in a nonstandard directory <include dir>
982   CPP         C preprocessor
983
984 Use these variables to override the choices made by `configure' or to help
985 it to find libraries and programs with nonstandard names/locations.
986
987 Report bugs to <root@mput.dip.jp>.
988 _ACEOF
989 fi
990
991 if test "$ac_init_help" = "recursive"; then
992   # If there are subdirs, report their specific --help.
993   ac_popdir=`pwd`
994   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
995     test -d $ac_dir || continue
996     ac_builddir=.
997
998 if test "$ac_dir" != .; then
999   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1000   # A "../" for each directory in $ac_dir_suffix.
1001   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1002 else
1003   ac_dir_suffix= ac_top_builddir=
1004 fi
1005
1006 case $srcdir in
1007   .)  # No --srcdir option.  We are building in place.
1008     ac_srcdir=.
1009     if test -z "$ac_top_builddir"; then
1010        ac_top_srcdir=.
1011     else
1012        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1013     fi ;;
1014   [\\/]* | ?:[\\/]* )  # Absolute path.
1015     ac_srcdir=$srcdir$ac_dir_suffix;
1016     ac_top_srcdir=$srcdir ;;
1017   *) # Relative path.
1018     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1019     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1020 esac
1021
1022 # Do not use `cd foo && pwd` to compute absolute paths, because
1023 # the directories may not exist.
1024 case `pwd` in
1025 .) ac_abs_builddir="$ac_dir";;
1026 *)
1027   case "$ac_dir" in
1028   .) ac_abs_builddir=`pwd`;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1030   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1031   esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *)
1036   case ${ac_top_builddir}. in
1037   .) ac_abs_top_builddir=$ac_abs_builddir;;
1038   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1039   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1040   esac;;
1041 esac
1042 case $ac_abs_builddir in
1043 .) ac_abs_srcdir=$ac_srcdir;;
1044 *)
1045   case $ac_srcdir in
1046   .) ac_abs_srcdir=$ac_abs_builddir;;
1047   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1048   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1049   esac;;
1050 esac
1051 case $ac_abs_builddir in
1052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *)
1054   case $ac_top_srcdir in
1055   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1056   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1057   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1058   esac;;
1059 esac
1060
1061     cd $ac_dir
1062     # Check for guested configure; otherwise get Cygnus style configure.
1063     if test -f $ac_srcdir/configure.gnu; then
1064       echo
1065       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1066     elif test -f $ac_srcdir/configure; then
1067       echo
1068       $SHELL $ac_srcdir/configure  --help=recursive
1069     elif test -f $ac_srcdir/configure.ac ||
1070            test -f $ac_srcdir/configure.in; then
1071       echo
1072       $ac_configure --help
1073     else
1074       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1075     fi
1076     cd $ac_popdir
1077   done
1078 fi
1079
1080 test -n "$ac_init_help" && exit 0
1081 if $ac_init_version; then
1082   cat <<\_ACEOF
1083 TiMidity++ configure current
1084 generated by GNU Autoconf 2.59
1085
1086 Copyright (C) 2003 Free Software Foundation, Inc.
1087 This configure script is free software; the Free Software Foundation
1088 gives unlimited permission to copy, distribute and modify it.
1089 _ACEOF
1090   exit 0
1091 fi
1092 exec 5>config.log
1093 cat >&5 <<_ACEOF
1094 This file contains any messages produced by compilers while
1095 running configure, to aid debugging if configure makes a mistake.
1096
1097 It was created by TiMidity++ $as_me current, which was
1098 generated by GNU Autoconf 2.59.  Invocation command line was
1099
1100   $ $0 $@
1101
1102 _ACEOF
1103 {
1104 cat <<_ASUNAME
1105 ## --------- ##
1106 ## Platform. ##
1107 ## --------- ##
1108
1109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1114
1115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1116 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1117
1118 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1119 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1121 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1122 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1123 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1124 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1125
1126 _ASUNAME
1127
1128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1129 for as_dir in $PATH
1130 do
1131   IFS=$as_save_IFS
1132   test -z "$as_dir" && as_dir=.
1133   echo "PATH: $as_dir"
1134 done
1135
1136 } >&5
1137
1138 cat >&5 <<_ACEOF
1139
1140
1141 ## ----------- ##
1142 ## Core tests. ##
1143 ## ----------- ##
1144
1145 _ACEOF
1146
1147
1148 # Keep a trace of the command line.
1149 # Strip out --no-create and --no-recursion so they do not pile up.
1150 # Strip out --silent because we don't want to record it for future runs.
1151 # Also quote any args containing shell meta-characters.
1152 # Make two passes to allow for proper duplicate-argument suppression.
1153 ac_configure_args=
1154 ac_configure_args0=
1155 ac_configure_args1=
1156 ac_sep=
1157 ac_must_keep_next=false
1158 for ac_pass in 1 2
1159 do
1160   for ac_arg
1161   do
1162     case $ac_arg in
1163     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1164     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165     | -silent | --silent | --silen | --sile | --sil)
1166       continue ;;
1167     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1168       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1169     esac
1170     case $ac_pass in
1171     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1172     2)
1173       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1174       if test $ac_must_keep_next = true; then
1175         ac_must_keep_next=false # Got value, back to normal.
1176       else
1177         case $ac_arg in
1178           *=* | --config-cache | -C | -disable-* | --disable-* \
1179           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1180           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1181           | -with-* | --with-* | -without-* | --without-* | --x)
1182             case "$ac_configure_args0 " in
1183               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1184             esac
1185             ;;
1186           -* ) ac_must_keep_next=true ;;
1187         esac
1188       fi
1189       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1190       # Get rid of the leading space.
1191       ac_sep=" "
1192       ;;
1193     esac
1194   done
1195 done
1196 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1197 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1198
1199 # When interrupted or exit'd, cleanup temporary files, and complete
1200 # config.log.  We remove comments because anyway the quotes in there
1201 # would cause problems or look ugly.
1202 # WARNING: Be sure not to use single quotes in there, as some shells,
1203 # such as our DU 5.0 friend, will then `close' the trap.
1204 trap 'exit_status=$?
1205   # Save into config.log some information that might help in debugging.
1206   {
1207     echo
1208
1209     cat <<\_ASBOX
1210 ## ---------------- ##
1211 ## Cache variables. ##
1212 ## ---------------- ##
1213 _ASBOX
1214     echo
1215     # The following way of writing the cache mishandles newlines in values,
1216 {
1217   (set) 2>&1 |
1218     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1219     *ac_space=\ *)
1220       sed -n \
1221         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1223       ;;
1224     *)
1225       sed -n \
1226         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1227       ;;
1228     esac;
1229 }
1230     echo
1231
1232     cat <<\_ASBOX
1233 ## ----------------- ##
1234 ## Output variables. ##
1235 ## ----------------- ##
1236 _ASBOX
1237     echo
1238     for ac_var in $ac_subst_vars
1239     do
1240       eval ac_val=$`echo $ac_var`
1241       echo "$ac_var='"'"'$ac_val'"'"'"
1242     done | sort
1243     echo
1244
1245     if test -n "$ac_subst_files"; then
1246       cat <<\_ASBOX
1247 ## ------------- ##
1248 ## Output files. ##
1249 ## ------------- ##
1250 _ASBOX
1251       echo
1252       for ac_var in $ac_subst_files
1253       do
1254         eval ac_val=$`echo $ac_var`
1255         echo "$ac_var='"'"'$ac_val'"'"'"
1256       done | sort
1257       echo
1258     fi
1259
1260     if test -s confdefs.h; then
1261       cat <<\_ASBOX
1262 ## ----------- ##
1263 ## confdefs.h. ##
1264 ## ----------- ##
1265 _ASBOX
1266       echo
1267       sed "/^$/d" confdefs.h | sort
1268       echo
1269     fi
1270     test "$ac_signal" != 0 &&
1271       echo "$as_me: caught signal $ac_signal"
1272     echo "$as_me: exit $exit_status"
1273   } >&5
1274   rm -f core *.core &&
1275   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1276     exit $exit_status
1277      ' 0
1278 for ac_signal in 1 2 13 15; do
1279   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1280 done
1281 ac_signal=0
1282
1283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1284 rm -rf conftest* confdefs.h
1285 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1286 echo >confdefs.h
1287
1288 # Predefined preprocessor variables.
1289
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_NAME "$PACKAGE_NAME"
1292 _ACEOF
1293
1294
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1297 _ACEOF
1298
1299
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1302 _ACEOF
1303
1304
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_STRING "$PACKAGE_STRING"
1307 _ACEOF
1308
1309
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1312 _ACEOF
1313
1314
1315 # Let the site file select an alternate cache file if it wants to.
1316 # Prefer explicitly selected file to automatically selected ones.
1317 if test -z "$CONFIG_SITE"; then
1318   if test "x$prefix" != xNONE; then
1319     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1320   else
1321     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1322   fi
1323 fi
1324 for ac_site_file in $CONFIG_SITE; do
1325   if test -r "$ac_site_file"; then
1326     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1327 echo "$as_me: loading site script $ac_site_file" >&6;}
1328     sed 's/^/| /' "$ac_site_file" >&5
1329     . "$ac_site_file"
1330   fi
1331 done
1332
1333 if test -r "$cache_file"; then
1334   # Some versions of bash will fail to source /dev/null (special
1335   # files actually), so we avoid doing that.
1336   if test -f "$cache_file"; then
1337     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1338 echo "$as_me: loading cache $cache_file" >&6;}
1339     case $cache_file in
1340       [\\/]* | ?:[\\/]* ) . $cache_file;;
1341       *)                      . ./$cache_file;;
1342     esac
1343   fi
1344 else
1345   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1346 echo "$as_me: creating cache $cache_file" >&6;}
1347   >$cache_file
1348 fi
1349
1350 # Check that the precious variables saved in the cache have kept the same
1351 # value.
1352 ac_cache_corrupted=false
1353 for ac_var in `(set) 2>&1 |
1354                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1355   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1356   eval ac_new_set=\$ac_env_${ac_var}_set
1357   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1358   eval ac_new_val="\$ac_env_${ac_var}_value"
1359   case $ac_old_set,$ac_new_set in
1360     set,)
1361       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1363       ac_cache_corrupted=: ;;
1364     ,set)
1365       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1366 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1367       ac_cache_corrupted=: ;;
1368     ,);;
1369     *)
1370       if test "x$ac_old_val" != "x$ac_new_val"; then
1371         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1372 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1373         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1374 echo "$as_me:   former value:  $ac_old_val" >&2;}
1375         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1376 echo "$as_me:   current value: $ac_new_val" >&2;}
1377         ac_cache_corrupted=:
1378       fi;;
1379   esac
1380   # Pass precious variables to config.status.
1381   if test "$ac_new_set" = set; then
1382     case $ac_new_val in
1383     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1384       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1385     *) ac_arg=$ac_var=$ac_new_val ;;
1386     esac
1387     case " $ac_configure_args " in
1388       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1389       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1390     esac
1391   fi
1392 done
1393 if $ac_cache_corrupted; then
1394   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1395 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1396   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1397 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1398    { (exit 1); exit 1; }; }
1399 fi
1400
1401 ac_ext=c
1402 ac_cpp='$CPP $CPPFLAGS'
1403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433 ac_aux_dir=
1434 for ac_dir in autoconf $srcdir/autoconf; do
1435   if test -f $ac_dir/install-sh; then
1436     ac_aux_dir=$ac_dir
1437     ac_install_sh="$ac_aux_dir/install-sh -c"
1438     break
1439   elif test -f $ac_dir/install.sh; then
1440     ac_aux_dir=$ac_dir
1441     ac_install_sh="$ac_aux_dir/install.sh -c"
1442     break
1443   elif test -f $ac_dir/shtool; then
1444     ac_aux_dir=$ac_dir
1445     ac_install_sh="$ac_aux_dir/shtool install -c"
1446     break
1447   fi
1448 done
1449 if test -z "$ac_aux_dir"; then
1450   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1451 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1455 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1456 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1457
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462    { (exit 1); exit 1; }; }
1463
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471   ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475    { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479    { (exit 1); exit 1; }; }
1480
1481 fi
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1484 build=$ac_cv_build
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488
1489
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497   ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 fi
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1506 host=$ac_cv_host
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1510
1511
1512 echo "$as_me:$LINENO: checking target system type" >&5
1513 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1514 if test "${ac_cv_target+set}" = set; then
1515   echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517   ac_cv_target_alias=$target_alias
1518 test "x$ac_cv_target_alias" = "x" &&
1519   ac_cv_target_alias=$ac_cv_host_alias
1520 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1521   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1523    { (exit 1); exit 1; }; }
1524
1525 fi
1526 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1527 echo "${ECHO_T}$ac_cv_target" >&6
1528 target=$ac_cv_target
1529 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
1534 # The aliases save the names the user supplied, while $host etc.
1535 # will get canonicalized.
1536 test -n "$target_alias" &&
1537   test "$program_prefix$program_suffix$program_transform_name" = \
1538     NONENONEs,x,x, &&
1539   program_prefix=${target_alias}-
1540 am__api_version="1.7"
1541 # Find a good install program.  We prefer a C program (faster),
1542 # so one script is as good as another.  But avoid the broken or
1543 # incompatible versions:
1544 # SysV /etc/install, /usr/sbin/install
1545 # SunOS /usr/etc/install
1546 # IRIX /sbin/install
1547 # AIX /bin/install
1548 # AmigaOS /C/install, which installs bootblocks on floppy discs
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # OS/2's system install, which has a completely different semantic
1553 # ./install, which can be erroneously created by make from ./install.sh.
1554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1556 if test -z "$INSTALL"; then
1557 if test "${ac_cv_path_install+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
1564   test -z "$as_dir" && as_dir=.
1565   # Account for people who put trailing slashes in PATH elements.
1566 case $as_dir/ in
1567   ./ | .// | /cC/* | \
1568   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1569   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1570   /usr/ucb/* ) ;;
1571   *)
1572     # OSF1 and SCO ODT 3.0 have their own names for install.
1573     # Don't use installbsd from OSF since it installs stuff as root
1574     # by default.
1575     for ac_prog in ginstall scoinst install; do
1576       for ac_exec_ext in '' $ac_executable_extensions; do
1577         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1578           if test $ac_prog = install &&
1579             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580             # AIX install.  It has an incompatible calling convention.
1581             :
1582           elif test $ac_prog = install &&
1583             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584             # program-specific install script used by HP pwplus--don't use.
1585             :
1586           else
1587             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1588             break 3
1589           fi
1590         fi
1591       done
1592     done
1593     ;;
1594 esac
1595 done
1596
1597
1598 fi
1599   if test "${ac_cv_path_install+set}" = set; then
1600     INSTALL=$ac_cv_path_install
1601   else
1602     # As a last resort, use the slow shell script.  We don't cache a
1603     # path for INSTALL within a source directory, because that will
1604     # break other packages using the cache if that directory is
1605     # removed, or if the path is relative.
1606     INSTALL=$ac_install_sh
1607   fi
1608 fi
1609 echo "$as_me:$LINENO: result: $INSTALL" >&5
1610 echo "${ECHO_T}$INSTALL" >&6
1611
1612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613 # It thinks the first close brace ends the variable substitution.
1614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1615
1616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1617
1618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1619
1620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1622 # Just in case
1623 sleep 1
1624 echo timestamp > conftest.file
1625 # Do `set' in a subshell so we don't clobber the current shell's
1626 # arguments.  Must try -L first in case configure is actually a
1627 # symlink; some systems play weird games with the mod time of symlinks
1628 # (eg FreeBSD returns the mod time of the symlink's containing
1629 # directory).
1630 if (
1631    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1632    if test "$*" = "X"; then
1633       # -L didn't work.
1634       set X `ls -t $srcdir/configure conftest.file`
1635    fi
1636    rm -f conftest.file
1637    if test "$*" != "X $srcdir/configure conftest.file" \
1638       && test "$*" != "X conftest.file $srcdir/configure"; then
1639
1640       # If neither matched, then we have a broken ls.  This can happen
1641       # if, for instance, CONFIG_SHELL is bash and it inherits a
1642       # broken ls alias from the environment.  This has actually
1643       # happened.  Such a system could not be considered "sane".
1644       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1645 alias in your environment" >&5
1646 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1647 alias in your environment" >&2;}
1648    { (exit 1); exit 1; }; }
1649    fi
1650
1651    test "$2" = conftest.file
1652    )
1653 then
1654    # Ok.
1655    :
1656 else
1657    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1658 Check your system clock" >&5
1659 echo "$as_me: error: newly created file is older than distributed files!
1660 Check your system clock" >&2;}
1661    { (exit 1); exit 1; }; }
1662 fi
1663 echo "$as_me:$LINENO: result: yes" >&5
1664 echo "${ECHO_T}yes" >&6
1665 test "$program_prefix" != NONE &&
1666   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667 # Use a double $ so make ignores it.
1668 test "$program_suffix" != NONE &&
1669   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670 # Double any \ or $.  echo might interpret backslashes.
1671 # By default was `s,x,x', remove it if useless.
1672 cat <<\_ACEOF >conftest.sed
1673 s/[\\$]/&&/g;s/;s,x,x,$//
1674 _ACEOF
1675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1676 rm conftest.sed
1677
1678
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir=`cd $ac_aux_dir && pwd`
1681
1682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685   am_missing_run="$MISSING --run "
1686 else
1687   am_missing_run=
1688   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1690 fi
1691
1692 for ac_prog in gawk mawk nawk awk
1693 do
1694   # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_AWK+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$AWK"; then
1702   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_AWK="$ac_prog"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 AWK=$ac_cv_prog_AWK
1721 if test -n "$AWK"; then
1722   echo "$as_me:$LINENO: result: $AWK" >&5
1723 echo "${ECHO_T}$AWK" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   test -n "$AWK" && break
1730 done
1731
1732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736   echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738   cat >conftest.make <<\_ACEOF
1739 all:
1740         @echo 'ac_maketemp="$(MAKE)"'
1741 _ACEOF
1742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744 if test -n "$ac_maketemp"; then
1745   eval ac_cv_prog_make_${ac_make}_set=yes
1746 else
1747   eval ac_cv_prog_make_${ac_make}_set=no
1748 fi
1749 rm -f conftest.make
1750 fi
1751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752   echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1754   SET_MAKE=
1755 else
1756   echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758   SET_MAKE="MAKE=${MAKE-make}"
1759 fi
1760
1761 rm -rf .tst 2>/dev/null
1762 mkdir .tst 2>/dev/null
1763 if test -d .tst; then
1764   am__leading_dot=.
1765 else
1766   am__leading_dot=_
1767 fi
1768 rmdir .tst 2>/dev/null
1769
1770  # test to see if srcdir already configured
1771 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1772    test -f $srcdir/config.status; then
1773   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1774 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1775    { (exit 1); exit 1; }; }
1776 fi
1777
1778 # test whether we have cygpath
1779 if test -z "$CYGPATH_W"; then
1780   if (cygpath --version) >/dev/null 2>/dev/null; then
1781     CYGPATH_W='cygpath -w'
1782   else
1783     CYGPATH_W=echo
1784   fi
1785 fi
1786
1787
1788 # Define the identity of the package.
1789  PACKAGE='TiMidity++'
1790  VERSION='current'
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE "$PACKAGE"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define VERSION "$VERSION"
1800 _ACEOF
1801
1802 # Some tools Automake needs.
1803
1804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1805
1806
1807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1808
1809
1810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1811
1812
1813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1814
1815
1816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1817
1818
1819 AMTAR=${AMTAR-"${am_missing_run}tar"}
1820
1821 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1822
1823 # Installed binaries are usually stripped using `strip' when the user
1824 # run `make install-strip'.  However `strip' might not be the right
1825 # tool to use in cross-compilation environments, therefore Automake
1826 # will honor the `STRIP' environment variable to overrule this program.
1827 if test "$cross_compiling" != no; then
1828   if test -n "$ac_tool_prefix"; then
1829   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}strip; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_STRIP+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$STRIP"; then
1837   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848     break 2
1849   fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 STRIP=$ac_cv_prog_STRIP
1856 if test -n "$STRIP"; then
1857   echo "$as_me:$LINENO: result: $STRIP" >&5
1858 echo "${ECHO_T}$STRIP" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 fi
1865 if test -z "$ac_cv_prog_STRIP"; then
1866   ac_ct_STRIP=$STRIP
1867   # Extract the first word of "strip", so it can be a program name with args.
1868 set dummy strip; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   if test -n "$ac_ct_STRIP"; then
1875   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880   IFS=$as_save_IFS
1881   test -z "$as_dir" && as_dir=.
1882   for ac_exec_ext in '' $ac_executable_extensions; do
1883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884     ac_cv_prog_ac_ct_STRIP="strip"
1885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886     break 2
1887   fi
1888 done
1889 done
1890
1891   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1892 fi
1893 fi
1894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1895 if test -n "$ac_ct_STRIP"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1897 echo "${ECHO_T}$ac_ct_STRIP" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   STRIP=$ac_ct_STRIP
1904 else
1905   STRIP="$ac_cv_prog_STRIP"
1906 fi
1907
1908 fi
1909 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1910
1911 # We need awk for the "check" target.  The system "awk" is bad on
1912 # some platforms.
1913
1914
1915
1916
1917                     ac_config_headers="$ac_config_headers config.h interface.h"
1918
1919 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1920 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1921     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1922 if test "${enable_maintainer_mode+set}" = set; then
1923   enableval="$enable_maintainer_mode"
1924   USE_MAINTAINER_MODE=$enableval
1925 else
1926   USE_MAINTAINER_MODE=no
1927 fi;
1928   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1929 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1930
1931
1932 if test $USE_MAINTAINER_MODE = yes; then
1933   MAINTAINER_MODE_TRUE=
1934   MAINTAINER_MODE_FALSE='#'
1935 else
1936   MAINTAINER_MODE_TRUE='#'
1937   MAINTAINER_MODE_FALSE=
1938 fi
1939
1940   MAINT=$MAINTAINER_MODE_TRUE
1941
1942
1943
1944 SHELL=${CONFIG_SHELL-"/bin/sh"}
1945 WISH=${WISH-"wish"}
1946
1947 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1948 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1949 echo "grimblepritz" >grimble
1950 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1951         contains="./contains"
1952 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1953         contains=grep
1954 else
1955         contains="./contains"
1956 fi
1957 rm -f grimble
1958 case "$contains" in
1959 grep)   echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961         ;;
1962 ./contains)
1963         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1964 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1965         cat >./contains <<'EOSS'
1966 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1967 EOSS
1968         chmod +x "./contains"
1969         ;;
1970 esac
1971
1972
1973 # Check for compiler options -- such as debug flags.
1974
1975 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1976 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1977 # Check whether --enable-debug or --disable-debug was given.
1978 if test "${enable_debug+set}" = set; then
1979   enableval="$enable_debug"
1980   timidity_cv_debug="yes"
1981 else
1982   timidity_cv_debug="no"
1983 fi;
1984 if test "x$timidity_cv_debug" = "xyes"; then
1985
1986 cat >>confdefs.h <<\_ACEOF
1987 #define DEBUG 1
1988 _ACEOF
1989
1990   CFLAGS=${CFLAGS-"-g"}
1991 fi
1992 if test "x$timidity_cv_debug" = "xno"; then
1993
1994 cat >>confdefs.h <<\_ACEOF
1995 #define NDEBUG 1
1996 _ACEOF
1997
1998 fi
1999 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2000 echo "${ECHO_T}$timidity_cv_debug" >&6
2001
2002 CFLAGS=${CFLAGS-"-O2"}
2003
2004 if test "x$with_x" = x; then
2005   with_x=yes
2006 else
2007   x_config_flag=yes
2008 fi
2009
2010 # Checking gcc environment
2011 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2012   LDFLAGS="$LDFLAGS -L${i}"
2013 done
2014 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2015   CPPFLAGS="$CPPFLAGS -I${i}"
2016 done
2017
2018 # add $prefix if specified.
2019 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2020   LDFLAGS="-L$prefix/lib $LDFLAGS"
2021   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2022   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2023 fi
2024
2025
2026 # Check whether --with-includes or --without-includes was given.
2027 if test "${with_includes+set}" = set; then
2028   withval="$with_includes"
2029    j=' '
2030     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2031       j="${j}-I${i} "
2032     done
2033     CPPFLAGS="$j$CPPFLAGS"
2034
2035 fi;
2036
2037
2038 # Check whether --with-libraries or --without-libraries was given.
2039 if test "${with_libraries+set}" = set; then
2040   withval="$with_libraries"
2041    j=' '
2042     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2043       j="${j}-L${i} "
2044     done
2045     LDFLAGS="$j$LDFLAGS"
2046
2047 fi;
2048
2049
2050
2051 # Check whether --with-default-path or --without-default-path was given.
2052 if test "${with_default_path+set}" = set; then
2053   withval="$with_default_path"
2054   pkgdatadir=$withval
2055 else
2056
2057    if test "x$prefix" != "xNONE"; then
2058       pkgdatadir='${prefix}/share/timidity'
2059    else
2060       pkgdatadir='/usr/local/share/timidity'
2061    fi
2062
2063 fi;
2064 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define DEFAULT_PATH "$tmpdefpath"
2068 _ACEOF
2069
2070
2071 cat >>confdefs.h <<\_ACEOF
2072 #define PKGDATADIR DEFAULT_PATH
2073 _ACEOF
2074
2075
2076
2077 # Check whether --with-module-dir or --without-module-dir was given.
2078 if test "${with_module_dir+set}" = set; then
2079   withval="$with_module_dir"
2080   pkglibdir=$withval
2081 else
2082
2083    if test "x$prefix" != "xNONE"; then
2084       pkglibdir='${prefix}/lib/timidity'
2085    else
2086       pkglibdir='/usr/local/lib/timidity'
2087    fi
2088
2089 fi;
2090 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PKGLIBDIR "$tmplibdir"
2094 _ACEOF
2095
2096
2097
2098 # Checks for programs.
2099
2100 # Check whether --with-lispdir or --without-lispdir was given.
2101 if test "${with_lispdir+set}" = set; then
2102   withval="$with_lispdir"
2103    lispdir="$withval"
2104    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2105 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2106    echo "$as_me:$LINENO: result: $lispdir" >&5
2107 echo "${ECHO_T}$lispdir" >&6
2108 else
2109
2110  # If set to t, that means we are running in a shell under Emacs.
2111  # If you have an Emacs named "t", then use the full path.
2112  test x"$EMACS" = xt && EMACS=
2113  for ac_prog in emacs xemacs
2114 do
2115   # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_EMACS+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   if test -n "$EMACS"; then
2123   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130   for ac_exec_ext in '' $ac_executable_extensions; do
2131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132     ac_cv_prog_EMACS="$ac_prog"
2133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134     break 2
2135   fi
2136 done
2137 done
2138
2139 fi
2140 fi
2141 EMACS=$ac_cv_prog_EMACS
2142 if test -n "$EMACS"; then
2143   echo "$as_me:$LINENO: result: $EMACS" >&5
2144 echo "${ECHO_T}$EMACS" >&6
2145 else
2146   echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2148 fi
2149
2150   test -n "$EMACS" && break
2151 done
2152 test -n "$EMACS" || EMACS="no"
2153
2154  if test $EMACS != "no"; then
2155    if test x${lispdir+set} != xset; then
2156      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2157 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2158 if test "${am_cv_lispdir+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2162   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2163   #  which is non-obvious for non-emacs users.
2164   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2165   #  emacsen earlier and avoid running this altogether.
2166   { (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
2167   ($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
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }
2171         am_cv_lispdir=`sed -n \
2172        -e 's,/$,,' \
2173        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2174        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2175        conftest.out`
2176        rm conftest.out
2177        if test -z "$am_cv_lispdir"; then
2178          am_cv_lispdir='${datadir}/emacs/site-lisp'
2179        fi
2180
2181 fi
2182 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2183 echo "${ECHO_T}$am_cv_lispdir" >&6
2184      lispdir="$am_cv_lispdir"
2185    fi
2186  fi
2187
2188 fi;
2189
2190
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 if test -n "$ac_tool_prefix"; then
2197   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_CC+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test -n "$CC"; then
2205   ac_cv_prog_CC="$CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212   for ac_exec_ext in '' $ac_executable_extensions; do
2213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216     break 2
2217   fi
2218 done
2219 done
2220
2221 fi
2222 fi
2223 CC=$ac_cv_prog_CC
2224 if test -n "$CC"; then
2225   echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6
2227 else
2228   echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2230 fi
2231
2232 fi
2233 if test -z "$ac_cv_prog_CC"; then
2234   ac_ct_CC=$CC
2235   # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   if test -n "$ac_ct_CC"; then
2243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252     ac_cv_prog_ac_ct_CC="gcc"
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258
2259 fi
2260 fi
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270   CC=$ac_ct_CC
2271 else
2272   CC="$ac_cv_prog_CC"
2273 fi
2274
2275 if test -z "$CC"; then
2276   if test -n "$ac_tool_prefix"; then
2277   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}cc; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$CC"; then
2285   ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294     ac_cv_prog_CC="${ac_tool_prefix}cc"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300
2301 fi
2302 fi
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305   echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2307 else
2308   echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2310 fi
2311
2312 fi
2313 if test -z "$ac_cv_prog_CC"; then
2314   ac_ct_CC=$CC
2315   # Extract the first word of "cc", so it can be a program name with args.
2316 set dummy cc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$ac_ct_CC"; then
2323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332     ac_cv_prog_ac_ct_CC="cc"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338
2339 fi
2340 fi
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2345 else
2346   echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350   CC=$ac_ct_CC
2351 else
2352   CC="$ac_cv_prog_CC"
2353 fi
2354
2355 fi
2356 if test -z "$CC"; then
2357   # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   if test -n "$CC"; then
2365   ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367   ac_prog_rejected=no
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2376        ac_prog_rejected=yes
2377        continue
2378      fi
2379     ac_cv_prog_CC="cc"
2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385
2386 if test $ac_prog_rejected = yes; then
2387   # We found a bogon in the path, so make sure we never use it.
2388   set dummy $ac_cv_prog_CC
2389   shift
2390   if test $# != 0; then
2391     # We chose a different compiler from the bogus one.
2392     # However, it has the same basename, so the bogon will be chosen
2393     # first if we set CC to just the basename; use the full file name.
2394     shift
2395     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2396   fi
2397 fi
2398 fi
2399 fi
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402   echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2404 else
2405   echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2407 fi
2408
2409 fi
2410 if test -z "$CC"; then
2411   if test -n "$ac_tool_prefix"; then
2412   for ac_prog in cl
2413   do
2414     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   if test -n "$CC"; then
2422   ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429   for ac_exec_ext in '' $ac_executable_extensions; do
2430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433     break 2
2434   fi
2435 done
2436 done
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442   echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2444 else
2445   echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2447 fi
2448
2449     test -n "$CC" && break
2450   done
2451 fi
2452 if test -z "$CC"; then
2453   ac_ct_CC=$CC
2454   for ac_prog in cl
2455 do
2456   # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if test -n "$ac_ct_CC"; then
2464   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_exec_ext in '' $ac_executable_extensions; do
2472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473     ac_cv_prog_ac_ct_CC="$ac_prog"
2474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478 done
2479
2480 fi
2481 fi
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2486 else
2487   echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2489 fi
2490
2491   test -n "$ac_ct_CC" && break
2492 done
2493
2494   CC=$ac_ct_CC
2495 fi
2496
2497 fi
2498
2499
2500 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: no acceptable C compiler found in \$PATH
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505
2506 # Provide some information about the compiler.
2507 echo "$as_me:$LINENO:" \
2508      "checking for C compiler version" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2511   (eval $ac_compiler --version </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2516   (eval $ac_compiler -v </dev/null >&5) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2521   (eval $ac_compiler -V </dev/null >&5) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }
2525
2526 cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532
2533 int
2534 main ()
2535 {
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 ac_clean_files_save=$ac_clean_files
2542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2545 # of exeext.
2546 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2548 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2550   (eval $ac_link_default) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; then
2554   # Find the output, starting from the most likely.  This scheme is
2555 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2556 # resort.
2557
2558 # Be careful to initialize this variable, since it used to be cached.
2559 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2560 ac_cv_exeext=
2561 # b.out is created by i960 compilers.
2562 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2563 do
2564   test -f "$ac_file" || continue
2565   case $ac_file in
2566     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2567         ;;
2568     conftest.$ac_ext )
2569         # This is the source file.
2570         ;;
2571     [ab].out )
2572         # We found the default executable, but exeext='' is most
2573         # certainly right.
2574         break;;
2575     *.* )
2576         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2577         # FIXME: I believe we export ac_cv_exeext for Libtool,
2578         # but it would be cool to find out if it's true.  Does anybody
2579         # maintain Libtool? --akim.
2580         export ac_cv_exeext
2581         break;;
2582     * )
2583         break;;
2584   esac
2585 done
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: C compiler cannot create executables
2593 See \`config.log' for more details." >&2;}
2594    { (exit 77); exit 77; }; }
2595 fi
2596
2597 ac_exeext=$ac_cv_exeext
2598 echo "$as_me:$LINENO: result: $ac_file" >&5
2599 echo "${ECHO_T}$ac_file" >&6
2600
2601 # Check the compiler produces executables we can run.  If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2605 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 # If not cross compiling, check that we can run a simple program.
2607 if test "$cross_compiling" != yes; then
2608   if { ac_try='./$ac_file'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; }; then
2614     cross_compiling=no
2615   else
2616     if test "$cross_compiling" = maybe; then
2617         cross_compiling=yes
2618     else
2619         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2620 If you meant to cross compile, use \`--host'.
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&2;}
2625    { (exit 1); exit 1; }; }
2626     fi
2627   fi
2628 fi
2629 echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2631
2632 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2633 ac_clean_files=$ac_clean_files_save
2634 # Check the compiler produces executables we can run.  If not, either
2635 # the compiler is broken, or we cross compile.
2636 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2638 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2639 echo "${ECHO_T}$cross_compiling" >&6
2640
2641 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2642 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644   (eval $ac_link) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; then
2648   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2649 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2650 # work properly (i.e., refer to `conftest.exe'), while it won't with
2651 # `rm'.
2652 for ac_file in conftest.exe conftest conftest.*; do
2653   test -f "$ac_file" || continue
2654   case $ac_file in
2655     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2656     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657           export ac_cv_exeext
2658           break;;
2659     * ) break;;
2660   esac
2661 done
2662 else
2663   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667    { (exit 1); exit 1; }; }
2668 fi
2669
2670 rm -f conftest$ac_cv_exeext
2671 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6
2673
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2676 ac_exeext=$EXEEXT
2677 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2679 if test "${ac_cv_objext+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.o conftest.obj
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }; then
2703   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2704   case $ac_file in
2705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2706     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2707        break;;
2708   esac
2709 done
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718    { (exit 1); exit 1; }; }
2719 fi
2720
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2722 fi
2723 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6
2725 OBJEXT=$ac_cv_objext
2726 ac_objext=$OBJEXT
2727 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742 #ifndef __GNUC__
2743        choke me
2744 #endif
2745
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752   (eval $ac_compile) 2>conftest.er1
2753   ac_status=$?
2754   grep -v '^ *+' conftest.er1 >conftest.err
2755   rm -f conftest.er1
2756   cat conftest.err >&5
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } &&
2759          { ac_try='test -z "$ac_c_werror_flag"
2760                          || test ! -s conftest.err'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; } &&
2766          { ac_try='test -s conftest.$ac_objext'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; }; then
2772   ac_compiler_gnu=yes
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 ac_compiler_gnu=no
2778 fi
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2781
2782 fi
2783 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2788 CFLAGS="-g"
2789 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2790 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2791 if test "${ac_cv_prog_cc_g+set}" = set; then
2792   echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794   cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800
2801 int
2802 main ()
2803 {
2804
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811   (eval $ac_compile) 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } &&
2818          { ac_try='test -z "$ac_c_werror_flag"
2819                          || test ! -s conftest.err'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; } &&
2825          { ac_try='test -s conftest.$ac_objext'
2826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827   (eval $ac_try) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; }; then
2831   ac_cv_prog_cc_g=yes
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 ac_cv_prog_cc_g=no
2837 fi
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 fi
2840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2842 if test "$ac_test_CFLAGS" = set; then
2843   CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845   if test "$GCC" = yes; then
2846     CFLAGS="-g -O2"
2847   else
2848     CFLAGS="-g"
2849   fi
2850 else
2851   if test "$GCC" = yes; then
2852     CFLAGS="-O2"
2853   else
2854     CFLAGS=
2855   fi
2856 fi
2857 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2858 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   ac_cv_prog_cc_stdc=no
2863 ac_save_CC=$CC
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870 #include <stdarg.h>
2871 #include <stdio.h>
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2878      char **p;
2879      int i;
2880 {
2881   return p[i];
2882 }
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2884 {
2885   char *s;
2886   va_list v;
2887   va_start (v,p);
2888   s = g (p, va_arg (v,int));
2889   va_end (v);
2890   return s;
2891 }
2892
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2894    function prototypes and stuff, but not '\xHH' hex character constants.
2895    These don't provoke an error unfortunately, instead are silently treated
2896    as 'x'.  The following induces an error, until -std1 is added to get
2897    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2898    array size at least.  It's necessary to write '\x00'==0 to get something
2899    that's true only with -std1.  */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2901
2902 int test (int i, double x);
2903 struct s1 {int (*f) (int a);};
2904 struct s2 {int (*f) (double a);};
2905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2906 int argc;
2907 char **argv;
2908 int
2909 main ()
2910 {
2911 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 # Don't try gcc -ansi; that turns off useful extensions and
2917 # breaks some systems' header files.
2918 # AIX                   -qlanglvl=ansi
2919 # Ultrix and OSF/1      -std1
2920 # HP-UX 10.20 and later -Ae
2921 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2922 # SVR4                  -Xc -D__EXTENSIONS__
2923 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924 do
2925   CC="$ac_save_CC $ac_arg"
2926   rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928   (eval $ac_compile) 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -z "$ac_c_werror_flag"
2936                          || test ! -s conftest.err'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; } &&
2942          { ac_try='test -s conftest.$ac_objext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   ac_cv_prog_cc_stdc=$ac_arg
2949 break
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 fi
2955 rm -f conftest.err conftest.$ac_objext
2956 done
2957 rm -f conftest.$ac_ext conftest.$ac_objext
2958 CC=$ac_save_CC
2959
2960 fi
2961
2962 case "x$ac_cv_prog_cc_stdc" in
2963   x|xno)
2964     echo "$as_me:$LINENO: result: none needed" >&5
2965 echo "${ECHO_T}none needed" >&6 ;;
2966   *)
2967     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2969     CC="$CC $ac_cv_prog_cc_stdc" ;;
2970 esac
2971
2972 # Some people use a C++ compiler to compile C.  Since we use `exit',
2973 # in C++ we need to declare it.  In case someone uses the same compiler
2974 # for both compiling C and C++ we need to have the C++ compiler decide
2975 # the declaration of exit, since it's the most demanding environment.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #ifndef __cplusplus
2978   choke me
2979 #endif
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983   (eval $ac_compile) 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -z "$ac_c_werror_flag"
2991                          || test ! -s conftest.err'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   for ac_declaration in \
3004    '' \
3005    'extern "C" void std::exit (int) throw (); using std::exit;' \
3006    'extern "C" void std::exit (int); using std::exit;' \
3007    'extern "C" void exit (int) throw ();' \
3008    'extern "C" void exit (int);' \
3009    'void exit (int);'
3010 do
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 $ac_declaration
3018 #include <stdlib.h>
3019 int
3020 main ()
3021 {
3022 exit (42);
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029   (eval $ac_compile) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } &&
3036          { ac_try='test -z "$ac_c_werror_flag"
3037                          || test ! -s conftest.err'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   :
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057   cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063 $ac_declaration
3064 int
3065 main ()
3066 {
3067 exit (42);
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074   (eval $ac_compile) 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } &&
3081          { ac_try='test -z "$ac_c_werror_flag"
3082                          || test ! -s conftest.err'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; } &&
3088          { ac_try='test -s conftest.$ac_objext'
3089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090   (eval $ac_try) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   break
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 fi
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101 done
3102 rm -f conftest*
3103 if test -n "$ac_declaration"; then
3104   echo '#ifdef __cplusplus' >>confdefs.h
3105   echo $ac_declaration      >>confdefs.h
3106   echo '#endif'             >>confdefs.h
3107 fi
3108
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 fi
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 DEPDIR="${am__leading_dot}deps"
3121
3122           ac_config_commands="$ac_config_commands depfiles"
3123
3124
3125 am_make=${MAKE-make}
3126 cat > confinc << 'END'
3127 am__doit:
3128         @echo done
3129 .PHONY: am__doit
3130 END
3131 # If we don't find an include directive, just comment out the code.
3132 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3133 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3134 am__include="#"
3135 am__quote=
3136 _am_result=none
3137 # First try GNU make style include.
3138 echo "include confinc" > confmf
3139 # We grep out `Entering directory' and `Leaving directory'
3140 # messages which can occur if `w' ends up in MAKEFLAGS.
3141 # In particular we don't look at `^make:' because GNU make might
3142 # be invoked under some other name (usually "gmake"), in which
3143 # case it prints its new name instead of `make'.
3144 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3145    am__include=include
3146    am__quote=
3147    _am_result=GNU
3148 fi
3149 # Now try BSD make style include.
3150 if test "$am__include" = "#"; then
3151    echo '.include "confinc"' > confmf
3152    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3153       am__include=.include
3154       am__quote="\""
3155       _am_result=BSD
3156    fi
3157 fi
3158
3159
3160 echo "$as_me:$LINENO: result: $_am_result" >&5
3161 echo "${ECHO_T}$_am_result" >&6
3162 rm -f confinc confmf
3163
3164 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3165 if test "${enable_dependency_tracking+set}" = set; then
3166   enableval="$enable_dependency_tracking"
3167
3168 fi;
3169 if test "x$enable_dependency_tracking" != xno; then
3170   am_depcomp="$ac_aux_dir/depcomp"
3171   AMDEPBACKSLASH='\'
3172 fi
3173
3174
3175 if test "x$enable_dependency_tracking" != xno; then
3176   AMDEP_TRUE=
3177   AMDEP_FALSE='#'
3178 else
3179   AMDEP_TRUE='#'
3180   AMDEP_FALSE=
3181 fi
3182
3183
3184
3185
3186 depcc="$CC"   am_compiler_list=
3187
3188 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3189 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3190 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3194   # We make a subdir and do the tests there.  Otherwise we can end up
3195   # making bogus files that we don't know about and never remove.  For
3196   # instance it was reported that on HP-UX the gcc test will end up
3197   # making a dummy file named `D' -- because `-MD' means `put the output
3198   # in D'.
3199   mkdir conftest.dir
3200   # Copy depcomp to subdir because otherwise we won't find it if we're
3201   # using a relative directory.
3202   cp "$am_depcomp" conftest.dir
3203   cd conftest.dir
3204   # We will build objects and dependencies in a subdirectory because
3205   # it helps to detect inapplicable dependency modes.  For instance
3206   # both Tru64's cc and ICC support -MD to output dependencies as a
3207   # side effect of compilation, but ICC will put the dependencies in
3208   # the current directory while Tru64 will put them in the object
3209   # directory.
3210   mkdir sub
3211
3212   am_cv_CC_dependencies_compiler_type=none
3213   if test "$am_compiler_list" = ""; then
3214      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3215   fi
3216   for depmode in $am_compiler_list; do
3217     # Setup a source with many dependencies, because some compilers
3218     # like to wrap large dependency lists on column 80 (with \), and
3219     # we should not choose a depcomp mode which is confused by this.
3220     #
3221     # We need to recreate these files for each test, as the compiler may
3222     # overwrite some of them when testing with obscure command lines.
3223     # This happens at least with the AIX C compiler.
3224     : > sub/conftest.c
3225     for i in 1 2 3 4 5 6; do
3226       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3227       : > sub/conftst$i.h
3228     done
3229     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3230
3231     case $depmode in
3232     nosideeffect)
3233       # after this tag, mechanisms are not by side-effect, so they'll
3234       # only be used when explicitly requested
3235       if test "x$enable_dependency_tracking" = xyes; then
3236         continue
3237       else
3238         break
3239       fi
3240       ;;
3241     none) break ;;
3242     esac
3243     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244     # mode.  It turns out that the SunPro C++ compiler does not properly
3245     # handle `-M -o', and we need to detect this.
3246     if depmode=$depmode \
3247        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250          >/dev/null 2>conftest.err &&
3251        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254       # icc doesn't choke on unknown options, it will just issue warnings
3255       # (even with -Werror).  So we grep stderr for any message
3256       # that says an option was ignored.
3257       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3258         am_cv_CC_dependencies_compiler_type=$depmode
3259         break
3260       fi
3261     fi
3262   done
3263
3264   cd ..
3265   rm -rf conftest.dir
3266 else
3267   am_cv_CC_dependencies_compiler_type=none
3268 fi
3269
3270 fi
3271 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3272 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3273 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3274
3275
3276
3277 if
3278   test "x$enable_dependency_tracking" != xno \
3279   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3280   am__fastdepCC_TRUE=
3281   am__fastdepCC_FALSE='#'
3282 else
3283   am__fastdepCC_TRUE='#'
3284   am__fastdepCC_FALSE=
3285 fi
3286
3287
3288
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3296 # On Suns, sometimes $CPP names a directory.
3297 if test -n "$CPP" && test -d "$CPP"; then
3298   CPP=
3299 fi
3300 if test -z "$CPP"; then
3301   if test "${ac_cv_prog_CPP+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304       # Double quotes because CPP needs to be expanded
3305     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306     do
3307       ac_preproc_ok=false
3308 for ac_c_preproc_warn_flag in '' yes
3309 do
3310   # Use a header file that comes with gcc, so configuring glibc
3311   # with a fresh cross-compiler works.
3312   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313   # <limits.h> exists even on freestanding compilers.
3314   # On the NeXT, cc -E runs the code through the compiler's parser,
3315   # not just through cpp. "Syntax error" is here to catch this case.
3316   cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322 #ifdef __STDC__
3323 # include <limits.h>
3324 #else
3325 # include <assert.h>
3326 #endif
3327                      Syntax error
3328 _ACEOF
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } >/dev/null; then
3337   if test -s conftest.err; then
3338     ac_cpp_err=$ac_c_preproc_warn_flag
3339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3340   else
3341     ac_cpp_err=
3342   fi
3343 else
3344   ac_cpp_err=yes
3345 fi
3346 if test -z "$ac_cpp_err"; then
3347   :
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Broken: fails on valid input.
3353 continue
3354 fi
3355 rm -f conftest.err conftest.$ac_ext
3356
3357   # OK, works on sane cases.  Now check whether non-existent headers
3358   # can be detected and how.
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 #include <ac_nonexistent.h>
3366 _ACEOF
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } >/dev/null; then
3375   if test -s conftest.err; then
3376     ac_cpp_err=$ac_c_preproc_warn_flag
3377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378   else
3379     ac_cpp_err=
3380   fi
3381 else
3382   ac_cpp_err=yes
3383 fi
3384 if test -z "$ac_cpp_err"; then
3385   # Broken: success on invalid input.
3386 continue
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391   # Passes both tests.
3392 ac_preproc_ok=:
3393 break
3394 fi
3395 rm -f conftest.err conftest.$ac_ext
3396
3397 done
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3401   break
3402 fi
3403
3404     done
3405     ac_cv_prog_CPP=$CPP
3406
3407 fi
3408   CPP=$ac_cv_prog_CPP
3409 else
3410   ac_cv_prog_CPP=$CPP
3411 fi
3412 echo "$as_me:$LINENO: result: $CPP" >&5
3413 echo "${ECHO_T}$CPP" >&6
3414 ac_preproc_ok=false
3415 for ac_c_preproc_warn_flag in '' yes
3416 do
3417   # Use a header file that comes with gcc, so configuring glibc
3418   # with a fresh cross-compiler works.
3419   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420   # <limits.h> exists even on freestanding compilers.
3421   # On the NeXT, cc -E runs the code through the compiler's parser,
3422   # not just through cpp. "Syntax error" is here to catch this case.
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 #ifdef __STDC__
3430 # include <limits.h>
3431 #else
3432 # include <assert.h>
3433 #endif
3434                      Syntax error
3435 _ACEOF
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3438   ac_status=$?
3439   grep -v '^ *+' conftest.er1 >conftest.err
3440   rm -f conftest.er1
3441   cat conftest.err >&5
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } >/dev/null; then
3444   if test -s conftest.err; then
3445     ac_cpp_err=$ac_c_preproc_warn_flag
3446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447   else
3448     ac_cpp_err=
3449   fi
3450 else
3451   ac_cpp_err=yes
3452 fi
3453 if test -z "$ac_cpp_err"; then
3454   :
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459   # Broken: fails on valid input.
3460 continue
3461 fi
3462 rm -f conftest.err conftest.$ac_ext
3463
3464   # OK, works on sane cases.  Now check whether non-existent headers
3465   # can be detected and how.
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #include <ac_nonexistent.h>
3473 _ACEOF
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476   ac_status=$?
3477   grep -v '^ *+' conftest.er1 >conftest.err
3478   rm -f conftest.er1
3479   cat conftest.err >&5
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } >/dev/null; then
3482   if test -s conftest.err; then
3483     ac_cpp_err=$ac_c_preproc_warn_flag
3484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485   else
3486     ac_cpp_err=
3487   fi
3488 else
3489   ac_cpp_err=yes
3490 fi
3491 if test -z "$ac_cpp_err"; then
3492   # Broken: success on invalid input.
3493 continue
3494 else
3495   echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498   # Passes both tests.
3499 ac_preproc_ok=:
3500 break
3501 fi
3502 rm -f conftest.err conftest.$ac_ext
3503
3504 done
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.$ac_ext
3507 if $ac_preproc_ok; then
3508   :
3509 else
3510   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514    { (exit 1); exit 1; }; }
3515 fi
3516
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524 echo "$as_me:$LINENO: checking for egrep" >&5
3525 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526 if test "${ac_cv_prog_egrep+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3530     then ac_cv_prog_egrep='grep -E'
3531     else ac_cv_prog_egrep='egrep'
3532     fi
3533 fi
3534 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3535 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3536  EGREP=$ac_cv_prog_egrep
3537
3538
3539 if test $ac_cv_c_compiler_gnu = yes; then
3540     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3541 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3542 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545     ac_pattern="Autoconf.*'x'"
3546   cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552 #include <sgtty.h>
3553 Autoconf TIOCGETP
3554 _ACEOF
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3557   ac_cv_prog_gcc_traditional=yes
3558 else
3559   ac_cv_prog_gcc_traditional=no
3560 fi
3561 rm -f conftest*
3562
3563
3564   if test $ac_cv_prog_gcc_traditional = no; then
3565     cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h.  */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h.  */
3571 #include <termio.h>
3572 Autoconf TCGETA
3573 _ACEOF
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3576   ac_cv_prog_gcc_traditional=yes
3577 fi
3578 rm -f conftest*
3579
3580   fi
3581 fi
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3583 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3584   if test $ac_cv_prog_gcc_traditional = yes; then
3585     CC="$CC -traditional"
3586   fi
3587 fi
3588
3589 # Find a good install program.  We prefer a C program (faster),
3590 # so one script is as good as another.  But avoid the broken or
3591 # incompatible versions:
3592 # SysV /etc/install, /usr/sbin/install
3593 # SunOS /usr/etc/install
3594 # IRIX /sbin/install
3595 # AIX /bin/install
3596 # AmigaOS /C/install, which installs bootblocks on floppy discs
3597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3600 # OS/2's system install, which has a completely different semantic
3601 # ./install, which can be erroneously created by make from ./install.sh.
3602 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3603 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3604 if test -z "$INSTALL"; then
3605 if test "${ac_cv_path_install+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613   # Account for people who put trailing slashes in PATH elements.
3614 case $as_dir/ in
3615   ./ | .// | /cC/* | \
3616   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3617   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3618   /usr/ucb/* ) ;;
3619   *)
3620     # OSF1 and SCO ODT 3.0 have their own names for install.
3621     # Don't use installbsd from OSF since it installs stuff as root
3622     # by default.
3623     for ac_prog in ginstall scoinst install; do
3624       for ac_exec_ext in '' $ac_executable_extensions; do
3625         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3626           if test $ac_prog = install &&
3627             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3628             # AIX install.  It has an incompatible calling convention.
3629             :
3630           elif test $ac_prog = install &&
3631             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3632             # program-specific install script used by HP pwplus--don't use.
3633             :
3634           else
3635             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3636             break 3
3637           fi
3638         fi
3639       done
3640     done
3641     ;;
3642 esac
3643 done
3644
3645
3646 fi
3647   if test "${ac_cv_path_install+set}" = set; then
3648     INSTALL=$ac_cv_path_install
3649   else
3650     # As a last resort, use the slow shell script.  We don't cache a
3651     # path for INSTALL within a source directory, because that will
3652     # break other packages using the cache if that directory is
3653     # removed, or if the path is relative.
3654     INSTALL=$ac_install_sh
3655   fi
3656 fi
3657 echo "$as_me:$LINENO: result: $INSTALL" >&5
3658 echo "${ECHO_T}$INSTALL" >&6
3659
3660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3661 # It thinks the first close brace ends the variable substitution.
3662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3663
3664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3665
3666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3667
3668 for ac_prog in gawk mawk nawk awk
3669 do
3670   # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_AWK+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   if test -n "$AWK"; then
3678   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_prog_AWK="$ac_prog"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694 fi
3695 fi
3696 AWK=$ac_cv_prog_AWK
3697 if test -n "$AWK"; then
3698   echo "$as_me:$LINENO: result: $AWK" >&5
3699 echo "${ECHO_T}$AWK" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705   test -n "$AWK" && break
3706 done
3707
3708 if test -n "$ac_tool_prefix"; then
3709   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_prog_RANLIB+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   if test -n "$RANLIB"; then
3717   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724   for ac_exec_ext in '' $ac_executable_extensions; do
3725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731 done
3732
3733 fi
3734 fi
3735 RANLIB=$ac_cv_prog_RANLIB
3736 if test -n "$RANLIB"; then
3737   echo "$as_me:$LINENO: result: $RANLIB" >&5
3738 echo "${ECHO_T}$RANLIB" >&6
3739 else
3740   echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3742 fi
3743
3744 fi
3745 if test -z "$ac_cv_prog_RANLIB"; then
3746   ac_ct_RANLIB=$RANLIB
3747   # Extract the first word of "ranlib", so it can be a program name with args.
3748 set dummy ranlib; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if test -n "$ac_ct_RANLIB"; then
3755   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_prog_ac_ct_RANLIB="ranlib"
3765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770
3771   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3772 fi
3773 fi
3774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3775 if test -n "$ac_ct_RANLIB"; then
3776   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3778 else
3779   echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783   RANLIB=$ac_ct_RANLIB
3784 else
3785   RANLIB="$ac_cv_prog_RANLIB"
3786 fi
3787
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3790 LN_S=$as_ln_s
3791 if test "$LN_S" = "ln -s"; then
3792   echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3797 fi
3798
3799 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3800 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3801 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3802 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   cat > conftest.$ac_ext <<EOF
3806 int main() {return 0;}
3807 EOF
3808 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3809     if test -s conftest.out; then
3810         eval "timidity_cv_ccoption_$ac_ccoption=no"
3811     else
3812         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3813     fi
3814 else
3815     eval "timidity_cv_ccoption_$ac_ccoption=no"
3816 fi
3817
3818 fi
3819
3820 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3821   echo "$as_me:$LINENO: result: yes" >&5
3822 echo "${ECHO_T}yes" >&6
3823
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827
3828 fi
3829
3830
3831 # Checks for target dependencies
3832
3833
3834 # Check whether --with-elf or --without-elf was given.
3835 if test "${with_elf+set}" = set; then
3836   withval="$with_elf"
3837    ELFFORMAT=$withval
3838 else
3839    ELFFORMAT="yes"
3840 fi;
3841
3842 # AC_ARG_WITH(simd,
3843 #  [  --with-simd             create SIMD friendly binary (default is no) ],
3844 #  [ SIMD=$withval ], [ SIMD="no" ])
3845
3846 case "$target" in
3847   *-*-hpux*)
3848     EXTRADEFS="-DHPUX"
3849     test -n "$SHLD" || SHLD="ld -b"
3850     so="sl"
3851     ;;
3852   *-sgi-irix*)
3853         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3854     test -n "$SHLD" || SHLD="cc -shared -all"
3855     so="so"
3856     ;;
3857   *-*-netbsd*)
3858     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3859     so="so"
3860     ;;
3861
3862   *-*-freebsd2*)
3863         test -n "$SHLD" || SHLD="ld -Bshareable"
3864     so="so"
3865     ;;
3866   *-*-freebsd*)
3867     if test "$ELFFORMAT" = yes; then
3868         test -n "$SHLD" || SHLD="ld -Bshareable"
3869     else
3870         SHCFLAGS=-aou
3871         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3872         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3873     fi
3874         so="so"
3875     ;;
3876
3877 #  *-*-freebsd*)
3878 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3879 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3880 #    so="so"
3881 #  ;;
3882
3883   *-*-cygwin*)
3884     EXTRADEFS="-D__W32__"
3885     # ??
3886     case "x${CC} " in
3887       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3888       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3889       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3890       *) test -n "$SHLD" || SHLD="unknown" ;;
3891     esac
3892     so="dll"
3893     CYGNUS=yestest
3894     lib_user32_test=-luser32
3895     ;;
3896   *-*-mingw*)
3897     EXTRADEFS="-D__W32__"
3898     # ??
3899     case "x${CC} " in
3900       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3901       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3902       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3903       *) test -n "$SHLD" || SHLD="unknown" ;;
3904     esac
3905     so="dll"
3906     MINGW=yes
3907     lib_user32_test=-luser32
3908     ;;
3909   *-dec-*)
3910     EXTRADEFS="-DDEC"
3911     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3912     so="so"
3913     ;;
3914   *-*-solaris*)
3915     EXTRADEFS="-DSOLARIS"
3916     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3917     so="so"
3918     ;;
3919   *-*-nextstep*)
3920     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3921     so="so"
3922     ;;
3923   *-*-darwin*)
3924     if test "x$SIMD" = "xyes"; then
3925
3926 cat >>confdefs.h <<\_ACEOF
3927 #define USE_ALTIVEC 1
3928 _ACEOF
3929
3930        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3931        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3932     else
3933
3934 cat >>confdefs.h <<\_ACEOF
3935 #define USE_ALTIVEC 0
3936 _ACEOF
3937
3938     fi
3939     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3940     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3941     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3942     so="bundle"
3943     ;;
3944   *)
3945     test -n "$SHLD" || \
3946       if test "x$GCC" = xyes; then
3947         SHLD="$CC -shared"
3948       else
3949         SHLD="ld -Bdynamic -G"
3950       fi
3951     so="so"
3952     ;;
3953 esac
3954
3955
3956 # Checks for libraries.
3957
3958 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3959 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3960 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   ac_check_lib_save_LIBS=$LIBS
3964 LIBS="-lm  $LIBS"
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h.  */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h.  */
3971
3972 /* Override any gcc2 internal prototype to avoid an error.  */
3973 #ifdef __cplusplus
3974 extern "C"
3975 #endif
3976 /* We use char because int might match the return type of a gcc2
3977    builtin and then its argument prototype would still apply.  */
3978 char sqrt ();
3979 int
3980 main ()
3981 {
3982 sqrt ();
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989   (eval $ac_link) 2>conftest.er1
3990   ac_status=$?
3991   grep -v '^ *+' conftest.er1 >conftest.err
3992   rm -f conftest.er1
3993   cat conftest.err >&5
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); } &&
3996          { ac_try='test -z "$ac_c_werror_flag"
3997                          || test ! -s conftest.err'
3998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999   (eval $ac_try) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; } &&
4003          { ac_try='test -s conftest$ac_exeext'
4004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005   (eval $ac_try) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; }; then
4009   ac_cv_lib_m_sqrt=yes
4010 else
4011   echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 ac_cv_lib_m_sqrt=no
4015 fi
4016 rm -f conftest.err conftest.$ac_objext \
4017       conftest$ac_exeext conftest.$ac_ext
4018 LIBS=$ac_check_lib_save_LIBS
4019 fi
4020 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4021 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4022 if test $ac_cv_lib_m_sqrt = yes; then
4023   cat >>confdefs.h <<_ACEOF
4024 #define HAVE_LIBM 1
4025 _ACEOF
4026
4027   LIBS="-lm $LIBS"
4028
4029 fi
4030
4031
4032 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4033 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4034 if test "${ac_cv_lib_socket_socket+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-lsocket  $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045
4046 /* Override any gcc2 internal prototype to avoid an error.  */
4047 #ifdef __cplusplus
4048 extern "C"
4049 #endif
4050 /* We use char because int might match the return type of a gcc2
4051    builtin and then its argument prototype would still apply.  */
4052 char socket ();
4053 int
4054 main ()
4055 {
4056 socket ();
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063   (eval $ac_link) 2>conftest.er1
4064   ac_status=$?
4065   grep -v '^ *+' conftest.er1 >conftest.err
4066   rm -f conftest.er1
4067   cat conftest.err >&5
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } &&
4070          { ac_try='test -z "$ac_c_werror_flag"
4071                          || test ! -s conftest.err'
4072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073   (eval $ac_try) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; } &&
4077          { ac_try='test -s conftest$ac_exeext'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; }; then
4083   ac_cv_lib_socket_socket=yes
4084 else
4085   echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 ac_cv_lib_socket_socket=no
4089 fi
4090 rm -f conftest.err conftest.$ac_objext \
4091       conftest$ac_exeext conftest.$ac_ext
4092 LIBS=$ac_check_lib_save_LIBS
4093 fi
4094 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4095 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4096 if test $ac_cv_lib_socket_socket = yes; then
4097   cat >>confdefs.h <<_ACEOF
4098 #define HAVE_LIBSOCKET 1
4099 _ACEOF
4100
4101   LIBS="-lsocket $LIBS"
4102
4103 fi
4104
4105 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4106 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   ac_check_lib_save_LIBS=$LIBS
4111 LIBS="-ldl  $LIBS"
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118
4119 /* Override any gcc2 internal prototype to avoid an error.  */
4120 #ifdef __cplusplus
4121 extern "C"
4122 #endif
4123 /* We use char because int might match the return type of a gcc2
4124    builtin and then its argument prototype would still apply.  */
4125 char dlopen ();
4126 int
4127 main ()
4128 {
4129 dlopen ();
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136   (eval $ac_link) 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } &&
4143          { ac_try='test -z "$ac_c_werror_flag"
4144                          || test ! -s conftest.err'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; } &&
4150          { ac_try='test -s conftest$ac_exeext'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_cv_lib_dl_dlopen=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_cv_lib_dl_dlopen=no
4162 fi
4163 rm -f conftest.err conftest.$ac_objext \
4164       conftest$ac_exeext conftest.$ac_ext
4165 LIBS=$ac_check_lib_save_LIBS
4166 fi
4167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4168 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4169 if test $ac_cv_lib_dl_dlopen = yes; then
4170   lib_dl_opt=-ldl
4171 fi
4172
4173 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4174 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4175 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   ac_check_lib_save_LIBS=$LIBS
4179 LIBS="-lobjc  $LIBS"
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186
4187 /* Override any gcc2 internal prototype to avoid an error.  */
4188 #ifdef __cplusplus
4189 extern "C"
4190 #endif
4191 /* We use char because int might match the return type of a gcc2
4192    builtin and then its argument prototype would still apply.  */
4193 char NSLinkModule ();
4194 int
4195 main ()
4196 {
4197 NSLinkModule ();
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204   (eval $ac_link) 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } &&
4211          { ac_try='test -z "$ac_c_werror_flag"
4212                          || test ! -s conftest.err'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; } &&
4218          { ac_try='test -s conftest$ac_exeext'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   ac_cv_lib_objc_NSLinkModule=yes
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_cv_lib_objc_NSLinkModule=no
4230 fi
4231 rm -f conftest.err conftest.$ac_objext \
4232       conftest$ac_exeext conftest.$ac_ext
4233 LIBS=$ac_check_lib_save_LIBS
4234 fi
4235 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4236 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4237 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4238   lib_dl_opt=-lobjc
4239 fi
4240  # Mac OS X need this.
4241
4242 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4243 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4244 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   ac_check_lib_save_LIBS=$LIBS
4248 LIBS="-lxpg4  $LIBS"
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255
4256 /* Override any gcc2 internal prototype to avoid an error.  */
4257 #ifdef __cplusplus
4258 extern "C"
4259 #endif
4260 /* We use char because int might match the return type of a gcc2
4261    builtin and then its argument prototype would still apply.  */
4262 char setlocale ();
4263 int
4264 main ()
4265 {
4266 setlocale ();
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273   (eval $ac_link) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -z "$ac_c_werror_flag"
4281                          || test ! -s conftest.err'
4282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283   (eval $ac_try) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest$ac_exeext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   ac_cv_lib_xpg4_setlocale=yes
4294 else
4295   echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ac_cv_lib_xpg4_setlocale=no
4299 fi
4300 rm -f conftest.err conftest.$ac_objext \
4301       conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4303 fi
4304 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4305 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4306 if test $ac_cv_lib_xpg4_setlocale = yes; then
4307   cat >>confdefs.h <<_ACEOF
4308 #define HAVE_LIBXPG4 1
4309 _ACEOF
4310
4311   LIBS="-lxpg4 $LIBS"
4312
4313 fi
4314  # Mac OS X (and maybe NetBSD) need this.
4315
4316 for ac_func in gethostbyname
4317 do
4318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4319 echo "$as_me:$LINENO: checking for $ac_func" >&5
4320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4321 if eval "test \"\${$as_ac_var+set}\" = set"; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4332 #define $ac_func innocuous_$ac_func
4333
4334 /* System header to define __stub macros and hopefully few prototypes,
4335     which can conflict with char $ac_func (); below.
4336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337     <limits.h> exists even on freestanding compilers.  */
4338
4339 #ifdef __STDC__
4340 # include <limits.h>
4341 #else
4342 # include <assert.h>
4343 #endif
4344
4345 #undef $ac_func
4346
4347 /* Override any gcc2 internal prototype to avoid an error.  */
4348 #ifdef __cplusplus
4349 extern "C"
4350 {
4351 #endif
4352 /* We use char because int might match the return type of a gcc2
4353    builtin and then its argument prototype would still apply.  */
4354 char $ac_func ();
4355 /* The GNU C library defines this for functions which it implements
4356     to always fail with ENOSYS.  Some functions are actually named
4357     something starting with __ and the normal name is an alias.  */
4358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4359 choke me
4360 #else
4361 char (*f) () = $ac_func;
4362 #endif
4363 #ifdef __cplusplus
4364 }
4365 #endif
4366
4367 int
4368 main ()
4369 {
4370 return f != $ac_func;
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377   (eval $ac_link) 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } &&
4384          { ac_try='test -z "$ac_c_werror_flag"
4385                          || test ! -s conftest.err'
4386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387   (eval $ac_try) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; } &&
4391          { ac_try='test -s conftest$ac_exeext'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; }; then
4397   eval "$as_ac_var=yes"
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 eval "$as_ac_var=no"
4403 fi
4404 rm -f conftest.err conftest.$ac_objext \
4405       conftest$ac_exeext conftest.$ac_ext
4406 fi
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4409 if test `eval echo '${'$as_ac_var'}'` = yes; then
4410   cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4412 _ACEOF
4413
4414 else
4415
4416 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4417 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4418 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   ac_check_lib_save_LIBS=$LIBS
4422 LIBS="-lnsl  $LIBS"
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429
4430 /* Override any gcc2 internal prototype to avoid an error.  */
4431 #ifdef __cplusplus
4432 extern "C"
4433 #endif
4434 /* We use char because int might match the return type of a gcc2
4435    builtin and then its argument prototype would still apply.  */
4436 char gethostbyname ();
4437 int
4438 main ()
4439 {
4440 gethostbyname ();
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 rm -f conftest.$ac_objext conftest$ac_exeext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4447   (eval $ac_link) 2>conftest.er1
4448   ac_status=$?
4449   grep -v '^ *+' conftest.er1 >conftest.err
4450   rm -f conftest.er1
4451   cat conftest.err >&5
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); } &&
4454          { ac_try='test -z "$ac_c_werror_flag"
4455                          || test ! -s conftest.err'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; } &&
4461          { ac_try='test -s conftest$ac_exeext'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; }; then
4467   ac_cv_lib_nsl_gethostbyname=yes
4468 else
4469   echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 ac_cv_lib_nsl_gethostbyname=no
4473 fi
4474 rm -f conftest.err conftest.$ac_objext \
4475       conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4477 fi
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4479 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4480 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4481   cat >>confdefs.h <<_ACEOF
4482 #define HAVE_LIBNSL 1
4483 _ACEOF
4484
4485   LIBS="-lnsl $LIBS"
4486
4487 fi
4488
4489 fi
4490 done
4491
4492 echo "$as_me:$LINENO: checking for X" >&5
4493 echo $ECHO_N "checking for X... $ECHO_C" >&6
4494
4495
4496 # Check whether --with-x or --without-x was given.
4497 if test "${with_x+set}" = set; then
4498   withval="$with_x"
4499
4500 fi;
4501 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4502 if test "x$with_x" = xno; then
4503   # The user explicitly disabled X.
4504   have_x=disabled
4505 else
4506   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4507     # Both variables are already set.
4508     have_x=yes
4509   else
4510     if test "${ac_cv_have_x+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   # One or both of the vars are not set, and there is no cached value.
4514 ac_x_includes=no ac_x_libraries=no
4515 rm -fr conftest.dir
4516 if mkdir conftest.dir; then
4517   cd conftest.dir
4518   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4519   cat >Imakefile <<'_ACEOF'
4520 acfindx:
4521         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4522 _ACEOF
4523   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4524     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4525     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4526     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4527     for ac_extension in a so sl; do
4528       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4529          test -f $ac_im_libdir/libX11.$ac_extension; then
4530         ac_im_usrlibdir=$ac_im_libdir; break
4531       fi
4532     done
4533     # Screen out bogus values from the imake configuration.  They are
4534     # bogus both because they are the default anyway, and because
4535     # using them would break gcc on systems where it needs fixed includes.
4536     case $ac_im_incroot in
4537         /usr/include) ;;
4538         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4539     esac
4540     case $ac_im_usrlibdir in
4541         /usr/lib | /lib) ;;
4542         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4543     esac
4544   fi
4545   cd ..
4546   rm -fr conftest.dir
4547 fi
4548
4549 # Standard set of common directories for X headers.
4550 # Check X11 before X11Rn because it is often a symlink to the current release.
4551 ac_x_header_dirs='
4552 /usr/X11/include
4553 /usr/X11R6/include
4554 /usr/X11R5/include
4555 /usr/X11R4/include
4556
4557 /usr/include/X11
4558 /usr/include/X11R6
4559 /usr/include/X11R5
4560 /usr/include/X11R4
4561
4562 /usr/local/X11/include
4563 /usr/local/X11R6/include
4564 /usr/local/X11R5/include
4565 /usr/local/X11R4/include
4566
4567 /usr/local/include/X11
4568 /usr/local/include/X11R6
4569 /usr/local/include/X11R5
4570 /usr/local/include/X11R4
4571
4572 /usr/X386/include
4573 /usr/x386/include
4574 /usr/XFree86/include/X11
4575
4576 /usr/include
4577 /usr/local/include
4578 /usr/unsupported/include
4579 /usr/athena/include
4580 /usr/local/x11r5/include
4581 /usr/lpp/Xamples/include
4582
4583 /usr/openwin/include
4584 /usr/openwin/share/include'
4585
4586 if test "$ac_x_includes" = no; then
4587   # Guess where to find include files, by looking for Intrinsic.h.
4588   # First, try using that file with no special directory specified.
4589   cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <X11/Intrinsic.h>
4596 _ACEOF
4597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } >/dev/null; then
4605   if test -s conftest.err; then
4606     ac_cpp_err=$ac_c_preproc_warn_flag
4607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4608   else
4609     ac_cpp_err=
4610   fi
4611 else
4612   ac_cpp_err=yes
4613 fi
4614 if test -z "$ac_cpp_err"; then
4615   # We can compile using X headers with no special include directory.
4616 ac_x_includes=
4617 else
4618   echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621   for ac_dir in $ac_x_header_dirs; do
4622   if test -r "$ac_dir/X11/Intrinsic.h"; then
4623     ac_x_includes=$ac_dir
4624     break
4625   fi
4626 done
4627 fi
4628 rm -f conftest.err conftest.$ac_ext
4629 fi # $ac_x_includes = no
4630
4631 if test "$ac_x_libraries" = no; then
4632   # Check for the libraries.
4633   # See if we find them without any special options.
4634   # Don't add to $LIBS permanently.
4635   ac_save_LIBS=$LIBS
4636   LIBS="-lXt $LIBS"
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #include <X11/Intrinsic.h>
4644 int
4645 main ()
4646 {
4647 XtMalloc (0)
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654   (eval $ac_link) 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -z "$ac_c_werror_flag"
4662                          || test ! -s conftest.err'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; } &&
4668          { ac_try='test -s conftest$ac_exeext'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   LIBS=$ac_save_LIBS
4675 # We can link X programs with no special library path.
4676 ac_x_libraries=
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 LIBS=$ac_save_LIBS
4682 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4683 do
4684   # Don't even attempt the hair of trying to link an X program!
4685   for ac_extension in a so sl; do
4686     if test -r $ac_dir/libXt.$ac_extension; then
4687       ac_x_libraries=$ac_dir
4688       break 2
4689     fi
4690   done
4691 done
4692 fi
4693 rm -f conftest.err conftest.$ac_objext \
4694       conftest$ac_exeext conftest.$ac_ext
4695 fi # $ac_x_libraries = no
4696
4697 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4698   # Didn't find X anywhere.  Cache the known absence of X.
4699   ac_cv_have_x="have_x=no"
4700 else
4701   # Record where we found X for the cache.
4702   ac_cv_have_x="have_x=yes \
4703                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4704 fi
4705 fi
4706
4707   fi
4708   eval "$ac_cv_have_x"
4709 fi # $with_x != no
4710
4711 if test "$have_x" != yes; then
4712   echo "$as_me:$LINENO: result: $have_x" >&5
4713 echo "${ECHO_T}$have_x" >&6
4714   no_x=yes
4715 else
4716   # If each of the values was on the command line, it overrides each guess.
4717   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4718   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4719   # Update the cache value to reflect the command line values.
4720   ac_cv_have_x="have_x=yes \
4721                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4722   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4723 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4724 fi
4725
4726 if test "$no_x" = yes; then
4727   # Not all programs may use this symbol, but it does not hurt to define it.
4728
4729 cat >>confdefs.h <<\_ACEOF
4730 #define X_DISPLAY_MISSING 1
4731 _ACEOF
4732
4733   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4734 else
4735   if test -n "$x_includes"; then
4736     X_CFLAGS="$X_CFLAGS -I$x_includes"
4737   fi
4738
4739   # It would also be nice to do this for all -L options, not just this one.
4740   if test -n "$x_libraries"; then
4741     X_LIBS="$X_LIBS -L$x_libraries"
4742     # For Solaris; some versions of Sun CC require a space after -R and
4743     # others require no space.  Words are not sufficient . . . .
4744     case `(uname -sr) 2>/dev/null` in
4745     "SunOS 5"*)
4746       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4748       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4749       cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755
4756 int
4757 main ()
4758 {
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext conftest$ac_exeext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766   (eval $ac_link) 2>conftest.er1
4767   ac_status=$?
4768   grep -v '^ *+' conftest.er1 >conftest.err
4769   rm -f conftest.er1
4770   cat conftest.err >&5
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -z "$ac_c_werror_flag"
4774                          || test ! -s conftest.err'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; } &&
4780          { ac_try='test -s conftest$ac_exeext'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   ac_R_nospace=yes
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 ac_R_nospace=no
4792 fi
4793 rm -f conftest.err conftest.$ac_objext \
4794       conftest$ac_exeext conftest.$ac_ext
4795       if test $ac_R_nospace = yes; then
4796         echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798         X_LIBS="$X_LIBS -R$x_libraries"
4799       else
4800         LIBS="$ac_xsave_LIBS -R $x_libraries"
4801         cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807
4808 int
4809 main ()
4810 {
4811
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818   (eval $ac_link) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } &&
4825          { ac_try='test -z "$ac_c_werror_flag"
4826                          || test ! -s conftest.err'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; } &&
4832          { ac_try='test -s conftest$ac_exeext'
4833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834   (eval $ac_try) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; }; then
4838   ac_R_space=yes
4839 else
4840   echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ac_R_space=no
4844 fi
4845 rm -f conftest.err conftest.$ac_objext \
4846       conftest$ac_exeext conftest.$ac_ext
4847         if test $ac_R_space = yes; then
4848           echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4850           X_LIBS="$X_LIBS -R $x_libraries"
4851         else
4852           echo "$as_me:$LINENO: result: neither works" >&5
4853 echo "${ECHO_T}neither works" >&6
4854         fi
4855       fi
4856       LIBS=$ac_xsave_LIBS
4857     esac
4858   fi
4859
4860   # Check for system-dependent libraries X programs must link with.
4861   # Do this before checking for the system-independent R6 libraries
4862   # (-lICE), since we may need -lsocket or whatever for X linking.
4863
4864   if test "$ISC" = yes; then
4865     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4866   else
4867     # Martyn Johnson says this is needed for Ultrix, if the X
4868     # libraries were built with DECnet support.  And Karl Berry says
4869     # the Alpha needs dnet_stub (dnet does not exist).
4870     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4871     cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877
4878 /* Override any gcc2 internal prototype to avoid an error.  */
4879 #ifdef __cplusplus
4880 extern "C"
4881 #endif
4882 /* We use char because int might match the return type of a gcc2
4883    builtin and then its argument prototype would still apply.  */
4884 char XOpenDisplay ();
4885 int
4886 main ()
4887 {
4888 XOpenDisplay ();
4889   ;
4890   return 0;
4891 }
4892 _ACEOF
4893 rm -f conftest.$ac_objext conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895   (eval $ac_link) 2>conftest.er1
4896   ac_status=$?
4897   grep -v '^ *+' conftest.er1 >conftest.err
4898   rm -f conftest.er1
4899   cat conftest.err >&5
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } &&
4902          { ac_try='test -z "$ac_c_werror_flag"
4903                          || test ! -s conftest.err'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; } &&
4909          { ac_try='test -s conftest$ac_exeext'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; }; then
4915   :
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4921 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4922 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   ac_check_lib_save_LIBS=$LIBS
4926 LIBS="-ldnet  $LIBS"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 /* Override any gcc2 internal prototype to avoid an error.  */
4935 #ifdef __cplusplus
4936 extern "C"
4937 #endif
4938 /* We use char because int might match the return type of a gcc2
4939    builtin and then its argument prototype would still apply.  */
4940 char dnet_ntoa ();
4941 int
4942 main ()
4943 {
4944 dnet_ntoa ();
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951   (eval $ac_link) 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } &&
4958          { ac_try='test -z "$ac_c_werror_flag"
4959                          || test ! -s conftest.err'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; } &&
4965          { ac_try='test -s conftest$ac_exeext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_cv_lib_dnet_dnet_ntoa=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ac_cv_lib_dnet_dnet_ntoa=no
4977 fi
4978 rm -f conftest.err conftest.$ac_objext \
4979       conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4983 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4984 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4985   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4986 fi
4987
4988     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4989       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4990 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4991 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-ldnet_stub  $LIBS"
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002
5003 /* Override any gcc2 internal prototype to avoid an error.  */
5004 #ifdef __cplusplus
5005 extern "C"
5006 #endif
5007 /* We use char because int might match the return type of a gcc2
5008    builtin and then its argument prototype would still apply.  */
5009 char dnet_ntoa ();
5010 int
5011 main ()
5012 {
5013 dnet_ntoa ();
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020   (eval $ac_link) 2>conftest.er1
5021   ac_status=$?
5022   grep -v '^ *+' conftest.er1 >conftest.err
5023   rm -f conftest.er1
5024   cat conftest.err >&5
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } &&
5027          { ac_try='test -z "$ac_c_werror_flag"
5028                          || test ! -s conftest.err'
5029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030   (eval $ac_try) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); }; } &&
5034          { ac_try='test -s conftest$ac_exeext'
5035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036   (eval $ac_try) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); }; }; then
5040   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045 ac_cv_lib_dnet_stub_dnet_ntoa=no
5046 fi
5047 rm -f conftest.err conftest.$ac_objext \
5048       conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5050 fi
5051 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5052 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5053 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5054   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5055 fi
5056
5057     fi
5058 fi
5059 rm -f conftest.err conftest.$ac_objext \
5060       conftest$ac_exeext conftest.$ac_ext
5061     LIBS="$ac_xsave_LIBS"
5062
5063     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5064     # to get the SysV transport functions.
5065     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5066     # needs -lnsl.
5067     # The nsl library prevents programs from opening the X display
5068     # on Irix 5.2, according to T.E. Dickey.
5069     # The functions gethostbyname, getservbyname, and inet_addr are
5070     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5071     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5072 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5073 if test "${ac_cv_func_gethostbyname+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5084 #define gethostbyname innocuous_gethostbyname
5085
5086 /* System header to define __stub macros and hopefully few prototypes,
5087     which can conflict with char gethostbyname (); below.
5088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089     <limits.h> exists even on freestanding compilers.  */
5090
5091 #ifdef __STDC__
5092 # include <limits.h>
5093 #else
5094 # include <assert.h>
5095 #endif
5096
5097 #undef gethostbyname
5098
5099 /* Override any gcc2 internal prototype to avoid an error.  */
5100 #ifdef __cplusplus
5101 extern "C"
5102 {
5103 #endif
5104 /* We use char because int might match the return type of a gcc2
5105    builtin and then its argument prototype would still apply.  */
5106 char gethostbyname ();
5107 /* The GNU C library defines this for functions which it implements
5108     to always fail with ENOSYS.  Some functions are actually named
5109     something starting with __ and the normal name is an alias.  */
5110 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5111 choke me
5112 #else
5113 char (*f) () = gethostbyname;
5114 #endif
5115 #ifdef __cplusplus
5116 }
5117 #endif
5118
5119 int
5120 main ()
5121 {
5122 return f != gethostbyname;
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129   (eval $ac_link) 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } &&
5136          { ac_try='test -z "$ac_c_werror_flag"
5137                          || test ! -s conftest.err'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; } &&
5143          { ac_try='test -s conftest$ac_exeext'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; }; then
5149   ac_cv_func_gethostbyname=yes
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ac_cv_func_gethostbyname=no
5155 fi
5156 rm -f conftest.err conftest.$ac_objext \
5157       conftest$ac_exeext conftest.$ac_ext
5158 fi
5159 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5160 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5161
5162     if test $ac_cv_func_gethostbyname = no; then
5163       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5164 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5165 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   ac_check_lib_save_LIBS=$LIBS
5169 LIBS="-lnsl  $LIBS"
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176
5177 /* Override any gcc2 internal prototype to avoid an error.  */
5178 #ifdef __cplusplus
5179 extern "C"
5180 #endif
5181 /* We use char because int might match the return type of a gcc2
5182    builtin and then its argument prototype would still apply.  */
5183 char gethostbyname ();
5184 int
5185 main ()
5186 {
5187 gethostbyname ();
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194   (eval $ac_link) 2>conftest.er1
5195   ac_status=$?
5196   grep -v '^ *+' conftest.er1 >conftest.err
5197   rm -f conftest.er1
5198   cat conftest.err >&5
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } &&
5201          { ac_try='test -z "$ac_c_werror_flag"
5202                          || test ! -s conftest.err'
5203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204   (eval $ac_try) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; } &&
5208          { ac_try='test -s conftest$ac_exeext'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; }; then
5214   ac_cv_lib_nsl_gethostbyname=yes
5215 else
5216   echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219 ac_cv_lib_nsl_gethostbyname=no
5220 fi
5221 rm -f conftest.err conftest.$ac_objext \
5222       conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5224 fi
5225 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5226 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5227 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5228   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5229 fi
5230
5231       if test $ac_cv_lib_nsl_gethostbyname = no; then
5232         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5233 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5234 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   ac_check_lib_save_LIBS=$LIBS
5238 LIBS="-lbsd  $LIBS"
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h.  */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h.  */
5245
5246 /* Override any gcc2 internal prototype to avoid an error.  */
5247 #ifdef __cplusplus
5248 extern "C"
5249 #endif
5250 /* We use char because int might match the return type of a gcc2
5251    builtin and then its argument prototype would still apply.  */
5252 char gethostbyname ();
5253 int
5254 main ()
5255 {
5256 gethostbyname ();
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263   (eval $ac_link) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag"
5271                          || test ! -s conftest.err'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; } &&
5277          { ac_try='test -s conftest$ac_exeext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_cv_lib_bsd_gethostbyname=yes
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_cv_lib_bsd_gethostbyname=no
5289 fi
5290 rm -f conftest.err conftest.$ac_objext \
5291       conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5293 fi
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5295 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5296 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5297   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5298 fi
5299
5300       fi
5301     fi
5302
5303     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5304     # socket/setsockopt and other routines are undefined under SCO ODT
5305     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5306     # on later versions), says Simon Leinen: it contains gethostby*
5307     # variants that don't use the name server (or something).  -lsocket
5308     # must be given before -lnsl if both are needed.  We assume that
5309     # if connect needs -lnsl, so does gethostbyname.
5310     echo "$as_me:$LINENO: checking for connect" >&5
5311 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5312 if test "${ac_cv_func_connect+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5323 #define connect innocuous_connect
5324
5325 /* System header to define __stub macros and hopefully few prototypes,
5326     which can conflict with char connect (); below.
5327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328     <limits.h> exists even on freestanding compilers.  */
5329
5330 #ifdef __STDC__
5331 # include <limits.h>
5332 #else
5333 # include <assert.h>
5334 #endif
5335
5336 #undef connect
5337
5338 /* Override any gcc2 internal prototype to avoid an error.  */
5339 #ifdef __cplusplus
5340 extern "C"
5341 {
5342 #endif
5343 /* We use char because int might match the return type of a gcc2
5344    builtin and then its argument prototype would still apply.  */
5345 char connect ();
5346 /* The GNU C library defines this for functions which it implements
5347     to always fail with ENOSYS.  Some functions are actually named
5348     something starting with __ and the normal name is an alias.  */
5349 #if defined (__stub_connect) || defined (__stub___connect)
5350 choke me
5351 #else
5352 char (*f) () = connect;
5353 #endif
5354 #ifdef __cplusplus
5355 }
5356 #endif
5357
5358 int
5359 main ()
5360 {
5361 return f != connect;
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368   (eval $ac_link) 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } &&
5375          { ac_try='test -z "$ac_c_werror_flag"
5376                          || test ! -s conftest.err'
5377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378   (eval $ac_try) 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); }; } &&
5382          { ac_try='test -s conftest$ac_exeext'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; }; then
5388   ac_cv_func_connect=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_cv_func_connect=no
5394 fi
5395 rm -f conftest.err conftest.$ac_objext \
5396       conftest$ac_exeext conftest.$ac_ext
5397 fi
5398 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5399 echo "${ECHO_T}$ac_cv_func_connect" >&6
5400
5401     if test $ac_cv_func_connect = no; then
5402       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5403 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5404 if test "${ac_cv_lib_socket_connect+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415
5416 /* Override any gcc2 internal prototype to avoid an error.  */
5417 #ifdef __cplusplus
5418 extern "C"
5419 #endif
5420 /* We use char because int might match the return type of a gcc2
5421    builtin and then its argument prototype would still apply.  */
5422 char connect ();
5423 int
5424 main ()
5425 {
5426 connect ();
5427   ;
5428   return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433   (eval $ac_link) 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } &&
5440          { ac_try='test -z "$ac_c_werror_flag"
5441                          || test ! -s conftest.err'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; } &&
5447          { ac_try='test -s conftest$ac_exeext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_cv_lib_socket_connect=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_cv_lib_socket_connect=no
5459 fi
5460 rm -f conftest.err conftest.$ac_objext \
5461       conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5463 fi
5464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5465 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5466 if test $ac_cv_lib_socket_connect = yes; then
5467   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5468 fi
5469
5470     fi
5471
5472     # Guillermo Gomez says -lposix is necessary on A/UX.
5473     echo "$as_me:$LINENO: checking for remove" >&5
5474 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5475 if test "${ac_cv_func_remove+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h.  */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h.  */
5484 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5486 #define remove innocuous_remove
5487
5488 /* System header to define __stub macros and hopefully few prototypes,
5489     which can conflict with char remove (); below.
5490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491     <limits.h> exists even on freestanding compilers.  */
5492
5493 #ifdef __STDC__
5494 # include <limits.h>
5495 #else
5496 # include <assert.h>
5497 #endif
5498
5499 #undef remove
5500
5501 /* Override any gcc2 internal prototype to avoid an error.  */
5502 #ifdef __cplusplus
5503 extern "C"
5504 {
5505 #endif
5506 /* We use char because int might match the return type of a gcc2
5507    builtin and then its argument prototype would still apply.  */
5508 char remove ();
5509 /* The GNU C library defines this for functions which it implements
5510     to always fail with ENOSYS.  Some functions are actually named
5511     something starting with __ and the normal name is an alias.  */
5512 #if defined (__stub_remove) || defined (__stub___remove)
5513 choke me
5514 #else
5515 char (*f) () = remove;
5516 #endif
5517 #ifdef __cplusplus
5518 }
5519 #endif
5520
5521 int
5522 main ()
5523 {
5524 return f != remove;
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531   (eval $ac_link) 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } &&
5538          { ac_try='test -z "$ac_c_werror_flag"
5539                          || test ! -s conftest.err'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; } &&
5545          { ac_try='test -s conftest$ac_exeext'
5546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547   (eval $ac_try) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; }; then
5551   ac_cv_func_remove=yes
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cv_func_remove=no
5557 fi
5558 rm -f conftest.err conftest.$ac_objext \
5559       conftest$ac_exeext conftest.$ac_ext
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5562 echo "${ECHO_T}$ac_cv_func_remove" >&6
5563
5564     if test $ac_cv_func_remove = no; then
5565       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5566 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5567 if test "${ac_cv_lib_posix_remove+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lposix  $LIBS"
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578
5579 /* Override any gcc2 internal prototype to avoid an error.  */
5580 #ifdef __cplusplus
5581 extern "C"
5582 #endif
5583 /* We use char because int might match the return type of a gcc2
5584    builtin and then its argument prototype would still apply.  */
5585 char remove ();
5586 int
5587 main ()
5588 {
5589 remove ();
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596   (eval $ac_link) 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } &&
5603          { ac_try='test -z "$ac_c_werror_flag"
5604                          || test ! -s conftest.err'
5605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606   (eval $ac_try) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; } &&
5610          { ac_try='test -s conftest$ac_exeext'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   ac_cv_lib_posix_remove=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_lib_posix_remove=no
5622 fi
5623 rm -f conftest.err conftest.$ac_objext \
5624       conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5626 fi
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5628 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5629 if test $ac_cv_lib_posix_remove = yes; then
5630   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5631 fi
5632
5633     fi
5634
5635     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5636     echo "$as_me:$LINENO: checking for shmat" >&5
5637 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5638 if test "${ac_cv_func_shmat+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5649 #define shmat innocuous_shmat
5650
5651 /* System header to define __stub macros and hopefully few prototypes,
5652     which can conflict with char shmat (); below.
5653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654     <limits.h> exists even on freestanding compilers.  */
5655
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5661
5662 #undef shmat
5663
5664 /* Override any gcc2 internal prototype to avoid an error.  */
5665 #ifdef __cplusplus
5666 extern "C"
5667 {
5668 #endif
5669 /* We use char because int might match the return type of a gcc2
5670    builtin and then its argument prototype would still apply.  */
5671 char shmat ();
5672 /* The GNU C library defines this for functions which it implements
5673     to always fail with ENOSYS.  Some functions are actually named
5674     something starting with __ and the normal name is an alias.  */
5675 #if defined (__stub_shmat) || defined (__stub___shmat)
5676 choke me
5677 #else
5678 char (*f) () = shmat;
5679 #endif
5680 #ifdef __cplusplus
5681 }
5682 #endif
5683
5684 int
5685 main ()
5686 {
5687 return f != shmat;
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694   (eval $ac_link) 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } &&
5701          { ac_try='test -z "$ac_c_werror_flag"
5702                          || test ! -s conftest.err'
5703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704   (eval $ac_try) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; } &&
5708          { ac_try='test -s conftest$ac_exeext'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; }; then
5714   ac_cv_func_shmat=yes
5715 else
5716   echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 ac_cv_func_shmat=no
5720 fi
5721 rm -f conftest.err conftest.$ac_objext \
5722       conftest$ac_exeext conftest.$ac_ext
5723 fi
5724 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5725 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5726
5727     if test $ac_cv_func_shmat = no; then
5728       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5729 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5730 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   ac_check_lib_save_LIBS=$LIBS
5734 LIBS="-lipc  $LIBS"
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741
5742 /* Override any gcc2 internal prototype to avoid an error.  */
5743 #ifdef __cplusplus
5744 extern "C"
5745 #endif
5746 /* We use char because int might match the return type of a gcc2
5747    builtin and then its argument prototype would still apply.  */
5748 char shmat ();
5749 int
5750 main ()
5751 {
5752 shmat ();
5753   ;
5754   return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759   (eval $ac_link) 2>conftest.er1
5760   ac_status=$?
5761   grep -v '^ *+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } &&
5766          { ac_try='test -z "$ac_c_werror_flag"
5767                          || test ! -s conftest.err'
5768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; } &&
5773          { ac_try='test -s conftest$ac_exeext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_cv_lib_ipc_shmat=yes
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_lib_ipc_shmat=no
5785 fi
5786 rm -f conftest.err conftest.$ac_objext \
5787       conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5789 fi
5790 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5791 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5792 if test $ac_cv_lib_ipc_shmat = yes; then
5793   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5794 fi
5795
5796     fi
5797   fi
5798
5799   # Check for libraries that X11R6 Xt/Xaw programs need.
5800   ac_save_LDFLAGS=$LDFLAGS
5801   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5802   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5803   # check for ICE first), but we must link in the order -lSM -lICE or
5804   # we get undefined symbols.  So assume we have SM if we have ICE.
5805   # These have to be linked with before -lX11, unlike the other
5806   # libraries we check for below, so use a different variable.
5807   # John Interrante, Karl Berry
5808   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5809 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5810 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   ac_check_lib_save_LIBS=$LIBS
5814 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821
5822 /* Override any gcc2 internal prototype to avoid an error.  */
5823 #ifdef __cplusplus
5824 extern "C"
5825 #endif
5826 /* We use char because int might match the return type of a gcc2
5827    builtin and then its argument prototype would still apply.  */
5828 char IceConnectionNumber ();
5829 int
5830 main ()
5831 {
5832 IceConnectionNumber ();
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839   (eval $ac_link) 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } &&
5846          { ac_try='test -z "$ac_c_werror_flag"
5847                          || test ! -s conftest.err'
5848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849   (eval $ac_try) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; } &&
5853          { ac_try='test -s conftest$ac_exeext'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; }; then
5859   ac_cv_lib_ICE_IceConnectionNumber=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 ac_cv_lib_ICE_IceConnectionNumber=no
5865 fi
5866 rm -f conftest.err conftest.$ac_objext \
5867       conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5869 fi
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5871 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5872 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5873   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5874 fi
5875
5876   LDFLAGS=$ac_save_LDFLAGS
5877
5878 fi
5879
5880
5881 # Checks for X
5882 if test "x$with_x" = xyes; then
5883   if test "x$have_x" = xno; then
5884     if test "x$x_config_flag" = xyes; then
5885       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5886 echo "$as_me: error: Could not configure X" >&2;}
5887    { (exit 1); exit 1; }; }
5888     else
5889       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5890 echo "$as_me: WARNING: Could not configure X" >&2;}
5891     fi
5892   fi
5893 fi
5894 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5895   if test "x$x_libraries" != x; then
5896     ldflags_x_opt="-L$x_libraries"
5897     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5898     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5899   else
5900     ldflags_x_opt=
5901   fi
5902   if test "x$x_includes" != x; then
5903     CPPFLAGS="$CPPFLAGS -I$x_includes"
5904   fi
5905
5906
5907 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5908 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5909 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   ac_check_lib_save_LIBS=$LIBS
5913 LIBS="-lX11  $LIBS"
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920
5921 /* Override any gcc2 internal prototype to avoid an error.  */
5922 #ifdef __cplusplus
5923 extern "C"
5924 #endif
5925 /* We use char because int might match the return type of a gcc2
5926    builtin and then its argument prototype would still apply.  */
5927 char XOpenDisplay ();
5928 int
5929 main ()
5930 {
5931 XOpenDisplay ();
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext conftest$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938   (eval $ac_link) 2>conftest.er1
5939   ac_status=$?
5940   grep -v '^ *+' conftest.er1 >conftest.err
5941   rm -f conftest.er1
5942   cat conftest.err >&5
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -z "$ac_c_werror_flag"
5946                          || test ! -s conftest.err'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; } &&
5952          { ac_try='test -s conftest$ac_exeext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_lib_X11_XOpenDisplay=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_cv_lib_X11_XOpenDisplay=no
5964 fi
5965 rm -f conftest.err conftest.$ac_objext \
5966       conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5968 fi
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5970 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5971 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5972   cat >>confdefs.h <<_ACEOF
5973 #define HAVE_LIBX11 1
5974 _ACEOF
5975
5976   LIBS="-lX11 $LIBS"
5977
5978 fi
5979
5980   echo "$as_me:$LINENO: checking X11 version 6" >&5
5981 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5982   if test "${timidity_cv_x11_version_6+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 #include <X11/Xlib.h>
5992 int
5993 main ()
5994 {
5995
5996 #if XlibSpecificationRelease < 6
5997 fail;
5998 #endif
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006   (eval $ac_link) 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } &&
6013          { ac_try='test -z "$ac_c_werror_flag"
6014                          || test ! -s conftest.err'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; } &&
6020          { ac_try='test -s conftest$ac_exeext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   timidity_cv_x11_version_6=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 timidity_cv_x11_version_6=no
6032 fi
6033 rm -f conftest.err conftest.$ac_objext \
6034       conftest$ac_exeext conftest.$ac_ext
6035 fi
6036
6037   if test "$timidity_cv_x11_version_6" = "yes"; then
6038     echo "$as_me:$LINENO: result: 6 or newer" >&5
6039 echo "${ECHO_T}6 or newer" >&6
6040       else
6041     echo "$as_me:$LINENO: result: before 6" >&5
6042 echo "${ECHO_T}before 6" >&6
6043   fi
6044
6045     KEEPLIBS=$LIBS
6046   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6047 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6048 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-lXext  $LIBS"
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h.  */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h.  */
6059
6060 /* Override any gcc2 internal prototype to avoid an error.  */
6061 #ifdef __cplusplus
6062 extern "C"
6063 #endif
6064 /* We use char because int might match the return type of a gcc2
6065    builtin and then its argument prototype would still apply.  */
6066 char XShapeCombineMask ();
6067 int
6068 main ()
6069 {
6070 XShapeCombineMask ();
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077   (eval $ac_link) 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -z "$ac_c_werror_flag"
6085                          || test ! -s conftest.err'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_lib_Xext_XShapeCombineMask=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_lib_Xext_XShapeCombineMask=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext \
6105       conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6107 fi
6108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6109 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6110 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6111   have_xext=yes; LIBS="-lXext $LIBS"
6112 else
6113   have_xext=no
6114 fi
6115
6116
6117 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6118 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6119 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   ac_check_lib_save_LIBS=$LIBS
6123 LIBS="-lICE  $LIBS"
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130
6131 /* Override any gcc2 internal prototype to avoid an error.  */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 /* We use char because int might match the return type of a gcc2
6136    builtin and then its argument prototype would still apply.  */
6137 char IceConnectionNumber ();
6138 int
6139 main ()
6140 {
6141 IceConnectionNumber ();
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148   (eval $ac_link) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } &&
6155          { ac_try='test -z "$ac_c_werror_flag"
6156                          || test ! -s conftest.err'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; } &&
6162          { ac_try='test -s conftest$ac_exeext'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; }; then
6168   ac_cv_lib_ICE_IceConnectionNumber=yes
6169 else
6170   echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_cv_lib_ICE_IceConnectionNumber=no
6174 fi
6175 rm -f conftest.err conftest.$ac_objext \
6176       conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6178 fi
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6180 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6181 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6182   cat >>confdefs.h <<_ACEOF
6183 #define HAVE_LIBICE 1
6184 _ACEOF
6185
6186   LIBS="-lICE $LIBS"
6187
6188 fi
6189
6190   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6191 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6192 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   ac_check_lib_save_LIBS=$LIBS
6196 LIBS="-lSM  $LIBS"
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203
6204 /* Override any gcc2 internal prototype to avoid an error.  */
6205 #ifdef __cplusplus
6206 extern "C"
6207 #endif
6208 /* We use char because int might match the return type of a gcc2
6209    builtin and then its argument prototype would still apply.  */
6210 char SmcOpenConnection ();
6211 int
6212 main ()
6213 {
6214 SmcOpenConnection ();
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221   (eval $ac_link) 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -z "$ac_c_werror_flag"
6229                          || test ! -s conftest.err'
6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231   (eval $ac_try) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; } &&
6235          { ac_try='test -s conftest$ac_exeext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_lib_SM_SmcOpenConnection=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_lib_SM_SmcOpenConnection=no
6247 fi
6248 rm -f conftest.err conftest.$ac_objext \
6249       conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6251 fi
6252 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6253 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6254 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6255   have_xprelibs=yes; LIBS="-lSM $LIBS"
6256 else
6257   have_xprelibs=no
6258 fi
6259
6260   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6261 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6262 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   ac_check_lib_save_LIBS=$LIBS
6266 LIBS="-lXt  $LIBS"
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h.  */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h.  */
6273
6274 /* Override any gcc2 internal prototype to avoid an error.  */
6275 #ifdef __cplusplus
6276 extern "C"
6277 #endif
6278 /* We use char because int might match the return type of a gcc2
6279    builtin and then its argument prototype would still apply.  */
6280 char XtVaAppInitialize ();
6281 int
6282 main ()
6283 {
6284 XtVaAppInitialize ();
6285   ;
6286   return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291   (eval $ac_link) 2>conftest.er1
6292   ac_status=$?
6293   grep -v '^ *+' conftest.er1 >conftest.err
6294   rm -f conftest.er1
6295   cat conftest.err >&5
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); } &&
6298          { ac_try='test -z "$ac_c_werror_flag"
6299                          || test ! -s conftest.err'
6300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301   (eval $ac_try) 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); }; } &&
6305          { ac_try='test -s conftest$ac_exeext'
6306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307   (eval $ac_try) 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; }; then
6311   ac_cv_lib_Xt_XtVaAppInitialize=yes
6312 else
6313   echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 ac_cv_lib_Xt_XtVaAppInitialize=no
6317 fi
6318 rm -f conftest.err conftest.$ac_objext \
6319       conftest$ac_exeext conftest.$ac_ext
6320 LIBS=$ac_check_lib_save_LIBS
6321 fi
6322 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6323 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6324 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6325   have_xt=yes; LIBS="-lXt $LIBS"
6326 else
6327   have_xt=no
6328 fi
6329
6330   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6331 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6332 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   ac_check_lib_save_LIBS=$LIBS
6336 LIBS="-lXmu  $LIBS"
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343
6344 /* Override any gcc2 internal prototype to avoid an error.  */
6345 #ifdef __cplusplus
6346 extern "C"
6347 #endif
6348 /* We use char because int might match the return type of a gcc2
6349    builtin and then its argument prototype would still apply.  */
6350 char XmuInternAtom ();
6351 int
6352 main ()
6353 {
6354 XmuInternAtom ();
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361   (eval $ac_link) 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } &&
6368          { ac_try='test -z "$ac_c_werror_flag"
6369                          || test ! -s conftest.err'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; } &&
6375          { ac_try='test -s conftest$ac_exeext'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_cv_lib_Xmu_XmuInternAtom=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_cv_lib_Xmu_XmuInternAtom=no
6387 fi
6388 rm -f conftest.err conftest.$ac_objext \
6389       conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6391 fi
6392 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6393 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6394 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6395   LIBS="-lXmu $LIBS"
6396 fi
6397
6398
6399 for ac_func in XmuRegisterExternalAgent
6400 do
6401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6402 echo "$as_me:$LINENO: checking for $ac_func" >&5
6403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_var+set}\" = set"; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6415 #define $ac_func innocuous_$ac_func
6416
6417 /* System header to define __stub macros and hopefully few prototypes,
6418     which can conflict with char $ac_func (); below.
6419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6420     <limits.h> exists even on freestanding compilers.  */
6421
6422 #ifdef __STDC__
6423 # include <limits.h>
6424 #else
6425 # include <assert.h>
6426 #endif
6427
6428 #undef $ac_func
6429
6430 /* Override any gcc2 internal prototype to avoid an error.  */
6431 #ifdef __cplusplus
6432 extern "C"
6433 {
6434 #endif
6435 /* We use char because int might match the return type of a gcc2
6436    builtin and then its argument prototype would still apply.  */
6437 char $ac_func ();
6438 /* The GNU C library defines this for functions which it implements
6439     to always fail with ENOSYS.  Some functions are actually named
6440     something starting with __ and the normal name is an alias.  */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6442 choke me
6443 #else
6444 char (*f) () = $ac_func;
6445 #endif
6446 #ifdef __cplusplus
6447 }
6448 #endif
6449
6450 int
6451 main ()
6452 {
6453 return f != $ac_func;
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460   (eval $ac_link) 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -z "$ac_c_werror_flag"
6468                          || test ! -s conftest.err'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; } &&
6474          { ac_try='test -s conftest$ac_exeext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   eval "$as_ac_var=yes"
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 eval "$as_ac_var=no"
6486 fi
6487 rm -f conftest.err conftest.$ac_objext \
6488       conftest$ac_exeext conftest.$ac_ext
6489 fi
6490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6492 if test `eval echo '${'$as_ac_var'}'` = yes; then
6493   cat >>confdefs.h <<_ACEOF
6494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6495 _ACEOF
6496
6497 fi
6498 done
6499
6500   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6501 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6502 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lXaw3d  $LIBS"
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513
6514 /* Override any gcc2 internal prototype to avoid an error.  */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 /* We use char because int might match the return type of a gcc2
6519    builtin and then its argument prototype would still apply.  */
6520 char XawInitializeWidgetSet ();
6521 int
6522 main ()
6523 {
6524 XawInitializeWidgetSet ();
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6557 fi
6558 rm -f conftest.err conftest.$ac_objext \
6559       conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6561 fi
6562 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6563 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6564 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6565   have_xaw=3d
6566 else
6567    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6568 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6569 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   ac_check_lib_save_LIBS=$LIBS
6573 LIBS="-lXaw  $LIBS"
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580
6581 /* Override any gcc2 internal prototype to avoid an error.  */
6582 #ifdef __cplusplus
6583 extern "C"
6584 #endif
6585 /* We use char because int might match the return type of a gcc2
6586    builtin and then its argument prototype would still apply.  */
6587 char XawInitializeWidgetSet ();
6588 int
6589 main ()
6590 {
6591 XawInitializeWidgetSet ();
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598   (eval $ac_link) 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -z "$ac_c_werror_flag"
6606                          || test ! -s conftest.err'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; } &&
6612          { ac_try='test -s conftest$ac_exeext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6624 fi
6625 rm -f conftest.err conftest.$ac_objext \
6626       conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6628 fi
6629 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6630 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6631 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6632   have_xaw=yes
6633 else
6634   have_xaw=no
6635 fi
6636
6637 fi
6638
6639   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6640 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6641 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   ac_check_lib_save_LIBS=$LIBS
6645 LIBS="-lXm  $LIBS"
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652
6653 /* Override any gcc2 internal prototype to avoid an error.  */
6654 #ifdef __cplusplus
6655 extern "C"
6656 #endif
6657 /* We use char because int might match the return type of a gcc2
6658    builtin and then its argument prototype would still apply.  */
6659 char XmCreateForm ();
6660 int
6661 main ()
6662 {
6663 XmCreateForm ();
6664   ;
6665   return 0;
6666 }
6667 _ACEOF
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670   (eval $ac_link) 2>conftest.er1
6671   ac_status=$?
6672   grep -v '^ *+' conftest.er1 >conftest.err
6673   rm -f conftest.er1
6674   cat conftest.err >&5
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } &&
6677          { ac_try='test -z "$ac_c_werror_flag"
6678                          || test ! -s conftest.err'
6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680   (eval $ac_try) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }; } &&
6684          { ac_try='test -s conftest$ac_exeext'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; }; then
6690   ac_cv_lib_Xm_XmCreateForm=yes
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_cv_lib_Xm_XmCreateForm=no
6696 fi
6697 rm -f conftest.err conftest.$ac_objext \
6698       conftest$ac_exeext conftest.$ac_ext
6699 LIBS=$ac_check_lib_save_LIBS
6700 fi
6701 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6702 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6703 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6704   have_xm=yes
6705 else
6706   have_xm=no
6707 fi
6708
6709
6710 for ac_func in XShmCreatePixmap
6711 do
6712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6713 echo "$as_me:$LINENO: checking for $ac_func" >&5
6714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_var+set}\" = set"; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6726 #define $ac_func innocuous_$ac_func
6727
6728 /* System header to define __stub macros and hopefully few prototypes,
6729     which can conflict with char $ac_func (); below.
6730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731     <limits.h> exists even on freestanding compilers.  */
6732
6733 #ifdef __STDC__
6734 # include <limits.h>
6735 #else
6736 # include <assert.h>
6737 #endif
6738
6739 #undef $ac_func
6740
6741 /* Override any gcc2 internal prototype to avoid an error.  */
6742 #ifdef __cplusplus
6743 extern "C"
6744 {
6745 #endif
6746 /* We use char because int might match the return type of a gcc2
6747    builtin and then its argument prototype would still apply.  */
6748 char $ac_func ();
6749 /* The GNU C library defines this for functions which it implements
6750     to always fail with ENOSYS.  Some functions are actually named
6751     something starting with __ and the normal name is an alias.  */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6753 choke me
6754 #else
6755 char (*f) () = $ac_func;
6756 #endif
6757 #ifdef __cplusplus
6758 }
6759 #endif
6760
6761 int
6762 main ()
6763 {
6764 return f != $ac_func;
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771   (eval $ac_link) 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -z "$ac_c_werror_flag"
6779                          || test ! -s conftest.err'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; } &&
6785          { ac_try='test -s conftest$ac_exeext'
6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; }; then
6791   eval "$as_ac_var=yes"
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 eval "$as_ac_var=no"
6797 fi
6798 rm -f conftest.err conftest.$ac_objext \
6799       conftest$ac_exeext conftest.$ac_ext
6800 fi
6801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6803 if test `eval echo '${'$as_ac_var'}'` = yes; then
6804   cat >>confdefs.h <<_ACEOF
6805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6806 _ACEOF
6807
6808 fi
6809 done
6810
6811   LIBS=$KEEPLIBS
6812 fi
6813
6814 # Checks for header files.
6815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6817 if test "${ac_cv_header_stdc+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <stdlib.h>
6827 #include <stdarg.h>
6828 #include <string.h>
6829 #include <float.h>
6830
6831 int
6832 main ()
6833 {
6834
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 rm -f conftest.$ac_objext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841   (eval $ac_compile) 2>conftest.er1
6842   ac_status=$?
6843   grep -v '^ *+' conftest.er1 >conftest.err
6844   rm -f conftest.er1
6845   cat conftest.err >&5
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); } &&
6848          { ac_try='test -z "$ac_c_werror_flag"
6849                          || test ! -s conftest.err'
6850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851   (eval $ac_try) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; } &&
6855          { ac_try='test -s conftest.$ac_objext'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   ac_cv_header_stdc=yes
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 ac_cv_header_stdc=no
6867 fi
6868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 if test $ac_cv_header_stdc = yes; then
6871   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 #include <string.h>
6879
6880 _ACEOF
6881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882   $EGREP "memchr" >/dev/null 2>&1; then
6883   :
6884 else
6885   ac_cv_header_stdc=no
6886 fi
6887 rm -f conftest*
6888
6889 fi
6890
6891 if test $ac_cv_header_stdc = yes; then
6892   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6893   cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 #include <stdlib.h>
6900
6901 _ACEOF
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903   $EGREP "free" >/dev/null 2>&1; then
6904   :
6905 else
6906   ac_cv_header_stdc=no
6907 fi
6908 rm -f conftest*
6909
6910 fi
6911
6912 if test $ac_cv_header_stdc = yes; then
6913   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6914   if test "$cross_compiling" = yes; then
6915   :
6916 else
6917   cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923 #include <ctype.h>
6924 #if ((' ' & 0x0FF) == 0x020)
6925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6927 #else
6928 # define ISLOWER(c) \
6929                    (('a' <= (c) && (c) <= 'i') \
6930                      || ('j' <= (c) && (c) <= 'r') \
6931                      || ('s' <= (c) && (c) <= 'z'))
6932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6933 #endif
6934
6935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6936 int
6937 main ()
6938 {
6939   int i;
6940   for (i = 0; i < 256; i++)
6941     if (XOR (islower (i), ISLOWER (i))
6942         || toupper (i) != TOUPPER (i))
6943       exit(2);
6944   exit (0);
6945 }
6946 _ACEOF
6947 rm -f conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949   (eval $ac_link) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958   :
6959 else
6960   echo "$as_me: program exited with status $ac_status" >&5
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964 ( exit $ac_status )
6965 ac_cv_header_stdc=no
6966 fi
6967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 fi
6970 fi
6971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6973 if test $ac_cv_header_stdc = yes; then
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define STDC_HEADERS 1
6977 _ACEOF
6978
6979 fi
6980
6981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6992                   inttypes.h stdint.h unistd.h
6993 do
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h.  */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h.  */
7006 $ac_includes_default
7007
7008 #include <$ac_header>
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012   (eval $ac_compile) 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } &&
7019          { ac_try='test -z "$ac_c_werror_flag"
7020                          || test ! -s conftest.err'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest.$ac_objext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   eval "$as_ac_Header=yes"
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 eval "$as_ac_Header=no"
7038 fi
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040 fi
7041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7044   cat >>confdefs.h <<_ACEOF
7045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7046 _ACEOF
7047
7048 fi
7049
7050 done
7051
7052
7053 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7054 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7055 if test "${ac_cv_header_stdbool_h+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064
7065 #include <stdbool.h>
7066 #ifndef bool
7067 # error bool is not defined
7068 #endif
7069 #ifndef false
7070 # error false is not defined
7071 #endif
7072 #if false
7073 # error false is not 0
7074 #endif
7075 #ifndef true
7076 # error true is not defined
7077 #endif
7078 #if true != 1
7079 # error true is not 1
7080 #endif
7081 #ifndef __bool_true_false_are_defined
7082 # error __bool_true_false_are_defined is not defined
7083 #endif
7084
7085         struct s { _Bool s: 1; _Bool t; } s;
7086
7087         char a[true == 1 ? 1 : -1];
7088         char b[false == 0 ? 1 : -1];
7089         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7090         char d[(bool) -0.5 == true ? 1 : -1];
7091         bool e = &s;
7092         char f[(_Bool) -0.0 == false ? 1 : -1];
7093         char g[true];
7094         char h[sizeof (_Bool)];
7095         char i[sizeof s.t];
7096
7097 int
7098 main ()
7099 {
7100  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7101   ;
7102   return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107   (eval $ac_compile) 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -z "$ac_c_werror_flag"
7115                          || test ! -s conftest.err'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; } &&
7121          { ac_try='test -s conftest.$ac_objext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_cv_header_stdbool_h=yes
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_header_stdbool_h=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 fi
7136 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7137 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7138 echo "$as_me:$LINENO: checking for _Bool" >&5
7139 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7140 if test "${ac_cv_type__Bool+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 $ac_includes_default
7150 int
7151 main ()
7152 {
7153 if ((_Bool *) 0)
7154   return 0;
7155 if (sizeof (_Bool))
7156   return 0;
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest.$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163   (eval $ac_compile) 2>conftest.er1
7164   ac_status=$?
7165   grep -v '^ *+' conftest.er1 >conftest.err
7166   rm -f conftest.er1
7167   cat conftest.err >&5
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); } &&
7170          { ac_try='test -z "$ac_c_werror_flag"
7171                          || test ! -s conftest.err'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; } &&
7177          { ac_try='test -s conftest.$ac_objext'
7178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179   (eval $ac_try) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; }; then
7183   ac_cv_type__Bool=yes
7184 else
7185   echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188 ac_cv_type__Bool=no
7189 fi
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7191 fi
7192 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7193 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7194 if test $ac_cv_type__Bool = yes; then
7195
7196 cat >>confdefs.h <<_ACEOF
7197 #define HAVE__BOOL 1
7198 _ACEOF
7199
7200
7201 fi
7202
7203 if test $ac_cv_header_stdbool_h = yes; then
7204
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_STDBOOL_H 1
7207 _ACEOF
7208
7209 fi
7210
7211 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7212 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7213 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222 #include <sys/types.h>
7223 #include <sys/wait.h>
7224 #ifndef WEXITSTATUS
7225 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7226 #endif
7227 #ifndef WIFEXITED
7228 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7229 #endif
7230
7231 int
7232 main ()
7233 {
7234   int s;
7235   wait (&s);
7236   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7237   ;
7238   return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243   (eval $ac_compile) 2>conftest.er1
7244   ac_status=$?
7245   grep -v '^ *+' conftest.er1 >conftest.err
7246   rm -f conftest.er1
7247   cat conftest.err >&5
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } &&
7250          { ac_try='test -z "$ac_c_werror_flag"
7251                          || test ! -s conftest.err'
7252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253   (eval $ac_try) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; } &&
7257          { ac_try='test -s conftest.$ac_objext'
7258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259   (eval $ac_try) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; }; then
7263   ac_cv_header_sys_wait_h=yes
7264 else
7265   echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 ac_cv_header_sys_wait_h=no
7269 fi
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 fi
7272 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7273 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7274 if test $ac_cv_header_sys_wait_h = yes; then
7275
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_SYS_WAIT_H 1
7278 _ACEOF
7279
7280 fi
7281
7282 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7283 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7284 if test "${ac_cv_header_time+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <sys/types.h>
7294 #include <sys/time.h>
7295 #include <time.h>
7296
7297 int
7298 main ()
7299 {
7300 if ((struct tm *) 0)
7301 return 0;
7302   ;
7303   return 0;
7304 }
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308   (eval $ac_compile) 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -z "$ac_c_werror_flag"
7316                          || test ! -s conftest.err'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; } &&
7322          { ac_try='test -s conftest.$ac_objext'
7323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328   ac_cv_header_time=yes
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_cv_header_time=no
7334 fi
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336 fi
7337 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7338 echo "${ECHO_T}$ac_cv_header_time" >&6
7339 if test $ac_cv_header_time = yes; then
7340
7341 cat >>confdefs.h <<\_ACEOF
7342 #define TIME_WITH_SYS_TIME 1
7343 _ACEOF
7344
7345 fi
7346
7347
7348
7349
7350
7351
7352 ac_header_dirent=no
7353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7354   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7355 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366 #include <sys/types.h>
7367 #include <$ac_hdr>
7368
7369 int
7370 main ()
7371 {
7372 if ((DIR *) 0)
7373 return 0;
7374   ;
7375   return 0;
7376 }
7377 _ACEOF
7378 rm -f conftest.$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380   (eval $ac_compile) 2>conftest.er1
7381   ac_status=$?
7382   grep -v '^ *+' conftest.er1 >conftest.err
7383   rm -f conftest.er1
7384   cat conftest.err >&5
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } &&
7387          { ac_try='test -z "$ac_c_werror_flag"
7388                          || test ! -s conftest.err'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; } &&
7394          { ac_try='test -s conftest.$ac_objext'
7395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396   (eval $ac_try) 2>&5
7397   ac_status=$?
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); }; }; then
7400   eval "$as_ac_Header=yes"
7401 else
7402   echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405 eval "$as_ac_Header=no"
7406 fi
7407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412   cat >>confdefs.h <<_ACEOF
7413 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7414 _ACEOF
7415
7416 ac_header_dirent=$ac_hdr; break
7417 fi
7418
7419 done
7420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7421 if test $ac_header_dirent = dirent.h; then
7422   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7423 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7424 if test "${ac_cv_search_opendir+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   ac_func_search_save_LIBS=$LIBS
7428 ac_cv_search_opendir=no
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h.  */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h.  */
7435
7436 /* Override any gcc2 internal prototype to avoid an error.  */
7437 #ifdef __cplusplus
7438 extern "C"
7439 #endif
7440 /* We use char because int might match the return type of a gcc2
7441    builtin and then its argument prototype would still apply.  */
7442 char opendir ();
7443 int
7444 main ()
7445 {
7446 opendir ();
7447   ;
7448   return 0;
7449 }
7450 _ACEOF
7451 rm -f conftest.$ac_objext conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453   (eval $ac_link) 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } &&
7460          { ac_try='test -z "$ac_c_werror_flag"
7461                          || test ! -s conftest.err'
7462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463   (eval $ac_try) 2>&5
7464   ac_status=$?
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); }; } &&
7467          { ac_try='test -s conftest$ac_exeext'
7468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469   (eval $ac_try) 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); }; }; then
7473   ac_cv_search_opendir="none required"
7474 else
7475   echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 fi
7479 rm -f conftest.err conftest.$ac_objext \
7480       conftest$ac_exeext conftest.$ac_ext
7481 if test "$ac_cv_search_opendir" = no; then
7482   for ac_lib in dir; do
7483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7484     cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h.  */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h.  */
7490
7491 /* Override any gcc2 internal prototype to avoid an error.  */
7492 #ifdef __cplusplus
7493 extern "C"
7494 #endif
7495 /* We use char because int might match the return type of a gcc2
7496    builtin and then its argument prototype would still apply.  */
7497 char opendir ();
7498 int
7499 main ()
7500 {
7501 opendir ();
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508   (eval $ac_link) 2>conftest.er1
7509   ac_status=$?
7510   grep -v '^ *+' conftest.er1 >conftest.err
7511   rm -f conftest.er1
7512   cat conftest.err >&5
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } &&
7515          { ac_try='test -z "$ac_c_werror_flag"
7516                          || test ! -s conftest.err'
7517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518   (eval $ac_try) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); }; } &&
7522          { ac_try='test -s conftest$ac_exeext'
7523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524   (eval $ac_try) 2>&5
7525   ac_status=$?
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); }; }; then
7528   ac_cv_search_opendir="-l$ac_lib"
7529 break
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 fi
7535 rm -f conftest.err conftest.$ac_objext \
7536       conftest$ac_exeext conftest.$ac_ext
7537   done
7538 fi
7539 LIBS=$ac_func_search_save_LIBS
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7542 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7543 if test "$ac_cv_search_opendir" != no; then
7544   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7545
7546 fi
7547
7548 else
7549   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7550 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7551 if test "${ac_cv_search_opendir+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   ac_func_search_save_LIBS=$LIBS
7555 ac_cv_search_opendir=no
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h.  */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h.  */
7562
7563 /* Override any gcc2 internal prototype to avoid an error.  */
7564 #ifdef __cplusplus
7565 extern "C"
7566 #endif
7567 /* We use char because int might match the return type of a gcc2
7568    builtin and then its argument prototype would still apply.  */
7569 char opendir ();
7570 int
7571 main ()
7572 {
7573 opendir ();
7574   ;
7575   return 0;
7576 }
7577 _ACEOF
7578 rm -f conftest.$ac_objext conftest$ac_exeext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580   (eval $ac_link) 2>conftest.er1
7581   ac_status=$?
7582   grep -v '^ *+' conftest.er1 >conftest.err
7583   rm -f conftest.er1
7584   cat conftest.err >&5
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); } &&
7587          { ac_try='test -z "$ac_c_werror_flag"
7588                          || test ! -s conftest.err'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; } &&
7594          { ac_try='test -s conftest$ac_exeext'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; }; then
7600   ac_cv_search_opendir="none required"
7601 else
7602   echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 fi
7606 rm -f conftest.err conftest.$ac_objext \
7607       conftest$ac_exeext conftest.$ac_ext
7608 if test "$ac_cv_search_opendir" = no; then
7609   for ac_lib in x; do
7610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7611     cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617
7618 /* Override any gcc2 internal prototype to avoid an error.  */
7619 #ifdef __cplusplus
7620 extern "C"
7621 #endif
7622 /* We use char because int might match the return type of a gcc2
7623    builtin and then its argument prototype would still apply.  */
7624 char opendir ();
7625 int
7626 main ()
7627 {
7628 opendir ();
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635   (eval $ac_link) 2>conftest.er1
7636   ac_status=$?
7637   grep -v '^ *+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } &&
7642          { ac_try='test -z "$ac_c_werror_flag"
7643                          || test ! -s conftest.err'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; } &&
7649          { ac_try='test -s conftest$ac_exeext'
7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651   (eval $ac_try) 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   ac_cv_search_opendir="-l$ac_lib"
7656 break
7657 else
7658   echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 fi
7662 rm -f conftest.err conftest.$ac_objext \
7663       conftest$ac_exeext conftest.$ac_ext
7664   done
7665 fi
7666 LIBS=$ac_func_search_save_LIBS
7667 fi
7668 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7669 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7670 if test "$ac_cv_search_opendir" != no; then
7671   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7672
7673 fi
7674
7675 fi
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 for ac_header in \
7716   arpa/inet.h \
7717   errno.h \
7718   getopt.h \
7719   glob.h \
7720   dlfcn.h \
7721   fcntl.h \
7722   inttypes.h \
7723   limits.h \
7724   machine/endian.h \
7725   malloc.h \
7726   memory.h \
7727   netdb.h \
7728   netinet/in.h \
7729   nlist.h \
7730   stddef.h \
7731   stdlib.h \
7732   stdint.h \
7733   string.h \
7734   strings.h \
7735   stropts.h \
7736   soundcard.h \
7737   alsa/asoundlib.h \
7738   sys/asoundlib.h \
7739   sys/audioio.h \
7740   sys/awe_voice.h\
7741   sys/ioctl.h \
7742   sys/ipc.h \
7743   sys/param.h \
7744   sys/shm.h \
7745   sys/socket.h \
7746   sys/soundcard.h \
7747   sys/param.h \
7748   sys/time.h \
7749   sys/types.h \
7750   sys/sysctl.h \
7751   termios.h \
7752   unistd.h \
7753   X11/Xlib.h
7754 do
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757   echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 fi
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7764 else
7765   # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h.  */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h.  */
7774 $ac_includes_default
7775 #include <$ac_header>
7776 _ACEOF
7777 rm -f conftest.$ac_objext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7779   (eval $ac_compile) 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -z "$ac_c_werror_flag"
7787                          || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest.$ac_objext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_header_compiler=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 ac_header_compiler=no
7805 fi
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7808 echo "${ECHO_T}$ac_header_compiler" >&6
7809
7810 # Is the header present?
7811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819 #include <$ac_header>
7820 _ACEOF
7821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } >/dev/null; then
7829   if test -s conftest.err; then
7830     ac_cpp_err=$ac_c_preproc_warn_flag
7831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7832   else
7833     ac_cpp_err=
7834   fi
7835 else
7836   ac_cpp_err=yes
7837 fi
7838 if test -z "$ac_cpp_err"; then
7839   ac_header_preproc=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844   ac_header_preproc=no
7845 fi
7846 rm -f conftest.err conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7848 echo "${ECHO_T}$ac_header_preproc" >&6
7849
7850 # So?  What about this header?
7851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7852   yes:no: )
7853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7857     ac_header_preproc=yes
7858     ;;
7859   no:yes:* )
7860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7872     (
7873       cat <<\_ASBOX
7874 ## ------------------------------- ##
7875 ## Report this to root@mput.dip.jp ##
7876 ## ------------------------------- ##
7877 _ASBOX
7878     ) |
7879       sed "s/^/$as_me: WARNING:     /" >&2
7880     ;;
7881 esac
7882 echo "$as_me:$LINENO: checking for $ac_header" >&5
7883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   eval "$as_ac_Header=\$ac_header_preproc"
7888 fi
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891
7892 fi
7893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7894   cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896 _ACEOF
7897
7898 fi
7899
7900 done
7901
7902
7903
7904 for ac_header in \
7905   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7906 do
7907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919
7920 #ifdef HAVE_X11_XLIB_H
7921 #include <X11/Xlib.h>
7922 #endif
7923
7924
7925 #include <$ac_header>
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929   (eval $ac_compile) 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag"
7937                          || test ! -s conftest.err'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; } &&
7943          { ac_try='test -s conftest.$ac_objext'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949   eval "$as_ac_Header=yes"
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 eval "$as_ac_Header=no"
7955 fi
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 fi
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7961   cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7963 _ACEOF
7964
7965 fi
7966
7967 done
7968
7969 if test "${ac_cv_header_string_h+set}" = set; then
7970   echo "$as_me:$LINENO: checking for string.h" >&5
7971 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7972 if test "${ac_cv_header_string_h+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 fi
7975 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7976 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7977 else
7978   # Is the header compilable?
7979 echo "$as_me:$LINENO: checking string.h usability" >&5
7980 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987 $ac_includes_default
7988 #include <string.h>
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992   (eval $ac_compile) 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } &&
7999          { ac_try='test -z "$ac_c_werror_flag"
8000                          || test ! -s conftest.err'
8001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002   (eval $ac_try) 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; } &&
8006          { ac_try='test -s conftest.$ac_objext'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; }; then
8012   ac_header_compiler=yes
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 ac_header_compiler=no
8018 fi
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8021 echo "${ECHO_T}$ac_header_compiler" >&6
8022
8023 # Is the header present?
8024 echo "$as_me:$LINENO: checking string.h presence" >&5
8025 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 #include <string.h>
8033 _ACEOF
8034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8036   ac_status=$?
8037   grep -v '^ *+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } >/dev/null; then
8042   if test -s conftest.err; then
8043     ac_cpp_err=$ac_c_preproc_warn_flag
8044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8045   else
8046     ac_cpp_err=
8047   fi
8048 else
8049   ac_cpp_err=yes
8050 fi
8051 if test -z "$ac_cpp_err"; then
8052   ac_header_preproc=yes
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057   ac_header_preproc=no
8058 fi
8059 rm -f conftest.err conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8061 echo "${ECHO_T}$ac_header_preproc" >&6
8062
8063 # So?  What about this header?
8064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8065   yes:no: )
8066     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8067 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8069 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8070     ac_header_preproc=yes
8071     ;;
8072   no:yes:* )
8073     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8075     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8077     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8078 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8079     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8080 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8081     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8082 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8083     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8084 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8085     (
8086       cat <<\_ASBOX
8087 ## ------------------------------- ##
8088 ## Report this to root@mput.dip.jp ##
8089 ## ------------------------------- ##
8090 _ASBOX
8091     ) |
8092       sed "s/^/$as_me: WARNING:     /" >&2
8093     ;;
8094 esac
8095 echo "$as_me:$LINENO: checking for string.h" >&5
8096 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8097 if test "${ac_cv_header_string_h+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   ac_cv_header_string_h=$ac_header_preproc
8101 fi
8102 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8103 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8104
8105 fi
8106 if test $ac_cv_header_string_h = yes; then
8107   :
8108 else
8109
8110 cat >>confdefs.h <<\_ACEOF
8111 #define NO_STRING_H 1
8112 _ACEOF
8113
8114 fi
8115
8116
8117
8118 # Checks for typedefs, structures, and compiler characteristics.
8119 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8120 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8121 if test "${ac_cv_c_bigendian+set}" = set; then
8122   echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124   # See if sys/param.h defines the BYTE_ORDER macro.
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 #include <sys/types.h>
8132 #include <sys/param.h>
8133
8134 int
8135 main ()
8136 {
8137 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8138  bogus endian macros
8139 #endif
8140
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147   (eval $ac_compile) 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } &&
8154          { ac_try='test -z "$ac_c_werror_flag"
8155                          || test ! -s conftest.err'
8156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157   (eval $ac_try) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; } &&
8161          { ac_try='test -s conftest.$ac_objext'
8162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163   (eval $ac_try) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; }; then
8167   # It does; now see whether it defined to BIG_ENDIAN or not.
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 #include <sys/types.h>
8175 #include <sys/param.h>
8176
8177 int
8178 main ()
8179 {
8180 #if BYTE_ORDER != BIG_ENDIAN
8181  not big endian
8182 #endif
8183
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190   (eval $ac_compile) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -z "$ac_c_werror_flag"
8198                          || test ! -s conftest.err'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; } &&
8204          { ac_try='test -s conftest.$ac_objext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   ac_cv_c_bigendian=yes
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_c_bigendian=no
8216 fi
8217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 # It does not; compile a test program.
8223 if test "$cross_compiling" = yes; then
8224   # try to guess the endianness by grepping values into an object file
8225   ac_cv_c_bigendian=unknown
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 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8233 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8234 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8235 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8236 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8237 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8238 int
8239 main ()
8240 {
8241  _ascii (); _ebcdic ();
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248   (eval $ac_compile) 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag"
8256                          || test ! -s conftest.err'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; } &&
8262          { ac_try='test -s conftest.$ac_objext'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8269   ac_cv_c_bigendian=yes
8270 fi
8271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8272   if test "$ac_cv_c_bigendian" = unknown; then
8273     ac_cv_c_bigendian=no
8274   else
8275     # finding both strings is unlikely to happen, but who knows?
8276     ac_cv_c_bigendian=unknown
8277   fi
8278 fi
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 fi
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 int
8293 main ()
8294 {
8295   /* Are we little or big endian?  From Harbison&Steele.  */
8296   union
8297   {
8298     long l;
8299     char c[sizeof (long)];
8300   } u;
8301   u.l = 1;
8302   exit (u.c[sizeof (long) - 1] == 1);
8303 }
8304 _ACEOF
8305 rm -f conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307   (eval $ac_link) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_cv_c_bigendian=no
8317 else
8318   echo "$as_me: program exited with status $ac_status" >&5
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ( exit $ac_status )
8323 ac_cv_c_bigendian=yes
8324 fi
8325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 fi
8328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8332 case $ac_cv_c_bigendian in
8333   yes)
8334
8335 cat >>confdefs.h <<\_ACEOF
8336 #define WORDS_BIGENDIAN 1
8337 _ACEOF
8338  ;;
8339   no)
8340      ;;
8341   *)
8342     { { echo "$as_me:$LINENO: error: unknown endianness
8343 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8344 echo "$as_me: error: unknown endianness
8345 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8346    { (exit 1); exit 1; }; } ;;
8347 esac
8348
8349
8350 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8351 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8352 if test "${ac_cv_c_char_unsigned+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 $ac_includes_default
8362 int
8363 main ()
8364 {
8365 static int test_array [1 - 2 * !(((char) -1) < 0)];
8366 test_array [0] = 0
8367
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374   (eval $ac_compile) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"
8382                          || test ! -s conftest.err'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; } &&
8388          { ac_try='test -s conftest.$ac_objext'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; }; then
8394   ac_cv_c_char_unsigned=no
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 ac_cv_c_char_unsigned=yes
8400 fi
8401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8402 fi
8403 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8404 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8405 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8406   cat >>confdefs.h <<\_ACEOF
8407 #define __CHAR_UNSIGNED__ 1
8408 _ACEOF
8409
8410 fi
8411
8412 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8413 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8414 if test "${ac_cv_c_const+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 int
8425 main ()
8426 {
8427 /* FIXME: Include the comments suggested by Paul. */
8428 #ifndef __cplusplus
8429   /* Ultrix mips cc rejects this.  */
8430   typedef int charset[2];
8431   const charset x;
8432   /* SunOS 4.1.1 cc rejects this.  */
8433   char const *const *ccp;
8434   char **p;
8435   /* NEC SVR4.0.2 mips cc rejects this.  */
8436   struct point {int x, y;};
8437   static struct point const zero = {0,0};
8438   /* AIX XL C 1.02.0.0 rejects this.
8439      It does not let you subtract one const X* pointer from another in
8440      an arm of an if-expression whose if-part is not a constant
8441      expression */
8442   const char *g = "string";
8443   ccp = &g + (g ? g-g : 0);
8444   /* HPUX 7.0 cc rejects these. */
8445   ++ccp;
8446   p = (char**) ccp;
8447   ccp = (char const *const *) p;
8448   { /* SCO 3.2v4 cc rejects this.  */
8449     char *t;
8450     char const *s = 0 ? (char *) 0 : (char const *) 0;
8451
8452     *t++ = 0;
8453   }
8454   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8455     int x[] = {25, 17};
8456     const int *foo = &x[0];
8457     ++foo;
8458   }
8459   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8460     typedef const int *iptr;
8461     iptr p = 0;
8462     ++p;
8463   }
8464   { /* AIX XL C 1.02.0.0 rejects this saying
8465        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8466     struct s { int j; const int *ap[3]; };
8467     struct s *b; b->j = 5;
8468   }
8469   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8470     const int foo = 10;
8471   }
8472 #endif
8473
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480   (eval $ac_compile) 2>conftest.er1
8481   ac_status=$?
8482   grep -v '^ *+' conftest.er1 >conftest.err
8483   rm -f conftest.er1
8484   cat conftest.err >&5
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); } &&
8487          { ac_try='test -z "$ac_c_werror_flag"
8488                          || test ! -s conftest.err'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; } &&
8494          { ac_try='test -s conftest.$ac_objext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   ac_cv_c_const=yes
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_c_const=no
8506 fi
8507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8510 echo "${ECHO_T}$ac_cv_c_const" >&6
8511 if test $ac_cv_c_const = no; then
8512
8513 cat >>confdefs.h <<\_ACEOF
8514 #define const
8515 _ACEOF
8516
8517 fi
8518
8519 echo "$as_me:$LINENO: checking for inline" >&5
8520 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8521 if test "${ac_cv_c_inline+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   ac_cv_c_inline=no
8525 for ac_kw in inline __inline__ __inline; do
8526   cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 #ifndef __cplusplus
8533 typedef int foo_t;
8534 static $ac_kw foo_t static_foo () {return 0; }
8535 $ac_kw foo_t foo () {return 0; }
8536 #endif
8537
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541   (eval $ac_compile) 2>conftest.er1
8542   ac_status=$?
8543   grep -v '^ *+' conftest.er1 >conftest.err
8544   rm -f conftest.er1
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } &&
8548          { ac_try='test -z "$ac_c_werror_flag"
8549                          || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest.$ac_objext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_cv_c_inline=$ac_kw; break
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 fi
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8568 done
8569
8570 fi
8571 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8572 echo "${ECHO_T}$ac_cv_c_inline" >&6
8573
8574
8575 case $ac_cv_c_inline in
8576   inline | yes) ;;
8577   *)
8578     case $ac_cv_c_inline in
8579       no) ac_val=;;
8580       *) ac_val=$ac_cv_c_inline;;
8581     esac
8582     cat >>confdefs.h <<_ACEOF
8583 #ifndef __cplusplus
8584 #define inline $ac_val
8585 #endif
8586 _ACEOF
8587     ;;
8588 esac
8589
8590 echo "$as_me:$LINENO: checking for working volatile" >&5
8591 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8592 if test "${ac_cv_c_volatile+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 int
8603 main ()
8604 {
8605
8606 volatile int x;
8607 int * volatile y;
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614   (eval $ac_compile) 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag"
8622                          || test ! -s conftest.err'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; } &&
8628          { ac_try='test -s conftest.$ac_objext'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   ac_cv_c_volatile=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 ac_cv_c_volatile=no
8640 fi
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8644 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8645 if test $ac_cv_c_volatile = no; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define volatile
8649 _ACEOF
8650
8651 fi
8652
8653 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8654 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8655 if test "${ac_cv_c_stringize+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h.  */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h.  */
8664 #define x(y) #y
8665
8666 char *s = x(teststring);
8667 _ACEOF
8668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8669   $EGREP "#teststring" >/dev/null 2>&1; then
8670   ac_cv_c_stringize=no
8671 else
8672   ac_cv_c_stringize=yes
8673 fi
8674 rm -f conftest*
8675
8676 fi
8677 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8678 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8679 if test $ac_cv_c_stringize = yes; then
8680
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_STRINGIZE 1
8683 _ACEOF
8684
8685 fi
8686
8687 echo "$as_me:$LINENO: checking for function prototypes" >&5
8688 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8689 if test "$ac_cv_prog_cc_stdc" != no; then
8690   echo "$as_me:$LINENO: result: yes" >&5
8691 echo "${ECHO_T}yes" >&6
8692
8693 cat >>confdefs.h <<\_ACEOF
8694 #define PROTOTYPES 1
8695 _ACEOF
8696
8697
8698 cat >>confdefs.h <<\_ACEOF
8699 #define __PROTOTYPES 1
8700 _ACEOF
8701
8702 else
8703   echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8705 fi
8706
8707 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8708 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8709 if test "${ac_cv_struct_tm+set}" = set; then
8710   echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712   cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h.  */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h.  */
8718 #include <sys/types.h>
8719 #include <time.h>
8720
8721 int
8722 main ()
8723 {
8724 struct tm *tp; tp->tm_sec;
8725   ;
8726   return 0;
8727 }
8728 _ACEOF
8729 rm -f conftest.$ac_objext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731   (eval $ac_compile) 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } &&
8738          { ac_try='test -z "$ac_c_werror_flag"
8739                          || test ! -s conftest.err'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; } &&
8745          { ac_try='test -s conftest.$ac_objext'
8746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747   (eval $ac_try) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); }; }; then
8751   ac_cv_struct_tm=time.h
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_cv_struct_tm=sys/time.h
8757 fi
8758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 fi
8760 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8761 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8762 if test $ac_cv_struct_tm = sys/time.h; then
8763
8764 cat >>confdefs.h <<\_ACEOF
8765 #define TM_IN_SYS_TIME 1
8766 _ACEOF
8767
8768 fi
8769
8770 echo "$as_me:$LINENO: checking for size_t" >&5
8771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8772 if test "${ac_cv_type_size_t+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h.  */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h.  */
8781 $ac_includes_default
8782 int
8783 main ()
8784 {
8785 if ((size_t *) 0)
8786   return 0;
8787 if (sizeof (size_t))
8788   return 0;
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795   (eval $ac_compile) 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag"
8803                          || test ! -s conftest.err'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; } &&
8809          { ac_try='test -s conftest.$ac_objext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_type_size_t=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_cv_type_size_t=no
8821 fi
8822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8823 fi
8824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8826 if test $ac_cv_type_size_t = yes; then
8827   :
8828 else
8829
8830 cat >>confdefs.h <<_ACEOF
8831 #define size_t unsigned
8832 _ACEOF
8833
8834 fi
8835
8836 echo "$as_me:$LINENO: checking for off_t" >&5
8837 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8838 if test "${ac_cv_type_off_t+set}" = set; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 $ac_includes_default
8848 int
8849 main ()
8850 {
8851 if ((off_t *) 0)
8852   return 0;
8853 if (sizeof (off_t))
8854   return 0;
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861   (eval $ac_compile) 2>conftest.er1
8862   ac_status=$?
8863   grep -v '^ *+' conftest.er1 >conftest.err
8864   rm -f conftest.er1
8865   cat conftest.err >&5
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } &&
8868          { ac_try='test -z "$ac_c_werror_flag"
8869                          || test ! -s conftest.err'
8870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871   (eval $ac_try) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; } &&
8875          { ac_try='test -s conftest.$ac_objext'
8876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877   (eval $ac_try) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; }; then
8881   ac_cv_type_off_t=yes
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886 ac_cv_type_off_t=no
8887 fi
8888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8891 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8892 if test $ac_cv_type_off_t = yes; then
8893   :
8894 else
8895
8896 cat >>confdefs.h <<_ACEOF
8897 #define off_t long
8898 _ACEOF
8899
8900 fi
8901
8902 echo "$as_me:$LINENO: checking for pid_t" >&5
8903 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8904 if test "${ac_cv_type_pid_t+set}" = set; then
8905   echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907   cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 $ac_includes_default
8914 int
8915 main ()
8916 {
8917 if ((pid_t *) 0)
8918   return 0;
8919 if (sizeof (pid_t))
8920   return 0;
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927   (eval $ac_compile) 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } &&
8934          { ac_try='test -z "$ac_c_werror_flag"
8935                          || test ! -s conftest.err'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; } &&
8941          { ac_try='test -s conftest.$ac_objext'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   ac_cv_type_pid_t=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 ac_cv_type_pid_t=no
8953 fi
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 fi
8956 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8958 if test $ac_cv_type_pid_t = yes; then
8959   :
8960 else
8961
8962 cat >>confdefs.h <<_ACEOF
8963 #define pid_t int
8964 _ACEOF
8965
8966 fi
8967
8968
8969 echo "$as_me:$LINENO: checking volatile declaration" >&5
8970 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8971 if test "${timidity_cv_type_volatile+set}" = set; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974   cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980
8981 int
8982 main ()
8983 {
8984 volatile int x
8985   ;
8986   return 0;
8987 }
8988 _ACEOF
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991   (eval $ac_compile) 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -z "$ac_c_werror_flag"
8999                          || test ! -s conftest.err'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; } &&
9005          { ac_try='test -s conftest.$ac_objext'
9006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007   (eval $ac_try) 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; }; then
9011   timidity_cv_type_volatile=yes
9012 else
9013   echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 timidity_cv_type_volatile=no
9017 fi
9018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9019 fi
9020 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9021 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9022 if test $timidity_cv_type_volatile = no; then
9023
9024 cat >>confdefs.h <<\_ACEOF
9025 #define NO_VOLATILE 1
9026 _ACEOF
9027
9028 fi
9029
9030 echo "$as_me:$LINENO: checking union semun declaration" >&5
9031 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9032 if test "${timidity_cv_type_union_semun+set}" = set; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 #include <sys/types.h>
9043 #include <sys/ipc.h>
9044 #include <sys/sem.h>
9045
9046 int
9047 main ()
9048 {
9049 union semun x
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056   (eval $ac_compile) 2>conftest.er1
9057   ac_status=$?
9058   grep -v '^ *+' conftest.er1 >conftest.err
9059   rm -f conftest.er1
9060   cat conftest.err >&5
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); } &&
9063          { ac_try='test -z "$ac_c_werror_flag"
9064                          || test ! -s conftest.err'
9065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; } &&
9070          { ac_try='test -s conftest.$ac_objext'
9071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072   (eval $ac_try) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); }; }; then
9076   timidity_cv_type_union_semun=yes
9077 else
9078   echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081 timidity_cv_type_union_semun=no
9082 fi
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9086 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9087 if test $timidity_cv_type_union_semun = yes; then
9088
9089 cat >>confdefs.h <<\_ACEOF
9090 #define HAVE_UNION_SEMUN 1
9091 _ACEOF
9092
9093 fi
9094
9095 if test "x$CYGNUS" = xyes ||test "x$MINGW" = xyes; then
9096         msnative_struct=''
9097             echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9098 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9099     if test -z "$ac_cv_prog_CC"; then
9100       our_gcc="$CC"
9101     else
9102       our_gcc="$ac_cv_prog_CC"
9103     fi
9104     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9105       2.)
9106         if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9107           msnative_struct='-fnative-struct'
9108         fi
9109         ;;
9110       *)
9111         if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9112           msnative_struct='-mms-bitfields'
9113         fi
9114         ;;
9115     esac
9116     if test x"$msnative_struct" = x ; then
9117       echo "$as_me:$LINENO: result: no way" >&5
9118 echo "${ECHO_T}no way" >&6
9119       { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9120 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9121     else
9122       CFLAGS="$CFLAGS $msnative_struct"
9123       CPPFLAGS="$CPPFLAGS $msnative_struct"
9124       echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9125 echo "${ECHO_T}${msnative_struct}" >&6
9126     fi
9127 fi
9128
9129
9130 if test "x$CYGNUS" = xyes || test "x$MINGW" = xyes; then
9131   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9132 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9133 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9134   echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136   cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h.  */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h.  */
9142
9143 #include <windows.h>
9144 #include <mmsystem.h>
9145
9146 int
9147 main ()
9148 {
9149 return WOM_OPEN != 0x3BB
9150   ;
9151   return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156   (eval $ac_compile) 2>conftest.er1
9157   ac_status=$?
9158   grep -v '^ *+' conftest.er1 >conftest.err
9159   rm -f conftest.er1
9160   cat conftest.err >&5
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); } &&
9163          { ac_try='test -z "$ac_c_werror_flag"
9164                          || test ! -s conftest.err'
9165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166   (eval $ac_try) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; } &&
9170          { ac_try='test -s conftest.$ac_objext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   timidity_cv_header_new_mmsystem=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 timidity_cv_header_new_mmsystem=no
9182 fi
9183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184 fi
9185 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9186 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9187   if test $timidity_cv_header_new_mmsystem = yes; then
9188
9189 cat >>confdefs.h <<\_ACEOF
9190 #define HAVE_NEW_MMSYSTEM 1
9191 _ACEOF
9192
9193   fi
9194 fi
9195
9196 # Checks for library functions.
9197 echo "$as_me:$LINENO: checking for error_at_line" >&5
9198 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9199 if test "${ac_cv_lib_error_at_line+set}" = set; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208 $ac_includes_default
9209 int
9210 main ()
9211 {
9212 error_at_line (0, 0, "", 0, "");
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219   (eval $ac_link) 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } &&
9226          { ac_try='test -z "$ac_c_werror_flag"
9227                          || test ! -s conftest.err'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; } &&
9233          { ac_try='test -s conftest$ac_exeext'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; }; then
9239   ac_cv_lib_error_at_line=yes
9240 else
9241   echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 ac_cv_lib_error_at_line=no
9245 fi
9246 rm -f conftest.err conftest.$ac_objext \
9247       conftest$ac_exeext conftest.$ac_ext
9248 fi
9249 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9250 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9251 if test $ac_cv_lib_error_at_line = no; then
9252   case $LIBOBJS in
9253     "error.$ac_objext"   | \
9254   *" error.$ac_objext"   | \
9255     "error.$ac_objext "* | \
9256   *" error.$ac_objext "* ) ;;
9257   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9258 esac
9259
9260 fi
9261
9262
9263
9264 for ac_header in unistd.h vfork.h
9265 do
9266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9268   echo "$as_me:$LINENO: checking for $ac_header" >&5
9269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 fi
9273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9275 else
9276   # Is the header compilable?
9277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285 $ac_includes_default
9286 #include <$ac_header>
9287 _ACEOF
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290   (eval $ac_compile) 2>conftest.er1
9291   ac_status=$?
9292   grep -v '^ *+' conftest.er1 >conftest.err
9293   rm -f conftest.er1
9294   cat conftest.err >&5
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } &&
9297          { ac_try='test -z "$ac_c_werror_flag"
9298                          || test ! -s conftest.err'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; } &&
9304          { ac_try='test -s conftest.$ac_objext'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; }; then
9310   ac_header_compiler=yes
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 ac_header_compiler=no
9316 fi
9317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9319 echo "${ECHO_T}$ac_header_compiler" >&6
9320
9321 # Is the header present?
9322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h.  */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h.  */
9330 #include <$ac_header>
9331 _ACEOF
9332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9334   ac_status=$?
9335   grep -v '^ *+' conftest.er1 >conftest.err
9336   rm -f conftest.er1
9337   cat conftest.err >&5
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } >/dev/null; then
9340   if test -s conftest.err; then
9341     ac_cpp_err=$ac_c_preproc_warn_flag
9342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9343   else
9344     ac_cpp_err=
9345   fi
9346 else
9347   ac_cpp_err=yes
9348 fi
9349 if test -z "$ac_cpp_err"; then
9350   ac_header_preproc=yes
9351 else
9352   echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355   ac_header_preproc=no
9356 fi
9357 rm -f conftest.err conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9359 echo "${ECHO_T}$ac_header_preproc" >&6
9360
9361 # So?  What about this header?
9362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9363   yes:no: )
9364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9368     ac_header_preproc=yes
9369     ;;
9370   no:yes:* )
9371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9383     (
9384       cat <<\_ASBOX
9385 ## ------------------------------- ##
9386 ## Report this to root@mput.dip.jp ##
9387 ## ------------------------------- ##
9388 _ASBOX
9389     ) |
9390       sed "s/^/$as_me: WARNING:     /" >&2
9391     ;;
9392 esac
9393 echo "$as_me:$LINENO: checking for $ac_header" >&5
9394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398   eval "$as_ac_Header=\$ac_header_preproc"
9399 fi
9400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9402
9403 fi
9404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9405   cat >>confdefs.h <<_ACEOF
9406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9407 _ACEOF
9408
9409 fi
9410
9411 done
9412
9413
9414
9415 for ac_func in fork vfork
9416 do
9417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9418 echo "$as_me:$LINENO: checking for $ac_func" >&5
9419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9420 if eval "test \"\${$as_ac_var+set}\" = set"; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9431 #define $ac_func innocuous_$ac_func
9432
9433 /* System header to define __stub macros and hopefully few prototypes,
9434     which can conflict with char $ac_func (); below.
9435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9436     <limits.h> exists even on freestanding compilers.  */
9437
9438 #ifdef __STDC__
9439 # include <limits.h>
9440 #else
9441 # include <assert.h>
9442 #endif
9443
9444 #undef $ac_func
9445
9446 /* Override any gcc2 internal prototype to avoid an error.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 {
9450 #endif
9451 /* We use char because int might match the return type of a gcc2
9452    builtin and then its argument prototype would still apply.  */
9453 char $ac_func ();
9454 /* The GNU C library defines this for functions which it implements
9455     to always fail with ENOSYS.  Some functions are actually named
9456     something starting with __ and the normal name is an alias.  */
9457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9458 choke me
9459 #else
9460 char (*f) () = $ac_func;
9461 #endif
9462 #ifdef __cplusplus
9463 }
9464 #endif
9465
9466 int
9467 main ()
9468 {
9469 return f != $ac_func;
9470   ;
9471   return 0;
9472 }
9473 _ACEOF
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476   (eval $ac_link) 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -z "$ac_c_werror_flag"
9484                          || test ! -s conftest.err'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; } &&
9490          { ac_try='test -s conftest$ac_exeext'
9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492   (eval $ac_try) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   eval "$as_ac_var=yes"
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 eval "$as_ac_var=no"
9502 fi
9503 rm -f conftest.err conftest.$ac_objext \
9504       conftest$ac_exeext conftest.$ac_ext
9505 fi
9506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9508 if test `eval echo '${'$as_ac_var'}'` = yes; then
9509   cat >>confdefs.h <<_ACEOF
9510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9511 _ACEOF
9512
9513 fi
9514 done
9515
9516 if test "x$ac_cv_func_fork" = xyes; then
9517   echo "$as_me:$LINENO: checking for working fork" >&5
9518 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9519 if test "${ac_cv_func_fork_works+set}" = set; then
9520   echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522   if test "$cross_compiling" = yes; then
9523   ac_cv_func_fork_works=cross
9524 else
9525   cat >conftest.$ac_ext <<_ACEOF
9526 /* By Ruediger Kuhlmann. */
9527       #include <sys/types.h>
9528       #if HAVE_UNISTD_H
9529       # include <unistd.h>
9530       #endif
9531       /* Some systems only have a dummy stub for fork() */
9532       int main ()
9533       {
9534         if (fork() < 0)
9535           exit (1);
9536         exit (0);
9537       }
9538 _ACEOF
9539 rm -f conftest$ac_exeext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541   (eval $ac_link) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546   (eval $ac_try) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; }; then
9550   ac_cv_func_fork_works=yes
9551 else
9552   echo "$as_me: program exited with status $ac_status" >&5
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9555
9556 ( exit $ac_status )
9557 ac_cv_func_fork_works=no
9558 fi
9559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9560 fi
9561 fi
9562 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9563 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9564
9565 else
9566   ac_cv_func_fork_works=$ac_cv_func_fork
9567 fi
9568 if test "x$ac_cv_func_fork_works" = xcross; then
9569   case $host in
9570     *-*-amigaos* | *-*-msdosdjgpp*)
9571       # Override, as these systems have only a dummy fork() stub
9572       ac_cv_func_fork_works=no
9573       ;;
9574     *)
9575       ac_cv_func_fork_works=yes
9576       ;;
9577   esac
9578   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9579 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9580 fi
9581 ac_cv_func_vfork_works=$ac_cv_func_vfork
9582 if test "x$ac_cv_func_vfork" = xyes; then
9583   echo "$as_me:$LINENO: checking for working vfork" >&5
9584 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9585 if test "${ac_cv_func_vfork_works+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588   if test "$cross_compiling" = yes; then
9589   ac_cv_func_vfork_works=cross
9590 else
9591   cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597 /* Thanks to Paul Eggert for this test.  */
9598 #include <stdio.h>
9599 #include <stdlib.h>
9600 #include <sys/types.h>
9601 #include <sys/stat.h>
9602 #include <sys/wait.h>
9603 #if HAVE_UNISTD_H
9604 # include <unistd.h>
9605 #endif
9606 #if HAVE_VFORK_H
9607 # include <vfork.h>
9608 #endif
9609 /* On some sparc systems, changes by the child to local and incoming
9610    argument registers are propagated back to the parent.  The compiler
9611    is told about this with #include <vfork.h>, but some compilers
9612    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9613    static variable whose address is put into a register that is
9614    clobbered by the vfork.  */
9615 static void
9616 #ifdef __cplusplus
9617 sparc_address_test (int arg)
9618 # else
9619 sparc_address_test (arg) int arg;
9620 #endif
9621 {
9622   static pid_t child;
9623   if (!child) {
9624     child = vfork ();
9625     if (child < 0) {
9626       perror ("vfork");
9627       _exit(2);
9628     }
9629     if (!child) {
9630       arg = getpid();
9631       write(-1, "", 0);
9632       _exit (arg);
9633     }
9634   }
9635 }
9636
9637 int
9638 main ()
9639 {
9640   pid_t parent = getpid ();
9641   pid_t child;
9642
9643   sparc_address_test (0);
9644
9645   child = vfork ();
9646
9647   if (child == 0) {
9648     /* Here is another test for sparc vfork register problems.  This
9649        test uses lots of local variables, at least as many local
9650        variables as main has allocated so far including compiler
9651        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9652        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9653        reuse the register of parent for one of the local variables,
9654        since it will think that parent can't possibly be used any more
9655        in this routine.  Assigning to the local variable will thus
9656        munge parent in the parent process.  */
9657     pid_t
9658       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9659       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9660     /* Convince the compiler that p..p7 are live; otherwise, it might
9661        use the same hardware register for all 8 local variables.  */
9662     if (p != p1 || p != p2 || p != p3 || p != p4
9663         || p != p5 || p != p6 || p != p7)
9664       _exit(1);
9665
9666     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9667        from child file descriptors.  If the child closes a descriptor
9668        before it execs or exits, this munges the parent's descriptor
9669        as well.  Test for this by closing stdout in the child.  */
9670     _exit(close(fileno(stdout)) != 0);
9671   } else {
9672     int status;
9673     struct stat st;
9674
9675     while (wait(&status) != child)
9676       ;
9677     exit(
9678          /* Was there some problem with vforking?  */
9679          child < 0
9680
9681          /* Did the child fail?  (This shouldn't happen.)  */
9682          || status
9683
9684          /* Did the vfork/compiler bug occur?  */
9685          || parent != getpid()
9686
9687          /* Did the file descriptor bug occur?  */
9688          || fstat(fileno(stdout), &st) != 0
9689          );
9690   }
9691 }
9692 _ACEOF
9693 rm -f conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695   (eval $ac_link) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   ac_cv_func_vfork_works=yes
9705 else
9706   echo "$as_me: program exited with status $ac_status" >&5
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ( exit $ac_status )
9711 ac_cv_func_vfork_works=no
9712 fi
9713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9714 fi
9715 fi
9716 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9717 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9718
9719 fi;
9720 if test "x$ac_cv_func_fork_works" = xcross; then
9721   ac_cv_func_vfork_works=$ac_cv_func_vfork
9722   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9723 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9724 fi
9725
9726 if test "x$ac_cv_func_vfork_works" = xyes; then
9727
9728 cat >>confdefs.h <<\_ACEOF
9729 #define HAVE_WORKING_VFORK 1
9730 _ACEOF
9731
9732 else
9733
9734 cat >>confdefs.h <<\_ACEOF
9735 #define vfork fork
9736 _ACEOF
9737
9738 fi
9739 if test "x$ac_cv_func_fork_works" = xyes; then
9740
9741 cat >>confdefs.h <<\_ACEOF
9742 #define HAVE_WORKING_FORK 1
9743 _ACEOF
9744
9745 fi
9746
9747 echo "$as_me:$LINENO: checking for working memcmp" >&5
9748 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9749 if test "${ac_cv_func_memcmp_working+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   if test "$cross_compiling" = yes; then
9753   ac_cv_func_memcmp_working=no
9754 else
9755   cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761 $ac_includes_default
9762 int
9763 main ()
9764 {
9765
9766   /* Some versions of memcmp are not 8-bit clean.  */
9767   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9768   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9769     exit (1);
9770
9771   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9772      or more and with at least one buffer not starting on a 4-byte boundary.
9773      William Lewis provided this test program.   */
9774   {
9775     char foo[21];
9776     char bar[21];
9777     int i;
9778     for (i = 0; i < 4; i++)
9779       {
9780         char *a = foo + i;
9781         char *b = bar + i;
9782         strcpy (a, "--------01111111");
9783         strcpy (b, "--------10000000");
9784         if (memcmp (a, b, 16) >= 0)
9785           exit (1);
9786       }
9787     exit (0);
9788   }
9789
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest$ac_exeext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796   (eval $ac_link) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_cv_func_memcmp_working=yes
9806 else
9807   echo "$as_me: program exited with status $ac_status" >&5
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811 ( exit $ac_status )
9812 ac_cv_func_memcmp_working=no
9813 fi
9814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9815 fi
9816 fi
9817 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9818 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9819 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9820     "memcmp.$ac_objext"   | \
9821   *" memcmp.$ac_objext"   | \
9822     "memcmp.$ac_objext "* | \
9823   *" memcmp.$ac_objext "* ) ;;
9824   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9825 esac
9826
9827
9828
9829
9830 for ac_header in stdlib.h unistd.h
9831 do
9832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834   echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 fi
9839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9841 else
9842   # Is the header compilable?
9843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851 $ac_includes_default
9852 #include <$ac_header>
9853 _ACEOF
9854 rm -f conftest.$ac_objext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856   (eval $ac_compile) 2>conftest.er1
9857   ac_status=$?
9858   grep -v '^ *+' conftest.er1 >conftest.err
9859   rm -f conftest.er1
9860   cat conftest.err >&5
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } &&
9863          { ac_try='test -z "$ac_c_werror_flag"
9864                          || test ! -s conftest.err'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; } &&
9870          { ac_try='test -s conftest.$ac_objext'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876   ac_header_compiler=yes
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_header_compiler=no
9882 fi
9883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6
9886
9887 # Is the header present?
9888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896 #include <$ac_header>
9897 _ACEOF
9898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } >/dev/null; then
9906   if test -s conftest.err; then
9907     ac_cpp_err=$ac_c_preproc_warn_flag
9908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9909   else
9910     ac_cpp_err=
9911   fi
9912 else
9913   ac_cpp_err=yes
9914 fi
9915 if test -z "$ac_cpp_err"; then
9916   ac_header_preproc=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921   ac_header_preproc=no
9922 fi
9923 rm -f conftest.err conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9926
9927 # So?  What about this header?
9928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9929   yes:no: )
9930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9934     ac_header_preproc=yes
9935     ;;
9936   no:yes:* )
9937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9949     (
9950       cat <<\_ASBOX
9951 ## ------------------------------- ##
9952 ## Report this to root@mput.dip.jp ##
9953 ## ------------------------------- ##
9954 _ASBOX
9955     ) |
9956       sed "s/^/$as_me: WARNING:     /" >&2
9957     ;;
9958 esac
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   eval "$as_ac_Header=\$ac_header_preproc"
9965 fi
9966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9968
9969 fi
9970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9971   cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9973 _ACEOF
9974
9975 fi
9976
9977 done
9978
9979
9980 for ac_func in getpagesize
9981 do
9982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9983 echo "$as_me:$LINENO: checking for $ac_func" >&5
9984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9985 if eval "test \"\${$as_ac_var+set}\" = set"; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9996 #define $ac_func innocuous_$ac_func
9997
9998 /* System header to define __stub macros and hopefully few prototypes,
9999     which can conflict with char $ac_func (); below.
10000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10001     <limits.h> exists even on freestanding compilers.  */
10002
10003 #ifdef __STDC__
10004 # include <limits.h>
10005 #else
10006 # include <assert.h>
10007 #endif
10008
10009 #undef $ac_func
10010
10011 /* Override any gcc2 internal prototype to avoid an error.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 {
10015 #endif
10016 /* We use char because int might match the return type of a gcc2
10017    builtin and then its argument prototype would still apply.  */
10018 char $ac_func ();
10019 /* The GNU C library defines this for functions which it implements
10020     to always fail with ENOSYS.  Some functions are actually named
10021     something starting with __ and the normal name is an alias.  */
10022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10023 choke me
10024 #else
10025 char (*f) () = $ac_func;
10026 #endif
10027 #ifdef __cplusplus
10028 }
10029 #endif
10030
10031 int
10032 main ()
10033 {
10034 return f != $ac_func;
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041   (eval $ac_link) 2>conftest.er1
10042   ac_status=$?
10043   grep -v '^ *+' conftest.er1 >conftest.err
10044   rm -f conftest.er1
10045   cat conftest.err >&5
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } &&
10048          { ac_try='test -z "$ac_c_werror_flag"
10049                          || test ! -s conftest.err'
10050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051   (eval $ac_try) 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); }; } &&
10055          { ac_try='test -s conftest$ac_exeext'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; }; then
10061   eval "$as_ac_var=yes"
10062 else
10063   echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 eval "$as_ac_var=no"
10067 fi
10068 rm -f conftest.err conftest.$ac_objext \
10069       conftest$ac_exeext conftest.$ac_ext
10070 fi
10071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10073 if test `eval echo '${'$as_ac_var'}'` = yes; then
10074   cat >>confdefs.h <<_ACEOF
10075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10076 _ACEOF
10077
10078 fi
10079 done
10080
10081 echo "$as_me:$LINENO: checking for working mmap" >&5
10082 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10083 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   if test "$cross_compiling" = yes; then
10087   ac_cv_func_mmap_fixed_mapped=no
10088 else
10089   cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 $ac_includes_default
10096 /* malloc might have been renamed as rpl_malloc. */
10097 #undef malloc
10098
10099 /* Thanks to Mike Haertel and Jim Avera for this test.
10100    Here is a matrix of mmap possibilities:
10101         mmap private not fixed
10102         mmap private fixed at somewhere currently unmapped
10103         mmap private fixed at somewhere already mapped
10104         mmap shared not fixed
10105         mmap shared fixed at somewhere currently unmapped
10106         mmap shared fixed at somewhere already mapped
10107    For private mappings, we should verify that changes cannot be read()
10108    back from the file, nor mmap's back from the file at a different
10109    address.  (There have been systems where private was not correctly
10110    implemented like the infamous i386 svr4.0, and systems where the
10111    VM page cache was not coherent with the file system buffer cache
10112    like early versions of FreeBSD and possibly contemporary NetBSD.)
10113    For shared mappings, we should conversely verify that changes get
10114    propagated back to all the places they're supposed to be.
10115
10116    Grep wants private fixed already mapped.
10117    The main things grep needs to know about mmap are:
10118    * does it exist and is it safe to write into the mmap'd area
10119    * how to use it (BSD variants)  */
10120
10121 #include <fcntl.h>
10122 #include <sys/mman.h>
10123
10124 #if !STDC_HEADERS && !HAVE_STDLIB_H
10125 char *malloc ();
10126 #endif
10127
10128 /* This mess was copied from the GNU getpagesize.h.  */
10129 #if !HAVE_GETPAGESIZE
10130 /* Assume that all systems that can run configure have sys/param.h.  */
10131 # if !HAVE_SYS_PARAM_H
10132 #  define HAVE_SYS_PARAM_H 1
10133 # endif
10134
10135 # ifdef _SC_PAGESIZE
10136 #  define getpagesize() sysconf(_SC_PAGESIZE)
10137 # else /* no _SC_PAGESIZE */
10138 #  if HAVE_SYS_PARAM_H
10139 #   include <sys/param.h>
10140 #   ifdef EXEC_PAGESIZE
10141 #    define getpagesize() EXEC_PAGESIZE
10142 #   else /* no EXEC_PAGESIZE */
10143 #    ifdef NBPG
10144 #     define getpagesize() NBPG * CLSIZE
10145 #     ifndef CLSIZE
10146 #      define CLSIZE 1
10147 #     endif /* no CLSIZE */
10148 #    else /* no NBPG */
10149 #     ifdef NBPC
10150 #      define getpagesize() NBPC
10151 #     else /* no NBPC */
10152 #      ifdef PAGESIZE
10153 #       define getpagesize() PAGESIZE
10154 #      endif /* PAGESIZE */
10155 #     endif /* no NBPC */
10156 #    endif /* no NBPG */
10157 #   endif /* no EXEC_PAGESIZE */
10158 #  else /* no HAVE_SYS_PARAM_H */
10159 #   define getpagesize() 8192   /* punt totally */
10160 #  endif /* no HAVE_SYS_PARAM_H */
10161 # endif /* no _SC_PAGESIZE */
10162
10163 #endif /* no HAVE_GETPAGESIZE */
10164
10165 int
10166 main ()
10167 {
10168   char *data, *data2, *data3;
10169   int i, pagesize;
10170   int fd;
10171
10172   pagesize = getpagesize ();
10173
10174   /* First, make a file with some known garbage in it. */
10175   data = (char *) malloc (pagesize);
10176   if (!data)
10177     exit (1);
10178   for (i = 0; i < pagesize; ++i)
10179     *(data + i) = rand ();
10180   umask (0);
10181   fd = creat ("conftest.mmap", 0600);
10182   if (fd < 0)
10183     exit (1);
10184   if (write (fd, data, pagesize) != pagesize)
10185     exit (1);
10186   close (fd);
10187
10188   /* Next, try to mmap the file at a fixed address which already has
10189      something else allocated at it.  If we can, also make sure that
10190      we see the same garbage.  */
10191   fd = open ("conftest.mmap", O_RDWR);
10192   if (fd < 0)
10193     exit (1);
10194   data2 = (char *) malloc (2 * pagesize);
10195   if (!data2)
10196     exit (1);
10197   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10198   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10199                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10200     exit (1);
10201   for (i = 0; i < pagesize; ++i)
10202     if (*(data + i) != *(data2 + i))
10203       exit (1);
10204
10205   /* Finally, make sure that changes to the mapped area do not
10206      percolate back to the file as seen by read().  (This is a bug on
10207      some variants of i386 svr4.0.)  */
10208   for (i = 0; i < pagesize; ++i)
10209     *(data2 + i) = *(data2 + i) + 1;
10210   data3 = (char *) malloc (pagesize);
10211   if (!data3)
10212     exit (1);
10213   if (read (fd, data3, pagesize) != pagesize)
10214     exit (1);
10215   for (i = 0; i < pagesize; ++i)
10216     if (*(data + i) != *(data3 + i))
10217       exit (1);
10218   close (fd);
10219   exit (0);
10220 }
10221 _ACEOF
10222 rm -f conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224   (eval $ac_link) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229   (eval $ac_try) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; }; then
10233   ac_cv_func_mmap_fixed_mapped=yes
10234 else
10235   echo "$as_me: program exited with status $ac_status" >&5
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 ( exit $ac_status )
10240 ac_cv_func_mmap_fixed_mapped=no
10241 fi
10242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10243 fi
10244 fi
10245 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10248
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_MMAP 1
10251 _ACEOF
10252
10253 fi
10254 rm -f conftest.mmap
10255
10256 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10257 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10258 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10259   echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261   ac_cv_func_setvbuf_reversed=no
10262    cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h.  */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h.  */
10268 #include <stdio.h>
10269 #         if PROTOTYPES
10270            int (setvbuf) (FILE *, int, char *, size_t);
10271 #         endif
10272 int
10273 main ()
10274 {
10275 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282   (eval $ac_link) 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } &&
10289          { ac_try='test -z "$ac_c_werror_flag"
10290                          || test ! -s conftest.err'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; } &&
10296          { ac_try='test -s conftest$ac_exeext'
10297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298   (eval $ac_try) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 #include <stdio.h>
10309 #            if PROTOTYPES
10310               int (setvbuf) (FILE *, int, char *, size_t);
10311 #            endif
10312 int
10313 main ()
10314 {
10315 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322   (eval $ac_link) 2>conftest.er1
10323   ac_status=$?
10324   grep -v '^ *+' conftest.er1 >conftest.err
10325   rm -f conftest.er1
10326   cat conftest.err >&5
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -z "$ac_c_werror_flag"
10330                          || test ! -s conftest.err'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; } &&
10336          { ac_try='test -s conftest$ac_exeext'
10337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338   (eval $ac_try) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; }; then
10342   # It compiles and links either way, so it must not be declared
10343          # with a prototype and most likely this is a K&R C compiler.
10344          # Try running it.
10345          if test "$cross_compiling" = yes; then
10346   : # Assume setvbuf is not reversed when cross-compiling.
10347 else
10348   cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354 #include <stdio.h>
10355 int
10356 main ()
10357 {
10358 /* This call has the arguments reversed.
10359                    A reversed system may check and see that the address of buf
10360                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10361                 char buf;
10362                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10363                   exit (1);
10364                 putchar ('\r');
10365                 exit (0); /* Non-reversed systems SEGV here.  */
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372   (eval $ac_link) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377   (eval $ac_try) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); }; }; then
10381   ac_cv_func_setvbuf_reversed=yes
10382 else
10383   echo "$as_me: program exited with status $ac_status" >&5
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ( exit $ac_status )
10388 rm -f core *.core
10389 fi
10390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10391 fi
10392         ac_cv_func_setvbuf_reversed=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 fi
10398 rm -f conftest.err conftest.$ac_objext \
10399       conftest$ac_exeext conftest.$ac_ext
10400 else
10401   echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404 fi
10405 rm -f conftest.err conftest.$ac_objext \
10406       conftest$ac_exeext conftest.$ac_ext
10407 fi
10408 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10409 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10410 if test $ac_cv_func_setvbuf_reversed = yes; then
10411
10412 cat >>confdefs.h <<\_ACEOF
10413 #define SETVBUF_REVERSED 1
10414 _ACEOF
10415
10416 fi
10417
10418 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10419 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10420 if test "${ac_cv_type_signal+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429 #include <sys/types.h>
10430 #include <signal.h>
10431 #ifdef signal
10432 # undef signal
10433 #endif
10434 #ifdef __cplusplus
10435 extern "C" void (*signal (int, void (*)(int)))(int);
10436 #else
10437 void (*signal ()) ();
10438 #endif
10439
10440 int
10441 main ()
10442 {
10443 int i;
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450   (eval $ac_compile) 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -z "$ac_c_werror_flag"
10458                          || test ! -s conftest.err'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; } &&
10464          { ac_try='test -s conftest.$ac_objext'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }; then
10470   ac_cv_type_signal=void
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475 ac_cv_type_signal=int
10476 fi
10477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10478 fi
10479 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10480 echo "${ECHO_T}$ac_cv_type_signal" >&6
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define RETSIGTYPE $ac_cv_type_signal
10484 _ACEOF
10485
10486
10487
10488 for ac_func in vprintf
10489 do
10490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10491 echo "$as_me:$LINENO: checking for $ac_func" >&5
10492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10493 if eval "test \"\${$as_ac_var+set}\" = set"; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496   cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10504 #define $ac_func innocuous_$ac_func
10505
10506 /* System header to define __stub macros and hopefully few prototypes,
10507     which can conflict with char $ac_func (); below.
10508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10509     <limits.h> exists even on freestanding compilers.  */
10510
10511 #ifdef __STDC__
10512 # include <limits.h>
10513 #else
10514 # include <assert.h>
10515 #endif
10516
10517 #undef $ac_func
10518
10519 /* Override any gcc2 internal prototype to avoid an error.  */
10520 #ifdef __cplusplus
10521 extern "C"
10522 {
10523 #endif
10524 /* We use char because int might match the return type of a gcc2
10525    builtin and then its argument prototype would still apply.  */
10526 char $ac_func ();
10527 /* The GNU C library defines this for functions which it implements
10528     to always fail with ENOSYS.  Some functions are actually named
10529     something starting with __ and the normal name is an alias.  */
10530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10531 choke me
10532 #else
10533 char (*f) () = $ac_func;
10534 #endif
10535 #ifdef __cplusplus
10536 }
10537 #endif
10538
10539 int
10540 main ()
10541 {
10542 return f != $ac_func;
10543   ;
10544   return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549   (eval $ac_link) 2>conftest.er1
10550   ac_status=$?
10551   grep -v '^ *+' conftest.er1 >conftest.err
10552   rm -f conftest.er1
10553   cat conftest.err >&5
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } &&
10556          { ac_try='test -z "$ac_c_werror_flag"
10557                          || test ! -s conftest.err'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; } &&
10563          { ac_try='test -s conftest$ac_exeext'
10564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565   (eval $ac_try) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   eval "$as_ac_var=yes"
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 eval "$as_ac_var=no"
10575 fi
10576 rm -f conftest.err conftest.$ac_objext \
10577       conftest$ac_exeext conftest.$ac_ext
10578 fi
10579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10581 if test `eval echo '${'$as_ac_var'}'` = yes; then
10582   cat >>confdefs.h <<_ACEOF
10583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10584 _ACEOF
10585
10586 echo "$as_me:$LINENO: checking for _doprnt" >&5
10587 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10588 if test "${ac_cv_func__doprnt+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h.  */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h.  */
10597 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10599 #define _doprnt innocuous__doprnt
10600
10601 /* System header to define __stub macros and hopefully few prototypes,
10602     which can conflict with char _doprnt (); below.
10603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10604     <limits.h> exists even on freestanding compilers.  */
10605
10606 #ifdef __STDC__
10607 # include <limits.h>
10608 #else
10609 # include <assert.h>
10610 #endif
10611
10612 #undef _doprnt
10613
10614 /* Override any gcc2 internal prototype to avoid an error.  */
10615 #ifdef __cplusplus
10616 extern "C"
10617 {
10618 #endif
10619 /* We use char because int might match the return type of a gcc2
10620    builtin and then its argument prototype would still apply.  */
10621 char _doprnt ();
10622 /* The GNU C library defines this for functions which it implements
10623     to always fail with ENOSYS.  Some functions are actually named
10624     something starting with __ and the normal name is an alias.  */
10625 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10626 choke me
10627 #else
10628 char (*f) () = _doprnt;
10629 #endif
10630 #ifdef __cplusplus
10631 }
10632 #endif
10633
10634 int
10635 main ()
10636 {
10637 return f != _doprnt;
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644   (eval $ac_link) 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } &&
10651          { ac_try='test -z "$ac_c_werror_flag"
10652                          || test ! -s conftest.err'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; } &&
10658          { ac_try='test -s conftest$ac_exeext'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   ac_cv_func__doprnt=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_cv_func__doprnt=no
10670 fi
10671 rm -f conftest.err conftest.$ac_objext \
10672       conftest$ac_exeext conftest.$ac_ext
10673 fi
10674 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10675 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10676 if test $ac_cv_func__doprnt = yes; then
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_DOPRNT 1
10680 _ACEOF
10681
10682 fi
10683
10684 fi
10685 done
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721 for ac_func in \
10722   alarm \
10723   dup2 \
10724   floor \
10725   getcwd \
10726   getopt \
10727   gethostbyname \
10728   gettimeofday \
10729   getwd \
10730   isatty \
10731   memchr \
10732   memmove \
10733   memset \
10734   modf \
10735   munmap \
10736   popen \
10737   pow \
10738   select \
10739   signal \
10740   socket \
10741   sleep \
10742   vsnprintf \
10743   snprintf \
10744   sqrt \
10745   strchr \
10746   strdup \
10747   strstr \
10748   strerror \
10749   strcasecmp \
10750   strncasecmp \
10751   strrchr \
10752   strstr \
10753   strtol \
10754   usleep
10755 do
10756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10757 echo "$as_me:$LINENO: checking for $ac_func" >&5
10758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10759 if eval "test \"\${$as_ac_var+set}\" = set"; then
10760   echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762   cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h.  */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h.  */
10768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10770 #define $ac_func innocuous_$ac_func
10771
10772 /* System header to define __stub macros and hopefully few prototypes,
10773     which can conflict with char $ac_func (); below.
10774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10775     <limits.h> exists even on freestanding compilers.  */
10776
10777 #ifdef __STDC__
10778 # include <limits.h>
10779 #else
10780 # include <assert.h>
10781 #endif
10782
10783 #undef $ac_func
10784
10785 /* Override any gcc2 internal prototype to avoid an error.  */
10786 #ifdef __cplusplus
10787 extern "C"
10788 {
10789 #endif
10790 /* We use char because int might match the return type of a gcc2
10791    builtin and then its argument prototype would still apply.  */
10792 char $ac_func ();
10793 /* The GNU C library defines this for functions which it implements
10794     to always fail with ENOSYS.  Some functions are actually named
10795     something starting with __ and the normal name is an alias.  */
10796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10797 choke me
10798 #else
10799 char (*f) () = $ac_func;
10800 #endif
10801 #ifdef __cplusplus
10802 }
10803 #endif
10804
10805 int
10806 main ()
10807 {
10808 return f != $ac_func;
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10815   (eval $ac_link) 2>conftest.er1
10816   ac_status=$?
10817   grep -v '^ *+' conftest.er1 >conftest.err
10818   rm -f conftest.er1
10819   cat conftest.err >&5
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); } &&
10822          { ac_try='test -z "$ac_c_werror_flag"
10823                          || test ! -s conftest.err'
10824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825   (eval $ac_try) 2>&5
10826   ac_status=$?
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); }; } &&
10829          { ac_try='test -s conftest$ac_exeext'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; }; then
10835   eval "$as_ac_var=yes"
10836 else
10837   echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840 eval "$as_ac_var=no"
10841 fi
10842 rm -f conftest.err conftest.$ac_objext \
10843       conftest$ac_exeext conftest.$ac_ext
10844 fi
10845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10847 if test `eval echo '${'$as_ac_var'}'` = yes; then
10848   cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10850 _ACEOF
10851
10852 fi
10853 done
10854
10855 echo "$as_me:$LINENO: checking for getopt_long" >&5
10856 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10857 if test "${ac_cv_func_getopt_long+set}" = set; then
10858   echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860   cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h.  */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h.  */
10866 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10868 #define getopt_long innocuous_getopt_long
10869
10870 /* System header to define __stub macros and hopefully few prototypes,
10871     which can conflict with char getopt_long (); below.
10872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10873     <limits.h> exists even on freestanding compilers.  */
10874
10875 #ifdef __STDC__
10876 # include <limits.h>
10877 #else
10878 # include <assert.h>
10879 #endif
10880
10881 #undef getopt_long
10882
10883 /* Override any gcc2 internal prototype to avoid an error.  */
10884 #ifdef __cplusplus
10885 extern "C"
10886 {
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889    builtin and then its argument prototype would still apply.  */
10890 char getopt_long ();
10891 /* The GNU C library defines this for functions which it implements
10892     to always fail with ENOSYS.  Some functions are actually named
10893     something starting with __ and the normal name is an alias.  */
10894 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10895 choke me
10896 #else
10897 char (*f) () = getopt_long;
10898 #endif
10899 #ifdef __cplusplus
10900 }
10901 #endif
10902
10903 int
10904 main ()
10905 {
10906 return f != getopt_long;
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913   (eval $ac_link) 2>conftest.er1
10914   ac_status=$?
10915   grep -v '^ *+' conftest.er1 >conftest.err
10916   rm -f conftest.er1
10917   cat conftest.err >&5
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -z "$ac_c_werror_flag"
10921                          || test ! -s conftest.err'
10922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923   (eval $ac_try) 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }; } &&
10927          { ac_try='test -s conftest$ac_exeext'
10928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929   (eval $ac_try) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); }; }; then
10933   ac_cv_func_getopt_long=yes
10934 else
10935   echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 ac_cv_func_getopt_long=no
10939 fi
10940 rm -f conftest.err conftest.$ac_objext \
10941       conftest$ac_exeext conftest.$ac_ext
10942 fi
10943 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10944 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10945 if test $ac_cv_func_getopt_long = yes; then
10946
10947 cat >>confdefs.h <<\_ACEOF
10948 #define HAVE_GETOPT_LONG 1
10949 _ACEOF
10950
10951          tm_cv_needgetopt="no"
10952 else
10953   tm_cv_needgetopt="yes"
10954 fi
10955
10956
10957
10958 if test "x$tm_cv_needgetopt" = "xyes"; then
10959   NEEDGETOPT_TRUE=
10960   NEEDGETOPT_FALSE='#'
10961 else
10962   NEEDGETOPT_TRUE='#'
10963   NEEDGETOPT_FALSE=
10964 fi
10965
10966
10967 # Checks on cygnus
10968 if test "x$CYGNUS" = xyes; then
10969   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
10970   *yes*)
10971     echo "$as_me:$LINENO: checking for opendir" >&5
10972 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10973 if test "${ac_cv_func_opendir+set}" = set; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
10983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10984 #define opendir innocuous_opendir
10985
10986 /* System header to define __stub macros and hopefully few prototypes,
10987     which can conflict with char opendir (); below.
10988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10989     <limits.h> exists even on freestanding compilers.  */
10990
10991 #ifdef __STDC__
10992 # include <limits.h>
10993 #else
10994 # include <assert.h>
10995 #endif
10996
10997 #undef opendir
10998
10999 /* Override any gcc2 internal prototype to avoid an error.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 {
11003 #endif
11004 /* We use char because int might match the return type of a gcc2
11005    builtin and then its argument prototype would still apply.  */
11006 char opendir ();
11007 /* The GNU C library defines this for functions which it implements
11008     to always fail with ENOSYS.  Some functions are actually named
11009     something starting with __ and the normal name is an alias.  */
11010 #if defined (__stub_opendir) || defined (__stub___opendir)
11011 choke me
11012 #else
11013 char (*f) () = opendir;
11014 #endif
11015 #ifdef __cplusplus
11016 }
11017 #endif
11018
11019 int
11020 main ()
11021 {
11022 return f != opendir;
11023   ;
11024   return 0;
11025 }
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029   (eval $ac_link) 2>conftest.er1
11030   ac_status=$?
11031   grep -v '^ *+' conftest.er1 >conftest.err
11032   rm -f conftest.er1
11033   cat conftest.err >&5
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); } &&
11036          { ac_try='test -z "$ac_c_werror_flag"
11037                          || test ! -s conftest.err'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; } &&
11043          { ac_try='test -s conftest$ac_exeext'
11044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045   (eval $ac_try) 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; }; then
11049   ac_cv_func_opendir=yes
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_cv_func_opendir=no
11055 fi
11056 rm -f conftest.err conftest.$ac_objext \
11057       conftest$ac_exeext conftest.$ac_ext
11058 fi
11059 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11060 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11061 if test $ac_cv_func_opendir = yes; then
11062   :
11063 else
11064    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11065     W32READDIR=yes
11066 fi
11067
11068     ;;
11069   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11070     W32READDIR=yes
11071     ;;
11072   esac
11073   if test "x$enable_network" = "xyes"; then
11074     echo "$as_me:$LINENO: checking for socket" >&5
11075 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11076 if test "${ac_cv_func_socket+set}" = set; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079   cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h.  */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h.  */
11085 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11087 #define socket innocuous_socket
11088
11089 /* System header to define __stub macros and hopefully few prototypes,
11090     which can conflict with char socket (); below.
11091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092     <limits.h> exists even on freestanding compilers.  */
11093
11094 #ifdef __STDC__
11095 # include <limits.h>
11096 #else
11097 # include <assert.h>
11098 #endif
11099
11100 #undef socket
11101
11102 /* Override any gcc2 internal prototype to avoid an error.  */
11103 #ifdef __cplusplus
11104 extern "C"
11105 {
11106 #endif
11107 /* We use char because int might match the return type of a gcc2
11108    builtin and then its argument prototype would still apply.  */
11109 char socket ();
11110 /* The GNU C library defines this for functions which it implements
11111     to always fail with ENOSYS.  Some functions are actually named
11112     something starting with __ and the normal name is an alias.  */
11113 #if defined (__stub_socket) || defined (__stub___socket)
11114 choke me
11115 #else
11116 char (*f) () = socket;
11117 #endif
11118 #ifdef __cplusplus
11119 }
11120 #endif
11121
11122 int
11123 main ()
11124 {
11125 return f != socket;
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132   (eval $ac_link) 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } &&
11139          { ac_try='test -z "$ac_c_werror_flag"
11140                          || test ! -s conftest.err'
11141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142   (eval $ac_try) 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; } &&
11146          { ac_try='test -s conftest$ac_exeext'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_cv_func_socket=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_cv_func_socket=no
11158 fi
11159 rm -f conftest.err conftest.$ac_objext \
11160       conftest$ac_exeext conftest.$ac_ext
11161 fi
11162 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11163 echo "${ECHO_T}$ac_cv_func_socket" >&6
11164 if test $ac_cv_func_socket = yes; then
11165   :
11166 else
11167   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11168 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11169 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11170 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   ac_save_LIBS="$LIBS"
11174 LIBS="-lwsock32  $LIBS"
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 #include <windows.h>
11182 #include <winsock.h>
11183
11184 int
11185 main ()
11186 {
11187 WSAStartup(0,0);
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194   (eval $ac_link) 2>conftest.er1
11195   ac_status=$?
11196   grep -v '^ *+' conftest.er1 >conftest.err
11197   rm -f conftest.er1
11198   cat conftest.err >&5
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } &&
11201          { ac_try='test -z "$ac_c_werror_flag"
11202                          || test ! -s conftest.err'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; } &&
11208          { ac_try='test -s conftest$ac_exeext'
11209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210   (eval $ac_try) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; }; then
11214   eval "wapi_cv_lib_$ac_lib_var=yes"
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 eval "wapi_cv_lib_$ac_lib_var=no"
11220 fi
11221 rm -f conftest.err conftest.$ac_objext \
11222       conftest$ac_exeext conftest.$ac_ext
11223 LIBS="$ac_save_LIBS"
11224
11225 fi
11226 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11227   echo "$as_me:$LINENO: result: yes" >&5
11228 echo "${ECHO_T}yes" >&6
11229    EXTRALIBS="$EXTRALIBS -lwsock32"
11230     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11231 else
11232   echo "$as_me:$LINENO: result: no" >&5
11233 echo "${ECHO_T}no" >&6
11234 fi
11235
11236 fi
11237
11238   fi
11239 fi
11240
11241 # Checks on Mingw
11242 if test "x$MINGW" = xyes; then
11243   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
11244   *yes*)
11245     echo "$as_me:$LINENO: checking for opendir" >&5
11246 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11247 if test "${ac_cv_func_opendir+set}" = set; then
11248   echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250   cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h.  */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h.  */
11256 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11258 #define opendir innocuous_opendir
11259
11260 /* System header to define __stub macros and hopefully few prototypes,
11261     which can conflict with char opendir (); below.
11262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263     <limits.h> exists even on freestanding compilers.  */
11264
11265 #ifdef __STDC__
11266 # include <limits.h>
11267 #else
11268 # include <assert.h>
11269 #endif
11270
11271 #undef opendir
11272
11273 /* Override any gcc2 internal prototype to avoid an error.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 {
11277 #endif
11278 /* We use char because int might match the return type of a gcc2
11279    builtin and then its argument prototype would still apply.  */
11280 char opendir ();
11281 /* The GNU C library defines this for functions which it implements
11282     to always fail with ENOSYS.  Some functions are actually named
11283     something starting with __ and the normal name is an alias.  */
11284 #if defined (__stub_opendir) || defined (__stub___opendir)
11285 choke me
11286 #else
11287 char (*f) () = opendir;
11288 #endif
11289 #ifdef __cplusplus
11290 }
11291 #endif
11292
11293 int
11294 main ()
11295 {
11296 return f != opendir;
11297   ;
11298   return 0;
11299 }
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303   (eval $ac_link) 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } &&
11310          { ac_try='test -z "$ac_c_werror_flag"
11311                          || test ! -s conftest.err'
11312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313   (eval $ac_try) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); }; } &&
11317          { ac_try='test -s conftest$ac_exeext'
11318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319   (eval $ac_try) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }; then
11323   ac_cv_func_opendir=yes
11324 else
11325   echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11327
11328 ac_cv_func_opendir=no
11329 fi
11330 rm -f conftest.err conftest.$ac_objext \
11331       conftest$ac_exeext conftest.$ac_ext
11332 fi
11333 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11334 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11335 if test $ac_cv_func_opendir = yes; then
11336   :
11337 else
11338    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11339     W32READDIR=yes
11340 fi
11341
11342     ;;
11343   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11344     W32READDIR=yes
11345     ;;
11346   esac
11347   if test "x$enable_network" = "xyes"; then
11348     echo "$as_me:$LINENO: checking for socket" >&5
11349 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11350 if test "${ac_cv_func_socket+set}" = set; then
11351   echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353   cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11361 #define socket innocuous_socket
11362
11363 /* System header to define __stub macros and hopefully few prototypes,
11364     which can conflict with char socket (); below.
11365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11366     <limits.h> exists even on freestanding compilers.  */
11367
11368 #ifdef __STDC__
11369 # include <limits.h>
11370 #else
11371 # include <assert.h>
11372 #endif
11373
11374 #undef socket
11375
11376 /* Override any gcc2 internal prototype to avoid an error.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 {
11380 #endif
11381 /* We use char because int might match the return type of a gcc2
11382    builtin and then its argument prototype would still apply.  */
11383 char socket ();
11384 /* The GNU C library defines this for functions which it implements
11385     to always fail with ENOSYS.  Some functions are actually named
11386     something starting with __ and the normal name is an alias.  */
11387 #if defined (__stub_socket) || defined (__stub___socket)
11388 choke me
11389 #else
11390 char (*f) () = socket;
11391 #endif
11392 #ifdef __cplusplus
11393 }
11394 #endif
11395
11396 int
11397 main ()
11398 {
11399 return f != socket;
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406   (eval $ac_link) 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } &&
11413          { ac_try='test -z "$ac_c_werror_flag"
11414                          || test ! -s conftest.err'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; } &&
11420          { ac_try='test -s conftest$ac_exeext'
11421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422   (eval $ac_try) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); }; }; then
11426   ac_cv_func_socket=yes
11427 else
11428   echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 ac_cv_func_socket=no
11432 fi
11433 rm -f conftest.err conftest.$ac_objext \
11434       conftest$ac_exeext conftest.$ac_ext
11435 fi
11436 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11437 echo "${ECHO_T}$ac_cv_func_socket" >&6
11438 if test $ac_cv_func_socket = yes; then
11439   :
11440 else
11441   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11442 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11443 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11444 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   ac_save_LIBS="$LIBS"
11448 LIBS="-lwsock32  $LIBS"
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 #include <windows.h>
11456 #include <winsock.h>
11457
11458 int
11459 main ()
11460 {
11461 WSAStartup(0,0);
11462   ;
11463   return 0;
11464 }
11465 _ACEOF
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468   (eval $ac_link) 2>conftest.er1
11469   ac_status=$?
11470   grep -v '^ *+' conftest.er1 >conftest.err
11471   rm -f conftest.er1
11472   cat conftest.err >&5
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -z "$ac_c_werror_flag"
11476                          || test ! -s conftest.err'
11477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478   (eval $ac_try) 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; } &&
11482          { ac_try='test -s conftest$ac_exeext'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; }; then
11488   eval "wapi_cv_lib_$ac_lib_var=yes"
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 eval "wapi_cv_lib_$ac_lib_var=no"
11494 fi
11495 rm -f conftest.err conftest.$ac_objext \
11496       conftest$ac_exeext conftest.$ac_ext
11497 LIBS="$ac_save_LIBS"
11498
11499 fi
11500 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11501   echo "$as_me:$LINENO: result: yes" >&5
11502 echo "${ECHO_T}yes" >&6
11503    EXTRALIBS="$EXTRALIBS -lwsock32"
11504     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11505 else
11506   echo "$as_me:$LINENO: result: no" >&5
11507 echo "${ECHO_T}no" >&6
11508 fi
11509
11510 fi
11511
11512   fi
11513 fi
11514
11515 # Checks on extra paths
11516
11517
11518 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11519 if test "${with_tcl_includes+set}" = set; then
11520   withval="$with_tcl_includes"
11521    if test ! -d $withval; then
11522       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11523 echo "$as_me: WARNING: $withval is not found." >&2;}
11524     fi
11525     tcl_include_dir="-I$withval"
11526
11527 fi;
11528
11529 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11530 if test "${with_tcl_libs+set}" = set; then
11531   withval="$with_tcl_libs"
11532    if test ! -d $withval; then
11533       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11534 echo "$as_me: WARNING: $withval is not found." >&2;}
11535     fi
11536     tcl_libdir="-L$withval"
11537 fi;
11538
11539 # Check whether --with-tk-includes or --without-tk-includes was given.
11540 if test "${with_tk_includes+set}" = set; then
11541   withval="$with_tk_includes"
11542    if test ! -d $withval; then
11543       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11544 echo "$as_me: WARNING: $withval is not found." >&2;}
11545     fi
11546     tk_includes="-I$withval"
11547 fi;
11548
11549 # Check whether --with-tk-libs or --without-tk-libs was given.
11550 if test "${with_tk_libs+set}" = set; then
11551   withval="$with_tk_libs"
11552    if test ! -d $withval; then
11553       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11554 echo "$as_me: WARNING: $withval is not found." >&2;}
11555     fi
11556     tk_libdir="-L$withval"
11557 fi;
11558
11559
11560 # Check whether --with-offix-includes or --without-offix-includes was given.
11561 if test "${with_offix_includes+set}" = set; then
11562   withval="$with_offix_includes"
11563    if test ! -d $withval; then
11564       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11565 echo "$as_me: WARNING: $withval is not found." >&2;}
11566     fi
11567     offix_include_dir="-I$withval"
11568 fi;
11569
11570 # Check whether --with-offix-libs or --without-offix-libs was given.
11571 if test "${with_offix_libs+set}" = set; then
11572   withval="$with_offix_libs"
11573    if test ! -d $withval; then
11574       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11575 echo "$as_me: WARNING: $withval is not found." >&2;}
11576     fi
11577     offix_lib_dir="-L$withval"
11578 fi;
11579
11580
11581 #
11582 # audio section
11583 #
11584
11585 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11586
11587
11588 # Check whether --with-nas-library or --without-nas-library was given.
11589 if test "${with_nas_library+set}" = set; then
11590   withval="$with_nas_library"
11591
11592 fi;
11593
11594 # Check whether --with-nas-includes or --without-nas-includes was given.
11595 if test "${with_nas_includes+set}" = set; then
11596   withval="$with_nas_includes"
11597
11598 fi;
11599
11600
11601 # Check whether --enable-audio or --disable-audio was given.
11602 if test "${enable_audio+set}" = set; then
11603   enableval="$enable_audio"
11604    enable_audio=$enableval
11605     have_audio_opt=yes
11606 else
11607    enable_audio=yes
11608     have_audio_opt=no
11609 fi;
11610
11611 test "x$enable_audio" = xyes && enable_audio=default
11612
11613 if test "x$enable_audio" != xno; then
11614   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11615     eval "au_enable_$i=yes"
11616   done
11617 fi
11618
11619 DEFAULT_PLAYMODE=
11620
11621 # Check whether --with-default-output or --without-default-output was given.
11622 if test "${with_default_output+set}" = set; then
11623   withval="$with_default_output"
11624    if test "$enable_audio" != no; then
11625     DEFAULT_PLAYMODE=$withval
11626     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11627   else
11628     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11629 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11630   fi
11631 fi;
11632
11633
11634 if test "x$au_enable_default" = xyes; then
11635   case "$target" in
11636   *-*-linux*|*-*-freebsd*)
11637     au_enable_oss=yes
11638     ;;
11639   *-*-bsdi2.0)
11640     au_enable_sb_dsp=yes
11641     ;;
11642   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11643     au_enable_oss=yes
11644     ;;
11645   *-*-hpux*)
11646     au_enable_hpux=yes
11647     ;;
11648   *-dec-*)
11649     au_enable_mme=yes
11650     ;;
11651   *irix*)
11652     au_enable_irix=yes
11653     ;;
11654   *-*-sunos4*)
11655     au_enable_sun=yes
11656     ;;
11657   *-*-solaris*)
11658     au_enable_sun=yes
11659     ;;
11660   *-*-netbsd*)
11661     au_enable_sun=yes
11662     ;;
11663   *-*-cygwin*)
11664     au_enable_w32=yes
11665     ;;
11666   *-*-mingw*)
11667     au_enable_w32=yes
11668     ;;
11669   *-*-darwin*)
11670     au_enable_darwin=yes
11671     ;;
11672   *)
11673     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11674 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11675     ;;
11676   esac
11677 fi
11678
11679
11680 # Each audio mode's configurations
11681 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11682 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11683 if test "x$au_enable_oss" = xyes; then
11684   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11685   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11686   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11687     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11688 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11689   else
11690     case "$target" in
11691       *linux*|*freebsd*)
11692                 echo "$as_me:$LINENO: result: yes" >&5
11693 echo "${ECHO_T}yes" >&6
11694         ;;
11695       *)
11696         if test "x$ac_cv_header_soundcard_h" = xyes; then
11697           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11698 echo "${ECHO_T}yes - <soundcard.h>" >&6
11699         else
11700           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11701 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11702         fi
11703         ;;
11704     esac
11705   fi
11706
11707 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11708 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11709 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-lossaudio  $LIBS"
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720
11721 /* Override any gcc2 internal prototype to avoid an error.  */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 /* We use char because int might match the return type of a gcc2
11726    builtin and then its argument prototype would still apply.  */
11727 char open ();
11728 int
11729 main ()
11730 {
11731 open ();
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738   (eval $ac_link) 2>conftest.er1
11739   ac_status=$?
11740   grep -v '^ *+' conftest.er1 >conftest.err
11741   rm -f conftest.er1
11742   cat conftest.err >&5
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } &&
11745          { ac_try='test -z "$ac_c_werror_flag"
11746                          || test ! -s conftest.err'
11747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748   (eval $ac_try) 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); }; } &&
11752          { ac_try='test -s conftest$ac_exeext'
11753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754   (eval $ac_try) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }; }; then
11758   ac_cv_lib_ossaudio_open=yes
11759 else
11760   echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 ac_cv_lib_ossaudio_open=no
11764 fi
11765 rm -f conftest.err conftest.$ac_objext \
11766       conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11768 fi
11769 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11770 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11771 if test $ac_cv_lib_ossaudio_open = yes; then
11772   cat >>confdefs.h <<_ACEOF
11773 #define HAVE_LIBOSSAUDIO 1
11774 _ACEOF
11775
11776   LIBS="-lossaudio $LIBS"
11777
11778 fi
11779
11780
11781     case "$target" in
11782     *openbsd*)
11783       if test ! -e "/dev/dsp"; then
11784         oss_device=/dev/audio
11785       fi
11786       ;;
11787   esac
11788 else
11789   echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6
11791 fi
11792
11793 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11794 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11795 if test "x$au_enable_sun" = xyes; then
11796   case "$target" in
11797     *-*-sunos4*)
11798       if test -f /usr/demo/SOUND/libaudio.a; then
11799         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11800         echo "$as_me:$LINENO: result: yes" >&5
11801 echo "${ECHO_T}yes" >&6
11802       else
11803         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11804 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11805       fi
11806       ;;
11807     *-*-solaris*)
11808       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11809         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11810         echo "$as_me:$LINENO: result: yes" >&5
11811 echo "${ECHO_T}yes" >&6
11812       else
11813         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11814 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11815       fi
11816       ;;
11817     *)   echo "$as_me:$LINENO: result: yes" >&5
11818 echo "${ECHO_T}yes" >&6
11819       ;;
11820   esac
11821   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11822   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11823 else
11824   echo "$as_me:$LINENO: result: no" >&5
11825 echo "${ECHO_T}no" >&6
11826 fi
11827
11828 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11829 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11830 if test "x$au_enable_hpux" = xyes; then
11831   case "$target" in
11832     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11833 echo "${ECHO_T}yes" >&6 ;;
11834     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11835 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11836   esac
11837   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11838   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11839 else
11840   echo "$as_me:$LINENO: result: no" >&5
11841 echo "${ECHO_T}no" >&6
11842 fi
11843
11844 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11845 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11846 if test "x$au_enable_irix" = xyes; then
11847   case "$target" in
11848     *-sgi-irix5*|*-sgi-irix6.2)
11849       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11850       echo "$as_me:$LINENO: result: yes" >&5
11851 echo "${ECHO_T}yes" >&6
11852       ;;
11853     *-sgi-irix6*)
11854       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11855       echo "$as_me:$LINENO: result: yes" >&5
11856 echo "${ECHO_T}yes" >&6
11857       ;;
11858     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11859 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11860   esac
11861   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11862   EXTRALIBS="$EXTRASLIBS -laudio"
11863 else
11864   echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11866 fi
11867
11868 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11869 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11870 if test "x$au_enable_mme" = xyes; then
11871   case "$target" in
11872     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6 ;;
11874     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11875 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11876   esac
11877   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11878   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11879   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11880   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11881 else
11882   echo "$as_me:$LINENO: result: no" >&5
11883 echo "${ECHO_T}no" >&6
11884 fi
11885
11886 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11887 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11888 if test "x$au_enable_sb_dsp" = xyes; then
11889   case "$target" in
11890     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11891 echo "${ECHO_T}yes" >&6 ;;
11892     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11893 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11894   esac
11895   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11896   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11897 else
11898   echo "$as_me:$LINENO: result: no" >&5
11899 echo "${ECHO_T}no" >&6
11900 fi
11901
11902 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11903 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11904 if test "x$au_enable_w32" = xyes; then
11905   case "$target" in
11906     *-*-cygwin*)
11907      echo "$as_me:$LINENO: result: yes" >&5
11908 echo "${ECHO_T}yes" >&6
11909      ;;
11910     *-*-mingw32)
11911      echo "$as_me:$LINENO: result: yes" >&5
11912 echo "${ECHO_T}yes" >&6
11913      ;;
11914     *)
11915      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11916 echo "$as_me: WARNING: may not work on $target" >&2;}
11917      ;;
11918   esac
11919   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11920   EXTRALIBS="$EXTRALIBS -lwinmm"
11921   EXTRADEFS="$EXTRADEFS -DAU_W32"
11922 else
11923   echo "$as_me:$LINENO: result: no" >&5
11924 echo "${ECHO_T}no" >&6
11925 fi
11926
11927 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11928 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11929 if test "x$au_enable_darwin" = xyes; then
11930   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11931   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11932   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11933     case "$target" in
11934     *-*-darwin*)
11935      echo "$as_me:$LINENO: result: yes" >&5
11936 echo "${ECHO_T}yes" >&6;;
11937    *)
11938      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11939 echo "$as_me: WARNING: may not work on $target" >&2;}
11940      ;;
11941   esac
11942 else
11943   echo "$as_me:$LINENO: result: no" >&5
11944 echo "${ECHO_T}no" >&6
11945 fi
11946
11947
11948 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11949 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11950 if test "x$au_enable_alsa" = xyes; then
11951   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11952 echo "${ECHO_T}yes, configuring alsa" >&6
11953   KEEPCFLAGS=$CFLAGS
11954   KEEPLIBS=$LIBS
11955   KEEPLDFLAGS=$LDFLAGS
11956   alsa_save_CFLAGS="$CFLAGS"
11957 alsa_save_LDFLAGS="$LDFLAGS"
11958 alsa_save_LIBS="$LIBS"
11959 alsa_found=yes
11960
11961
11962 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11963 if test "${with_alsa_prefix+set}" = set; then
11964   withval="$with_alsa_prefix"
11965   alsa_prefix="$withval"
11966 else
11967   alsa_prefix=""
11968 fi;
11969
11970
11971 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11972 if test "${with_alsa_inc_prefix+set}" = set; then
11973   withval="$with_alsa_inc_prefix"
11974   alsa_inc_prefix="$withval"
11975 else
11976   alsa_inc_prefix=""
11977 fi;
11978
11979 # Check whether --enable-alsatest or --disable-alsatest was given.
11980 if test "${enable_alsatest+set}" = set; then
11981   enableval="$enable_alsatest"
11982   enable_alsatest=no
11983 else
11984   enable_alsatest=yes
11985 fi;
11986
11987 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11988 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11989 if test "$alsa_inc_prefix" != "" ; then
11990         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11991         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11992 fi
11993 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11994 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11995
11996 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
11997 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
11998 if test "$alsa_prefix" != "" ; then
11999         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12000         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12001 fi
12002
12003 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12004 LIBS=`echo $LIBS | sed 's/-lm//'`
12005 LIBS=`echo $LIBS | sed 's/-ldl//'`
12006 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12007 LIBS=`echo $LIBS | sed 's/  //'`
12008 LIBS="$ALSA_LIBS $LIBS"
12009 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12010 echo "${ECHO_T}$ALSA_LIBS" >&6
12011
12012 min_alsa_version=0.1.1
12013 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12014 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12015 no_alsa=""
12016     alsa_min_major_version=`echo $min_alsa_version | \
12017            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12018     alsa_min_minor_version=`echo $min_alsa_version | \
12019            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12020     alsa_min_micro_version=`echo $min_alsa_version | \
12021            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12022
12023
12024
12025
12026 ac_ext=c
12027 ac_cpp='$CPP $CPPFLAGS'
12028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038
12039 #include <alsa/asoundlib.h>
12040
12041 int
12042 main ()
12043 {
12044
12045 /* ensure backward compatibility */
12046 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12047 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12048 #endif
12049 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12050 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12051 #endif
12052 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12053 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12054 #endif
12055
12056 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12057   exit(0);
12058 #  else
12059 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12060 #       error not present
12061 #    endif
12062
12063 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12064   exit(0);
12065 #   else
12066 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12067 #          error not present
12068 #      endif
12069
12070 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12071 #        error not present
12072 #      endif
12073 #    endif
12074 #  endif
12075 exit(0);
12076
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083   (eval $ac_compile) 2>conftest.er1
12084   ac_status=$?
12085   grep -v '^ *+' conftest.er1 >conftest.err
12086   rm -f conftest.er1
12087   cat conftest.err >&5
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } &&
12090          { ac_try='test -z "$ac_c_werror_flag"
12091                          || test ! -s conftest.err'
12092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093   (eval $ac_try) 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); }; } &&
12097          { ac_try='test -s conftest.$ac_objext'
12098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099   (eval $ac_try) 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; }; then
12103   echo "$as_me:$LINENO: result: found." >&5
12104 echo "${ECHO_T}found." >&6
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h.  */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h.  */
12115
12116 #include <sys/asoundlib.h>
12117
12118 int
12119 main ()
12120 {
12121
12122 /* ensure backward compatibility */
12123 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12124 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12125 #endif
12126 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12127 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12128 #endif
12129 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12130 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12131 #endif
12132
12133 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12134   exit(0);
12135 #  else
12136 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12137 #       error not present
12138 #    endif
12139
12140 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12141   exit(0);
12142 #   else
12143 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12144 #          error not present
12145 #      endif
12146
12147 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12148 #        error not present
12149 #      endif
12150 #    endif
12151 #  endif
12152 exit(0);
12153
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160   (eval $ac_compile) 2>conftest.er1
12161   ac_status=$?
12162   grep -v '^ *+' conftest.er1 >conftest.err
12163   rm -f conftest.er1
12164   cat conftest.err >&5
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); } &&
12167          { ac_try='test -z "$ac_c_werror_flag"
12168                          || test ! -s conftest.err'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; } &&
12174          { ac_try='test -s conftest.$ac_objext'
12175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176   (eval $ac_try) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   echo "$as_me:$LINENO: result: found." >&5
12181 echo "${ECHO_T}found." >&6
12182 else
12183   echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 echo "$as_me:$LINENO: result: not present." >&5
12187 echo "${ECHO_T}not present." >&6
12188    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12189 echo "${ECHO_T}libasound was not found anywhere." >&6
12190    alsa_found=no
12191 fi
12192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12193    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12194 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12195
12196 fi
12197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12198 ac_ext=c
12199 ac_cpp='$CPP $CPPFLAGS'
12200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12203
12204
12205
12206 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12207 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12208 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-lasound  $LIBS"
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h.  */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h.  */
12219
12220 /* Override any gcc2 internal prototype to avoid an error.  */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 /* We use char because int might match the return type of a gcc2
12225    builtin and then its argument prototype would still apply.  */
12226 char snd_ctl_open ();
12227 int
12228 main ()
12229 {
12230 snd_ctl_open ();
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237   (eval $ac_link) 2>conftest.er1
12238   ac_status=$?
12239   grep -v '^ *+' conftest.er1 >conftest.err
12240   rm -f conftest.er1
12241   cat conftest.err >&5
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); } &&
12244          { ac_try='test -z "$ac_c_werror_flag"
12245                          || test ! -s conftest.err'
12246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247   (eval $ac_try) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; } &&
12251          { ac_try='test -s conftest$ac_exeext'
12252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253   (eval $ac_try) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; }; then
12257   ac_cv_lib_asound_snd_ctl_open=yes
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 ac_cv_lib_asound_snd_ctl_open=no
12263 fi
12264 rm -f conftest.err conftest.$ac_objext \
12265       conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12267 fi
12268 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12269 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12270 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12271   cat >>confdefs.h <<_ACEOF
12272 #define HAVE_LIBASOUND 1
12273 _ACEOF
12274
12275   LIBS="-lasound $LIBS"
12276
12277 else
12278   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12279 echo "${ECHO_T}No linkable libasound was found." >&6
12280    alsa_found=no
12281
12282 fi
12283
12284
12285 if test "x$alsa_found" = "xyes" ; then
12286    :
12287    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12288    LIBS=`echo $LIBS | sed 's/  //'`
12289    LIBS="-lasound $LIBS"
12290 else
12291    :
12292    CFLAGS="$alsa_save_CFLAGS"
12293    LDFLAGS="$alsa_save_LDFLAGS"
12294    LIBS="$alsa_save_LIBS"
12295    ALSA_CFLAGS=""
12296    ALSA_LIBS=""
12297 fi
12298
12299
12300
12301
12302   if test "x$alsa_found" = "xyes" ; then
12303         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12304     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12305     for f in $ALSA_CFLAGS; do
12306     case ".$f" in
12307         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12308         *)              CFLAGS="$CPPFLAGS $f" ;;
12309     esac
12310 done
12311
12312     LIBS="$LIBS $ALSA_LIBS"
12313
12314 for ac_func in snd_seq_port_info_set_timestamping
12315 do
12316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12317 echo "$as_me:$LINENO: checking for $ac_func" >&5
12318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12319 if eval "test \"\${$as_ac_var+set}\" = set"; then
12320   echo $ECHO_N "(cached) $ECHO_C" >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12330 #define $ac_func innocuous_$ac_func
12331
12332 /* System header to define __stub macros and hopefully few prototypes,
12333     which can conflict with char $ac_func (); below.
12334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12335     <limits.h> exists even on freestanding compilers.  */
12336
12337 #ifdef __STDC__
12338 # include <limits.h>
12339 #else
12340 # include <assert.h>
12341 #endif
12342
12343 #undef $ac_func
12344
12345 /* Override any gcc2 internal prototype to avoid an error.  */
12346 #ifdef __cplusplus
12347 extern "C"
12348 {
12349 #endif
12350 /* We use char because int might match the return type of a gcc2
12351    builtin and then its argument prototype would still apply.  */
12352 char $ac_func ();
12353 /* The GNU C library defines this for functions which it implements
12354     to always fail with ENOSYS.  Some functions are actually named
12355     something starting with __ and the normal name is an alias.  */
12356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12357 choke me
12358 #else
12359 char (*f) () = $ac_func;
12360 #endif
12361 #ifdef __cplusplus
12362 }
12363 #endif
12364
12365 int
12366 main ()
12367 {
12368 return f != $ac_func;
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375   (eval $ac_link) 2>conftest.er1
12376   ac_status=$?
12377   grep -v '^ *+' conftest.er1 >conftest.err
12378   rm -f conftest.er1
12379   cat conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); } &&
12382          { ac_try='test -z "$ac_c_werror_flag"
12383                          || test ! -s conftest.err'
12384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385   (eval $ac_try) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; } &&
12389          { ac_try='test -s conftest$ac_exeext'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   eval "$as_ac_var=yes"
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 eval "$as_ac_var=no"
12401 fi
12402 rm -f conftest.err conftest.$ac_objext \
12403       conftest$ac_exeext conftest.$ac_ext
12404 fi
12405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12407 if test `eval echo '${'$as_ac_var'}'` = yes; then
12408   cat >>confdefs.h <<_ACEOF
12409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12410 _ACEOF
12411
12412 fi
12413 done
12414
12415   else
12416     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12417 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12418     CFLAGS=$KEEPCFLAGS
12419     LIBS=$KEEPLIBS
12420     LDFLAGS=$KEEPLDFLAGS
12421   fi
12422 else
12423   echo "$as_me:$LINENO: result: no" >&5
12424 echo "${ECHO_T}no" >&6
12425 fi
12426
12427 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12428 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12429 if test "x$au_enable_alib" = xyes; then
12430   case "$target" in
12431     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12432 echo "${ECHO_T}yes" >&6 ;;
12433     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12434 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12435   esac
12436   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12437   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12438   if test -d /opt/audio/include; then
12439     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12440   fi
12441   if test -d /opt/audio/lib; then
12442     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12443   fi
12444   EXTRALIBS="$EXTRALIBS -lAlib"
12445 else
12446   echo "$as_me:$LINENO: result: no" >&5
12447 echo "${ECHO_T}no" >&6
12448 fi
12449
12450 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12451 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12452 if test "x$au_enable_nas" = xyes; then
12453   if test "x$with_x" != xyes; then
12454     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12455 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12456    { (exit 1); exit 1; }; }
12457   fi
12458   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12459   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12460
12461
12462   if test "x$with_nas_library" != x; then
12463     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12464 echo "${ECHO_T}$with_nas_library" >&6;
12465     EXTRALIBS="$EXTRALIBS $with_nas_library"
12466   else
12467     echo "$as_me:$LINENO: result: " >&5
12468 echo "${ECHO_T}" >&6
12469     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12470 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12471 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12472   echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474   ac_func_search_save_LIBS="$LIBS"
12475 timidity_cv_search_AuOpenServer="no"
12476 for i in $x_libraries/libaudio.a \
12477          /usr/lib/libaudio.so \
12478          /usr/lib/libaudio.a ; do
12479   LIBS="$i  $ac_func_search_save_LIBS"
12480   cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486
12487 /* Override any gcc2 internal prototype to avoid an error.  */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 /* We use char because int might match the return type of a gcc2
12492    builtin and then its argument prototype would still apply.  */
12493 char AuOpenServer ();
12494 int
12495 main ()
12496 {
12497 AuOpenServer ();
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504   (eval $ac_link) 2>conftest.er1
12505   ac_status=$?
12506   grep -v '^ *+' conftest.er1 >conftest.err
12507   rm -f conftest.er1
12508   cat conftest.err >&5
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -z "$ac_c_werror_flag"
12512                          || test ! -s conftest.err'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; } &&
12518          { ac_try='test -s conftest$ac_exeext'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524   timidity_cv_search_AuOpenServer="$i"; break
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 fi
12530 rm -f conftest.err conftest.$ac_objext \
12531       conftest$ac_exeext conftest.$ac_ext
12532 done
12533 LIBS="$ac_func_search_save_LIBS"
12534 fi
12535 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12536 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12537 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12538    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12539 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12540           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12541 else :
12542   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12543 echo "$as_me: WARNING: NAS library is not found." >&2;}
12544 fi
12545   fi
12546   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12547   lib_xt_opt=-lXt
12548   if test "x$have_xext" = xyes; then
12549     lib_xext_opt=-lXext
12550   fi
12551   if test "x$have_xprelibs" = xyes; then
12552     lib_xprelibs_opt='-lSM -lICE'
12553   fi
12554 else
12555   echo "$as_me:$LINENO: result: no" >&5
12556 echo "${ECHO_T}no" >&6
12557 fi
12558
12559 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12560 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12561 if test "x$au_enable_arts" = xyes; then
12562   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12563 echo "${ECHO_T}yes, configuring aRts" >&6
12564   KEEPCFLAGS=$CFLAGS
12565   KEEPLIBS=$LIBS
12566   KEEPLDFLAGS=$LDFLAGS
12567
12568 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12569 if test "${with_arts_prefix+set}" = set; then
12570   withval="$with_arts_prefix"
12571   arts_prefix="$withval"
12572 else
12573   arts_prefix=""
12574 fi;
12575 # Check whether --enable-artstest or --disable-artstest was given.
12576 if test "${enable_artstest+set}" = set; then
12577   enableval="$enable_artstest"
12578
12579 else
12580   enable_artstest=yes
12581 fi;
12582
12583   if test x$arts_prefix != x ; then
12584      arts_args="$arts_args --prefix=$arts_prefix"
12585      if test x${ARTS_CONFIG+set} != xset ; then
12586         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12587      fi
12588   fi
12589
12590   # Extract the first word of "artsc-config", so it can be a program name with args.
12591 set dummy artsc-config; ac_word=$2
12592 echo "$as_me:$LINENO: checking for $ac_word" >&5
12593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   case $ARTS_CONFIG in
12598   [\\/]* | ?:[\\/]*)
12599   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12600   ;;
12601   *)
12602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605   IFS=$as_save_IFS
12606   test -z "$as_dir" && as_dir=.
12607   for ac_exec_ext in '' $ac_executable_extensions; do
12608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12611     break 2
12612   fi
12613 done
12614 done
12615
12616   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12617   ;;
12618 esac
12619 fi
12620 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12621
12622 if test -n "$ARTS_CONFIG"; then
12623   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12624 echo "${ECHO_T}$ARTS_CONFIG" >&6
12625 else
12626   echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12628 fi
12629
12630   min_arts_version=0.9.5
12631   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12632 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12633   no_arts=""
12634   if test "$ARTS_CONFIG" = "no" ; then
12635     no_arts=yes
12636   else
12637     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12638     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12639
12640     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12641            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12642     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12643            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12644     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12645            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12646     if test "x$enable_artstest" = "xyes" ; then
12647       ac_save_CFLAGS="$CFLAGS"
12648       ac_save_LIBS="$LIBS"
12649       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12650       LIBS="$LIBS $ARTS_LIBS"
12651       rm -f conf.artstest
12652       if test "$cross_compiling" = yes; then
12653   echo $ac_n "cross compiling; assumed OK... $ac_c"
12654 else
12655   cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661
12662 #include <stdio.h>
12663 #include <stdlib.h>
12664 #include <string.h>
12665 #include <artsc.h>
12666
12667 char*
12668 my_strdup (char *str)
12669 {
12670   char *new_str;
12671
12672   if (str)
12673     {
12674       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12675       strcpy (new_str, str);
12676     }
12677   else
12678     new_str = NULL;
12679
12680   return new_str;
12681 }
12682
12683 int main ()
12684 {
12685   int major, minor, micro;
12686   char *tmp_version;
12687
12688   system ("touch conf.artstest");
12689
12690   /* HP/UX 9 (%@#!) writes to sscanf strings */
12691   tmp_version = my_strdup("$min_arts_version");
12692   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12693      printf("%s, bad version string\n", "$min_arts_version");
12694      exit(1);
12695    }
12696
12697    if (($arts_major_version > major) ||
12698       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12699       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12700     {
12701       return 0;
12702     }
12703   else
12704     {
12705       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12706       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12707       printf("*** best to upgrade to the required version.\n");
12708       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12709       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12710       printf("*** config.cache before re-running configure\n");
12711       return 1;
12712     }
12713 }
12714
12715
12716 _ACEOF
12717 rm -f conftest$ac_exeext
12718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719   (eval $ac_link) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; }; then
12728   :
12729 else
12730   echo "$as_me: program exited with status $ac_status" >&5
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 ( exit $ac_status )
12735 no_arts=yes
12736 fi
12737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12738 fi
12739        CFLAGS="$ac_save_CFLAGS"
12740        LIBS="$ac_save_LIBS"
12741      fi
12742   fi
12743   if test "x$no_arts" = x ; then
12744      echo "$as_me:$LINENO: result: yes" >&5
12745 echo "${ECHO_T}yes" >&6
12746      :
12747   else
12748      echo "$as_me:$LINENO: result: no" >&5
12749 echo "${ECHO_T}no" >&6
12750      if test "$ARTS_CONFIG" = "no" ; then
12751        echo "*** The artsc-config script installed by ARTS could not be found"
12752        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12753        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12754        echo "*** full path to artsc-config."
12755      else
12756        if test -f conf.artstest ; then
12757         :
12758        else
12759           echo "*** Could not run ARTS test program, checking why..."
12760           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12761           LIBS="$LIBS $ARTS_LIBS"
12762           cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h.  */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h.  */
12768
12769 #include <stdio.h>
12770 #include <artsc.h>
12771
12772 int
12773 main ()
12774 {
12775  return 0;
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782   (eval $ac_link) 2>conftest.er1
12783   ac_status=$?
12784   grep -v '^ *+' conftest.er1 >conftest.err
12785   rm -f conftest.er1
12786   cat conftest.err >&5
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } &&
12789          { ac_try='test -z "$ac_c_werror_flag"
12790                          || test ! -s conftest.err'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; } &&
12796          { ac_try='test -s conftest$ac_exeext'
12797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798   (eval $ac_try) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; }; then
12802    echo "*** The test program compiled, but did not run. This usually means"
12803           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12804           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12805           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12806           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12807           echo "*** is required on your system"
12808           echo "***"
12809           echo "*** If you have an old version installed, it is best to remove it, although"
12810           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815  echo "*** The test program failed to compile or link. See the file config.log for the"
12816           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12817           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12818           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12819 fi
12820 rm -f conftest.err conftest.$ac_objext \
12821       conftest$ac_exeext conftest.$ac_ext
12822           CFLAGS="$ac_save_CFLAGS"
12823           LIBS="$ac_save_LIBS"
12824        fi
12825      fi
12826      ARTS_CFLAGS=""
12827      ARTS_LIBS=""
12828      :
12829   fi
12830
12831
12832   rm -f conf.artstest
12833
12834   CFLAGS=$KEEPCFLAGS
12835   LIBS=$KEEPLIBS
12836   LDFLAGS=$KEEPLDFLAGS
12837   if test "x$no_arts" = x; then
12838         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12839     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12840     for f in $ARTS_CFLAGS; do
12841     case ".$f" in
12842         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12843         *)              CFLAGS="$CPPFLAGS $f" ;;
12844     esac
12845 done
12846
12847     LIBS="$LIBS $ARTS_LIBS"
12848   else
12849     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12850 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12851   fi
12852 else
12853   echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6
12855 fi
12856
12857 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12858 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12859 if test "x$au_enable_esd" = xyes; then
12860   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12861 echo "${ECHO_T}yes, configuring esd" >&6
12862   KEEPCFLAGS=$CFLAGS
12863   KEEPLIBS=$LIBS
12864   KEEPLDFLAGS=$LDFLAGS
12865
12866 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12867 if test "${with_esd_prefix+set}" = set; then
12868   withval="$with_esd_prefix"
12869   esd_prefix="$withval"
12870 else
12871   esd_prefix=""
12872 fi;
12873
12874 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12875 if test "${with_esd_exec_prefix+set}" = set; then
12876   withval="$with_esd_exec_prefix"
12877   esd_exec_prefix="$withval"
12878 else
12879   esd_exec_prefix=""
12880 fi;
12881 # Check whether --enable-esdtest or --disable-esdtest was given.
12882 if test "${enable_esdtest+set}" = set; then
12883   enableval="$enable_esdtest"
12884
12885 else
12886   enable_esdtest=yes
12887 fi;
12888
12889   if test x$esd_exec_prefix != x ; then
12890      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12891      if test x${ESD_CONFIG+set} != xset ; then
12892         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12893      fi
12894   fi
12895   if test x$esd_prefix != x ; then
12896      esd_args="$esd_args --prefix=$esd_prefix"
12897      if test x${ESD_CONFIG+set} != xset ; then
12898         ESD_CONFIG=$esd_prefix/bin/esd-config
12899      fi
12900   fi
12901
12902   # Extract the first word of "esd-config", so it can be a program name with args.
12903 set dummy esd-config; ac_word=$2
12904 echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12906 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12907   echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909   case $ESD_CONFIG in
12910   [\\/]* | ?:[\\/]*)
12911   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12912   ;;
12913   *)
12914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917   IFS=$as_save_IFS
12918   test -z "$as_dir" && as_dir=.
12919   for ac_exec_ext in '' $ac_executable_extensions; do
12920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12923     break 2
12924   fi
12925 done
12926 done
12927
12928   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12929   ;;
12930 esac
12931 fi
12932 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12933
12934 if test -n "$ESD_CONFIG"; then
12935   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12936 echo "${ECHO_T}$ESD_CONFIG" >&6
12937 else
12938   echo "$as_me:$LINENO: result: no" >&5
12939 echo "${ECHO_T}no" >&6
12940 fi
12941
12942   min_esd_version=0.2.7
12943   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12944 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12945   no_esd=""
12946   if test "$ESD_CONFIG" = "no" ; then
12947     no_esd=yes
12948   else
12949
12950
12951     ac_ext=c
12952 ac_cpp='$CPP $CPPFLAGS'
12953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12956
12957     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12958     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12959
12960     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12961            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12962     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12963            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12964     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12965            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12966     if test "x$enable_esdtest" = "xyes" ; then
12967       ac_save_CFLAGS="$CFLAGS"
12968       ac_save_LIBS="$LIBS"
12969       CFLAGS="$CFLAGS $ESD_CFLAGS"
12970       LIBS="$LIBS $ESD_LIBS"
12971       rm -f conf.esdtest
12972       if test "$cross_compiling" = yes; then
12973   echo $ac_n "cross compiling; assumed OK... $ac_c"
12974 else
12975   cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981
12982 #include <stdio.h>
12983 #include <stdlib.h>
12984 #include <string.h>
12985 #include <esd.h>
12986
12987 char*
12988 my_strdup (char *str)
12989 {
12990   char *new_str;
12991
12992   if (str)
12993     {
12994       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12995       strcpy (new_str, str);
12996     }
12997   else
12998     new_str = NULL;
12999
13000   return new_str;
13001 }
13002
13003 int main ()
13004 {
13005   int major, minor, micro;
13006   char *tmp_version;
13007
13008   system ("touch conf.esdtest");
13009
13010   /* HP/UX 9 (%@#!) writes to sscanf strings */
13011   tmp_version = my_strdup("$min_esd_version");
13012   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13013      printf("%s, bad version string\n", "$min_esd_version");
13014      exit(1);
13015    }
13016
13017    if (($esd_major_version > major) ||
13018       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13019       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13020     {
13021       return 0;
13022     }
13023   else
13024     {
13025       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13026       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13027       printf("*** best to upgrade to the required version.\n");
13028       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13029       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13030       printf("*** config.cache before re-running configure\n");
13031       return 1;
13032     }
13033 }
13034
13035
13036 _ACEOF
13037 rm -f conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039   (eval $ac_link) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044   (eval $ac_try) 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; }; then
13048   :
13049 else
13050   echo "$as_me: program exited with status $ac_status" >&5
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 ( exit $ac_status )
13055 no_esd=yes
13056 fi
13057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13058 fi
13059        CFLAGS="$ac_save_CFLAGS"
13060        LIBS="$ac_save_LIBS"
13061        ac_ext=c
13062 ac_cpp='$CPP $CPPFLAGS'
13063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13066
13067      fi
13068   fi
13069   if test "x$no_esd" = x ; then
13070      echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6
13072      :
13073   else
13074      echo "$as_me:$LINENO: result: no" >&5
13075 echo "${ECHO_T}no" >&6
13076      if test "$ESD_CONFIG" = "no" ; then
13077        echo "*** The esd-config script installed by ESD could not be found"
13078        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13079        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13080        echo "*** full path to esd-config."
13081      else
13082        if test -f conf.esdtest ; then
13083         :
13084        else
13085           echo "*** Could not run ESD test program, checking why..."
13086           CFLAGS="$CFLAGS $ESD_CFLAGS"
13087           LIBS="$LIBS $ESD_LIBS"
13088
13089
13090           ac_ext=c
13091 ac_cpp='$CPP $CPPFLAGS'
13092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13095
13096           cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h.  */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h.  */
13102
13103 #include <stdio.h>
13104 #include <esd.h>
13105
13106 int
13107 main ()
13108 {
13109  return 0;
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116   (eval $ac_link) 2>conftest.er1
13117   ac_status=$?
13118   grep -v '^ *+' conftest.er1 >conftest.err
13119   rm -f conftest.er1
13120   cat conftest.err >&5
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } &&
13123          { ac_try='test -z "$ac_c_werror_flag"
13124                          || test ! -s conftest.err'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; } &&
13130          { ac_try='test -s conftest$ac_exeext'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136    echo "*** The test program compiled, but did not run. This usually means"
13137           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13138           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13139           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13140           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13141           echo "*** is required on your system"
13142           echo "***"
13143           echo "*** If you have an old version installed, it is best to remove it, although"
13144           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13145 else
13146   echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149  echo "*** The test program failed to compile or link. See the file config.log for the"
13150           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13151           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13152           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13153 fi
13154 rm -f conftest.err conftest.$ac_objext \
13155       conftest$ac_exeext conftest.$ac_ext
13156           CFLAGS="$ac_save_CFLAGS"
13157           LIBS="$ac_save_LIBS"
13158           ac_ext=c
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13163
13164        fi
13165      fi
13166      ESD_CFLAGS=""
13167      ESD_LIBS=""
13168      :
13169   fi
13170
13171
13172   rm -f conf.esdtest
13173
13174   CFLAGS=$KEEPCFLAGS
13175   LIBS=$KEEPLIBS
13176   LDFLAGS=$KEEPLDFLAGS
13177   if test "x$no_esd" = x; then
13178         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13179     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13180     for f in $ESD_CFLAGS; do
13181     case ".$f" in
13182         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13183         *)              CFLAGS="$CPPFLAGS $f" ;;
13184     esac
13185 done
13186
13187     LIBS="$LIBS $ESD_LIBS"
13188   else
13189     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13190 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13191   fi
13192 else
13193   echo "$as_me:$LINENO: result: no" >&5
13194 echo "${ECHO_T}no" >&6
13195 fi
13196
13197 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13198 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13199 if test "x$au_enable_portaudio" = xyes; then
13200   echo "$as_me:$LINENO: result: yes" >&5
13201 echo "${ECHO_T}yes" >&6
13202   if test "x$CYGNUS" = xyes ||test "x$MINGW" = xyes; then
13203         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13204         EXTRALIBS="$EXTRALIBS -lportaudio"
13205         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13206   else
13207         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13208         EXTRALIBS="$EXTRALIBS -lportaudio"
13209         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13210   fi
13211 else
13212   echo "$as_me:$LINENO: result: no" >&5
13213 echo "${ECHO_T}no" >&6
13214 fi
13215
13216 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13217 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13218 if test "x$au_enable_jack" = xyes; then
13219   echo "$as_me:$LINENO: result: yes" >&5
13220 echo "${ECHO_T}yes" >&6
13221   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13222   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13223   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13224 else
13225   echo "$as_me:$LINENO: result: no" >&5
13226 echo "${ECHO_T}no" >&6
13227 fi
13228
13229 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13230 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13231 if test "x$au_enable_ao" = xyes; then
13232   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13233 echo "${ECHO_T}yes, configuring ao" >&6
13234
13235 # Check whether --with-ao or --without-ao was given.
13236 if test "${with_ao+set}" = set; then
13237   withval="$with_ao"
13238   ao_prefix="$withval"
13239 else
13240   ao_prefix=""
13241 fi;
13242
13243 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13244 if test "${with_ao_libraries+set}" = set; then
13245   withval="$with_ao_libraries"
13246   ao_libraries="$withval"
13247 else
13248   ao_libraries=""
13249 fi;
13250
13251 # Check whether --with-ao-includes or --without-ao-includes was given.
13252 if test "${with_ao_includes+set}" = set; then
13253   withval="$with_ao_includes"
13254   ao_includes="$withval"
13255 else
13256   ao_includes=""
13257 fi;
13258 # Check whether --enable-aotest or --disable-aotest was given.
13259 if test "${enable_aotest+set}" = set; then
13260   enableval="$enable_aotest"
13261
13262 else
13263   enable_aotest=yes
13264 fi;
13265
13266
13267   if test "x$ao_libraries" != "x" ; then
13268     AO_LIBS="-L$ao_libraries"
13269   elif test "x$ao_prefix" != "x"; then
13270     AO_LIBS="-L$ao_prefix/lib"
13271   elif test "x$prefix" != "xNONE"; then
13272     AO_LIBS="-L$prefix/lib"
13273   fi
13274
13275   if test "x$ao_includes" != "x" ; then
13276     AO_CFLAGS="-I$ao_includes"
13277   elif test "x$ao_prefix" != "x"; then
13278     AO_CFLAGS="-I$ao_prefix/include"
13279   elif test "x$prefix" != "xNONE"; then
13280     AO_CFLAGS="-I$prefix/include"
13281   fi
13282
13283   # see where dl* and friends live
13284
13285 for ac_func in dlopen
13286 do
13287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13288 echo "$as_me:$LINENO: checking for $ac_func" >&5
13289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13290 if eval "test \"\${$as_ac_var+set}\" = set"; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13301 #define $ac_func innocuous_$ac_func
13302
13303 /* System header to define __stub macros and hopefully few prototypes,
13304     which can conflict with char $ac_func (); below.
13305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13306     <limits.h> exists even on freestanding compilers.  */
13307
13308 #ifdef __STDC__
13309 # include <limits.h>
13310 #else
13311 # include <assert.h>
13312 #endif
13313
13314 #undef $ac_func
13315
13316 /* Override any gcc2 internal prototype to avoid an error.  */
13317 #ifdef __cplusplus
13318 extern "C"
13319 {
13320 #endif
13321 /* We use char because int might match the return type of a gcc2
13322    builtin and then its argument prototype would still apply.  */
13323 char $ac_func ();
13324 /* The GNU C library defines this for functions which it implements
13325     to always fail with ENOSYS.  Some functions are actually named
13326     something starting with __ and the normal name is an alias.  */
13327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13328 choke me
13329 #else
13330 char (*f) () = $ac_func;
13331 #endif
13332 #ifdef __cplusplus
13333 }
13334 #endif
13335
13336 int
13337 main ()
13338 {
13339 return f != $ac_func;
13340   ;
13341   return 0;
13342 }
13343 _ACEOF
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13346   (eval $ac_link) 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } &&
13353          { ac_try='test -z "$ac_c_werror_flag"
13354                          || test ! -s conftest.err'
13355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356   (eval $ac_try) 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; } &&
13360          { ac_try='test -s conftest$ac_exeext'
13361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362   (eval $ac_try) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }; }; then
13366   eval "$as_ac_var=yes"
13367 else
13368   echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13370
13371 eval "$as_ac_var=no"
13372 fi
13373 rm -f conftest.err conftest.$ac_objext \
13374       conftest$ac_exeext conftest.$ac_ext
13375 fi
13376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13378 if test `eval echo '${'$as_ac_var'}'` = yes; then
13379   cat >>confdefs.h <<_ACEOF
13380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13381 _ACEOF
13382  AO_DL_LIBS=""
13383 else
13384
13385     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13386 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13387 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13388   echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390   ac_check_lib_save_LIBS=$LIBS
13391 LIBS="-ldl  $LIBS"
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h.  */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h.  */
13398
13399 /* Override any gcc2 internal prototype to avoid an error.  */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 /* We use char because int might match the return type of a gcc2
13404    builtin and then its argument prototype would still apply.  */
13405 char dlopen ();
13406 int
13407 main ()
13408 {
13409 dlopen ();
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416   (eval $ac_link) 2>conftest.er1
13417   ac_status=$?
13418   grep -v '^ *+' conftest.er1 >conftest.err
13419   rm -f conftest.er1
13420   cat conftest.err >&5
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); } &&
13423          { ac_try='test -z "$ac_c_werror_flag"
13424                          || test ! -s conftest.err'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; } &&
13430          { ac_try='test -s conftest$ac_exeext'
13431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432   (eval $ac_try) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; }; then
13436   ac_cv_lib_dl_dlopen=yes
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441 ac_cv_lib_dl_dlopen=no
13442 fi
13443 rm -f conftest.err conftest.$ac_objext \
13444       conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13446 fi
13447 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13448 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13449 if test $ac_cv_lib_dl_dlopen = yes; then
13450   AO_DL_LIBS="-ldl"
13451 else
13452
13453       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13454       your system may not be supported." >&5
13455 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13456       your system may not be supported." >&2;}
13457
13458 fi
13459
13460
13461 fi
13462 done
13463
13464
13465   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13466
13467   echo "$as_me:$LINENO: checking for ao" >&5
13468 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13469   no_ao=""
13470
13471
13472   if test "x$enable_aotest" = "xyes" ; then
13473     ac_save_CFLAGS="$CFLAGS"
13474     ac_save_LIBS="$LIBS"
13475     CFLAGS="$CFLAGS $AO_CFLAGS"
13476     LIBS="$LIBS $AO_LIBS"
13477       rm -f conf.aotest
13478       if test "$cross_compiling" = yes; then
13479   echo $ac_n "cross compiling; assumed OK... $ac_c"
13480 else
13481   cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487
13488 #include <stdio.h>
13489 #include <stdlib.h>
13490 #include <string.h>
13491 #include <ao/ao.h>
13492
13493 int main ()
13494 {
13495   system("touch conf.aotest");
13496   return 0;
13497 }
13498
13499
13500 _ACEOF
13501 rm -f conftest$ac_exeext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13503   (eval $ac_link) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   :
13513 else
13514   echo "$as_me: program exited with status $ac_status" >&5
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518 ( exit $ac_status )
13519 no_ao=yes
13520 fi
13521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13522 fi
13523        CFLAGS="$ac_save_CFLAGS"
13524        LIBS="$ac_save_LIBS"
13525   fi
13526
13527   if test "x$no_ao" = "x" ; then
13528      echo "$as_me:$LINENO: result: yes" >&5
13529 echo "${ECHO_T}yes" >&6
13530      :
13531   else
13532      echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13534      if test -f conf.aotest ; then
13535        :
13536      else
13537        echo "*** Could not run ao test program, checking why..."
13538        CFLAGS="$CFLAGS $AO_CFLAGS"
13539        LIBS="$LIBS $AO_LIBS"
13540        cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546
13547 #include <stdio.h>
13548 #include <ao/ao.h>
13549
13550 int
13551 main ()
13552 {
13553  return 0;
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560   (eval $ac_link) 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -z "$ac_c_werror_flag"
13568                          || test ! -s conftest.err'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; } &&
13574          { ac_try='test -s conftest$ac_exeext'
13575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576   (eval $ac_try) 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; }; then
13580    echo "*** The test program compiled, but did not run. This usually means"
13581        echo "*** that the run-time linker is not finding ao or finding the wrong"
13582        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13583        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13584        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13585        echo "*** is required on your system"
13586        echo "***"
13587        echo "*** If you have an old version installed, it is best to remove it, although"
13588        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593  echo "*** The test program failed to compile or link. See the file config.log for the"
13594        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13595        echo "*** or that you have moved ao since it was installed."
13596 fi
13597 rm -f conftest.err conftest.$ac_objext \
13598       conftest$ac_exeext conftest.$ac_ext
13599        CFLAGS="$ac_save_CFLAGS"
13600        LIBS="$ac_save_LIBS"
13601      fi
13602      AO_CFLAGS=""
13603      AO_LIBS=""
13604      :
13605   fi
13606
13607
13608   rm -f conf.aotest
13609
13610   if test "x$no_ao" = "x" ; then
13611     echo "$as_me:$LINENO: result: yes" >&5
13612 echo "${ECHO_T}yes" >&6
13613     EXTRADEFS="$EXTRADEFS -DAU_AO"
13614     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13615     for f in $AO_CFLAGS; do
13616     case ".$f" in
13617         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13618         *)              CFLAGS="$CPPFLAGS $f" ;;
13619     esac
13620 done
13621
13622     LIBS="$LIBS $AO_LIBS"
13623   else
13624     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13625 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13626   fi
13627 else
13628   echo "$as_me:$LINENO: result: no" >&5
13629 echo "${ECHO_T}no" >&6
13630 fi
13631
13632 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13633 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13634 if test "x$au_enable_vorbis" = xyes; then
13635   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13636 echo "${ECHO_T}yes, configuring vorbis" >&6
13637
13638 # Check whether --with-ogg or --without-ogg was given.
13639 if test "${with_ogg+set}" = set; then
13640   withval="$with_ogg"
13641   ogg_prefix="$withval"
13642 else
13643   ogg_prefix=""
13644 fi;
13645
13646 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13647 if test "${with_ogg_libraries+set}" = set; then
13648   withval="$with_ogg_libraries"
13649   ogg_libraries="$withval"
13650 else
13651   ogg_libraries=""
13652 fi;
13653
13654 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13655 if test "${with_ogg_includes+set}" = set; then
13656   withval="$with_ogg_includes"
13657   ogg_includes="$withval"
13658 else
13659   ogg_includes=""
13660 fi;
13661 # Check whether --enable-oggtest or --disable-oggtest was given.
13662 if test "${enable_oggtest+set}" = set; then
13663   enableval="$enable_oggtest"
13664
13665 else
13666   enable_oggtest=yes
13667 fi;
13668
13669   if test "x$ogg_libraries" != "x" ; then
13670     OGG_LIBS="-L$ogg_libraries"
13671   elif test "x$ogg_prefix" != "x" ; then
13672     OGG_LIBS="-L$ogg_prefix/lib"
13673   elif test "x$prefix" != "xNONE" ; then
13674     OGG_LIBS="-L$prefix/lib"
13675   fi
13676
13677   OGG_LIBS="$OGG_LIBS -logg"
13678
13679   if test "x$ogg_includes" != "x" ; then
13680     OGG_CFLAGS="-I$ogg_includes"
13681   elif test "x$ogg_prefix" != "x" ; then
13682     OGG_CFLAGS="-I$ogg_prefix/include"
13683   elif test "x$prefix" != "xNONE"; then
13684     OGG_CFLAGS="-I$prefix/include"
13685   fi
13686
13687   echo "$as_me:$LINENO: checking for Ogg" >&5
13688 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13689   no_ogg=""
13690
13691
13692   if test "x$enable_oggtest" = "xyes" ; then
13693     ac_save_CFLAGS="$CFLAGS"
13694     ac_save_LIBS="$LIBS"
13695     CFLAGS="$CFLAGS $OGG_CFLAGS"
13696     LIBS="$LIBS $OGG_LIBS"
13697       rm -f conf.oggtest
13698       if test "$cross_compiling" = yes; then
13699   echo $ac_n "cross compiling; assumed OK... $ac_c"
13700 else
13701   cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707
13708 #include <stdio.h>
13709 #include <stdlib.h>
13710 #include <string.h>
13711 #include <ogg/ogg.h>
13712
13713 int main ()
13714 {
13715   system("touch conf.oggtest");
13716   return 0;
13717 }
13718
13719
13720 _ACEOF
13721 rm -f conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723   (eval $ac_link) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   :
13733 else
13734   echo "$as_me: program exited with status $ac_status" >&5
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ( exit $ac_status )
13739 no_ogg=yes
13740 fi
13741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13742 fi
13743        CFLAGS="$ac_save_CFLAGS"
13744        LIBS="$ac_save_LIBS"
13745   fi
13746
13747   if test "x$no_ogg" = "x" ; then
13748      echo "$as_me:$LINENO: result: yes" >&5
13749 echo "${ECHO_T}yes" >&6
13750
13751
13752 # Check whether --with-vorbis or --without-vorbis was given.
13753 if test "${with_vorbis+set}" = set; then
13754   withval="$with_vorbis"
13755   vorbis_prefix="$withval"
13756 else
13757   vorbis_prefix=""
13758 fi;
13759
13760 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13761 if test "${with_vorbis_libraries+set}" = set; then
13762   withval="$with_vorbis_libraries"
13763   vorbis_libraries="$withval"
13764 else
13765   vorbis_libraries=""
13766 fi;
13767
13768 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13769 if test "${with_vorbis_includes+set}" = set; then
13770   withval="$with_vorbis_includes"
13771   vorbis_includes="$withval"
13772 else
13773   vorbis_includes=""
13774 fi;
13775 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13776 if test "${enable_vorbistest+set}" = set; then
13777   enableval="$enable_vorbistest"
13778
13779 else
13780   enable_vorbistest=yes
13781 fi;
13782
13783   if test "x$vorbis_libraries" != "x" ; then
13784     VORBIS_LIBS="-L$vorbis_libraries"
13785   elif test "x$vorbis_prefix" != "x" ; then
13786     VORBIS_LIBS="-L$vorbis_prefix/lib"
13787   elif test "x$prefix" != "xNONE"; then
13788     VORBIS_LIBS="-L$prefix/lib"
13789   fi
13790
13791   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13792   VORBISFILE_LIBS="-lvorbisfile"
13793   VORBISENC_LIBS="-lvorbisenc"
13794
13795   if test "x$vorbis_includes" != "x" ; then
13796     VORBIS_CFLAGS="-I$vorbis_includes"
13797   elif test "x$vorbis_prefix" != "x" ; then
13798     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13799   elif test "x$prefix" != "xNONE"; then
13800     VORBIS_CFLAGS="-I$prefix/include"
13801   fi
13802
13803
13804   echo "$as_me:$LINENO: checking for Vorbis" >&5
13805 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13806   no_vorbis=""
13807
13808
13809   if test "x$enable_vorbistest" = "xyes" ; then
13810     ac_save_CFLAGS="$CFLAGS"
13811     ac_save_LIBS="$LIBS"
13812     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13813     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13814       rm -f conf.vorbistest
13815       if test "$cross_compiling" = yes; then
13816   echo $ac_n "cross compiling; assumed OK... $ac_c"
13817 else
13818   cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824
13825 #include <stdio.h>
13826 #include <stdlib.h>
13827 #include <string.h>
13828 #include <vorbis/codec.h>
13829
13830 int main ()
13831 {
13832   system("touch conf.vorbistest");
13833   return 0;
13834 }
13835
13836
13837 _ACEOF
13838 rm -f conftest$ac_exeext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13840   (eval $ac_link) 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845   (eval $ac_try) 2>&5
13846   ac_status=$?
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); }; }; then
13849   :
13850 else
13851   echo "$as_me: program exited with status $ac_status" >&5
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13854
13855 ( exit $ac_status )
13856 no_vorbis=yes
13857 fi
13858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13859 fi
13860        CFLAGS="$ac_save_CFLAGS"
13861        LIBS="$ac_save_LIBS"
13862   fi
13863
13864   if test "x$no_vorbis" = "x" ; then
13865      echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13867
13868       have_vorbis=yes
13869       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13870       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13871       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13872       if test "x$CYGNUS" = "xyes"; then
13873       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13874           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13875       fi
13876       if test "x$MINGW" = "xyes"; then
13877       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13878           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13879       fi
13880
13881   else
13882      echo "$as_me:$LINENO: result: no" >&5
13883 echo "${ECHO_T}no" >&6
13884      if test -f conf.vorbistest ; then
13885        :
13886      else
13887        echo "*** Could not run Vorbis test program, checking why..."
13888        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13889        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13890        cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h.  */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h.  */
13896
13897 #include <stdio.h>
13898 #include <vorbis/codec.h>
13899
13900 int
13901 main ()
13902 {
13903  return 0;
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13910   (eval $ac_link) 2>conftest.er1
13911   ac_status=$?
13912   grep -v '^ *+' conftest.er1 >conftest.err
13913   rm -f conftest.er1
13914   cat conftest.err >&5
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } &&
13917          { ac_try='test -z "$ac_c_werror_flag"
13918                          || test ! -s conftest.err'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; } &&
13924          { ac_try='test -s conftest$ac_exeext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930    echo "*** The test program compiled, but did not run. This usually means"
13931        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13932        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13933        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13934        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13935        echo "*** is required on your system"
13936        echo "***"
13937        echo "*** If you have an old version installed, it is best to remove it, although"
13938        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13939 else
13940   echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13942
13943  echo "*** The test program failed to compile or link. See the file config.log for the"
13944        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13945        echo "*** or that you have moved Vorbis since it was installed."
13946 fi
13947 rm -f conftest.err conftest.$ac_objext \
13948       conftest$ac_exeext conftest.$ac_ext
13949        CFLAGS="$ac_save_CFLAGS"
13950        LIBS="$ac_save_LIBS"
13951      fi
13952      VORBIS_CFLAGS=""
13953      VORBIS_LIBS=""
13954      VORBISFILE_LIBS=""
13955      VORBISENC_LIBS=""
13956
13957       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13958 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13959
13960   fi
13961
13962
13963
13964
13965   rm -f conf.vorbistest
13966
13967
13968   else
13969      echo "$as_me:$LINENO: result: no" >&5
13970 echo "${ECHO_T}no" >&6
13971      if test -f conf.oggtest ; then
13972        :
13973      else
13974        echo "*** Could not run Ogg test program, checking why..."
13975        CFLAGS="$CFLAGS $OGG_CFLAGS"
13976        LIBS="$LIBS $OGG_LIBS"
13977        cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983
13984 #include <stdio.h>
13985 #include <ogg/ogg.h>
13986
13987 int
13988 main ()
13989 {
13990  return 0;
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext conftest$ac_exeext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13997   (eval $ac_link) 2>conftest.er1
13998   ac_status=$?
13999   grep -v '^ *+' conftest.er1 >conftest.err
14000   rm -f conftest.er1
14001   cat conftest.err >&5
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -z "$ac_c_werror_flag"
14005                          || test ! -s conftest.err'
14006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007   (eval $ac_try) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; } &&
14011          { ac_try='test -s conftest$ac_exeext'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; }; then
14017    echo "*** The test program compiled, but did not run. This usually means"
14018        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14019        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14020        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14021        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14022        echo "*** is required on your system"
14023        echo "***"
14024        echo "*** If you have an old version installed, it is best to remove it, although"
14025        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14026 else
14027   echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030  echo "*** The test program failed to compile or link. See the file config.log for the"
14031        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14032        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14033        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14034 fi
14035 rm -f conftest.err conftest.$ac_objext \
14036       conftest$ac_exeext conftest.$ac_ext
14037        CFLAGS="$ac_save_CFLAGS"
14038        LIBS="$ac_save_LIBS"
14039      fi
14040      OGG_CFLAGS=""
14041      OGG_LIBS=""
14042
14043     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14044 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14045     have_vorbis=no
14046
14047   fi
14048
14049
14050   rm -f conf.oggtest
14051
14052 else
14053   echo "$as_me:$LINENO: result: no" >&5
14054 echo "${ECHO_T}no" >&6
14055 fi
14056
14057 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14058 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14059 if test "x$au_enable_flac" = xyes; then
14060   echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14061 echo "${ECHO_T}yes, configuring flac" >&6
14062   SYSEXTRAS="$SYSEXTRAS flac_a.c"
14063
14064 # Check whether --with-libFLAC or --without-libFLAC was given.
14065 if test "${with_libFLAC+set}" = set; then
14066   withval="$with_libFLAC"
14067   libFLAC_prefix="$withval"
14068 else
14069   libFLAC_prefix=""
14070 fi;
14071
14072 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14073 if test "${with_libFLAC_libraries+set}" = set; then
14074   withval="$with_libFLAC_libraries"
14075   libFLAC_libraries="$withval"
14076 else
14077   libFLAC_libraries=""
14078 fi;
14079
14080 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14081 if test "${with_libFLAC_includes+set}" = set; then
14082   withval="$with_libFLAC_includes"
14083   libFLAC_includes="$withval"
14084 else
14085   libFLAC_includes=""
14086 fi;
14087 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14088 if test "${enable_libFLACtest+set}" = set; then
14089   enableval="$enable_libFLACtest"
14090
14091 else
14092   enable_libFLACtest=yes
14093 fi;
14094
14095   if test "x$libFLAC_libraries" != "x" ; then
14096     LIBFLAC_LIBS="-L$libFLAC_libraries"
14097   elif test "x$libFLAC_prefix" != "x" ; then
14098     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14099   elif test "x$prefix" != "xNONE" ; then
14100     LIBFLAC_LIBS="-L$prefix/lib"
14101   fi
14102
14103   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14104
14105   if test "x$libFLAC_includes" != "x" ; then
14106     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14107   elif test "x$libFLAC_prefix" != "x" ; then
14108     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14109   elif test "$prefix" != "xNONE"; then
14110     LIBFLAC_CFLAGS="-I$prefix/include"
14111   fi
14112
14113   echo "$as_me:$LINENO: checking for libFLAC" >&5
14114 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14115   no_libFLAC=""
14116
14117
14118   if test "x$enable_libFLACtest" = "xyes" ; then
14119     ac_save_CFLAGS="$CFLAGS"
14120     ac_save_CXXFLAGS="$CXXFLAGS"
14121     ac_save_LIBS="$LIBS"
14122     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14123     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14124     LIBS="$LIBS $LIBFLAC_LIBS"
14125       rm -f conf.libFLACtest
14126       if test "$cross_compiling" = yes; then
14127   echo $ac_n "cross compiling; assumed OK... $ac_c"
14128 else
14129   cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h.  */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h.  */
14135
14136 #include <stdio.h>
14137 #include <stdlib.h>
14138 #include <string.h>
14139 #include <FLAC/format.h>
14140
14141 int main ()
14142 {
14143   system("touch conf.libFLACtest");
14144   return 0;
14145 }
14146
14147
14148 _ACEOF
14149 rm -f conftest$ac_exeext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151   (eval $ac_link) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; }; then
14160   :
14161 else
14162   echo "$as_me: program exited with status $ac_status" >&5
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ( exit $ac_status )
14167 no_libFLAC=yes
14168 fi
14169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14170 fi
14171        CFLAGS="$ac_save_CFLAGS"
14172        LIBS="$ac_save_LIBS"
14173   fi
14174
14175   if test "x$no_libFLAC" = "x" ; then
14176      echo "$as_me:$LINENO: result: yes" >&5
14177 echo "${ECHO_T}yes" >&6
14178
14179     EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14180     for f in $LIBFLAC_CFLAGS; do
14181     case ".$f" in
14182         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14183         *)              CFLAGS="$CPPFLAGS $f" ;;
14184     esac
14185 done
14186
14187     LIBS="$LIBS $LIBFLAC_LIBS"
14188
14189   else
14190      echo "$as_me:$LINENO: result: no" >&5
14191 echo "${ECHO_T}no" >&6
14192      if test -f conf.libFLACtest ; then
14193        :
14194      else
14195        echo "*** Could not run libFLAC test program, checking why..."
14196        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14197        LIBS="$LIBS $LIBFLAC_LIBS"
14198        cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204
14205 #include <stdio.h>
14206 #include <FLAC/format.h>
14207
14208 int
14209 main ()
14210 {
14211  return 0;
14212   ;
14213   return 0;
14214 }
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218   (eval $ac_link) 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -z "$ac_c_werror_flag"
14226                          || test ! -s conftest.err'
14227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228   (eval $ac_try) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); }; } &&
14232          { ac_try='test -s conftest$ac_exeext'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238    echo "*** The test program compiled, but did not run. This usually means"
14239        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14240        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14241        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14242        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14243        echo "*** is required on your system"
14244        echo "***"
14245        echo "*** If you have an old version installed, it is best to remove it, although"
14246        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251  echo "*** The test program failed to compile or link. See the file config.log for the"
14252        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14253        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14254        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14255 fi
14256 rm -f conftest.err conftest.$ac_objext \
14257       conftest$ac_exeext conftest.$ac_ext
14258        CFLAGS="$ac_save_CFLAGS"
14259        LIBS="$ac_save_LIBS"
14260      fi
14261      LIBFLAC_CFLAGS=""
14262      LIBFLAC_LIBS=""
14263      :
14264   fi
14265
14266
14267   rm -f conf.libFLACtest
14268
14269
14270 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14271 if test "${with_libOggFLAC+set}" = set; then
14272   withval="$with_libOggFLAC"
14273   libOggFLAC_prefix="$withval"
14274 else
14275   libOggFLAC_prefix=""
14276 fi;
14277
14278 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14279 if test "${with_libOggFLAC_libraries+set}" = set; then
14280   withval="$with_libOggFLAC_libraries"
14281   libOggFLAC_libraries="$withval"
14282 else
14283   libOggFLAC_libraries=""
14284 fi;
14285
14286 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14287 if test "${with_libOggFLAC_includes+set}" = set; then
14288   withval="$with_libOggFLAC_includes"
14289   libOggFLAC_includes="$withval"
14290 else
14291   libOggFLAC_includes=""
14292 fi;
14293 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14294 if test "${enable_libOggFLACtest+set}" = set; then
14295   enableval="$enable_libOggFLACtest"
14296
14297 else
14298   enable_libOggFLACtest=yes
14299 fi;
14300
14301   if test "x$libOggFLAC_libraries" != "x" ; then
14302     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14303   elif test "x$libOggFLAC_prefix" != "x" ; then
14304     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14305   elif test "x$prefix" != "xNONE" ; then
14306     LIBOGGFLAC_LIBS="-L$prefix/lib"
14307   fi
14308
14309   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14310
14311   if test "x$libOggFLAC_includes" != "x" ; then
14312     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14313   elif test "x$libOggFLAC_prefix" != "x" ; then
14314     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14315   elif test "$prefix" != "xNONE"; then
14316     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14317   fi
14318
14319   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14320 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14321   no_libOggFLAC=""
14322
14323
14324   if test "x$enable_libOggFLACtest" = "xyes" ; then
14325     ac_save_CFLAGS="$CFLAGS"
14326     ac_save_CXXFLAGS="$CXXFLAGS"
14327     ac_save_LIBS="$LIBS"
14328     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14329     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14330     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14331       rm -f conf.libOggFLACtest
14332       if test "$cross_compiling" = yes; then
14333   echo $ac_n "cross compiling; assumed OK... $ac_c"
14334 else
14335   cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h.  */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h.  */
14341
14342 #include <stdio.h>
14343 #include <stdlib.h>
14344 #include <string.h>
14345 #include <OggFLAC/stream_decoder.h>
14346
14347 int main ()
14348 {
14349   system("touch conf.libOggFLACtest");
14350   return 0;
14351 }
14352
14353
14354 _ACEOF
14355 rm -f conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357   (eval $ac_link) 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; }; then
14366   :
14367 else
14368   echo "$as_me: program exited with status $ac_status" >&5
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372 ( exit $ac_status )
14373 no_libOggFLAC=yes
14374 fi
14375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14376 fi
14377        CFLAGS="$ac_save_CFLAGS"
14378        LIBS="$ac_save_LIBS"
14379   fi
14380
14381   if test "x$no_libOggFLAC" = "x" ; then
14382      echo "$as_me:$LINENO: result: yes" >&5
14383 echo "${ECHO_T}yes" >&6
14384
14385     EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14386     for f in $LIBOGGFLAC_CFLAGS; do
14387     case ".$f" in
14388         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14389         *)              CFLAGS="$CPPFLAGS $f" ;;
14390     esac
14391 done
14392
14393     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14394
14395   else
14396      echo "$as_me:$LINENO: result: no" >&5
14397 echo "${ECHO_T}no" >&6
14398      if test -f conf.libOggFLACtest ; then
14399        :
14400      else
14401        echo "*** Could not run libOggFLAC test program, checking why..."
14402        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14403        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14404        cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h.  */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h.  */
14410
14411 #include <stdio.h>
14412 #include <OggFLAC/stream_decoder.h>
14413
14414 int
14415 main ()
14416 {
14417  return 0;
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424   (eval $ac_link) 2>conftest.er1
14425   ac_status=$?
14426   grep -v '^ *+' conftest.er1 >conftest.err
14427   rm -f conftest.er1
14428   cat conftest.err >&5
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); } &&
14431          { ac_try='test -z "$ac_c_werror_flag"
14432                          || test ! -s conftest.err'
14433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434   (eval $ac_try) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; } &&
14438          { ac_try='test -s conftest$ac_exeext'
14439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440   (eval $ac_try) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; }; then
14444    echo "*** The test program compiled, but did not run. This usually means"
14445        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14446        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14447        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14448        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14449        echo "*** is required on your system"
14450        echo "***"
14451        echo "*** If you have an old version installed, it is best to remove it, although"
14452        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457  echo "*** The test program failed to compile or link. See the file config.log for the"
14458        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14459        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14460        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14461 fi
14462 rm -f conftest.err conftest.$ac_objext \
14463       conftest$ac_exeext conftest.$ac_ext
14464        CFLAGS="$ac_save_CFLAGS"
14465        LIBS="$ac_save_LIBS"
14466      fi
14467      LIBOGGFLAC_CFLAGS=""
14468      LIBOGGFLAC_LIBS=""
14469      :
14470   fi
14471
14472
14473   rm -f conf.libOggFLACtest
14474
14475 else
14476   echo "$as_me:$LINENO: result: no" >&5
14477 echo "${ECHO_T}no" >&6
14478 fi
14479
14480 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14481 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14482 if test "x$au_enable_speex" = xyes; then
14483   if test "${have_speex+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h.  */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h.  */
14492
14493   #include <speex.h>
14494   #include <ogg/ogg.h>
14495
14496 int
14497 main ()
14498 {
14499
14500     SpeexBits *dummy;
14501
14502   ;
14503   return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508   (eval $ac_link) 2>conftest.er1
14509   ac_status=$?
14510   grep -v '^ *+' conftest.er1 >conftest.err
14511   rm -f conftest.er1
14512   cat conftest.err >&5
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } &&
14515          { ac_try='test -z "$ac_c_werror_flag"
14516                          || test ! -s conftest.err'
14517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518   (eval $ac_try) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); }; } &&
14522          { ac_try='test -s conftest$ac_exeext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   have_speex=yes
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 have_speex=no
14534 fi
14535 rm -f conftest.err conftest.$ac_objext \
14536       conftest$ac_exeext conftest.$ac_ext
14537 fi
14538
14539   echo "$as_me:$LINENO: result: $have_speex" >&5
14540 echo "${ECHO_T}$have_speex" >&6
14541   if test "x$have_speex" = xyes; then
14542     SYSEXTRAS="$SYSEXTRAS speex_a.c"
14543     EXTRALIBS="$EXTRALIBS -lspeex -logg"
14544     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14545   fi
14546 else
14547   echo "$as_me:$LINENO: result: no" >&5
14548 echo "${ECHO_T}no" >&6
14549 fi
14550
14551 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14552 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14553 if test "x$au_enable_gogo" = xyes; then
14554   if test "x$CYGNUS" = "xyes"; then
14555     echo "$as_me:$LINENO: result: yes" >&5
14556 echo "${ECHO_T}yes" >&6
14557   else
14558     if test "x$MINGW" = "xyes"; then
14559     echo "$as_me:$LINENO: result: yes" >&5
14560 echo "${ECHO_T}yes" >&6
14561     else
14562       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14563 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14564     fi
14565   fi
14566   have_gogo=yes
14567   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14568   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14569   EXTRALIBS="$EXTRALIBS -lgogo"
14570 else
14571   echo "$as_me:$LINENO: result: no" >&5
14572 echo "${ECHO_T}no" >&6
14573 fi
14574
14575 if test "x$au_enable_none" = xyes; then
14576     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14577     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14578 fi
14579 echo "$as_me:$LINENO: checking default output mode" >&5
14580 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14581 if test "x$DEFAULT_PLAYMODE" = x; then
14582   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14583 fi
14584 case ".$DEFAULT_PLAYMODE" in
14585   .default)  TIMIDITY_OUTPUT_ID=d ;;
14586   .oss)      TIMIDITY_OUTPUT_ID=d ;;
14587   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
14588   .sun)      TIMIDITY_OUTPUT_ID=d ;;
14589   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
14590   .irix)     TIMIDITY_OUTPUT_ID=d ;;
14591   .mme)      TIMIDITY_OUTPUT_ID=d ;;
14592   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
14593   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
14594   .w32)      TIMIDITY_OUTPUT_ID=d ;;
14595   .alib)     TIMIDITY_OUTPUT_ID=A ;;
14596   .nas)      TIMIDITY_OUTPUT_ID=n ;;
14597   .arts)     TIMIDITY_OUTPUT_ID=R ;;
14598   .esd)      TIMIDITY_OUTPUT_ID=e ;;
14599   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
14600   .wav)      TIMIDITY_OUTPUT_ID=w ;;
14601   .au)       TIMIDITY_OUTPUT_ID=u ;;
14602   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
14603   .list)     TIMIDITY_OUTPUT_ID=l ;;
14604   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
14605   .flac)     TIMIDITY_OUTPUT_ID=F ;;
14606   .speex)    TIMIDITY_OUTPUT_ID=S ;;
14607   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
14608   .jack)     TIMIDITY_OUTPUT_ID=j ;;
14609   *)         TIMIDITY_OUTPUT_ID= ;;
14610 esac
14611 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14612 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14613
14614 #
14615 # Interface Section
14616 #
14617
14618 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14619
14620 # Check whether --enable-interface or --disable-interface was given.
14621 if test "${enable_interface+set}" = set; then
14622   enableval="$enable_interface"
14623    for i in `echo $enableval | sed 's/,/ /g'`; do
14624       eval "enable_$i=yes"
14625     done
14626 fi;
14627
14628 #  Dynamic link configuration
14629 # Check whether --enable-dynamic or --disable-dynamic was given.
14630 if test "${enable_dynamic+set}" = set; then
14631   enableval="$enable_dynamic"
14632        if test "x$enable_dynamic" = xyes; then
14633       enable_dynamic=dynamic
14634     elif test "x$enable_dynamic" != xno; then
14635       for i in `echo $enableval | sed 's/,/ /g'`; do
14636         eval "enable_$i=dynamic"
14637       done
14638     fi
14639 fi;
14640
14641 join_targets=
14642 for i in $interface_targets; do
14643   eval "join_targets=$join_targets\$enable_$i"
14644 done
14645
14646 case ".$join_targets" in
14647 .*dynamic*) NEEDDLOPEN=yes;;
14648 *)          NEEDDLOPEN=no;;
14649 esac
14650
14651 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14652 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14653
14654 if test "$NEEDDLOPEN" = "yes"; then
14655   have_dl=no
14656
14657   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14658 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14659 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14660   echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662   cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h.  */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h.  */
14668 #include <windows.h>
14669
14670
14671 int
14672 main ()
14673 {
14674 LoadLibrary(0);
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 rm -f conftest.$ac_objext conftest$ac_exeext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14681   (eval $ac_link) 2>conftest.er1
14682   ac_status=$?
14683   grep -v '^ *+' conftest.er1 >conftest.err
14684   rm -f conftest.er1
14685   cat conftest.err >&5
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } &&
14688          { ac_try='test -z "$ac_c_werror_flag"
14689                          || test ! -s conftest.err'
14690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691   (eval $ac_try) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); }; } &&
14695          { ac_try='test -s conftest$ac_exeext'
14696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697   (eval $ac_try) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   wapi_cv_func_LoadLibrary=yes
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 wapi_cv_func_LoadLibrary=no
14707 fi
14708 rm -f conftest.err conftest.$ac_objext \
14709       conftest$ac_exeext conftest.$ac_ext
14710 fi
14711
14712 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14713   echo "$as_me:$LINENO: result: yes" >&5
14714 echo "${ECHO_T}yes" >&6
14715   have_dl=w32
14716 else
14717   echo "$as_me:$LINENO: result: no" >&5
14718 echo "${ECHO_T}no" >&6
14719 fi
14720
14721   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14722
14723   if test "$have_dl" = "no"; then
14724     echo "$as_me:$LINENO: checking for shl_load" >&5
14725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14726 if test "${ac_cv_func_shl_load+set}" = set; then
14727   echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729   cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14737 #define shl_load innocuous_shl_load
14738
14739 /* System header to define __stub macros and hopefully few prototypes,
14740     which can conflict with char shl_load (); below.
14741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14742     <limits.h> exists even on freestanding compilers.  */
14743
14744 #ifdef __STDC__
14745 # include <limits.h>
14746 #else
14747 # include <assert.h>
14748 #endif
14749
14750 #undef shl_load
14751
14752 /* Override any gcc2 internal prototype to avoid an error.  */
14753 #ifdef __cplusplus
14754 extern "C"
14755 {
14756 #endif
14757 /* We use char because int might match the return type of a gcc2
14758    builtin and then its argument prototype would still apply.  */
14759 char shl_load ();
14760 /* The GNU C library defines this for functions which it implements
14761     to always fail with ENOSYS.  Some functions are actually named
14762     something starting with __ and the normal name is an alias.  */
14763 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14764 choke me
14765 #else
14766 char (*f) () = shl_load;
14767 #endif
14768 #ifdef __cplusplus
14769 }
14770 #endif
14771
14772 int
14773 main ()
14774 {
14775 return f != shl_load;
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782   (eval $ac_link) 2>conftest.er1
14783   ac_status=$?
14784   grep -v '^ *+' conftest.er1 >conftest.err
14785   rm -f conftest.er1
14786   cat conftest.err >&5
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } &&
14789          { ac_try='test -z "$ac_c_werror_flag"
14790                          || test ! -s conftest.err'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; } &&
14796          { ac_try='test -s conftest$ac_exeext'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   ac_cv_func_shl_load=yes
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 ac_cv_func_shl_load=no
14808 fi
14809 rm -f conftest.err conftest.$ac_objext \
14810       conftest$ac_exeext conftest.$ac_ext
14811 fi
14812 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14813 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14814 if test $ac_cv_func_shl_load = yes; then
14815   have_dl=hpux
14816 fi
14817
14818   fi
14819   if test "$have_dl" = "no"; then
14820             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14821 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14822 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14833 #define NSLinkModule innocuous_NSLinkModule
14834
14835 /* System header to define __stub macros and hopefully few prototypes,
14836     which can conflict with char NSLinkModule (); below.
14837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14838     <limits.h> exists even on freestanding compilers.  */
14839
14840 #ifdef __STDC__
14841 # include <limits.h>
14842 #else
14843 # include <assert.h>
14844 #endif
14845
14846 #undef NSLinkModule
14847
14848 /* Override any gcc2 internal prototype to avoid an error.  */
14849 #ifdef __cplusplus
14850 extern "C"
14851 {
14852 #endif
14853 /* We use char because int might match the return type of a gcc2
14854    builtin and then its argument prototype would still apply.  */
14855 char NSLinkModule ();
14856 /* The GNU C library defines this for functions which it implements
14857     to always fail with ENOSYS.  Some functions are actually named
14858     something starting with __ and the normal name is an alias.  */
14859 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14860 choke me
14861 #else
14862 char (*f) () = NSLinkModule;
14863 #endif
14864 #ifdef __cplusplus
14865 }
14866 #endif
14867
14868 int
14869 main ()
14870 {
14871 return f != NSLinkModule;
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 rm -f conftest.$ac_objext conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878   (eval $ac_link) 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } &&
14885          { ac_try='test -z "$ac_c_werror_flag"
14886                          || test ! -s conftest.err'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; } &&
14892          { ac_try='test -s conftest$ac_exeext'
14893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894   (eval $ac_try) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); }; }; then
14898   ac_cv_func_NSLinkModule=yes
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ac_cv_func_NSLinkModule=no
14904 fi
14905 rm -f conftest.err conftest.$ac_objext \
14906       conftest$ac_exeext conftest.$ac_ext
14907 fi
14908 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14909 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14910 if test $ac_cv_func_NSLinkModule = yes; then
14911   have_dl=dyld
14912 fi
14913
14914   fi
14915   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14916     have_dl=dlopen
14917   fi
14918   if test "$have_dl" = "no"; then
14919     echo "$as_me:$LINENO: checking for dlopen" >&5
14920 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14921 if test "${ac_cv_func_dlopen+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14932 #define dlopen innocuous_dlopen
14933
14934 /* System header to define __stub macros and hopefully few prototypes,
14935     which can conflict with char dlopen (); below.
14936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14937     <limits.h> exists even on freestanding compilers.  */
14938
14939 #ifdef __STDC__
14940 # include <limits.h>
14941 #else
14942 # include <assert.h>
14943 #endif
14944
14945 #undef dlopen
14946
14947 /* Override any gcc2 internal prototype to avoid an error.  */
14948 #ifdef __cplusplus
14949 extern "C"
14950 {
14951 #endif
14952 /* We use char because int might match the return type of a gcc2
14953    builtin and then its argument prototype would still apply.  */
14954 char dlopen ();
14955 /* The GNU C library defines this for functions which it implements
14956     to always fail with ENOSYS.  Some functions are actually named
14957     something starting with __ and the normal name is an alias.  */
14958 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14959 choke me
14960 #else
14961 char (*f) () = dlopen;
14962 #endif
14963 #ifdef __cplusplus
14964 }
14965 #endif
14966
14967 int
14968 main ()
14969 {
14970 return f != dlopen;
14971   ;
14972   return 0;
14973 }
14974 _ACEOF
14975 rm -f conftest.$ac_objext conftest$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977   (eval $ac_link) 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } &&
14984          { ac_try='test -z "$ac_c_werror_flag"
14985                          || test ! -s conftest.err'
14986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987   (eval $ac_try) 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; } &&
14991          { ac_try='test -s conftest$ac_exeext'
14992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993   (eval $ac_try) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; }; then
14997   ac_cv_func_dlopen=yes
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 ac_cv_func_dlopen=no
15003 fi
15004 rm -f conftest.err conftest.$ac_objext \
15005       conftest$ac_exeext conftest.$ac_ext
15006 fi
15007 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15008 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15009 if test $ac_cv_func_dlopen = yes; then
15010   have_dl=dlopen
15011 fi
15012
15013   fi
15014   if test "$have_dl" = "no"; then
15015     echo "$as_me:$LINENO: checking for dld_init" >&5
15016 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15017 if test "${ac_cv_func_dld_init+set}" = set; then
15018   echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020   cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15028 #define dld_init innocuous_dld_init
15029
15030 /* System header to define __stub macros and hopefully few prototypes,
15031     which can conflict with char dld_init (); below.
15032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15033     <limits.h> exists even on freestanding compilers.  */
15034
15035 #ifdef __STDC__
15036 # include <limits.h>
15037 #else
15038 # include <assert.h>
15039 #endif
15040
15041 #undef dld_init
15042
15043 /* Override any gcc2 internal prototype to avoid an error.  */
15044 #ifdef __cplusplus
15045 extern "C"
15046 {
15047 #endif
15048 /* We use char because int might match the return type of a gcc2
15049    builtin and then its argument prototype would still apply.  */
15050 char dld_init ();
15051 /* The GNU C library defines this for functions which it implements
15052     to always fail with ENOSYS.  Some functions are actually named
15053     something starting with __ and the normal name is an alias.  */
15054 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15055 choke me
15056 #else
15057 char (*f) () = dld_init;
15058 #endif
15059 #ifdef __cplusplus
15060 }
15061 #endif
15062
15063 int
15064 main ()
15065 {
15066 return f != dld_init;
15067   ;
15068   return 0;
15069 }
15070 _ACEOF
15071 rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15073   (eval $ac_link) 2>conftest.er1
15074   ac_status=$?
15075   grep -v '^ *+' conftest.er1 >conftest.err
15076   rm -f conftest.er1
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -z "$ac_c_werror_flag"
15081                          || test ! -s conftest.err'
15082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083   (eval $ac_try) 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); }; } &&
15087          { ac_try='test -s conftest$ac_exeext'
15088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089   (eval $ac_try) 2>&5
15090   ac_status=$?
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); }; }; then
15093   ac_cv_func_dld_init=yes
15094 else
15095   echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098 ac_cv_func_dld_init=no
15099 fi
15100 rm -f conftest.err conftest.$ac_objext \
15101       conftest$ac_exeext conftest.$ac_ext
15102 fi
15103 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15104 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15105 if test $ac_cv_func_dld_init = yes; then
15106   have_dl=dld
15107 fi
15108
15109   fi
15110   if test "$have_dl" = "no"; then
15111     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15112 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15113 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116   ac_check_lib_save_LIBS=$LIBS
15117 LIBS="-ldld  $LIBS"
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124
15125 /* Override any gcc2 internal prototype to avoid an error.  */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 /* We use char because int might match the return type of a gcc2
15130    builtin and then its argument prototype would still apply.  */
15131 char dld_init ();
15132 int
15133 main ()
15134 {
15135 dld_init ();
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142   (eval $ac_link) 2>conftest.er1
15143   ac_status=$?
15144   grep -v '^ *+' conftest.er1 >conftest.err
15145   rm -f conftest.er1
15146   cat conftest.err >&5
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } &&
15149          { ac_try='test -z "$ac_c_werror_flag"
15150                          || test ! -s conftest.err'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; } &&
15156          { ac_try='test -s conftest$ac_exeext'
15157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158   (eval $ac_try) 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; }; then
15162   ac_cv_lib_dld_dld_init=yes
15163 else
15164   echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 ac_cv_lib_dld_dld_init=no
15168 fi
15169 rm -f conftest.err conftest.$ac_objext \
15170       conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15172 fi
15173 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15174 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15175 if test $ac_cv_lib_dld_dld_init = yes; then
15176   have_dl=dld;lib_dl_opt=-ldld
15177 fi
15178
15179   fi
15180
15181   echo "$as_me:$LINENO: checking dynamic link method" >&5
15182 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15183   case "$have_dl" in
15184     dlopen)
15185       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15186 echo "${ECHO_T}use dl_dlopen.c" >&6
15187       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15188       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15189 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15190 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   case "$ac_cv_header_dlfcn_h" in
15194 yes) i_dlfcn=define;;
15195 *)   i_dlfcn=undef;;
15196 esac
15197 cat > dyna.c <<EOM
15198 fred () { }
15199 EOM
15200
15201 cat > fred.c <<EOM
15202 #include <stdio.h>
15203 #$i_dlfcn I_DLFCN
15204 #ifdef I_DLFCN
15205 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15206 #else
15207 #include <sys/types.h>
15208 #include <nlist.h>
15209 #include <link.h>
15210 #endif
15211
15212 extern int fred() ;
15213
15214 main()
15215 {
15216     void * handle ;
15217     void * symbol ;
15218 #ifndef RTLD_LAZY
15219     int mode = 1 ;
15220 #else
15221     int mode = RTLD_LAZY ;
15222 #endif
15223     handle = dlopen("./dyna.$so", mode) ;
15224     if (handle == NULL) {
15225         printf ("1\n") ;
15226         fflush (stdout) ;
15227         exit(0);
15228     }
15229     symbol = dlsym(handle, "fred") ;
15230     if (symbol == NULL) {
15231         /* try putting a leading underscore */
15232         symbol = dlsym(handle, "_fred") ;
15233         if (symbol == NULL) {
15234             printf ("2\n") ;
15235             fflush (stdout) ;
15236             exit(0);
15237         }
15238         printf ("3\n") ;
15239     }
15240     else
15241         printf ("4\n") ;
15242     fflush (stdout) ;
15243     exit(0);
15244 }
15245 EOM
15246 : Call the object file tmp-dyna.o in case dlext=o.
15247 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15248         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15249         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15250         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15251         xxx=`./fred`
15252         case $xxx in
15253         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15254 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15255                 ;;
15256         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15257 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15258                 ;;
15259         3)      timidity_cv_func_dlsym_underscore=yes
15260                 ;;
15261         4)      timidity_cv_func_dlsym_underscore=no
15262                 ;;
15263         esac
15264 else
15265         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15266 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15267 fi
15268 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15269
15270 fi
15271
15272 case "x$timidity_cv_func_dlsym_underscore" in
15273 xyes)
15274 cat >>confdefs.h <<\_ACEOF
15275 #define DLSYM_NEEDS_UNDERSCORE 1
15276 _ACEOF
15277
15278         echo "$as_me:$LINENO: result: yes" >&5
15279 echo "${ECHO_T}yes" >&6
15280         ;;
15281 xno)
15282         echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6
15284         ;;
15285 esac
15286
15287       ;;
15288     dld)
15289       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15290 echo "${ECHO_T}use dl_dld.c" >&6
15291       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15292       ;;
15293     hpux)
15294       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15295 echo "${ECHO_T}use dl_hpux.c" >&6
15296       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15297       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15298       ;;
15299     w32)
15300       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15301 echo "${ECHO_T}use dl_w32.c" >&6
15302       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15303       ;;
15304     dyld)
15305       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15306 echo "${ECHO_T}use dl_dyld.c" >&6
15307       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15308       ;;
15309     *)
15310       NEEDDLOPEN="no"
15311       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15312 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15313       ;;
15314   esac
15315 fi
15316
15317 if test "$NEEDDLOPEN" = "yes"; then
15318   cat >> confdefs.h <<EOF
15319 #define IA_DYNAMIC 1
15320 EOF
15321
15322
15323 cat >>confdefs.h <<_ACEOF
15324 #define SHARED_LIB_EXT ".$so"
15325 _ACEOF
15326
15327       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15328 fi
15329
15330
15331
15332 if test "$NEEDDLOPEN" = "yes"; then
15333   NEEDDLOPEN_TRUE=
15334   NEEDDLOPEN_FALSE='#'
15335 else
15336   NEEDDLOPEN_TRUE='#'
15337   NEEDDLOPEN_FALSE=
15338 fi
15339
15340
15341
15342
15343
15344 if false; then
15345   ENABLE_NCURSES_TRUE=
15346   ENABLE_NCURSES_FALSE='#'
15347 else
15348   ENABLE_NCURSES_TRUE='#'
15349   ENABLE_NCURSES_FALSE=
15350 fi
15351
15352 # Check whether --enable-ncurses or --disable-ncurses was given.
15353 if test "${enable_ncurses+set}" = set; then
15354   enableval="$enable_ncurses"
15355   case "x$enable_ncurses" in xyes|xdynamic)
15356
15357
15358 for ac_header in ncurses.h ncurses/curses.h curses.h
15359 do
15360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15362   echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 fi
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15369 else
15370   # Is the header compilable?
15371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379 $ac_includes_default
15380 #include <$ac_header>
15381 _ACEOF
15382 rm -f conftest.$ac_objext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15384   (eval $ac_compile) 2>conftest.er1
15385   ac_status=$?
15386   grep -v '^ *+' conftest.er1 >conftest.err
15387   rm -f conftest.er1
15388   cat conftest.err >&5
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); } &&
15391          { ac_try='test -z "$ac_c_werror_flag"
15392                          || test ! -s conftest.err'
15393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394   (eval $ac_try) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; } &&
15398          { ac_try='test -s conftest.$ac_objext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_header_compiler=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409 ac_header_compiler=no
15410 fi
15411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413 echo "${ECHO_T}$ac_header_compiler" >&6
15414
15415 # Is the header present?
15416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424 #include <$ac_header>
15425 _ACEOF
15426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15428   ac_status=$?
15429   grep -v '^ *+' conftest.er1 >conftest.err
15430   rm -f conftest.er1
15431   cat conftest.err >&5
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } >/dev/null; then
15434   if test -s conftest.err; then
15435     ac_cpp_err=$ac_c_preproc_warn_flag
15436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15437   else
15438     ac_cpp_err=
15439   fi
15440 else
15441   ac_cpp_err=yes
15442 fi
15443 if test -z "$ac_cpp_err"; then
15444   ac_header_preproc=yes
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449   ac_header_preproc=no
15450 fi
15451 rm -f conftest.err conftest.$ac_ext
15452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15453 echo "${ECHO_T}$ac_header_preproc" >&6
15454
15455 # So?  What about this header?
15456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15457   yes:no: )
15458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15462     ac_header_preproc=yes
15463     ;;
15464   no:yes:* )
15465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15477     (
15478       cat <<\_ASBOX
15479 ## ------------------------------- ##
15480 ## Report this to root@mput.dip.jp ##
15481 ## ------------------------------- ##
15482 _ASBOX
15483     ) |
15484       sed "s/^/$as_me: WARNING:     /" >&2
15485     ;;
15486 esac
15487 echo "$as_me:$LINENO: checking for $ac_header" >&5
15488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   eval "$as_ac_Header=\$ac_header_preproc"
15493 fi
15494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15496
15497 fi
15498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15499   cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501 _ACEOF
15502
15503 fi
15504
15505 done
15506
15507
15508
15509   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15510     *yes*);;
15511     *)  for i in /usr/include /usr/local/include; do
15512           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15513             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15514 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15515             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15516             break
15517           fi
15518         done
15519         ;;
15520     esac
15521
15522     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15523 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15524 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15525   echo $ECHO_N "(cached) $ECHO_C" >&6
15526 else
15527   ac_check_lib_save_LIBS=$LIBS
15528 LIBS="-lncurses  $LIBS"
15529 cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h.  */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h.  */
15535
15536 /* Override any gcc2 internal prototype to avoid an error.  */
15537 #ifdef __cplusplus
15538 extern "C"
15539 #endif
15540 /* We use char because int might match the return type of a gcc2
15541    builtin and then its argument prototype would still apply.  */
15542 char initscr ();
15543 int
15544 main ()
15545 {
15546 initscr ();
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15553   (eval $ac_link) 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } &&
15560          { ac_try='test -z "$ac_c_werror_flag"
15561                          || test ! -s conftest.err'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; } &&
15567          { ac_try='test -s conftest$ac_exeext'
15568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569   (eval $ac_try) 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); }; }; then
15573   ac_cv_lib_ncurses_initscr=yes
15574 else
15575   echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 ac_cv_lib_ncurses_initscr=no
15579 fi
15580 rm -f conftest.err conftest.$ac_objext \
15581       conftest$ac_exeext conftest.$ac_ext
15582 LIBS=$ac_check_lib_save_LIBS
15583 fi
15584 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15585 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15586 if test $ac_cv_lib_ncurses_initscr = yes; then
15587   lib_curses_opt=-lncurses
15588 else
15589         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15590 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15591 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15592   echo $ECHO_N "(cached) $ECHO_C" >&6
15593 else
15594   ac_check_lib_save_LIBS=$LIBS
15595 LIBS="-lcurses $lib_user32_test $LIBS"
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h.  */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h.  */
15602
15603 /* Override any gcc2 internal prototype to avoid an error.  */
15604 #ifdef __cplusplus
15605 extern "C"
15606 #endif
15607 /* We use char because int might match the return type of a gcc2
15608    builtin and then its argument prototype would still apply.  */
15609 char PDC_set_ctrl_break ();
15610 int
15611 main ()
15612 {
15613 PDC_set_ctrl_break ();
15614   ;
15615   return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620   (eval $ac_link) 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } &&
15627          { ac_try='test -z "$ac_c_werror_flag"
15628                          || test ! -s conftest.err'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; } &&
15634          { ac_try='test -s conftest$ac_exeext'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640   ac_cv_lib_curses_PDC_set_ctrl_break=yes
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 ac_cv_lib_curses_PDC_set_ctrl_break=no
15646 fi
15647 rm -f conftest.err conftest.$ac_objext \
15648       conftest$ac_exeext conftest.$ac_ext
15649 LIBS=$ac_check_lib_save_LIBS
15650 fi
15651 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15652 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15653 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15654    lib_curses_opt=-lcurses
15655
15656 cat >>confdefs.h <<\_ACEOF
15657 #define USE_PDCURSES 1
15658 _ACEOF
15659
15660             lib_user32_opt="$lib_user32_test"
15661
15662 else
15663             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15664 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15665 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15666   echo $ECHO_N "(cached) $ECHO_C" >&6
15667 else
15668   ac_check_lib_save_LIBS=$LIBS
15669 LIBS="-lpdcurses  $LIBS"
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h.  */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h.  */
15676
15677 /* Override any gcc2 internal prototype to avoid an error.  */
15678 #ifdef __cplusplus
15679 extern "C"
15680 #endif
15681 /* We use char because int might match the return type of a gcc2
15682    builtin and then its argument prototype would still apply.  */
15683 char PDC_set_ctrl_break ();
15684 int
15685 main ()
15686 {
15687 PDC_set_ctrl_break ();
15688   ;
15689   return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694   (eval $ac_link) 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -z "$ac_c_werror_flag"
15702                          || test ! -s conftest.err'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; } &&
15708          { ac_try='test -s conftest$ac_exeext'
15709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710   (eval $ac_try) 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15720 fi
15721 rm -f conftest.err conftest.$ac_objext \
15722       conftest$ac_exeext conftest.$ac_ext
15723 LIBS=$ac_check_lib_save_LIBS
15724 fi
15725 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15726 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15727 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15728    lib_curses_opt=-lpdcurses
15729
15730 cat >>confdefs.h <<\_ACEOF
15731 #define USE_PDCURSES 1
15732 _ACEOF
15733
15734               lib_user32_opt="$lib_user32_test"
15735
15736 else
15737               case "$target" in
15738                 *openbsd*)
15739                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15740 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15741 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15742   echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744   ac_check_lib_save_LIBS=$LIBS
15745 LIBS="-lcurses  $LIBS"
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h.  */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h.  */
15752
15753 /* Override any gcc2 internal prototype to avoid an error.  */
15754 #ifdef __cplusplus
15755 extern "C"
15756 #endif
15757 /* We use char because int might match the return type of a gcc2
15758    builtin and then its argument prototype would still apply.  */
15759 char initscr ();
15760 int
15761 main ()
15762 {
15763 initscr ();
15764   ;
15765   return 0;
15766 }
15767 _ACEOF
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15770   (eval $ac_link) 2>conftest.er1
15771   ac_status=$?
15772   grep -v '^ *+' conftest.er1 >conftest.err
15773   rm -f conftest.er1
15774   cat conftest.err >&5
15775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); } &&
15777          { ac_try='test -z "$ac_c_werror_flag"
15778                          || test ! -s conftest.err'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; } &&
15784          { ac_try='test -s conftest$ac_exeext'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   ac_cv_lib_curses_initscr=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_cv_lib_curses_initscr=no
15796 fi
15797 rm -f conftest.err conftest.$ac_objext \
15798       conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15800 fi
15801 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15802 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15803 if test $ac_cv_lib_curses_initscr = yes; then
15804   lib_curses_opt=-lcurses
15805 else
15806    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15807 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15808                       enable_ncurses=no
15809 fi
15810
15811                   ;;
15812                 *)
15813                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15814 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15815                   enable_ncurses=no
15816                   ;;
15817               esac
15818
15819 fi
15820
15821
15822 fi
15823
15824
15825 fi
15826
15827    ;; esac
15828 fi;
15829 case "x$enable_ncurses" in
15830 xyes)
15831   cat >> confdefs.h <<EOF
15832 #define IA_NCURSES 1
15833 EOF
15834
15835
15836
15837 if true; then
15838   ENABLE_NCURSES_TRUE=
15839   ENABLE_NCURSES_FALSE='#'
15840 else
15841   ENABLE_NCURSES_TRUE='#'
15842   ENABLE_NCURSES_FALSE=
15843 fi
15844
15845    LIBS="$LIBS $lib_curses_opt"
15846     case "$target" in
15847        *-*-freebsd123*)
15848          EXTRALIBS="$EXTRALIBS -lmytinfo"
15849          ;;
15850      esac
15851     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15852
15853   ;;
15854 xdynamic)
15855   dynamic_targets="$dynamic_targets interface_n.\$(so)"
15856    n_so_libs="$lib_curses_opt"
15857     case "$target" in
15858        *-*-freebsd123*)
15859          EXTRALIBS="$EXTRALIBS -lmytinfo"
15860          ;;
15861      esac
15862   ;;
15863 *)
15864
15865   ;;
15866 esac
15867
15868
15869
15870
15871
15872 if false; then
15873   ENABLE_SLANG_TRUE=
15874   ENABLE_SLANG_FALSE='#'
15875 else
15876   ENABLE_SLANG_TRUE='#'
15877   ENABLE_SLANG_FALSE=
15878 fi
15879
15880 # Check whether --enable-slang or --disable-slang was given.
15881 if test "${enable_slang+set}" = set; then
15882   enableval="$enable_slang"
15883   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15884 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15885 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15886   echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888   ac_check_lib_save_LIBS=$LIBS
15889 LIBS="-lslang  $LIBS"
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896
15897 /* Override any gcc2 internal prototype to avoid an error.  */
15898 #ifdef __cplusplus
15899 extern "C"
15900 #endif
15901 /* We use char because int might match the return type of a gcc2
15902    builtin and then its argument prototype would still apply.  */
15903 char SLang_init_tty ();
15904 int
15905 main ()
15906 {
15907 SLang_init_tty ();
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914   (eval $ac_link) 2>conftest.er1
15915   ac_status=$?
15916   grep -v '^ *+' conftest.er1 >conftest.err
15917   rm -f conftest.er1
15918   cat conftest.err >&5
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); } &&
15921          { ac_try='test -z "$ac_c_werror_flag"
15922                          || test ! -s conftest.err'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; } &&
15928          { ac_try='test -s conftest$ac_exeext'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; }; then
15934   ac_cv_lib_slang_SLang_init_tty=yes
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 ac_cv_lib_slang_SLang_init_tty=no
15940 fi
15941 rm -f conftest.err conftest.$ac_objext \
15942       conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15944 fi
15945 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15946 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15947 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15948   :
15949 else
15950    enable_slang=no
15951       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15952 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15953
15954 fi
15955
15956
15957
15958 for ac_header in slang/slang.h slang.h
15959 do
15960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962   echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 fi
15967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15969 else
15970   # Is the header compilable?
15971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979 $ac_includes_default
15980 #include <$ac_header>
15981 _ACEOF
15982 rm -f conftest.$ac_objext
15983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15984   (eval $ac_compile) 2>conftest.er1
15985   ac_status=$?
15986   grep -v '^ *+' conftest.er1 >conftest.err
15987   rm -f conftest.er1
15988   cat conftest.err >&5
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } &&
15991          { ac_try='test -z "$ac_c_werror_flag"
15992                          || test ! -s conftest.err'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; } &&
15998          { ac_try='test -s conftest.$ac_objext'
15999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000   (eval $ac_try) 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); }; }; then
16004   ac_header_compiler=yes
16005 else
16006   echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16008
16009 ac_header_compiler=no
16010 fi
16011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16013 echo "${ECHO_T}$ac_header_compiler" >&6
16014
16015 # Is the header present?
16016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024 #include <$ac_header>
16025 _ACEOF
16026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16028   ac_status=$?
16029   grep -v '^ *+' conftest.er1 >conftest.err
16030   rm -f conftest.er1
16031   cat conftest.err >&5
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); } >/dev/null; then
16034   if test -s conftest.err; then
16035     ac_cpp_err=$ac_c_preproc_warn_flag
16036     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16037   else
16038     ac_cpp_err=
16039   fi
16040 else
16041   ac_cpp_err=yes
16042 fi
16043 if test -z "$ac_cpp_err"; then
16044   ac_header_preproc=yes
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049   ac_header_preproc=no
16050 fi
16051 rm -f conftest.err conftest.$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6
16054
16055 # So?  What about this header?
16056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16057   yes:no: )
16058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16062     ac_header_preproc=yes
16063     ;;
16064   no:yes:* )
16065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16077     (
16078       cat <<\_ASBOX
16079 ## ------------------------------- ##
16080 ## Report this to root@mput.dip.jp ##
16081 ## ------------------------------- ##
16082 _ASBOX
16083     ) |
16084       sed "s/^/$as_me: WARNING:     /" >&2
16085     ;;
16086 esac
16087 echo "$as_me:$LINENO: checking for $ac_header" >&5
16088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092   eval "$as_ac_Header=\$ac_header_preproc"
16093 fi
16094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16096
16097 fi
16098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16099   cat >>confdefs.h <<_ACEOF
16100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16101 _ACEOF
16102
16103 fi
16104
16105 done
16106
16107    ;; esac
16108 fi;
16109 case "x$enable_slang" in
16110 xyes)
16111   cat >> confdefs.h <<EOF
16112 #define IA_SLANG 1
16113 EOF
16114
16115
16116
16117 if true; then
16118   ENABLE_SLANG_TRUE=
16119   ENABLE_SLANG_FALSE='#'
16120 else
16121   ENABLE_SLANG_TRUE='#'
16122   ENABLE_SLANG_FALSE=
16123 fi
16124
16125    LIBS="$LIBS -lslang"
16126     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16127
16128   ;;
16129 xdynamic)
16130   dynamic_targets="$dynamic_targets interface_s.\$(so)"
16131    s_so_libs="-lslang"
16132     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16133 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16134 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137   ac_check_lib_save_LIBS=$LIBS
16138 LIBS="-ltermcap  $LIBS"
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h.  */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h.  */
16145
16146 /* Override any gcc2 internal prototype to avoid an error.  */
16147 #ifdef __cplusplus
16148 extern "C"
16149 #endif
16150 /* We use char because int might match the return type of a gcc2
16151    builtin and then its argument prototype would still apply.  */
16152 char initscr ();
16153 int
16154 main ()
16155 {
16156 initscr ();
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163   (eval $ac_link) 2>conftest.er1
16164   ac_status=$?
16165   grep -v '^ *+' conftest.er1 >conftest.err
16166   rm -f conftest.er1
16167   cat conftest.err >&5
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } &&
16170          { ac_try='test -z "$ac_c_werror_flag"
16171                          || test ! -s conftest.err'
16172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173   (eval $ac_try) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; } &&
16177          { ac_try='test -s conftest$ac_exeext'
16178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179   (eval $ac_try) 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }; }; then
16183   ac_cv_lib_termcap_initscr=yes
16184 else
16185   echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16187
16188 ac_cv_lib_termcap_initscr=no
16189 fi
16190 rm -f conftest.err conftest.$ac_objext \
16191       conftest$ac_exeext conftest.$ac_ext
16192 LIBS=$ac_check_lib_save_LIBS
16193 fi
16194 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16195 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16196 if test $ac_cv_lib_termcap_initscr = yes; then
16197   s_so_libs="$s_so_libs -ltermcap"
16198 fi
16199
16200
16201   ;;
16202 *)
16203
16204   ;;
16205 esac
16206
16207
16208
16209
16210
16211 if false; then
16212   ENABLE_MOTIF_TRUE=
16213   ENABLE_MOTIF_FALSE='#'
16214 else
16215   ENABLE_MOTIF_TRUE='#'
16216   ENABLE_MOTIF_FALSE=
16217 fi
16218
16219 # Check whether --enable-motif or --disable-motif was given.
16220 if test "${enable_motif+set}" = set; then
16221   enableval="$enable_motif"
16222   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16223         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16224 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16225    { (exit 1); exit 1; }; }
16226     fi
16227     if test "x$have_xm" != xyes; then
16228       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16229 echo "$as_me: WARNING: Motif library is not found." >&2;}
16230       enable_motif=no
16231     fi
16232    ;; esac
16233 fi;
16234 case "x$enable_motif" in
16235 xyes)
16236   cat >> confdefs.h <<EOF
16237 #define IA_MOTIF 1
16238 EOF
16239
16240
16241
16242 if true; then
16243   ENABLE_MOTIF_TRUE=
16244   ENABLE_MOTIF_FALSE='#'
16245 else
16246   ENABLE_MOTIF_TRUE='#'
16247   ENABLE_MOTIF_FALSE=
16248 fi
16249
16250    lib_xm_opt=-lXm
16251     lib_xt_opt=-lXt
16252     lib_xext_opt=-lXext
16253     if test "x$have_xprelibs" = xyes; then
16254         lib_xprelibs_opt='-lSM -lICE'
16255     fi
16256     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16257
16258   ;;
16259 xdynamic)
16260   dynamic_targets="$dynamic_targets interface_m.\$(so)"
16261    if test x$have_xprelibs = xyes; then
16262       m_so_libs="-lXext -lSM -lICE"
16263     fi
16264     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16265
16266   ;;
16267 *)
16268
16269   ;;
16270 esac
16271
16272
16273
16274
16275
16276 if false; then
16277   ENABLE_TCLTK_TRUE=
16278   ENABLE_TCLTK_FALSE='#'
16279 else
16280   ENABLE_TCLTK_TRUE='#'
16281   ENABLE_TCLTK_FALSE=
16282 fi
16283
16284 # Check whether --enable-tcltk or --disable-tcltk was given.
16285 if test "${enable_tcltk+set}" = set; then
16286   enableval="$enable_tcltk"
16287   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16288         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16289 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16290    { (exit 1); exit 1; }; }
16291     fi
16292
16293         KEEPCPPFLAGS=$CPPFLAGS
16294     KEEPLDFLAGS=$LDFLAGS
16295     KEEPLIBS=$LIBS
16296
16297     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16298     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16299     LIBS="$LIBS $lib_dl_opt"
16300
16301     tcl_lib=
16302     tk_lib=
16303     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16304       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16305 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16306 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16307 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310   ac_check_lib_save_LIBS=$LIBS
16311 LIBS="-l$l  $LIBS"
16312 cat >conftest.$ac_ext <<_ACEOF
16313 /* confdefs.h.  */
16314 _ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h.  */
16318
16319 /* Override any gcc2 internal prototype to avoid an error.  */
16320 #ifdef __cplusplus
16321 extern "C"
16322 #endif
16323 /* We use char because int might match the return type of a gcc2
16324    builtin and then its argument prototype would still apply.  */
16325 char Tcl_Init ();
16326 int
16327 main ()
16328 {
16329 Tcl_Init ();
16330   ;
16331   return 0;
16332 }
16333 _ACEOF
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336   (eval $ac_link) 2>conftest.er1
16337   ac_status=$?
16338   grep -v '^ *+' conftest.er1 >conftest.err
16339   rm -f conftest.er1
16340   cat conftest.err >&5
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } &&
16343          { ac_try='test -z "$ac_c_werror_flag"
16344                          || test ! -s conftest.err'
16345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346   (eval $ac_try) 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; } &&
16350          { ac_try='test -s conftest$ac_exeext'
16351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352   (eval $ac_try) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; }; then
16356   eval "$as_ac_Lib=yes"
16357 else
16358   echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16360
16361 eval "$as_ac_Lib=no"
16362 fi
16363 rm -f conftest.err conftest.$ac_objext \
16364       conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16366 fi
16367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16368 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16369 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16370   tcl_lib=-l$l
16371 fi
16372 ;; esac
16373     done
16374     LIBS="$LIBS $tcl_lib"
16375     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16376       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16377 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16378 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16379 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   ac_check_lib_save_LIBS=$LIBS
16383 LIBS="-l$l  $LIBS"
16384 cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390
16391 /* Override any gcc2 internal prototype to avoid an error.  */
16392 #ifdef __cplusplus
16393 extern "C"
16394 #endif
16395 /* We use char because int might match the return type of a gcc2
16396    builtin and then its argument prototype would still apply.  */
16397 char Tk_Init ();
16398 int
16399 main ()
16400 {
16401 Tk_Init ();
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16408   (eval $ac_link) 2>conftest.er1
16409   ac_status=$?
16410   grep -v '^ *+' conftest.er1 >conftest.err
16411   rm -f conftest.er1
16412   cat conftest.err >&5
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); } &&
16415          { ac_try='test -z "$ac_c_werror_flag"
16416                          || test ! -s conftest.err'
16417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418   (eval $ac_try) 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; } &&
16422          { ac_try='test -s conftest$ac_exeext'
16423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424   (eval $ac_try) 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; }; then
16428   eval "$as_ac_Lib=yes"
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433 eval "$as_ac_Lib=no"
16434 fi
16435 rm -f conftest.err conftest.$ac_objext \
16436       conftest$ac_exeext conftest.$ac_ext
16437 LIBS=$ac_check_lib_save_LIBS
16438 fi
16439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16440 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16441 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16442   tk_lib=-l$l
16443 fi
16444 ;; esac
16445     done
16446
16447     LIBS=$KEEPLIBS
16448     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16449       CPPFLAGS=$KEEPCPPFLAGS
16450       LDFLAGS=$KEEPLDFLAGS
16451       enable_tcltk=no
16452       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16453 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16454     else
16455       tcltk_dep='tclIndex'
16456     fi
16457    ;; esac
16458 fi;
16459 case "x$enable_tcltk" in
16460 xyes)
16461   cat >> confdefs.h <<EOF
16462 #define IA_TCLTK 1
16463 EOF
16464
16465
16466
16467 if true; then
16468   ENABLE_TCLTK_TRUE=
16469   ENABLE_TCLTK_FALSE='#'
16470 else
16471   ENABLE_TCLTK_TRUE='#'
16472   ENABLE_TCLTK_FALSE=
16473 fi
16474
16475    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16476     case "$target" in
16477       *-*-bsdi*)
16478         EXTRALIBS="$EXTRALIBS -lipc"
16479         ;;
16480     esac
16481     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16482
16483   ;;
16484 xdynamic)
16485   dynamic_targets="$dynamic_targets interface_k.\$(so)"
16486    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16487     case "$target" in
16488       *-*-bsdi*)
16489         k_so_libs="$k_so_libs -lipc"
16490         ;;
16491     esac
16492     k_so_libs="$k_so_libs -lX11 -lm"
16493
16494   ;;
16495 *)
16496
16497   ;;
16498 esac
16499
16500
16501
16502
16503 if test "x$enable_tcltk" = "xdynamic"; then
16504   ENABLE_DYNAMIC_TCLTK_TRUE=
16505   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16506 else
16507   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16508   ENABLE_DYNAMIC_TCLTK_FALSE=
16509 fi
16510
16511
16512
16513
16514 if false; then
16515   ENABLE_EMACS_TRUE=
16516   ENABLE_EMACS_FALSE='#'
16517 else
16518   ENABLE_EMACS_TRUE='#'
16519   ENABLE_EMACS_FALSE=
16520 fi
16521
16522 # Check whether --enable-emacs or --disable-emacs was given.
16523 if test "${enable_emacs+set}" = set; then
16524   enableval="$enable_emacs"
16525   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16526 fi;
16527 case "x$enable_emacs" in
16528 xyes)
16529   cat >> confdefs.h <<EOF
16530 #define IA_EMACS 1
16531 EOF
16532
16533
16534
16535 if true; then
16536   ENABLE_EMACS_TRUE=
16537   ENABLE_EMACS_FALSE='#'
16538 else
16539   ENABLE_EMACS_TRUE='#'
16540   ENABLE_EMACS_FALSE=
16541 fi
16542
16543    ELFILES="$ELFILES timidity.el"
16544     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16545
16546   ;;
16547 xdynamic)
16548   dynamic_targets="$dynamic_targets interface_e.\$(so)"
16549    ELFILES="$ELFILES timidity.el"
16550   ;;
16551 *)
16552
16553   ;;
16554 esac
16555
16556
16557
16558
16559
16560 if false; then
16561   ENABLE_VT100_TRUE=
16562   ENABLE_VT100_FALSE='#'
16563 else
16564   ENABLE_VT100_TRUE='#'
16565   ENABLE_VT100_FALSE=
16566 fi
16567
16568 # Check whether --enable-vt100 or --disable-vt100 was given.
16569 if test "${enable_vt100+set}" = set; then
16570   enableval="$enable_vt100"
16571   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
16572 fi;
16573 case "x$enable_vt100" in
16574 xyes)
16575   cat >> confdefs.h <<EOF
16576 #define IA_VT100 1
16577 EOF
16578
16579
16580
16581 if true; then
16582   ENABLE_VT100_TRUE=
16583   ENABLE_VT100_FALSE='#'
16584 else
16585   ENABLE_VT100_TRUE='#'
16586   ENABLE_VT100_FALSE=
16587 fi
16588
16589    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16590   ;;
16591 xdynamic)
16592   dynamic_targets="$dynamic_targets interface_T.\$(so)"
16593
16594   ;;
16595 *)
16596
16597   ;;
16598 esac
16599
16600
16601
16602
16603
16604 if false; then
16605   ENABLE_XAW_TRUE=
16606   ENABLE_XAW_FALSE='#'
16607 else
16608   ENABLE_XAW_TRUE='#'
16609   ENABLE_XAW_FALSE=
16610 fi
16611
16612 # Check whether --enable-xaw or --disable-xaw was given.
16613 if test "${enable_xaw+set}" = set; then
16614   enableval="$enable_xaw"
16615   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16616         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16617 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16618    { (exit 1); exit 1; }; }
16619     fi
16620     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16621       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16622 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16623       enable_xaw=no
16624     fi  ;; esac
16625 fi;
16626 case "x$enable_xaw" in
16627 xyes)
16628   cat >> confdefs.h <<EOF
16629 #define IA_XAW 1
16630 EOF
16631
16632
16633
16634 if true; then
16635   ENABLE_XAW_TRUE=
16636   ENABLE_XAW_FALSE='#'
16637 else
16638   ENABLE_XAW_TRUE='#'
16639   ENABLE_XAW_FALSE=
16640 fi
16641
16642        if test "x$have_xext" = xyes; then
16643       lib_xext_opt=-lXext
16644     fi
16645     if test "x$have_xprelibs" = xyes; then
16646       lib_xprelibs_opt='-lSM -lICE'
16647     fi
16648     lib_xmu_opt=-lXmu
16649     lib_xt_opt=-lXt
16650     if test "x$have_xaw" = x3d; then
16651
16652 cat >>confdefs.h <<\_ACEOF
16653 #define XAW3D 1
16654 _ACEOF
16655
16656       lib_xaw_opt=-lXaw3d
16657     else
16658       lib_xaw_opt=-lXaw
16659     fi
16660     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16661
16662   ;;
16663 xdynamic)
16664   dynamic_targets="$dynamic_targets interface_a.\$(so)"
16665    if test "x$have_xext" = xyes; then
16666       a_so_libs="-lXext -lX11"
16667     else
16668       a_so_libs="-lX11"
16669     fi
16670     case "$target" in
16671       *darwin*)
16672         a_so_libs="$a_so_libs -lcc_dynamic"
16673         ;;
16674     esac
16675     if test "x$have_xprelibs" = xyes; then
16676       a_so_libs="-lSM -lICE $a_so_libs"
16677     fi
16678     if test "x$have_xaw" = xyes; then
16679       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16680     elif test "x$have_xaw" = x3d; then
16681
16682 cat >>confdefs.h <<\_ACEOF
16683 #define XAW3D 1
16684 _ACEOF
16685
16686       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16687     fi
16688     a_so_libs="$ldflags_x_opt $a_so_libs"
16689
16690   ;;
16691 *)
16692
16693   ;;
16694 esac
16695
16696
16697
16698
16699 if test "x$enable_xaw" = "xdynamic"; then
16700   ENABLE_DYNAMIC_XAW_TRUE=
16701   ENABLE_DYNAMIC_XAW_FALSE='#'
16702 else
16703   ENABLE_DYNAMIC_XAW_TRUE='#'
16704   ENABLE_DYNAMIC_XAW_FALSE=
16705 fi
16706
16707
16708
16709
16710 if false; then
16711   ENABLE_XSKIN_TRUE=
16712   ENABLE_XSKIN_FALSE='#'
16713 else
16714   ENABLE_XSKIN_TRUE='#'
16715   ENABLE_XSKIN_FALSE=
16716 fi
16717
16718 # Check whether --enable-xskin or --disable-xskin was given.
16719 if test "${enable_xskin+set}" = set; then
16720   enableval="$enable_xskin"
16721   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16722         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16723 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16724    { (exit 1); exit 1; }; }
16725     fi
16726    ;; esac
16727 fi;
16728 case "x$enable_xskin" in
16729 xyes)
16730   cat >> confdefs.h <<EOF
16731 #define IA_XSKIN 1
16732 EOF
16733
16734
16735
16736 if true; then
16737   ENABLE_XSKIN_TRUE=
16738   ENABLE_XSKIN_FALSE='#'
16739 else
16740   ENABLE_XSKIN_TRUE='#'
16741   ENABLE_XSKIN_FALSE=
16742 fi
16743
16744    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16745   ;;
16746 xdynamic)
16747   dynamic_targets="$dynamic_targets interface_i.\$(so)"
16748    i_so_libs="$ldflags_x_opt -lX11"
16749   ;;
16750 *)
16751
16752   ;;
16753 esac
16754
16755
16756
16757
16758
16759 if false; then
16760   ENABLE_GTK_TRUE=
16761   ENABLE_GTK_FALSE='#'
16762 else
16763   ENABLE_GTK_TRUE='#'
16764   ENABLE_GTK_FALSE=
16765 fi
16766
16767 # Check whether --enable-gtk or --disable-gtk was given.
16768 if test "${enable_gtk+set}" = set; then
16769   enableval="$enable_gtk"
16770   case "x$enable_gtk" in xyes|xdynamic)
16771 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16772 if test "${with_gtk_prefix+set}" = set; then
16773   withval="$with_gtk_prefix"
16774   gtk_config_prefix="$withval"
16775 else
16776   gtk_config_prefix=""
16777 fi;
16778
16779 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16780 if test "${with_gtk_exec_prefix+set}" = set; then
16781   withval="$with_gtk_exec_prefix"
16782   gtk_config_exec_prefix="$withval"
16783 else
16784   gtk_config_exec_prefix=""
16785 fi;
16786 # Check whether --enable-gtktest or --disable-gtktest was given.
16787 if test "${enable_gtktest+set}" = set; then
16788   enableval="$enable_gtktest"
16789
16790 else
16791   enable_gtktest=yes
16792 fi;
16793
16794   for module in .
16795   do
16796       case "$module" in
16797          gthread)
16798              gtk_config_args="$gtk_config_args gthread"
16799          ;;
16800       esac
16801   done
16802
16803   if test x$gtk_config_exec_prefix != x ; then
16804      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16805      if test x${GTK_CONFIG+set} != xset ; then
16806         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16807      fi
16808   fi
16809   if test x$gtk_config_prefix != x ; then
16810      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16811      if test x${GTK_CONFIG+set} != xset ; then
16812         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16813      fi
16814   fi
16815
16816   # Extract the first word of "gtk-config", so it can be a program name with args.
16817 set dummy gtk-config; ac_word=$2
16818 echo "$as_me:$LINENO: checking for $ac_word" >&5
16819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16820 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16821   echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823   case $GTK_CONFIG in
16824   [\\/]* | ?:[\\/]*)
16825   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16826   ;;
16827   *)
16828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829 for as_dir in $PATH
16830 do
16831   IFS=$as_save_IFS
16832   test -z "$as_dir" && as_dir=.
16833   for ac_exec_ext in '' $ac_executable_extensions; do
16834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16835     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16837     break 2
16838   fi
16839 done
16840 done
16841
16842   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16843   ;;
16844 esac
16845 fi
16846 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16847
16848 if test -n "$GTK_CONFIG"; then
16849   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16850 echo "${ECHO_T}$GTK_CONFIG" >&6
16851 else
16852   echo "$as_me:$LINENO: result: no" >&5
16853 echo "${ECHO_T}no" >&6
16854 fi
16855
16856   min_gtk_version=1.1.3
16857   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16858 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16859   no_gtk=""
16860   if test "$GTK_CONFIG" = "no" ; then
16861     no_gtk=yes
16862   else
16863     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16864     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16865     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16866            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16867     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16868            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16869     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16870            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16871     if test "x$enable_gtktest" = "xyes" ; then
16872       ac_save_CFLAGS="$CFLAGS"
16873       ac_save_LIBS="$LIBS"
16874       CFLAGS="$CFLAGS $GTK_CFLAGS"
16875       LIBS="$GTK_LIBS $LIBS"
16876       rm -f conf.gtktest
16877       if test "$cross_compiling" = yes; then
16878   echo $ac_n "cross compiling; assumed OK... $ac_c"
16879 else
16880   cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886
16887 #include <gtk/gtk.h>
16888 #include <stdio.h>
16889 #include <stdlib.h>
16890
16891 int
16892 main ()
16893 {
16894   int major, minor, micro;
16895   char *tmp_version;
16896
16897   system ("touch conf.gtktest");
16898
16899   /* HP/UX 9 (%@#!) writes to sscanf strings */
16900   tmp_version = g_strdup("$min_gtk_version");
16901   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16902      printf("%s, bad version string\n", "$min_gtk_version");
16903      exit(1);
16904    }
16905
16906   if ((gtk_major_version != $gtk_config_major_version) ||
16907       (gtk_minor_version != $gtk_config_minor_version) ||
16908       (gtk_micro_version != $gtk_config_micro_version))
16909     {
16910       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16911              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16912              gtk_major_version, gtk_minor_version, gtk_micro_version);
16913       printf ("*** was found! If gtk-config was correct, then it is best\n");
16914       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16915       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16916       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16917       printf("*** required on your system.\n");
16918       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16919       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16920       printf("*** before re-running configure\n");
16921     }
16922 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16923   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16924            (gtk_minor_version != GTK_MINOR_VERSION) ||
16925            (gtk_micro_version != GTK_MICRO_VERSION))
16926     {
16927       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16928              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16929       printf("*** library (version %d.%d.%d)\n",
16930              gtk_major_version, gtk_minor_version, gtk_micro_version);
16931     }
16932 #endif /* defined (GTK_MAJOR_VERSION) ... */
16933   else
16934     {
16935       if ((gtk_major_version > major) ||
16936         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16937         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16938       {
16939         return 0;
16940        }
16941      else
16942       {
16943         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16944                gtk_major_version, gtk_minor_version, gtk_micro_version);
16945         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16946                major, minor, micro);
16947         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16948         printf("***\n");
16949         printf("*** If you have already installed a sufficiently new version, this error\n");
16950         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16951         printf("*** being found. The easiest way to fix this is to remove the old version\n");
16952         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16953         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16954         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16955         printf("*** so that the correct libraries are found at run-time))\n");
16956       }
16957     }
16958   return 1;
16959 }
16960
16961 _ACEOF
16962 rm -f conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964   (eval $ac_link) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969   (eval $ac_try) 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; }; then
16973   :
16974 else
16975   echo "$as_me: program exited with status $ac_status" >&5
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 ( exit $ac_status )
16980 no_gtk=yes
16981 fi
16982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16983 fi
16984        CFLAGS="$ac_save_CFLAGS"
16985        LIBS="$ac_save_LIBS"
16986      fi
16987   fi
16988   if test "x$no_gtk" = x ; then
16989      echo "$as_me:$LINENO: result: yes" >&5
16990 echo "${ECHO_T}yes" >&6
16991      :
16992   else
16993      echo "$as_me:$LINENO: result: no" >&5
16994 echo "${ECHO_T}no" >&6
16995      if test "$GTK_CONFIG" = "no" ; then
16996        echo "*** The gtk-config script installed by GTK could not be found"
16997        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16998        echo "*** your path, or set the GTK_CONFIG environment variable to the"
16999        echo "*** full path to gtk-config."
17000      else
17001        if test -f conf.gtktest ; then
17002         :
17003        else
17004           echo "*** Could not run GTK test program, checking why..."
17005           CFLAGS="$CFLAGS $GTK_CFLAGS"
17006           LIBS="$LIBS $GTK_LIBS"
17007           cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013
17014 #include <gtk/gtk.h>
17015 #include <stdio.h>
17016
17017 int
17018 main ()
17019 {
17020  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17027   (eval $ac_link) 2>conftest.er1
17028   ac_status=$?
17029   grep -v '^ *+' conftest.er1 >conftest.err
17030   rm -f conftest.er1
17031   cat conftest.err >&5
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } &&
17034          { ac_try='test -z "$ac_c_werror_flag"
17035                          || test ! -s conftest.err'
17036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037   (eval $ac_try) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; } &&
17041          { ac_try='test -s conftest$ac_exeext'
17042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043   (eval $ac_try) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; }; then
17047    echo "*** The test program compiled, but did not run. This usually means"
17048           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17049           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17050           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17051           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17052           echo "*** is required on your system"
17053           echo "***"
17054           echo "*** If you have an old version installed, it is best to remove it, although"
17055           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17056           echo "***"
17057           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17058           echo "*** came with the system with the command"
17059           echo "***"
17060           echo "***    rpm --erase --nodeps gtk gtk-devel"
17061 else
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065  echo "*** The test program failed to compile or link. See the file config.log for the"
17066           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17067           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17068           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17069 fi
17070 rm -f conftest.err conftest.$ac_objext \
17071       conftest$ac_exeext conftest.$ac_ext
17072           CFLAGS="$ac_save_CFLAGS"
17073           LIBS="$ac_save_LIBS"
17074        fi
17075      fi
17076      GTK_CFLAGS=""
17077      GTK_LIBS=""
17078      enable_gtk=no
17079   fi
17080
17081
17082   rm -f conf.gtktest
17083   ;; esac
17084 fi;
17085 case "x$enable_gtk" in
17086 xyes)
17087   cat >> confdefs.h <<EOF
17088 #define IA_GTK 1
17089 EOF
17090
17091
17092
17093 if true; then
17094   ENABLE_GTK_TRUE=
17095   ENABLE_GTK_FALSE='#'
17096 else
17097   ENABLE_GTK_TRUE='#'
17098   ENABLE_GTK_FALSE=
17099 fi
17100
17101    LIBS="$LIBS $GTK_LIBS"
17102     for f in $GTK_CFLAGS; do
17103     case ".$f" in
17104         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17105         *)              CFLAGS="$CPPFLAGS $f" ;;
17106     esac
17107 done
17108
17109     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17110
17111   ;;
17112 xdynamic)
17113   dynamic_targets="$dynamic_targets interface_g.\$(so)"
17114    if test "x$GCC" = xyes; then
17115                 for i in $GTK_LIBS; do
17116             case "x$i" in
17117                 x-rdynamic) ;;
17118                 *) g_so_libs="$g_so_libs $i" ;;
17119             esac
17120         done
17121     else
17122         g_so_libs="$GTK_LIBS"
17123     fi
17124     for f in $GTK_CFLAGS; do
17125     case ".$f" in
17126         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17127         *)              CFLAGS="$CPPFLAGS $f" ;;
17128     esac
17129 done
17130
17131   ;;
17132 *)
17133
17134   ;;
17135 esac
17136
17137
17138
17139
17140
17141 if false; then
17142   ENABLE_SERVER_TRUE=
17143   ENABLE_SERVER_FALSE='#'
17144 else
17145   ENABLE_SERVER_TRUE='#'
17146   ENABLE_SERVER_FALSE=
17147 fi
17148
17149 # Check whether --enable-server or --disable-server was given.
17150 if test "${enable_server+set}" = set; then
17151   enableval="$enable_server"
17152   case "x$enable_server" in xyes|xdynamic)  ;; esac
17153 fi;
17154 case "x$enable_server" in
17155 xyes)
17156   cat >> confdefs.h <<EOF
17157 #define IA_SERVER 1
17158 EOF
17159
17160
17161
17162 if true; then
17163   ENABLE_SERVER_TRUE=
17164   ENABLE_SERVER_FALSE='#'
17165 else
17166   ENABLE_SERVER_TRUE='#'
17167   ENABLE_SERVER_FALSE=
17168 fi
17169
17170    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17171
17172 for ac_header in sys/soundcard.h
17173 do
17174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17176   echo "$as_me:$LINENO: checking for $ac_header" >&5
17177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 fi
17181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17183 else
17184   # Is the header compilable?
17185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193 $ac_includes_default
17194 #include <$ac_header>
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198   (eval $ac_compile) 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag"
17206                          || test ! -s conftest.err'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; } &&
17212          { ac_try='test -s conftest.$ac_objext'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; }; then
17218   ac_header_compiler=yes
17219 else
17220   echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 ac_header_compiler=no
17224 fi
17225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17227 echo "${ECHO_T}$ac_header_compiler" >&6
17228
17229 # Is the header present?
17230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h.  */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h.  */
17238 #include <$ac_header>
17239 _ACEOF
17240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17242   ac_status=$?
17243   grep -v '^ *+' conftest.er1 >conftest.err
17244   rm -f conftest.er1
17245   cat conftest.err >&5
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } >/dev/null; then
17248   if test -s conftest.err; then
17249     ac_cpp_err=$ac_c_preproc_warn_flag
17250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17251   else
17252     ac_cpp_err=
17253   fi
17254 else
17255   ac_cpp_err=yes
17256 fi
17257 if test -z "$ac_cpp_err"; then
17258   ac_header_preproc=yes
17259 else
17260   echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17262
17263   ac_header_preproc=no
17264 fi
17265 rm -f conftest.err conftest.$ac_ext
17266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17267 echo "${ECHO_T}$ac_header_preproc" >&6
17268
17269 # So?  What about this header?
17270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17271   yes:no: )
17272     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17276     ac_header_preproc=yes
17277     ;;
17278   no:yes:* )
17279     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17281     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17282 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17283     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17285     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17286 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17289     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17291     (
17292       cat <<\_ASBOX
17293 ## ------------------------------- ##
17294 ## Report this to root@mput.dip.jp ##
17295 ## ------------------------------- ##
17296 _ASBOX
17297     ) |
17298       sed "s/^/$as_me: WARNING:     /" >&2
17299     ;;
17300 esac
17301 echo "$as_me:$LINENO: checking for $ac_header" >&5
17302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   eval "$as_ac_Header=\$ac_header_preproc"
17307 fi
17308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17310
17311 fi
17312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17313   cat >>confdefs.h <<_ACEOF
17314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17315 _ACEOF
17316
17317 fi
17318
17319 done
17320
17321
17322   ;;
17323 xdynamic)
17324   dynamic_targets="$dynamic_targets interface_r.\$(so)"
17325
17326   ;;
17327 *)
17328
17329   ;;
17330 esac
17331
17332
17333
17334
17335
17336 if false; then
17337   ENABLE_ALSASEQ_TRUE=
17338   ENABLE_ALSASEQ_FALSE='#'
17339 else
17340   ENABLE_ALSASEQ_TRUE='#'
17341   ENABLE_ALSASEQ_FALSE=
17342 fi
17343
17344 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17345 if test "${enable_alsaseq+set}" = set; then
17346   enableval="$enable_alsaseq"
17347   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
17348 fi;
17349 case "x$enable_alsaseq" in
17350 xyes)
17351   cat >> confdefs.h <<EOF
17352 #define IA_ALSASEQ 1
17353 EOF
17354
17355
17356
17357 if true; then
17358   ENABLE_ALSASEQ_TRUE=
17359   ENABLE_ALSASEQ_FALSE='#'
17360 else
17361   ENABLE_ALSASEQ_TRUE='#'
17362   ENABLE_ALSASEQ_FALSE=
17363 fi
17364
17365    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17366     alsa_save_CFLAGS="$CFLAGS"
17367 alsa_save_LDFLAGS="$LDFLAGS"
17368 alsa_save_LIBS="$LIBS"
17369 alsa_found=yes
17370
17371
17372 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17373 if test "${with_alsa_prefix+set}" = set; then
17374   withval="$with_alsa_prefix"
17375   alsa_prefix="$withval"
17376 else
17377   alsa_prefix=""
17378 fi;
17379
17380
17381 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17382 if test "${with_alsa_inc_prefix+set}" = set; then
17383   withval="$with_alsa_inc_prefix"
17384   alsa_inc_prefix="$withval"
17385 else
17386   alsa_inc_prefix=""
17387 fi;
17388
17389 # Check whether --enable-alsatest or --disable-alsatest was given.
17390 if test "${enable_alsatest+set}" = set; then
17391   enableval="$enable_alsatest"
17392   enable_alsatest=no
17393 else
17394   enable_alsatest=yes
17395 fi;
17396
17397 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17398 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17399 if test "$alsa_inc_prefix" != "" ; then
17400         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17401         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17402 fi
17403 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17404 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17405
17406 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17407 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17408 if test "$alsa_prefix" != "" ; then
17409         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17410         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17411 fi
17412
17413 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17414 LIBS=`echo $LIBS | sed 's/-lm//'`
17415 LIBS=`echo $LIBS | sed 's/-ldl//'`
17416 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17417 LIBS=`echo $LIBS | sed 's/  //'`
17418 LIBS="$ALSA_LIBS $LIBS"
17419 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17420 echo "${ECHO_T}$ALSA_LIBS" >&6
17421
17422 min_alsa_version=0.1.1
17423 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17424 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17425 no_alsa=""
17426     alsa_min_major_version=`echo $min_alsa_version | \
17427            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17428     alsa_min_minor_version=`echo $min_alsa_version | \
17429            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17430     alsa_min_micro_version=`echo $min_alsa_version | \
17431            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17432
17433
17434
17435
17436 ac_ext=c
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17441
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448
17449 #include <alsa/asoundlib.h>
17450
17451 int
17452 main ()
17453 {
17454
17455 /* ensure backward compatibility */
17456 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17457 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17458 #endif
17459 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17460 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17461 #endif
17462 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17463 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17464 #endif
17465
17466 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17467   exit(0);
17468 #  else
17469 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17470 #       error not present
17471 #    endif
17472
17473 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17474   exit(0);
17475 #   else
17476 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17477 #          error not present
17478 #      endif
17479
17480 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17481 #        error not present
17482 #      endif
17483 #    endif
17484 #  endif
17485 exit(0);
17486
17487   ;
17488   return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493   (eval $ac_compile) 2>conftest.er1
17494   ac_status=$?
17495   grep -v '^ *+' conftest.er1 >conftest.err
17496   rm -f conftest.er1
17497   cat conftest.err >&5
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); } &&
17500          { ac_try='test -z "$ac_c_werror_flag"
17501                          || test ! -s conftest.err'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; } &&
17507          { ac_try='test -s conftest.$ac_objext'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; }; then
17513   echo "$as_me:$LINENO: result: found." >&5
17514 echo "${ECHO_T}found." >&6
17515 else
17516   echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h.  */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h.  */
17525
17526 #include <sys/asoundlib.h>
17527
17528 int
17529 main ()
17530 {
17531
17532 /* ensure backward compatibility */
17533 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17534 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17535 #endif
17536 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17537 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17538 #endif
17539 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17540 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17541 #endif
17542
17543 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17544   exit(0);
17545 #  else
17546 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17547 #       error not present
17548 #    endif
17549
17550 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17551   exit(0);
17552 #   else
17553 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17554 #          error not present
17555 #      endif
17556
17557 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17558 #        error not present
17559 #      endif
17560 #    endif
17561 #  endif
17562 exit(0);
17563
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 rm -f conftest.$ac_objext
17569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17570   (eval $ac_compile) 2>conftest.er1
17571   ac_status=$?
17572   grep -v '^ *+' conftest.er1 >conftest.err
17573   rm -f conftest.er1
17574   cat conftest.err >&5
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); } &&
17577          { ac_try='test -z "$ac_c_werror_flag"
17578                          || test ! -s conftest.err'
17579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580   (eval $ac_try) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); }; } &&
17584          { ac_try='test -s conftest.$ac_objext'
17585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586   (eval $ac_try) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; }; then
17590   echo "$as_me:$LINENO: result: found." >&5
17591 echo "${ECHO_T}found." >&6
17592 else
17593   echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17595
17596 echo "$as_me:$LINENO: result: not present." >&5
17597 echo "${ECHO_T}not present." >&6
17598    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17599 echo "${ECHO_T}libasound was not found anywhere." >&6
17600    alsa_found=no
17601 fi
17602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17603    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17604 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17605
17606 fi
17607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17608 ac_ext=c
17609 ac_cpp='$CPP $CPPFLAGS'
17610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17613
17614
17615
17616 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17617 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17618 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   ac_check_lib_save_LIBS=$LIBS
17622 LIBS="-lasound  $LIBS"
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629
17630 /* Override any gcc2 internal prototype to avoid an error.  */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 /* We use char because int might match the return type of a gcc2
17635    builtin and then its argument prototype would still apply.  */
17636 char snd_ctl_open ();
17637 int
17638 main ()
17639 {
17640 snd_ctl_open ();
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647   (eval $ac_link) 2>conftest.er1
17648   ac_status=$?
17649   grep -v '^ *+' conftest.er1 >conftest.err
17650   rm -f conftest.er1
17651   cat conftest.err >&5
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } &&
17654          { ac_try='test -z "$ac_c_werror_flag"
17655                          || test ! -s conftest.err'
17656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657   (eval $ac_try) 2>&5
17658   ac_status=$?
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); }; } &&
17661          { ac_try='test -s conftest$ac_exeext'
17662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663   (eval $ac_try) 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; }; then
17667   ac_cv_lib_asound_snd_ctl_open=yes
17668 else
17669   echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17671
17672 ac_cv_lib_asound_snd_ctl_open=no
17673 fi
17674 rm -f conftest.err conftest.$ac_objext \
17675       conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17677 fi
17678 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17679 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17680 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17681   cat >>confdefs.h <<_ACEOF
17682 #define HAVE_LIBASOUND 1
17683 _ACEOF
17684
17685   LIBS="-lasound $LIBS"
17686
17687 else
17688   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17689 echo "${ECHO_T}No linkable libasound was found." >&6
17690    alsa_found=no
17691
17692 fi
17693
17694
17695 if test "x$alsa_found" = "xyes" ; then
17696    :
17697    LIBS=`echo $LIBS | sed 's/-lasound//g'`
17698    LIBS=`echo $LIBS | sed 's/  //'`
17699    LIBS="-lasound $LIBS"
17700 else
17701    :
17702    CFLAGS="$alsa_save_CFLAGS"
17703    LDFLAGS="$alsa_save_LDFLAGS"
17704    LIBS="$alsa_save_LIBS"
17705    ALSA_CFLAGS=""
17706    ALSA_LIBS=""
17707 fi
17708
17709
17710
17711
17712
17713   ;;
17714 xdynamic)
17715   dynamic_targets="$dynamic_targets interface_A.\$(so)"
17716
17717   ;;
17718 *)
17719
17720   ;;
17721 esac
17722
17723
17724
17725
17726
17727 if false; then
17728   ENABLE_WINSYN_TRUE=
17729   ENABLE_WINSYN_FALSE='#'
17730 else
17731   ENABLE_WINSYN_TRUE='#'
17732   ENABLE_WINSYN_FALSE=
17733 fi
17734
17735 # Check whether --enable-winsyn or --disable-winsyn was given.
17736 if test "${enable_winsyn+set}" = set; then
17737   enableval="$enable_winsyn"
17738   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
17739 fi;
17740 case "x$enable_winsyn" in
17741 xyes)
17742   cat >> confdefs.h <<EOF
17743 #define IA_WINSYN 1
17744 EOF
17745
17746
17747
17748 if true; then
17749   ENABLE_WINSYN_TRUE=
17750   ENABLE_WINSYN_FALSE='#'
17751 else
17752   ENABLE_WINSYN_TRUE='#'
17753   ENABLE_WINSYN_FALSE=
17754 fi
17755
17756    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17757   ;;
17758 xdynamic)
17759   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17760
17761   ;;
17762 *)
17763
17764   ;;
17765 esac
17766
17767
17768
17769
17770
17771 if false; then
17772   ENABLE_PORTMIDISYN_TRUE=
17773   ENABLE_PORTMIDISYN_FALSE='#'
17774 else
17775   ENABLE_PORTMIDISYN_TRUE='#'
17776   ENABLE_PORTMIDISYN_FALSE=
17777 fi
17778
17779 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17780 if test "${enable_portmidisyn+set}" = set; then
17781   enableval="$enable_portmidisyn"
17782   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
17783 fi;
17784 case "x$enable_portmidisyn" in
17785 xyes)
17786   cat >> confdefs.h <<EOF
17787 #define IA_PORTMIDISYN 1
17788 EOF
17789
17790
17791
17792 if true; then
17793   ENABLE_PORTMIDISYN_TRUE=
17794   ENABLE_PORTMIDISYN_FALSE='#'
17795 else
17796   ENABLE_PORTMIDISYN_TRUE='#'
17797   ENABLE_PORTMIDISYN_FALSE=
17798 fi
17799
17800    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17801   ;;
17802 xdynamic)
17803   dynamic_targets="$dynamic_targets interface_P.\$(so)"
17804
17805   ;;
17806 *)
17807
17808   ;;
17809 esac
17810
17811
17812
17813
17814
17815 if false; then
17816   ENABLE_W32G_SYN_TRUE=
17817   ENABLE_W32G_SYN_FALSE='#'
17818 else
17819   ENABLE_W32G_SYN_TRUE='#'
17820   ENABLE_W32G_SYN_FALSE=
17821 fi
17822
17823 # Check whether --enable-winsyng or --disable-winsyng was given.
17824 if test "${enable_winsyng+set}" = set; then
17825   enableval="$enable_winsyng"
17826   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
17827 fi;
17828 case "x$enable_winsyng" in
17829 xyes)
17830   cat >> confdefs.h <<EOF
17831 #define IA_W32G_SYN 1
17832 EOF
17833
17834
17835
17836 if true; then
17837   ENABLE_W32G_SYN_TRUE=
17838   ENABLE_W32G_SYN_FALSE='#'
17839 else
17840   ENABLE_W32G_SYN_TRUE='#'
17841   ENABLE_W32G_SYN_FALSE=
17842 fi
17843
17844    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17845     lib_user32_opt='-luser32'
17846     LDFLAGS="-mwindows $LDFLAGS"
17847     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"
17848
17849   ;;
17850 xdynamic)
17851   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17852
17853   ;;
17854 *)
17855
17856   ;;
17857 esac
17858
17859
17860
17861
17862
17863
17864 if false; then
17865   ENABLE_W32GUI_TRUE=
17866   ENABLE_W32GUI_FALSE='#'
17867 else
17868   ENABLE_W32GUI_TRUE='#'
17869   ENABLE_W32GUI_FALSE=
17870 fi
17871
17872 # Check whether --enable-w32gui or --disable-w32gui was given.
17873 if test "${enable_w32gui+set}" = set; then
17874   enableval="$enable_w32gui"
17875   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
17876 fi;
17877 case "x$enable_w32gui" in
17878 xyes)
17879   cat >> confdefs.h <<EOF
17880 #define IA_W32GUI 1
17881 EOF
17882
17883
17884
17885 if true; then
17886   ENABLE_W32GUI_TRUE=
17887   ENABLE_W32GUI_FALSE='#'
17888 else
17889   ENABLE_W32GUI_TRUE='#'
17890   ENABLE_W32GUI_FALSE=
17891 fi
17892
17893    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17894     lib_user32_opt='-luser32'
17895     LDFLAGS="-mwindows $LDFLAGS"
17896     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"
17897
17898   ;;
17899 xdynamic)
17900   dynamic_targets="$dynamic_targets interface_w.\$(so)"
17901
17902   ;;
17903 *)
17904
17905   ;;
17906 esac
17907
17908
17909
17910
17911
17912 if false; then
17913   ENABLE_PLUGIN_TRUE=
17914   ENABLE_PLUGIN_FALSE='#'
17915 else
17916   ENABLE_PLUGIN_TRUE='#'
17917   ENABLE_PLUGIN_FALSE=
17918 fi
17919
17920 # Check whether --enable-ump or --disable-ump was given.
17921 if test "${enable_ump+set}" = set; then
17922   enableval="$enable_ump"
17923   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
17924         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
17925 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
17926    { (exit 1); exit 1; }; }
17927     fi
17928     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17929   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17930 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17931 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 fi
17934 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17935 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17936 else
17937   # Is the header compilable?
17938 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17939 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17940 cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h.  */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h.  */
17946 $ac_includes_default
17947 #include <X11/xpm.h>
17948 _ACEOF
17949 rm -f conftest.$ac_objext
17950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17951   (eval $ac_compile) 2>conftest.er1
17952   ac_status=$?
17953   grep -v '^ *+' conftest.er1 >conftest.err
17954   rm -f conftest.er1
17955   cat conftest.err >&5
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); } &&
17958          { ac_try='test -z "$ac_c_werror_flag"
17959                          || test ! -s conftest.err'
17960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961   (eval $ac_try) 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); }; } &&
17965          { ac_try='test -s conftest.$ac_objext'
17966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967   (eval $ac_try) 2>&5
17968   ac_status=$?
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); }; }; then
17971   ac_header_compiler=yes
17972 else
17973   echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976 ac_header_compiler=no
17977 fi
17978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17980 echo "${ECHO_T}$ac_header_compiler" >&6
17981
17982 # Is the header present?
17983 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17984 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h.  */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h.  */
17991 #include <X11/xpm.h>
17992 _ACEOF
17993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } >/dev/null; then
18001   if test -s conftest.err; then
18002     ac_cpp_err=$ac_c_preproc_warn_flag
18003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18004   else
18005     ac_cpp_err=
18006   fi
18007 else
18008   ac_cpp_err=yes
18009 fi
18010 if test -z "$ac_cpp_err"; then
18011   ac_header_preproc=yes
18012 else
18013   echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016   ac_header_preproc=no
18017 fi
18018 rm -f conftest.err conftest.$ac_ext
18019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18020 echo "${ECHO_T}$ac_header_preproc" >&6
18021
18022 # So?  What about this header?
18023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18024   yes:no: )
18025     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18026 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18027     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18028 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18029     ac_header_preproc=yes
18030     ;;
18031   no:yes:* )
18032     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18033 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18034     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
18035 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
18036     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18037 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18038     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
18039 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18040     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18041 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18042     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18043 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18044     (
18045       cat <<\_ASBOX
18046 ## ------------------------------- ##
18047 ## Report this to root@mput.dip.jp ##
18048 ## ------------------------------- ##
18049 _ASBOX
18050     ) |
18051       sed "s/^/$as_me: WARNING:     /" >&2
18052     ;;
18053 esac
18054 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18055 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18056 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18057   echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059   ac_cv_header_X11_xpm_h=$ac_header_preproc
18060 fi
18061 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18062 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18063
18064 fi
18065 if test $ac_cv_header_X11_xpm_h = yes; then
18066   :
18067 else
18068   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18069 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18070    { (exit 1); exit 1; }; }
18071 fi
18072
18073
18074     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18075 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18076 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079   ac_check_lib_save_LIBS=$LIBS
18080 LIBS="-lXpm  $LIBS"
18081 cat >conftest.$ac_ext <<_ACEOF
18082 /* confdefs.h.  */
18083 _ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h.  */
18087
18088 /* Override any gcc2 internal prototype to avoid an error.  */
18089 #ifdef __cplusplus
18090 extern "C"
18091 #endif
18092 /* We use char because int might match the return type of a gcc2
18093    builtin and then its argument prototype would still apply.  */
18094 char XpmCreatePixmapFromData ();
18095 int
18096 main ()
18097 {
18098 XpmCreatePixmapFromData ();
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext conftest$ac_exeext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18105   (eval $ac_link) 2>conftest.er1
18106   ac_status=$?
18107   grep -v '^ *+' conftest.er1 >conftest.err
18108   rm -f conftest.er1
18109   cat conftest.err >&5
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); } &&
18112          { ac_try='test -z "$ac_c_werror_flag"
18113                          || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest$ac_exeext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18131 fi
18132 rm -f conftest.err conftest.$ac_objext \
18133       conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18135 fi
18136 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18137 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18138 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18139   :
18140 else
18141   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18142 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18143    { (exit 1); exit 1; }; }
18144 fi
18145
18146     if test "x$have_xext" = xyes; then
18147       lib_xext_opt=-lXext
18148     fi
18149     if test "x$have_xprelibs" = xyes; then
18150       lib_xprelibs_opt='-lSM -lICE'
18151     fi
18152     lib_xmu_opt=-lXmu
18153     lib_xt_opt=-lXt
18154    ;; esac
18155 fi;
18156 case "x$enable_ump" in
18157 xyes)
18158   cat >> confdefs.h <<EOF
18159 #define IA_PLUGIN 1
18160 EOF
18161
18162
18163
18164 if true; then
18165   ENABLE_PLUGIN_TRUE=
18166   ENABLE_PLUGIN_FALSE='#'
18167 else
18168   ENABLE_PLUGIN_TRUE='#'
18169   ENABLE_PLUGIN_FALSE=
18170 fi
18171
18172
18173   ;;
18174 xdynamic)
18175   dynamic_targets="$dynamic_targets interface_p.\$(so)"
18176
18177   ;;
18178 *)
18179
18180   ;;
18181 esac
18182
18183
18184
18185
18186 # Check whether --enable-offix or --disable-offix was given.
18187 if test "${enable_offix+set}" = set; then
18188   enableval="$enable_offix"
18189    if test "$enableval" = "yes"; then
18190       KEEPCPPFLAGS=$CPPFLAGS
18191       KEEPLIBS=$LIBS
18192       KEEPLDFLAGS=$LDFLAGS
18193       CPPFLAGS="$CPPFLAGS $offix_include_dir"
18194       LDFLAGS="$LDFLAGS $offix_lib_dir"
18195       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18196       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18197 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18198 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18199   echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201   ac_check_lib_save_LIBS=$LIBS
18202 LIBS="-lDnd  $LIBS"
18203 cat >conftest.$ac_ext <<_ACEOF
18204 /* confdefs.h.  */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h.  */
18209
18210 /* Override any gcc2 internal prototype to avoid an error.  */
18211 #ifdef __cplusplus
18212 extern "C"
18213 #endif
18214 /* We use char because int might match the return type of a gcc2
18215    builtin and then its argument prototype would still apply.  */
18216 char DndInitialize ();
18217 int
18218 main ()
18219 {
18220 DndInitialize ();
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227   (eval $ac_link) 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag"
18235                          || test ! -s conftest.err'
18236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237   (eval $ac_try) 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   ac_cv_lib_Dnd_DndInitialize=yes
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_cv_lib_Dnd_DndInitialize=no
18253 fi
18254 rm -f conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18257 fi
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18259 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18260 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18261
18262         LIBS=$KEEPLIBS
18263         lib_offix_opt="-lDnd"
18264
18265 cat >>confdefs.h <<\_ACEOF
18266 #define OFFIX 1
18267 _ACEOF
18268
18269
18270 else
18271    LDFLAGS=$KEEPLDFLAGS
18272         CPPFLAGS=$KEEPCPPFLAGS
18273         LIBS=$KEEPLIBS
18274
18275 fi
18276
18277     fi
18278
18279 fi;
18280
18281 # Check whether --enable-network or --disable-network was given.
18282 if test "${enable_network+set}" = set; then
18283   enableval="$enable_network"
18284    if test "$enableval" = "yes"; then
18285
18286 cat >>confdefs.h <<\_ACEOF
18287 #define SUPPORT_SOCKET 1
18288 _ACEOF
18289
18290     fi
18291 fi;
18292
18293
18294 if test "x$enable_network" = "xyes"; then
18295   ENABLE_NETWORK_TRUE=
18296   ENABLE_NETWORK_FALSE='#'
18297 else
18298   ENABLE_NETWORK_TRUE='#'
18299   ENABLE_NETWORK_FALSE=
18300 fi
18301
18302
18303 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18304 if test "${enable_spectrogram+set}" = set; then
18305   enableval="$enable_spectrogram"
18306    if test "$enableval" = "yes"; then
18307       if test "x$with_x" != xyes; then
18308         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18309 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18310    { (exit 1); exit 1; }; }
18311       fi
18312
18313 cat >>confdefs.h <<\_ACEOF
18314 #define SUPPORT_SOUNDSPEC 1
18315 _ACEOF
18316
18317     fi
18318 fi;
18319
18320
18321 if test "x$enable_spectrogram" = "xyes"; then
18322   ENABLE_SOUND_SPEC_TRUE=
18323   ENABLE_SOUND_SPEC_FALSE='#'
18324 else
18325   ENABLE_SOUND_SPEC_TRUE='#'
18326   ENABLE_SOUND_SPEC_FALSE=
18327 fi
18328
18329
18330 # Check whether --enable-spline or --disable-spline was given.
18331 if test "${enable_spline+set}" = set; then
18332   enableval="$enable_spline"
18333    case "x$enableval" in
18334       xlinear)
18335
18336 cat >>confdefs.h <<\_ACEOF
18337 #define DEFAULT_RESAMPLATION resample_linear
18338 _ACEOF
18339
18340         ;;
18341       xcubic)
18342
18343 cat >>confdefs.h <<\_ACEOF
18344 #define DEFAULT_RESAMPLATION resample_cspline
18345 _ACEOF
18346
18347         ;;
18348       xlagrange)
18349
18350 cat >>confdefs.h <<\_ACEOF
18351 #define DEFAULT_RESAMPLATION resample_lagrange
18352 _ACEOF
18353
18354         ;;
18355       xnewton)
18356
18357 cat >>confdefs.h <<\_ACEOF
18358 #define DEFAULT_RESAMPLATION resample_newton
18359 _ACEOF
18360
18361         ;;
18362       xgauss)
18363
18364 cat >>confdefs.h <<\_ACEOF
18365 #define DEFAULT_RESAMPLATION resample_gauss
18366 _ACEOF
18367
18368         ;;
18369       xno)
18370
18371 cat >>confdefs.h <<\_ACEOF
18372 #define DEFAULT_RESAMPLATION resample_none
18373 _ACEOF
18374
18375         ;;
18376       *)
18377         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18378 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18379    { (exit 1); exit 1; }; }
18380         ;;
18381     esac
18382 fi;
18383
18384 # Check whether --enable-wrd or --disable-wrd was given.
18385 if test "${enable_wrd+set}" = set; then
18386   enableval="$enable_wrd"
18387    if test "$enableval" = "yes"; then
18388       if test "x$with_x" != xyes; then
18389         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18390 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18391    { (exit 1); exit 1; }; }
18392       fi
18393
18394 cat >>confdefs.h <<\_ACEOF
18395 #define WRDT_X 1
18396 _ACEOF
18397
18398       enable_sherry_wrd=yes
18399       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18400 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18401 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   ac_check_lib_save_LIBS=$LIBS
18405 LIBS="-lz  $LIBS"
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h.  */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h.  */
18412
18413 /* Override any gcc2 internal prototype to avoid an error.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 /* We use char because int might match the return type of a gcc2
18418    builtin and then its argument prototype would still apply.  */
18419 char zlibVersion ();
18420 int
18421 main ()
18422 {
18423 zlibVersion ();
18424   ;
18425   return 0;
18426 }
18427 _ACEOF
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18430   (eval $ac_link) 2>conftest.er1
18431   ac_status=$?
18432   grep -v '^ *+' conftest.er1 >conftest.err
18433   rm -f conftest.er1
18434   cat conftest.err >&5
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); } &&
18437          { ac_try='test -z "$ac_c_werror_flag"
18438                          || test ! -s conftest.err'
18439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440   (eval $ac_try) 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); }; } &&
18444          { ac_try='test -s conftest$ac_exeext'
18445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446   (eval $ac_try) 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }; }; then
18450   ac_cv_lib_z_zlibVersion=yes
18451 else
18452   echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455 ac_cv_lib_z_zlibVersion=no
18456 fi
18457 rm -f conftest.err conftest.$ac_objext \
18458       conftest$ac_exeext conftest.$ac_ext
18459 LIBS=$ac_check_lib_save_LIBS
18460 fi
18461 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18462 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18463 if test $ac_cv_lib_z_zlibVersion = yes; then
18464   :
18465 else
18466   enable_sherry_wrd=no
18467 fi
18468
18469       if test "${ac_cv_header_png_h+set}" = set; then
18470   echo "$as_me:$LINENO: checking for png.h" >&5
18471 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18472 if test "${ac_cv_header_png_h+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 fi
18475 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18476 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18477 else
18478   # Is the header compilable?
18479 echo "$as_me:$LINENO: checking png.h usability" >&5
18480 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487 $ac_includes_default
18488 #include <png.h>
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492   (eval $ac_compile) 2>conftest.er1
18493   ac_status=$?
18494   grep -v '^ *+' conftest.er1 >conftest.err
18495   rm -f conftest.er1
18496   cat conftest.err >&5
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } &&
18499          { ac_try='test -z "$ac_c_werror_flag"
18500                          || test ! -s conftest.err'
18501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502   (eval $ac_try) 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; } &&
18506          { ac_try='test -s conftest.$ac_objext'
18507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508   (eval $ac_try) 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); }; }; then
18512   ac_header_compiler=yes
18513 else
18514   echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 ac_header_compiler=no
18518 fi
18519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18521 echo "${ECHO_T}$ac_header_compiler" >&6
18522
18523 # Is the header present?
18524 echo "$as_me:$LINENO: checking png.h presence" >&5
18525 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18526 cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h.  */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h.  */
18532 #include <png.h>
18533 _ACEOF
18534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } >/dev/null; then
18542   if test -s conftest.err; then
18543     ac_cpp_err=$ac_c_preproc_warn_flag
18544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18545   else
18546     ac_cpp_err=
18547   fi
18548 else
18549   ac_cpp_err=yes
18550 fi
18551 if test -z "$ac_cpp_err"; then
18552   ac_header_preproc=yes
18553 else
18554   echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557   ac_header_preproc=no
18558 fi
18559 rm -f conftest.err conftest.$ac_ext
18560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18561 echo "${ECHO_T}$ac_header_preproc" >&6
18562
18563 # So?  What about this header?
18564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18565   yes:no: )
18566     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18567 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18568     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18569 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18570     ac_header_preproc=yes
18571     ;;
18572   no:yes:* )
18573     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18574 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18575     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
18576 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
18577     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18578 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18579     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
18580 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18581     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18582 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18583     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18584 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18585     (
18586       cat <<\_ASBOX
18587 ## ------------------------------- ##
18588 ## Report this to root@mput.dip.jp ##
18589 ## ------------------------------- ##
18590 _ASBOX
18591     ) |
18592       sed "s/^/$as_me: WARNING:     /" >&2
18593     ;;
18594 esac
18595 echo "$as_me:$LINENO: checking for png.h" >&5
18596 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18597 if test "${ac_cv_header_png_h+set}" = set; then
18598   echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600   ac_cv_header_png_h=$ac_header_preproc
18601 fi
18602 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18603 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18604
18605 fi
18606 if test $ac_cv_header_png_h = yes; then
18607   :
18608 else
18609   enable_sherry_wrd=no
18610 fi
18611
18612
18613       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18614 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18615 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18616   echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618   ac_check_lib_save_LIBS=$LIBS
18619 LIBS="-lpng -lz $LIBS"
18620 cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h.  */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h.  */
18626
18627 /* Override any gcc2 internal prototype to avoid an error.  */
18628 #ifdef __cplusplus
18629 extern "C"
18630 #endif
18631 /* We use char because int might match the return type of a gcc2
18632    builtin and then its argument prototype would still apply.  */
18633 char png_init_io ();
18634 int
18635 main ()
18636 {
18637 png_init_io ();
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 rm -f conftest.$ac_objext conftest$ac_exeext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18644   (eval $ac_link) 2>conftest.er1
18645   ac_status=$?
18646   grep -v '^ *+' conftest.er1 >conftest.err
18647   rm -f conftest.er1
18648   cat conftest.err >&5
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } &&
18651          { ac_try='test -z "$ac_c_werror_flag"
18652                          || test ! -s conftest.err'
18653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654   (eval $ac_try) 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); }; } &&
18658          { ac_try='test -s conftest$ac_exeext'
18659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660   (eval $ac_try) 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; }; then
18664   ac_cv_lib_png_png_init_io=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669 ac_cv_lib_png_png_init_io=no
18670 fi
18671 rm -f conftest.err conftest.$ac_objext \
18672       conftest$ac_exeext conftest.$ac_ext
18673 LIBS=$ac_check_lib_save_LIBS
18674 fi
18675 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18676 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18677 if test $ac_cv_lib_png_png_init_io = yes; then
18678   :
18679 else
18680   enable_sherry_wrd=no
18681 fi
18682
18683       if test "$enable_sherry_wrd" = yes; then
18684
18685 cat >>confdefs.h <<\_ACEOF
18686 #define ENABLE_SHERRY 1
18687 _ACEOF
18688
18689         lib_zip_opt=-lz
18690         lib_png_opt=-lpng
18691       else
18692          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18693 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18694       fi
18695       if test "x$have_xext" = xyes; then
18696         lib_xext_opt=-lXext
18697       fi
18698     fi
18699 fi;
18700
18701
18702
18703 #
18704 # Finish up
18705 #
18706
18707
18708
18709 if test "x$enable_wrd" = "xyes"; then
18710   ENABLE_WRD_TRUE=
18711   ENABLE_WRD_FALSE='#'
18712 else
18713   ENABLE_WRD_TRUE='#'
18714   ENABLE_WRD_FALSE=
18715 fi
18716
18717
18718
18719
18720 if test "x$CYGNUS" = xyes; then
18721   CYGNUS_TRUE=
18722   CYGNUS_FALSE='#'
18723 else
18724   CYGNUS_TRUE='#'
18725   CYGNUS_FALSE=
18726 fi
18727
18728
18729
18730 if test "x$MINGW" = xyes; then
18731   MINGW_TRUE=
18732   MINGW_FALSE='#'
18733 else
18734   MINGW_TRUE='#'
18735   MINGW_FALSE=
18736 fi
18737
18738
18739
18740 if test "x$W32READDIR" = "xyes"; then
18741   W32READDIR_TRUE=
18742   W32READDIR_FALSE='#'
18743 else
18744   W32READDIR_TRUE='#'
18745   W32READDIR_FALSE=
18746 fi
18747
18748
18749 rm -f wordtmp >/dev/null 2>&1
18750 val=''
18751 for f in $LDFLAGS; do
18752   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18753   :
18754 else
18755   echo $f >>wordtmp; val="$val $f"
18756 fi
18757
18758 done
18759 LDFLAGS="$val"
18760 rm -f wordtmp >/dev/null 2>&1
18761
18762 rm -f wordtmp >/dev/null 2>&1
18763 val=''
18764 for f in $SHLDFLAGS; do
18765   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18766   :
18767 else
18768   echo $f >>wordtmp; val="$val $f"
18769 fi
18770
18771 done
18772 SHLDFLAGS="$val"
18773 rm -f wordtmp >/dev/null 2>&1
18774
18775 rm -f wordtmp >/dev/null 2>&1
18776 val=''
18777 for f in $EXTRACFLAGS $CFLAGS; do
18778   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18779   :
18780 else
18781   echo $f >>wordtmp; val="$val $f"
18782 fi
18783
18784 done
18785 CFLAGS="$val"
18786 rm -f wordtmp >/dev/null 2>&1
18787
18788 rm -f wordtmp >/dev/null 2>&1
18789 val=''
18790 for f in $CPPFLAGS $EXTRADEFS; do
18791   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18792   :
18793 else
18794   echo $f >>wordtmp; val="$val $f"
18795 fi
18796
18797 done
18798 CPPFLAGS="$val"
18799 rm -f wordtmp >/dev/null 2>&1
18800
18801
18802 if test "x$oss_device" != x; then
18803
18804 cat >>confdefs.h <<_ACEOF
18805 #define OSS_DEVICE "$oss_device"
18806 _ACEOF
18807
18808 fi
18809
18810 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18811
18812 cat >>confdefs.h <<_ACEOF
18813 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18814 _ACEOF
18815
18816 fi
18817
18818 if test "x$with_x" = xyes; then
18819     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/"`
18820 fi
18821 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18822 SHLD="$SHLD $SHLDFLAGS"
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842                                                                                                                                                                                     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 utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
18843
18844 cat >confcache <<\_ACEOF
18845 # This file is a shell script that caches the results of configure
18846 # tests run on this system so they can be shared between configure
18847 # scripts and configure runs, see configure's option --config-cache.
18848 # It is not useful on other systems.  If it contains results you don't
18849 # want to keep, you may remove or edit it.
18850 #
18851 # config.status only pays attention to the cache file if you give it
18852 # the --recheck option to rerun configure.
18853 #
18854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18856 # following values.
18857
18858 _ACEOF
18859
18860 # The following way of writing the cache mishandles newlines in values,
18861 # but we know of no workaround that is simple, portable, and efficient.
18862 # So, don't put newlines in cache variables' values.
18863 # Ultrix sh set writes to stderr and can't be redirected directly,
18864 # and sets the high bit in the cache file unless we assign to the vars.
18865 {
18866   (set) 2>&1 |
18867     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18868     *ac_space=\ *)
18869       # `set' does not quote correctly, so add quotes (double-quote
18870       # substitution turns \\\\ into \\, and sed turns \\ into \).
18871       sed -n \
18872         "s/'/'\\\\''/g;
18873           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18874       ;;
18875     *)
18876       # `set' quotes correctly as required by POSIX, so do not add quotes.
18877       sed -n \
18878         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18879       ;;
18880     esac;
18881 } |
18882   sed '
18883      t clear
18884      : clear
18885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18886      t end
18887      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18888      : end' >>confcache
18889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18890   if test -w $cache_file; then
18891     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18892     cat confcache >$cache_file
18893   else
18894     echo "not updating unwritable cache $cache_file"
18895   fi
18896 fi
18897 rm -f confcache
18898
18899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18900 # Let make expand exec_prefix.
18901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18902
18903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18905 # trailing colons and then remove the whole line if VPATH becomes empty
18906 # (actually we leave an empty line to preserve line numbers).
18907 if test "x$srcdir" = x.; then
18908   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18909 s/:*\$(srcdir):*/:/;
18910 s/:*\${srcdir}:*/:/;
18911 s/:*@srcdir@:*/:/;
18912 s/^\([^=]*=[     ]*\):*/\1/;
18913 s/:*$//;
18914 s/^[^=]*=[       ]*$//;
18915 }'
18916 fi
18917
18918 DEFS=-DHAVE_CONFIG_H
18919
18920 ac_libobjs=
18921 ac_ltlibobjs=
18922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18923   # 1. Remove the extension, and $U if already installed.
18924   ac_i=`echo "$ac_i" |
18925          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18926   # 2. Add them.
18927   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18928   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18929 done
18930 LIBOBJS=$ac_libobjs
18931
18932 LTLIBOBJS=$ac_ltlibobjs
18933
18934
18935 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18936   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18937 Usually this means the macro was only invoked conditionally." >&5
18938 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18939 Usually this means the macro was only invoked conditionally." >&2;}
18940    { (exit 1); exit 1; }; }
18941 fi
18942 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18943   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18944 Usually this means the macro was only invoked conditionally." >&5
18945 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18946 Usually this means the macro was only invoked conditionally." >&2;}
18947    { (exit 1); exit 1; }; }
18948 fi
18949 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18950   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18951 Usually this means the macro was only invoked conditionally." >&5
18952 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18953 Usually this means the macro was only invoked conditionally." >&2;}
18954    { (exit 1); exit 1; }; }
18955 fi
18956 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18957   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18958 Usually this means the macro was only invoked conditionally." >&5
18959 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18960 Usually this means the macro was only invoked conditionally." >&2;}
18961    { (exit 1); exit 1; }; }
18962 fi
18963 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18964   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18965 Usually this means the macro was only invoked conditionally." >&5
18966 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18967 Usually this means the macro was only invoked conditionally." >&2;}
18968    { (exit 1); exit 1; }; }
18969 fi
18970 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18971   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18972 Usually this means the macro was only invoked conditionally." >&5
18973 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18974 Usually this means the macro was only invoked conditionally." >&2;}
18975    { (exit 1); exit 1; }; }
18976 fi
18977 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18978   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18979 Usually this means the macro was only invoked conditionally." >&5
18980 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18981 Usually this means the macro was only invoked conditionally." >&2;}
18982    { (exit 1); exit 1; }; }
18983 fi
18984 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18985   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18986 Usually this means the macro was only invoked conditionally." >&5
18987 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18988 Usually this means the macro was only invoked conditionally." >&2;}
18989    { (exit 1); exit 1; }; }
18990 fi
18991 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18992   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18993 Usually this means the macro was only invoked conditionally." >&5
18994 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18995 Usually this means the macro was only invoked conditionally." >&2;}
18996    { (exit 1); exit 1; }; }
18997 fi
18998 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18999   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19000 Usually this means the macro was only invoked conditionally." >&5
19001 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19002 Usually this means the macro was only invoked conditionally." >&2;}
19003    { (exit 1); exit 1; }; }
19004 fi
19005 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19006   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19007 Usually this means the macro was only invoked conditionally." >&5
19008 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19009 Usually this means the macro was only invoked conditionally." >&2;}
19010    { (exit 1); exit 1; }; }
19011 fi
19012 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19013   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19014 Usually this means the macro was only invoked conditionally." >&5
19015 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19016 Usually this means the macro was only invoked conditionally." >&2;}
19017    { (exit 1); exit 1; }; }
19018 fi
19019 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19020   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19021 Usually this means the macro was only invoked conditionally." >&5
19022 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19023 Usually this means the macro was only invoked conditionally." >&2;}
19024    { (exit 1); exit 1; }; }
19025 fi
19026 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19027   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19028 Usually this means the macro was only invoked conditionally." >&5
19029 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19030 Usually this means the macro was only invoked conditionally." >&2;}
19031    { (exit 1); exit 1; }; }
19032 fi
19033 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19034   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19035 Usually this means the macro was only invoked conditionally." >&5
19036 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19037 Usually this means the macro was only invoked conditionally." >&2;}
19038    { (exit 1); exit 1; }; }
19039 fi
19040 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19041   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19042 Usually this means the macro was only invoked conditionally." >&5
19043 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19044 Usually this means the macro was only invoked conditionally." >&2;}
19045    { (exit 1); exit 1; }; }
19046 fi
19047 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19048   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19049 Usually this means the macro was only invoked conditionally." >&5
19050 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19051 Usually this means the macro was only invoked conditionally." >&2;}
19052    { (exit 1); exit 1; }; }
19053 fi
19054 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19055   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19056 Usually this means the macro was only invoked conditionally." >&5
19057 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19058 Usually this means the macro was only invoked conditionally." >&2;}
19059    { (exit 1); exit 1; }; }
19060 fi
19061 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19062   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19063 Usually this means the macro was only invoked conditionally." >&5
19064 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19065 Usually this means the macro was only invoked conditionally." >&2;}
19066    { (exit 1); exit 1; }; }
19067 fi
19068 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19069   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19070 Usually this means the macro was only invoked conditionally." >&5
19071 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19072 Usually this means the macro was only invoked conditionally." >&2;}
19073    { (exit 1); exit 1; }; }
19074 fi
19075 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19076   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19077 Usually this means the macro was only invoked conditionally." >&5
19078 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19079 Usually this means the macro was only invoked conditionally." >&2;}
19080    { (exit 1); exit 1; }; }
19081 fi
19082 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19083   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19084 Usually this means the macro was only invoked conditionally." >&5
19085 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19086 Usually this means the macro was only invoked conditionally." >&2;}
19087    { (exit 1); exit 1; }; }
19088 fi
19089 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19090   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19091 Usually this means the macro was only invoked conditionally." >&5
19092 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19093 Usually this means the macro was only invoked conditionally." >&2;}
19094    { (exit 1); exit 1; }; }
19095 fi
19096 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19097   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19098 Usually this means the macro was only invoked conditionally." >&5
19099 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19100 Usually this means the macro was only invoked conditionally." >&2;}
19101    { (exit 1); exit 1; }; }
19102 fi
19103 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19104   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19105 Usually this means the macro was only invoked conditionally." >&5
19106 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19107 Usually this means the macro was only invoked conditionally." >&2;}
19108    { (exit 1); exit 1; }; }
19109 fi
19110 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19111   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19112 Usually this means the macro was only invoked conditionally." >&5
19113 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19114 Usually this means the macro was only invoked conditionally." >&2;}
19115    { (exit 1); exit 1; }; }
19116 fi
19117 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19118   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19119 Usually this means the macro was only invoked conditionally." >&5
19120 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19121 Usually this means the macro was only invoked conditionally." >&2;}
19122    { (exit 1); exit 1; }; }
19123 fi
19124 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19125   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19126 Usually this means the macro was only invoked conditionally." >&5
19127 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19128 Usually this means the macro was only invoked conditionally." >&2;}
19129    { (exit 1); exit 1; }; }
19130 fi
19131 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19132   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19133 Usually this means the macro was only invoked conditionally." >&5
19134 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19135 Usually this means the macro was only invoked conditionally." >&2;}
19136    { (exit 1); exit 1; }; }
19137 fi
19138 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19139   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19140 Usually this means the macro was only invoked conditionally." >&5
19141 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19142 Usually this means the macro was only invoked conditionally." >&2;}
19143    { (exit 1); exit 1; }; }
19144 fi
19145 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19146   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19147 Usually this means the macro was only invoked conditionally." >&5
19148 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19149 Usually this means the macro was only invoked conditionally." >&2;}
19150    { (exit 1); exit 1; }; }
19151 fi
19152 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19153   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19154 Usually this means the macro was only invoked conditionally." >&5
19155 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19156 Usually this means the macro was only invoked conditionally." >&2;}
19157    { (exit 1); exit 1; }; }
19158 fi
19159 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19160   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19161 Usually this means the macro was only invoked conditionally." >&5
19162 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19163 Usually this means the macro was only invoked conditionally." >&2;}
19164    { (exit 1); exit 1; }; }
19165 fi
19166 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19167   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19168 Usually this means the macro was only invoked conditionally." >&5
19169 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19170 Usually this means the macro was only invoked conditionally." >&2;}
19171    { (exit 1); exit 1; }; }
19172 fi
19173 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19174   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19175 Usually this means the macro was only invoked conditionally." >&5
19176 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19177 Usually this means the macro was only invoked conditionally." >&2;}
19178    { (exit 1); exit 1; }; }
19179 fi
19180 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19181   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19182 Usually this means the macro was only invoked conditionally." >&5
19183 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19184 Usually this means the macro was only invoked conditionally." >&2;}
19185    { (exit 1); exit 1; }; }
19186 fi
19187 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19188   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19189 Usually this means the macro was only invoked conditionally." >&5
19190 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19191 Usually this means the macro was only invoked conditionally." >&2;}
19192    { (exit 1); exit 1; }; }
19193 fi
19194 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19195   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19196 Usually this means the macro was only invoked conditionally." >&5
19197 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19198 Usually this means the macro was only invoked conditionally." >&2;}
19199    { (exit 1); exit 1; }; }
19200 fi
19201 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19202   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19203 Usually this means the macro was only invoked conditionally." >&5
19204 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19205 Usually this means the macro was only invoked conditionally." >&2;}
19206    { (exit 1); exit 1; }; }
19207 fi
19208 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19209   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19210 Usually this means the macro was only invoked conditionally." >&5
19211 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19212 Usually this means the macro was only invoked conditionally." >&2;}
19213    { (exit 1); exit 1; }; }
19214 fi
19215 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19216   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19217 Usually this means the macro was only invoked conditionally." >&5
19218 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19219 Usually this means the macro was only invoked conditionally." >&2;}
19220    { (exit 1); exit 1; }; }
19221 fi
19222 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19223   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19224 Usually this means the macro was only invoked conditionally." >&5
19225 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19226 Usually this means the macro was only invoked conditionally." >&2;}
19227    { (exit 1); exit 1; }; }
19228 fi
19229 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19230   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19231 Usually this means the macro was only invoked conditionally." >&5
19232 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19233 Usually this means the macro was only invoked conditionally." >&2;}
19234    { (exit 1); exit 1; }; }
19235 fi
19236 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
19237   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
19238 Usually this means the macro was only invoked conditionally." >&5
19239 echo "$as_me: error: conditional \"MINGW\" was never defined.
19240 Usually this means the macro was only invoked conditionally." >&2;}
19241    { (exit 1); exit 1; }; }
19242 fi
19243 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19244   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19245 Usually this means the macro was only invoked conditionally." >&5
19246 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19247 Usually this means the macro was only invoked conditionally." >&2;}
19248    { (exit 1); exit 1; }; }
19249 fi
19250
19251 : ${CONFIG_STATUS=./config.status}
19252 ac_clean_files_save=$ac_clean_files
19253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19256 cat >$CONFIG_STATUS <<_ACEOF
19257 #! $SHELL
19258 # Generated by $as_me.
19259 # Run this file to recreate the current configuration.
19260 # Compiler output produced by configure, useful for debugging
19261 # configure, is in config.log if it exists.
19262
19263 debug=false
19264 ac_cs_recheck=false
19265 ac_cs_silent=false
19266 SHELL=\${CONFIG_SHELL-$SHELL}
19267 _ACEOF
19268
19269 cat >>$CONFIG_STATUS <<\_ACEOF
19270 ## --------------------- ##
19271 ## M4sh Initialization.  ##
19272 ## --------------------- ##
19273
19274 # Be Bourne compatible
19275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19276   emulate sh
19277   NULLCMD=:
19278   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19279   # is contrary to our usage.  Disable this feature.
19280   alias -g '${1+"$@"}'='"$@"'
19281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19282   set -o posix
19283 fi
19284 DUALCASE=1; export DUALCASE # for MKS sh
19285
19286 # Support unset when possible.
19287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19288   as_unset=unset
19289 else
19290   as_unset=false
19291 fi
19292
19293
19294 # Work around bugs in pre-3.0 UWIN ksh.
19295 $as_unset ENV MAIL MAILPATH
19296 PS1='$ '
19297 PS2='> '
19298 PS4='+ '
19299
19300 # NLS nuisances.
19301 for as_var in \
19302   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19303   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19304   LC_TELEPHONE LC_TIME
19305 do
19306   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19307     eval $as_var=C; export $as_var
19308   else
19309     $as_unset $as_var
19310   fi
19311 done
19312
19313 # Required to use basename.
19314 if expr a : '\(a\)' >/dev/null 2>&1; then
19315   as_expr=expr
19316 else
19317   as_expr=false
19318 fi
19319
19320 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19321   as_basename=basename
19322 else
19323   as_basename=false
19324 fi
19325
19326
19327 # Name of the executable.
19328 as_me=`$as_basename "$0" ||
19329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19330          X"$0" : 'X\(//\)$' \| \
19331          X"$0" : 'X\(/\)$' \| \
19332          .     : '\(.\)' 2>/dev/null ||
19333 echo X/"$0" |
19334     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19335           /^X\/\(\/\/\)$/{ s//\1/; q; }
19336           /^X\/\(\/\).*/{ s//\1/; q; }
19337           s/.*/./; q'`
19338
19339
19340 # PATH needs CR, and LINENO needs CR and PATH.
19341 # Avoid depending upon Character Ranges.
19342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19345 as_cr_digits='0123456789'
19346 as_cr_alnum=$as_cr_Letters$as_cr_digits
19347
19348 # The user is always right.
19349 if test "${PATH_SEPARATOR+set}" != set; then
19350   echo "#! /bin/sh" >conf$$.sh
19351   echo  "exit 0"   >>conf$$.sh
19352   chmod +x conf$$.sh
19353   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19354     PATH_SEPARATOR=';'
19355   else
19356     PATH_SEPARATOR=:
19357   fi
19358   rm -f conf$$.sh
19359 fi
19360
19361
19362   as_lineno_1=$LINENO
19363   as_lineno_2=$LINENO
19364   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19365   test "x$as_lineno_1" != "x$as_lineno_2" &&
19366   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19367   # Find who we are.  Look in the path if we contain no path at all
19368   # relative or not.
19369   case $0 in
19370     *[\\/]* ) as_myself=$0 ;;
19371     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19372 for as_dir in $PATH
19373 do
19374   IFS=$as_save_IFS
19375   test -z "$as_dir" && as_dir=.
19376   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19377 done
19378
19379        ;;
19380   esac
19381   # We did not find ourselves, most probably we were run as `sh COMMAND'
19382   # in which case we are not to be found in the path.
19383   if test "x$as_myself" = x; then
19384     as_myself=$0
19385   fi
19386   if test ! -f "$as_myself"; then
19387     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19388 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19389    { (exit 1); exit 1; }; }
19390   fi
19391   case $CONFIG_SHELL in
19392   '')
19393     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19395 do
19396   IFS=$as_save_IFS
19397   test -z "$as_dir" && as_dir=.
19398   for as_base in sh bash ksh sh5; do
19399          case $as_dir in
19400          /*)
19401            if ("$as_dir/$as_base" -c '
19402   as_lineno_1=$LINENO
19403   as_lineno_2=$LINENO
19404   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19405   test "x$as_lineno_1" != "x$as_lineno_2" &&
19406   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19407              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19408              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19409              CONFIG_SHELL=$as_dir/$as_base
19410              export CONFIG_SHELL
19411              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19412            fi;;
19413          esac
19414        done
19415 done
19416 ;;
19417   esac
19418
19419   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19420   # uniformly replaced by the line number.  The first 'sed' inserts a
19421   # line-number line before each line; the second 'sed' does the real
19422   # work.  The second script uses 'N' to pair each line-number line
19423   # with the numbered line, and appends trailing '-' during
19424   # substitution so that $LINENO is not a special case at line end.
19425   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19426   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19427   sed '=' <$as_myself |
19428     sed '
19429       N
19430       s,$,-,
19431       : loop
19432       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19433       t loop
19434       s,-$,,
19435       s,^['$as_cr_digits']*\n,,
19436     ' >$as_me.lineno &&
19437   chmod +x $as_me.lineno ||
19438     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19439 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19440    { (exit 1); exit 1; }; }
19441
19442   # Don't try to exec as it changes $[0], causing all sort of problems
19443   # (the dirname of $[0] is not the place where we might find the
19444   # original and so on.  Autoconf is especially sensible to this).
19445   . ./$as_me.lineno
19446   # Exit status is that of the last command.
19447   exit
19448 }
19449
19450
19451 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19452   *c*,-n*) ECHO_N= ECHO_C='
19453 ' ECHO_T='      ' ;;
19454   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19455   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19456 esac
19457
19458 if expr a : '\(a\)' >/dev/null 2>&1; then
19459   as_expr=expr
19460 else
19461   as_expr=false
19462 fi
19463
19464 rm -f conf$$ conf$$.exe conf$$.file
19465 echo >conf$$.file
19466 if ln -s conf$$.file conf$$ 2>/dev/null; then
19467   # We could just check for DJGPP; but this test a) works b) is more generic
19468   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19469   if test -f conf$$.exe; then
19470     # Don't use ln at all; we don't have any links
19471     as_ln_s='cp -p'
19472   else
19473     as_ln_s='ln -s'
19474   fi
19475 elif ln conf$$.file conf$$ 2>/dev/null; then
19476   as_ln_s=ln
19477 else
19478   as_ln_s='cp -p'
19479 fi
19480 rm -f conf$$ conf$$.exe conf$$.file
19481
19482 if mkdir -p . 2>/dev/null; then
19483   as_mkdir_p=:
19484 else
19485   test -d ./-p && rmdir ./-p
19486   as_mkdir_p=false
19487 fi
19488
19489 as_executable_p="test -f"
19490
19491 # Sed expression to map a string onto a valid CPP name.
19492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19493
19494 # Sed expression to map a string onto a valid variable name.
19495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19496
19497
19498 # IFS
19499 # We need space, tab and new line, in precisely that order.
19500 as_nl='
19501 '
19502 IFS="   $as_nl"
19503
19504 # CDPATH.
19505 $as_unset CDPATH
19506
19507 exec 6>&1
19508
19509 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19510 # report actual input values of CONFIG_FILES etc. instead of their
19511 # values after options handling.  Logging --version etc. is OK.
19512 exec 5>>config.log
19513 {
19514   echo
19515   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19516 ## Running $as_me. ##
19517 _ASBOX
19518 } >&5
19519 cat >&5 <<_CSEOF
19520
19521 This file was extended by TiMidity++ $as_me current, which was
19522 generated by GNU Autoconf 2.59.  Invocation command line was
19523
19524   CONFIG_FILES    = $CONFIG_FILES
19525   CONFIG_HEADERS  = $CONFIG_HEADERS
19526   CONFIG_LINKS    = $CONFIG_LINKS
19527   CONFIG_COMMANDS = $CONFIG_COMMANDS
19528   $ $0 $@
19529
19530 _CSEOF
19531 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19532 echo >&5
19533 _ACEOF
19534
19535 # Files that config.status was made for.
19536 if test -n "$ac_config_files"; then
19537   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19538 fi
19539
19540 if test -n "$ac_config_headers"; then
19541   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19542 fi
19543
19544 if test -n "$ac_config_links"; then
19545   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19546 fi
19547
19548 if test -n "$ac_config_commands"; then
19549   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19550 fi
19551
19552 cat >>$CONFIG_STATUS <<\_ACEOF
19553
19554 ac_cs_usage="\
19555 \`$as_me' instantiates files from templates according to the
19556 current configuration.
19557
19558 Usage: $0 [OPTIONS] [FILE]...
19559
19560   -h, --help       print this help, then exit
19561   -V, --version    print version number, then exit
19562   -q, --quiet      do not print progress messages
19563   -d, --debug      don't remove temporary files
19564       --recheck    update $as_me by reconfiguring in the same conditions
19565   --file=FILE[:TEMPLATE]
19566                    instantiate the configuration file FILE
19567   --header=FILE[:TEMPLATE]
19568                    instantiate the configuration header FILE
19569
19570 Configuration files:
19571 $config_files
19572
19573 Configuration headers:
19574 $config_headers
19575
19576 Configuration commands:
19577 $config_commands
19578
19579 Report bugs to <bug-autoconf@gnu.org>."
19580 _ACEOF
19581
19582 cat >>$CONFIG_STATUS <<_ACEOF
19583 ac_cs_version="\\
19584 TiMidity++ config.status current
19585 configured by $0, generated by GNU Autoconf 2.59,
19586   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19587
19588 Copyright (C) 2003 Free Software Foundation, Inc.
19589 This config.status script is free software; the Free Software Foundation
19590 gives unlimited permission to copy, distribute and modify it."
19591 srcdir=$srcdir
19592 INSTALL="$INSTALL"
19593 _ACEOF
19594
19595 cat >>$CONFIG_STATUS <<\_ACEOF
19596 # If no file are specified by the user, then we need to provide default
19597 # value.  By we need to know if files were specified by the user.
19598 ac_need_defaults=:
19599 while test $# != 0
19600 do
19601   case $1 in
19602   --*=*)
19603     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19604     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19605     ac_shift=:
19606     ;;
19607   -*)
19608     ac_option=$1
19609     ac_optarg=$2
19610     ac_shift=shift
19611     ;;
19612   *) # This is not an option, so the user has probably given explicit
19613      # arguments.
19614      ac_option=$1
19615      ac_need_defaults=false;;
19616   esac
19617
19618   case $ac_option in
19619   # Handling of the options.
19620 _ACEOF
19621 cat >>$CONFIG_STATUS <<\_ACEOF
19622   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19623     ac_cs_recheck=: ;;
19624   --version | --vers* | -V )
19625     echo "$ac_cs_version"; exit 0 ;;
19626   --he | --h)
19627     # Conflict between --help and --header
19628     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19629 Try \`$0 --help' for more information." >&5
19630 echo "$as_me: error: ambiguous option: $1
19631 Try \`$0 --help' for more information." >&2;}
19632    { (exit 1); exit 1; }; };;
19633   --help | --hel | -h )
19634     echo "$ac_cs_usage"; exit 0 ;;
19635   --debug | --d* | -d )
19636     debug=: ;;
19637   --file | --fil | --fi | --f )
19638     $ac_shift
19639     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19640     ac_need_defaults=false;;
19641   --header | --heade | --head | --hea )
19642     $ac_shift
19643     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19644     ac_need_defaults=false;;
19645   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19646   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19647     ac_cs_silent=: ;;
19648
19649   # This is an error.
19650   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19651 Try \`$0 --help' for more information." >&5
19652 echo "$as_me: error: unrecognized option: $1
19653 Try \`$0 --help' for more information." >&2;}
19654    { (exit 1); exit 1; }; } ;;
19655
19656   *) ac_config_targets="$ac_config_targets $1" ;;
19657
19658   esac
19659   shift
19660 done
19661
19662 ac_configure_extra_args=
19663
19664 if $ac_cs_silent; then
19665   exec 6>/dev/null
19666   ac_configure_extra_args="$ac_configure_extra_args --silent"
19667 fi
19668
19669 _ACEOF
19670 cat >>$CONFIG_STATUS <<_ACEOF
19671 if \$ac_cs_recheck; then
19672   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19673   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19674 fi
19675
19676 _ACEOF
19677
19678 cat >>$CONFIG_STATUS <<_ACEOF
19679 #
19680 # INIT-COMMANDS section.
19681 #
19682
19683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19684
19685 _ACEOF
19686
19687
19688
19689 cat >>$CONFIG_STATUS <<\_ACEOF
19690 for ac_config_target in $ac_config_targets
19691 do
19692   case "$ac_config_target" in
19693   # Handling of arguments.
19694   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19695   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19696   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19697   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19698   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19699   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19700   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19701   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19702   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19703   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19704   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19705   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19706   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19707   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19708   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19709   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19710   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19711   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19712   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19713   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19714   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19715   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19717    { (exit 1); exit 1; }; };;
19718   esac
19719 done
19720
19721 # If the user did not use the arguments to specify the items to instantiate,
19722 # then the envvar interface is used.  Set only those that are not.
19723 # We use the long form for the default assignment because of an extremely
19724 # bizarre bug on SunOS 4.1.3.
19725 if $ac_need_defaults; then
19726   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19727   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19728   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19729 fi
19730
19731 # Have a temporary directory for convenience.  Make it in the build tree
19732 # simply because there is no reason to put it here, and in addition,
19733 # creating and moving files from /tmp can sometimes cause problems.
19734 # Create a temporary directory, and hook for its removal unless debugging.
19735 $debug ||
19736 {
19737   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19738   trap '{ (exit 1); exit 1; }' 1 2 13 15
19739 }
19740
19741 # Create a (secure) tmp directory for tmp files.
19742
19743 {
19744   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19745   test -n "$tmp" && test -d "$tmp"
19746 }  ||
19747 {
19748   tmp=./confstat$$-$RANDOM
19749   (umask 077 && mkdir $tmp)
19750 } ||
19751 {
19752    echo "$me: cannot create a temporary directory in ." >&2
19753    { (exit 1); exit 1; }
19754 }
19755
19756 _ACEOF
19757
19758 cat >>$CONFIG_STATUS <<_ACEOF
19759
19760 #
19761 # CONFIG_FILES section.
19762 #
19763
19764 # No need to generate the scripts if there are no CONFIG_FILES.
19765 # This happens for instance when ./config.status config.h
19766 if test -n "\$CONFIG_FILES"; then
19767   # Protect against being on the right side of a sed subst in config.status.
19768   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19769    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19770 s,@SHELL@,$SHELL,;t t
19771 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19772 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19773 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19774 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19775 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19776 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19777 s,@exec_prefix@,$exec_prefix,;t t
19778 s,@prefix@,$prefix,;t t
19779 s,@program_transform_name@,$program_transform_name,;t t
19780 s,@bindir@,$bindir,;t t
19781 s,@sbindir@,$sbindir,;t t
19782 s,@libexecdir@,$libexecdir,;t t
19783 s,@datadir@,$datadir,;t t
19784 s,@sysconfdir@,$sysconfdir,;t t
19785 s,@sharedstatedir@,$sharedstatedir,;t t
19786 s,@localstatedir@,$localstatedir,;t t
19787 s,@libdir@,$libdir,;t t
19788 s,@includedir@,$includedir,;t t
19789 s,@oldincludedir@,$oldincludedir,;t t
19790 s,@infodir@,$infodir,;t t
19791 s,@mandir@,$mandir,;t t
19792 s,@build_alias@,$build_alias,;t t
19793 s,@host_alias@,$host_alias,;t t
19794 s,@target_alias@,$target_alias,;t t
19795 s,@DEFS@,$DEFS,;t t
19796 s,@ECHO_C@,$ECHO_C,;t t
19797 s,@ECHO_N@,$ECHO_N,;t t
19798 s,@ECHO_T@,$ECHO_T,;t t
19799 s,@LIBS@,$LIBS,;t t
19800 s,@build@,$build,;t t
19801 s,@build_cpu@,$build_cpu,;t t
19802 s,@build_vendor@,$build_vendor,;t t
19803 s,@build_os@,$build_os,;t t
19804 s,@host@,$host,;t t
19805 s,@host_cpu@,$host_cpu,;t t
19806 s,@host_vendor@,$host_vendor,;t t
19807 s,@host_os@,$host_os,;t t
19808 s,@target@,$target,;t t
19809 s,@target_cpu@,$target_cpu,;t t
19810 s,@target_vendor@,$target_vendor,;t t
19811 s,@target_os@,$target_os,;t t
19812 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19813 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19814 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19815 s,@CYGPATH_W@,$CYGPATH_W,;t t
19816 s,@PACKAGE@,$PACKAGE,;t t
19817 s,@VERSION@,$VERSION,;t t
19818 s,@ACLOCAL@,$ACLOCAL,;t t
19819 s,@AUTOCONF@,$AUTOCONF,;t t
19820 s,@AUTOMAKE@,$AUTOMAKE,;t t
19821 s,@AUTOHEADER@,$AUTOHEADER,;t t
19822 s,@MAKEINFO@,$MAKEINFO,;t t
19823 s,@AMTAR@,$AMTAR,;t t
19824 s,@install_sh@,$install_sh,;t t
19825 s,@STRIP@,$STRIP,;t t
19826 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19827 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19828 s,@AWK@,$AWK,;t t
19829 s,@SET_MAKE@,$SET_MAKE,;t t
19830 s,@am__leading_dot@,$am__leading_dot,;t t
19831 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19832 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19833 s,@MAINT@,$MAINT,;t t
19834 s,@EMACS@,$EMACS,;t t
19835 s,@lispdir@,$lispdir,;t t
19836 s,@CC@,$CC,;t t
19837 s,@CFLAGS@,$CFLAGS,;t t
19838 s,@LDFLAGS@,$LDFLAGS,;t t
19839 s,@CPPFLAGS@,$CPPFLAGS,;t t
19840 s,@ac_ct_CC@,$ac_ct_CC,;t t
19841 s,@EXEEXT@,$EXEEXT,;t t
19842 s,@OBJEXT@,$OBJEXT,;t t
19843 s,@DEPDIR@,$DEPDIR,;t t
19844 s,@am__include@,$am__include,;t t
19845 s,@am__quote@,$am__quote,;t t
19846 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19847 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19848 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19849 s,@CCDEPMODE@,$CCDEPMODE,;t t
19850 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19851 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19852 s,@CPP@,$CPP,;t t
19853 s,@EGREP@,$EGREP,;t t
19854 s,@RANLIB@,$RANLIB,;t t
19855 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19856 s,@LN_S@,$LN_S,;t t
19857 s,@X_CFLAGS@,$X_CFLAGS,;t t
19858 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19859 s,@X_LIBS@,$X_LIBS,;t t
19860 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19861 s,@LIBOBJS@,$LIBOBJS,;t t
19862 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19863 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19864 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19865 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19866 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19867 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19868 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19869 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19870 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19871 s,@ESD_LIBS@,$ESD_LIBS,;t t
19872 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19873 s,@AO_LIBS@,$AO_LIBS,;t t
19874 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19875 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19876 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19877 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19878 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19879 s,@OGG_LIBS@,$OGG_LIBS,;t t
19880 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
19881 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
19882 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
19883 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
19884 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19885 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19886 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19887 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19888 s,@n_so_libs@,$n_so_libs,;t t
19889 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19890 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19891 s,@s_so_libs@,$s_so_libs,;t t
19892 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19893 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19894 s,@m_so_libs@,$m_so_libs,;t t
19895 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19896 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19897 s,@k_so_libs@,$k_so_libs,;t t
19898 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19899 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19900 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19901 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19902 s,@e_so_libs@,$e_so_libs,;t t
19903 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19904 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19905 s,@T_so_libs@,$T_so_libs,;t t
19906 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19907 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19908 s,@a_so_libs@,$a_so_libs,;t t
19909 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19910 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19911 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19912 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19913 s,@i_so_libs@,$i_so_libs,;t t
19914 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19915 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19916 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19917 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19918 s,@GTK_LIBS@,$GTK_LIBS,;t t
19919 s,@g_so_libs@,$g_so_libs,;t t
19920 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19921 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19922 s,@r_so_libs@,$r_so_libs,;t t
19923 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19924 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19925 s,@A_so_libs@,$A_so_libs,;t t
19926 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19927 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19928 s,@W_so_libs@,$W_so_libs,;t t
19929 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19930 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19931 s,@P_so_libs@,$P_so_libs,;t t
19932 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19933 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19934 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19935 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19936 s,@w_so_libs@,$w_so_libs,;t t
19937 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19938 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19939 s,@p_so_libs@,$p_so_libs,;t t
19940 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19941 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19942 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19943 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19944 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19945 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19946 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19947 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19948 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19949 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19950 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19951 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19952 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19953 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19954 s,@EXTRALIBS@,$EXTRALIBS,;t t
19955 s,@NETSRCS@,$NETSRCS,;t t
19956 s,@ELFILES@,$ELFILES,;t t
19957 s,@SHLD@,$SHLD,;t t
19958 s,@SHCFLAGS@,$SHCFLAGS,;t t
19959 s,@dynamic_targets@,$dynamic_targets,;t t
19960 s,@so@,$so,;t t
19961 s,@WISH@,$WISH,;t t
19962 s,@tcltk_dep@,$tcltk_dep,;t t
19963 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19964 s,@pkgdatadir@,$pkgdatadir,;t t
19965 s,@pkglibdir@,$pkglibdir,;t t
19966 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19967 CEOF
19968
19969 _ACEOF
19970
19971   cat >>$CONFIG_STATUS <<\_ACEOF
19972   # Split the substitutions into bite-sized pieces for seds with
19973   # small command number limits, like on Digital OSF/1 and HP-UX.
19974   ac_max_sed_lines=48
19975   ac_sed_frag=1 # Number of current file.
19976   ac_beg=1 # First line for current file.
19977   ac_end=$ac_max_sed_lines # Line after last line for current file.
19978   ac_more_lines=:
19979   ac_sed_cmds=
19980   while $ac_more_lines; do
19981     if test $ac_beg -gt 1; then
19982       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19983     else
19984       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19985     fi
19986     if test ! -s $tmp/subs.frag; then
19987       ac_more_lines=false
19988     else
19989       # The purpose of the label and of the branching condition is to
19990       # speed up the sed processing (if there are no `@' at all, there
19991       # is no need to browse any of the substitutions).
19992       # These are the two extra sed commands mentioned above.
19993       (echo ':t
19994   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19995       if test -z "$ac_sed_cmds"; then
19996         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19997       else
19998         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19999       fi
20000       ac_sed_frag=`expr $ac_sed_frag + 1`
20001       ac_beg=$ac_end
20002       ac_end=`expr $ac_end + $ac_max_sed_lines`
20003     fi
20004   done
20005   if test -z "$ac_sed_cmds"; then
20006     ac_sed_cmds=cat
20007   fi
20008 fi # test -n "$CONFIG_FILES"
20009
20010 _ACEOF
20011 cat >>$CONFIG_STATUS <<\_ACEOF
20012 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20013   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20014   case $ac_file in
20015   - | *:- | *:-:* ) # input from stdin
20016         cat >$tmp/stdin
20017         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20018         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20019   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20020         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20021   * )   ac_file_in=$ac_file.in ;;
20022   esac
20023
20024   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20025   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20027          X"$ac_file" : 'X\(//\)[^/]' \| \
20028          X"$ac_file" : 'X\(//\)$' \| \
20029          X"$ac_file" : 'X\(/\)' \| \
20030          .     : '\(.\)' 2>/dev/null ||
20031 echo X"$ac_file" |
20032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20034           /^X\(\/\/\)$/{ s//\1/; q; }
20035           /^X\(\/\).*/{ s//\1/; q; }
20036           s/.*/./; q'`
20037   { if $as_mkdir_p; then
20038     mkdir -p "$ac_dir"
20039   else
20040     as_dir="$ac_dir"
20041     as_dirs=
20042     while test ! -d "$as_dir"; do
20043       as_dirs="$as_dir $as_dirs"
20044       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20046          X"$as_dir" : 'X\(//\)[^/]' \| \
20047          X"$as_dir" : 'X\(//\)$' \| \
20048          X"$as_dir" : 'X\(/\)' \| \
20049          .     : '\(.\)' 2>/dev/null ||
20050 echo X"$as_dir" |
20051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20053           /^X\(\/\/\)$/{ s//\1/; q; }
20054           /^X\(\/\).*/{ s//\1/; q; }
20055           s/.*/./; q'`
20056     done
20057     test ! -n "$as_dirs" || mkdir $as_dirs
20058   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20060    { (exit 1); exit 1; }; }; }
20061
20062   ac_builddir=.
20063
20064 if test "$ac_dir" != .; then
20065   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20066   # A "../" for each directory in $ac_dir_suffix.
20067   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20068 else
20069   ac_dir_suffix= ac_top_builddir=
20070 fi
20071
20072 case $srcdir in
20073   .)  # No --srcdir option.  We are building in place.
20074     ac_srcdir=.
20075     if test -z "$ac_top_builddir"; then
20076        ac_top_srcdir=.
20077     else
20078        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20079     fi ;;
20080   [\\/]* | ?:[\\/]* )  # Absolute path.
20081     ac_srcdir=$srcdir$ac_dir_suffix;
20082     ac_top_srcdir=$srcdir ;;
20083   *) # Relative path.
20084     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20085     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20086 esac
20087
20088 # Do not use `cd foo && pwd` to compute absolute paths, because
20089 # the directories may not exist.
20090 case `pwd` in
20091 .) ac_abs_builddir="$ac_dir";;
20092 *)
20093   case "$ac_dir" in
20094   .) ac_abs_builddir=`pwd`;;
20095   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20096   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20097   esac;;
20098 esac
20099 case $ac_abs_builddir in
20100 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20101 *)
20102   case ${ac_top_builddir}. in
20103   .) ac_abs_top_builddir=$ac_abs_builddir;;
20104   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20105   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20106   esac;;
20107 esac
20108 case $ac_abs_builddir in
20109 .) ac_abs_srcdir=$ac_srcdir;;
20110 *)
20111   case $ac_srcdir in
20112   .) ac_abs_srcdir=$ac_abs_builddir;;
20113   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20114   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20115   esac;;
20116 esac
20117 case $ac_abs_builddir in
20118 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20119 *)
20120   case $ac_top_srcdir in
20121   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20122   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20123   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20124   esac;;
20125 esac
20126
20127
20128   case $INSTALL in
20129   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20130   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20131   esac
20132
20133   if test x"$ac_file" != x-; then
20134     { echo "$as_me:$LINENO: creating $ac_file" >&5
20135 echo "$as_me: creating $ac_file" >&6;}
20136     rm -f "$ac_file"
20137   fi
20138   # Let's still pretend it is `configure' which instantiates (i.e., don't
20139   # use $as_me), people would be surprised to read:
20140   #    /* config.h.  Generated by config.status.  */
20141   if test x"$ac_file" = x-; then
20142     configure_input=
20143   else
20144     configure_input="$ac_file.  "
20145   fi
20146   configure_input=$configure_input"Generated from `echo $ac_file_in |
20147                                      sed 's,.*/,,'` by configure."
20148
20149   # First look for the input files in the build tree, otherwise in the
20150   # src tree.
20151   ac_file_inputs=`IFS=:
20152     for f in $ac_file_in; do
20153       case $f in
20154       -) echo $tmp/stdin ;;
20155       [\\/$]*)
20156          # Absolute (can't be DOS-style, as IFS=:)
20157          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20158 echo "$as_me: error: cannot find input file: $f" >&2;}
20159    { (exit 1); exit 1; }; }
20160          echo "$f";;
20161       *) # Relative
20162          if test -f "$f"; then
20163            # Build tree
20164            echo "$f"
20165          elif test -f "$srcdir/$f"; then
20166            # Source tree
20167            echo "$srcdir/$f"
20168          else
20169            # /dev/null tree
20170            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20171 echo "$as_me: error: cannot find input file: $f" >&2;}
20172    { (exit 1); exit 1; }; }
20173          fi;;
20174       esac
20175     done` || { (exit 1); exit 1; }
20176 _ACEOF
20177 cat >>$CONFIG_STATUS <<_ACEOF
20178   sed "$ac_vpsub
20179 $extrasub
20180 _ACEOF
20181 cat >>$CONFIG_STATUS <<\_ACEOF
20182 :t
20183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20184 s,@configure_input@,$configure_input,;t t
20185 s,@srcdir@,$ac_srcdir,;t t
20186 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20187 s,@top_srcdir@,$ac_top_srcdir,;t t
20188 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20189 s,@builddir@,$ac_builddir,;t t
20190 s,@abs_builddir@,$ac_abs_builddir,;t t
20191 s,@top_builddir@,$ac_top_builddir,;t t
20192 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20193 s,@INSTALL@,$ac_INSTALL,;t t
20194 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20195   rm -f $tmp/stdin
20196   if test x"$ac_file" != x-; then
20197     mv $tmp/out $ac_file
20198   else
20199     cat $tmp/out
20200     rm -f $tmp/out
20201   fi
20202
20203 done
20204 _ACEOF
20205 cat >>$CONFIG_STATUS <<\_ACEOF
20206
20207 #
20208 # CONFIG_HEADER section.
20209 #
20210
20211 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20212 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20213 #
20214 # ac_d sets the value in "#define NAME VALUE" lines.
20215 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20216 ac_dB='[         ].*$,\1#\2'
20217 ac_dC=' '
20218 ac_dD=',;t'
20219 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20220 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20221 ac_uB='$,\1#\2define\3'
20222 ac_uC=' '
20223 ac_uD=',;t'
20224
20225 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20226   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20227   case $ac_file in
20228   - | *:- | *:-:* ) # input from stdin
20229         cat >$tmp/stdin
20230         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20231         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20232   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20233         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20234   * )   ac_file_in=$ac_file.in ;;
20235   esac
20236
20237   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20238 echo "$as_me: creating $ac_file" >&6;}
20239
20240   # First look for the input files in the build tree, otherwise in the
20241   # src tree.
20242   ac_file_inputs=`IFS=:
20243     for f in $ac_file_in; do
20244       case $f in
20245       -) echo $tmp/stdin ;;
20246       [\\/$]*)
20247          # Absolute (can't be DOS-style, as IFS=:)
20248          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20249 echo "$as_me: error: cannot find input file: $f" >&2;}
20250    { (exit 1); exit 1; }; }
20251          # Do quote $f, to prevent DOS paths from being IFS'd.
20252          echo "$f";;
20253       *) # Relative
20254          if test -f "$f"; then
20255            # Build tree
20256            echo "$f"
20257          elif test -f "$srcdir/$f"; then
20258            # Source tree
20259            echo "$srcdir/$f"
20260          else
20261            # /dev/null tree
20262            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20263 echo "$as_me: error: cannot find input file: $f" >&2;}
20264    { (exit 1); exit 1; }; }
20265          fi;;
20266       esac
20267     done` || { (exit 1); exit 1; }
20268   # Remove the trailing spaces.
20269   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20270
20271 _ACEOF
20272
20273 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20274 # `conftest.undefs', that substitutes the proper values into
20275 # config.h.in to produce config.h.  The first handles `#define'
20276 # templates, and the second `#undef' templates.
20277 # And first: Protect against being on the right side of a sed subst in
20278 # config.status.  Protect against being in an unquoted here document
20279 # in config.status.
20280 rm -f conftest.defines conftest.undefs
20281 # Using a here document instead of a string reduces the quoting nightmare.
20282 # Putting comments in sed scripts is not portable.
20283 #
20284 # `end' is used to avoid that the second main sed command (meant for
20285 # 0-ary CPP macros) applies to n-ary macro definitions.
20286 # See the Autoconf documentation for `clear'.
20287 cat >confdef2sed.sed <<\_ACEOF
20288 s/[\\&,]/\\&/g
20289 s,[\\$`],\\&,g
20290 t clear
20291 : clear
20292 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20293 t end
20294 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20295 : end
20296 _ACEOF
20297 # If some macros were called several times there might be several times
20298 # the same #defines, which is useless.  Nevertheless, we may not want to
20299 # sort them, since we want the *last* AC-DEFINE to be honored.
20300 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20301 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20302 rm -f confdef2sed.sed
20303
20304 # This sed command replaces #undef with comments.  This is necessary, for
20305 # example, in the case of _POSIX_SOURCE, which is predefined and required
20306 # on some systems where configure will not decide to define it.
20307 cat >>conftest.undefs <<\_ACEOF
20308 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20309 _ACEOF
20310
20311 # Break up conftest.defines because some shells have a limit on the size
20312 # of here documents, and old seds have small limits too (100 cmds).
20313 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20314 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20315 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20316 echo '  :' >>$CONFIG_STATUS
20317 rm -f conftest.tail
20318 while grep . conftest.defines >/dev/null
20319 do
20320   # Write a limited-size here document to $tmp/defines.sed.
20321   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20322   # Speed up: don't consider the non `#define' lines.
20323   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20324   # Work around the forget-to-reset-the-flag bug.
20325   echo 't clr' >>$CONFIG_STATUS
20326   echo ': clr' >>$CONFIG_STATUS
20327   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20328   echo 'CEOF
20329   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20330   rm -f $tmp/in
20331   mv $tmp/out $tmp/in
20332 ' >>$CONFIG_STATUS
20333   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20334   rm -f conftest.defines
20335   mv conftest.tail conftest.defines
20336 done
20337 rm -f conftest.defines
20338 echo '  fi # grep' >>$CONFIG_STATUS
20339 echo >>$CONFIG_STATUS
20340
20341 # Break up conftest.undefs because some shells have a limit on the size
20342 # of here documents, and old seds have small limits too (100 cmds).
20343 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20344 rm -f conftest.tail
20345 while grep . conftest.undefs >/dev/null
20346 do
20347   # Write a limited-size here document to $tmp/undefs.sed.
20348   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20349   # Speed up: don't consider the non `#undef'
20350   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20351   # Work around the forget-to-reset-the-flag bug.
20352   echo 't clr' >>$CONFIG_STATUS
20353   echo ': clr' >>$CONFIG_STATUS
20354   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20355   echo 'CEOF
20356   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20357   rm -f $tmp/in
20358   mv $tmp/out $tmp/in
20359 ' >>$CONFIG_STATUS
20360   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20361   rm -f conftest.undefs
20362   mv conftest.tail conftest.undefs
20363 done
20364 rm -f conftest.undefs
20365
20366 cat >>$CONFIG_STATUS <<\_ACEOF
20367   # Let's still pretend it is `configure' which instantiates (i.e., don't
20368   # use $as_me), people would be surprised to read:
20369   #    /* config.h.  Generated by config.status.  */
20370   if test x"$ac_file" = x-; then
20371     echo "/* Generated by configure.  */" >$tmp/config.h
20372   else
20373     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20374   fi
20375   cat $tmp/in >>$tmp/config.h
20376   rm -f $tmp/in
20377   if test x"$ac_file" != x-; then
20378     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20379       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20380 echo "$as_me: $ac_file is unchanged" >&6;}
20381     else
20382       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20384          X"$ac_file" : 'X\(//\)[^/]' \| \
20385          X"$ac_file" : 'X\(//\)$' \| \
20386          X"$ac_file" : 'X\(/\)' \| \
20387          .     : '\(.\)' 2>/dev/null ||
20388 echo X"$ac_file" |
20389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20390           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20391           /^X\(\/\/\)$/{ s//\1/; q; }
20392           /^X\(\/\).*/{ s//\1/; q; }
20393           s/.*/./; q'`
20394       { if $as_mkdir_p; then
20395     mkdir -p "$ac_dir"
20396   else
20397     as_dir="$ac_dir"
20398     as_dirs=
20399     while test ! -d "$as_dir"; do
20400       as_dirs="$as_dir $as_dirs"
20401       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20403          X"$as_dir" : 'X\(//\)[^/]' \| \
20404          X"$as_dir" : 'X\(//\)$' \| \
20405          X"$as_dir" : 'X\(/\)' \| \
20406          .     : '\(.\)' 2>/dev/null ||
20407 echo X"$as_dir" |
20408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20409           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20410           /^X\(\/\/\)$/{ s//\1/; q; }
20411           /^X\(\/\).*/{ s//\1/; q; }
20412           s/.*/./; q'`
20413     done
20414     test ! -n "$as_dirs" || mkdir $as_dirs
20415   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20416 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20417    { (exit 1); exit 1; }; }; }
20418
20419       rm -f $ac_file
20420       mv $tmp/config.h $ac_file
20421     fi
20422   else
20423     cat $tmp/config.h
20424     rm -f $tmp/config.h
20425   fi
20426 # Compute $ac_file's index in $config_headers.
20427 _am_stamp_count=1
20428 for _am_header in $config_headers :; do
20429   case $_am_header in
20430     $ac_file | $ac_file:* )
20431       break ;;
20432     * )
20433       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20434   esac
20435 done
20436 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20437 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20438          X$ac_file : 'X\(//\)[^/]' \| \
20439          X$ac_file : 'X\(//\)$' \| \
20440          X$ac_file : 'X\(/\)' \| \
20441          .     : '\(.\)' 2>/dev/null ||
20442 echo X$ac_file |
20443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20444           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20445           /^X\(\/\/\)$/{ s//\1/; q; }
20446           /^X\(\/\).*/{ s//\1/; q; }
20447           s/.*/./; q'`/stamp-h$_am_stamp_count
20448 done
20449 _ACEOF
20450 cat >>$CONFIG_STATUS <<\_ACEOF
20451
20452 #
20453 # CONFIG_COMMANDS section.
20454 #
20455 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20456   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20457   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20458   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20459 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20460          X"$ac_dest" : 'X\(//\)[^/]' \| \
20461          X"$ac_dest" : 'X\(//\)$' \| \
20462          X"$ac_dest" : 'X\(/\)' \| \
20463          .     : '\(.\)' 2>/dev/null ||
20464 echo X"$ac_dest" |
20465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20466           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20467           /^X\(\/\/\)$/{ s//\1/; q; }
20468           /^X\(\/\).*/{ s//\1/; q; }
20469           s/.*/./; q'`
20470   { if $as_mkdir_p; then
20471     mkdir -p "$ac_dir"
20472   else
20473     as_dir="$ac_dir"
20474     as_dirs=
20475     while test ! -d "$as_dir"; do
20476       as_dirs="$as_dir $as_dirs"
20477       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20479          X"$as_dir" : 'X\(//\)[^/]' \| \
20480          X"$as_dir" : 'X\(//\)$' \| \
20481          X"$as_dir" : 'X\(/\)' \| \
20482          .     : '\(.\)' 2>/dev/null ||
20483 echo X"$as_dir" |
20484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20486           /^X\(\/\/\)$/{ s//\1/; q; }
20487           /^X\(\/\).*/{ s//\1/; q; }
20488           s/.*/./; q'`
20489     done
20490     test ! -n "$as_dirs" || mkdir $as_dirs
20491   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20493    { (exit 1); exit 1; }; }; }
20494
20495   ac_builddir=.
20496
20497 if test "$ac_dir" != .; then
20498   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20499   # A "../" for each directory in $ac_dir_suffix.
20500   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20501 else
20502   ac_dir_suffix= ac_top_builddir=
20503 fi
20504
20505 case $srcdir in
20506   .)  # No --srcdir option.  We are building in place.
20507     ac_srcdir=.
20508     if test -z "$ac_top_builddir"; then
20509        ac_top_srcdir=.
20510     else
20511        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20512     fi ;;
20513   [\\/]* | ?:[\\/]* )  # Absolute path.
20514     ac_srcdir=$srcdir$ac_dir_suffix;
20515     ac_top_srcdir=$srcdir ;;
20516   *) # Relative path.
20517     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20518     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20519 esac
20520
20521 # Do not use `cd foo && pwd` to compute absolute paths, because
20522 # the directories may not exist.
20523 case `pwd` in
20524 .) ac_abs_builddir="$ac_dir";;
20525 *)
20526   case "$ac_dir" in
20527   .) ac_abs_builddir=`pwd`;;
20528   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20529   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20530   esac;;
20531 esac
20532 case $ac_abs_builddir in
20533 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20534 *)
20535   case ${ac_top_builddir}. in
20536   .) ac_abs_top_builddir=$ac_abs_builddir;;
20537   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20538   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20539   esac;;
20540 esac
20541 case $ac_abs_builddir in
20542 .) ac_abs_srcdir=$ac_srcdir;;
20543 *)
20544   case $ac_srcdir in
20545   .) ac_abs_srcdir=$ac_abs_builddir;;
20546   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20547   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20548   esac;;
20549 esac
20550 case $ac_abs_builddir in
20551 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20552 *)
20553   case $ac_top_srcdir in
20554   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20555   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20556   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20557   esac;;
20558 esac
20559
20560
20561   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20562 echo "$as_me: executing $ac_dest commands" >&6;}
20563   case $ac_dest in
20564     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20565   # Strip MF so we end up with the name of the file.
20566   mf=`echo "$mf" | sed -e 's/:.*$//'`
20567   # Check whether this is an Automake generated Makefile or not.
20568   # We used to match only the files named `Makefile.in', but
20569   # some people rename them; so instead we look at the file content.
20570   # Grep'ing the first line is not enough: some people post-process
20571   # each Makefile.in and add a new line on top of each file to say so.
20572   # So let's grep whole file.
20573   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20574     dirpart=`(dirname "$mf") 2>/dev/null ||
20575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576          X"$mf" : 'X\(//\)[^/]' \| \
20577          X"$mf" : 'X\(//\)$' \| \
20578          X"$mf" : 'X\(/\)' \| \
20579          .     : '\(.\)' 2>/dev/null ||
20580 echo X"$mf" |
20581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20583           /^X\(\/\/\)$/{ s//\1/; q; }
20584           /^X\(\/\).*/{ s//\1/; q; }
20585           s/.*/./; q'`
20586   else
20587     continue
20588   fi
20589   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20590   # Extract the definition of DEP_FILES from the Makefile without
20591   # running `make'.
20592   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20593   test -z "$DEPDIR" && continue
20594   # When using ansi2knr, U may be empty or an underscore; expand it
20595   U=`sed -n -e '/^U = / s///p' < "$mf"`
20596   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20597   # We invoke sed twice because it is the simplest approach to
20598   # changing $(DEPDIR) to its actual value in the expansion.
20599   for file in `sed -n -e '
20600     /^DEP_FILES = .*\\\\$/ {
20601       s/^DEP_FILES = //
20602       :loop
20603         s/\\\\$//
20604         p
20605         n
20606         /\\\\$/ b loop
20607       p
20608     }
20609     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20610        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20611     # Make sure the directory exists.
20612     test -f "$dirpart/$file" && continue
20613     fdir=`(dirname "$file") 2>/dev/null ||
20614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20615          X"$file" : 'X\(//\)[^/]' \| \
20616          X"$file" : 'X\(//\)$' \| \
20617          X"$file" : 'X\(/\)' \| \
20618          .     : '\(.\)' 2>/dev/null ||
20619 echo X"$file" |
20620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20621           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20622           /^X\(\/\/\)$/{ s//\1/; q; }
20623           /^X\(\/\).*/{ s//\1/; q; }
20624           s/.*/./; q'`
20625     { if $as_mkdir_p; then
20626     mkdir -p $dirpart/$fdir
20627   else
20628     as_dir=$dirpart/$fdir
20629     as_dirs=
20630     while test ! -d "$as_dir"; do
20631       as_dirs="$as_dir $as_dirs"
20632       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20634          X"$as_dir" : 'X\(//\)[^/]' \| \
20635          X"$as_dir" : 'X\(//\)$' \| \
20636          X"$as_dir" : 'X\(/\)' \| \
20637          .     : '\(.\)' 2>/dev/null ||
20638 echo X"$as_dir" |
20639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20640           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20641           /^X\(\/\/\)$/{ s//\1/; q; }
20642           /^X\(\/\).*/{ s//\1/; q; }
20643           s/.*/./; q'`
20644     done
20645     test ! -n "$as_dirs" || mkdir $as_dirs
20646   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20647 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20648    { (exit 1); exit 1; }; }; }
20649
20650     # echo "creating $dirpart/$file"
20651     echo '# dummy' > "$dirpart/$file"
20652   done
20653 done
20654  ;;
20655   esac
20656 done
20657 _ACEOF
20658
20659 cat >>$CONFIG_STATUS <<\_ACEOF
20660
20661 { (exit 0); exit 0; }
20662 _ACEOF
20663 chmod +x $CONFIG_STATUS
20664 ac_clean_files=$ac_clean_files_save
20665
20666
20667 # configure is writing to config.log, and then calls config.status.
20668 # config.status does its own redirection, appending to config.log.
20669 # Unfortunately, on DOS this fails, as config.log is still kept open
20670 # by configure, so config.status won't be able to write to it; its
20671 # output is simply discarded.  So we exec the FD to /dev/null,
20672 # effectively closing config.log, so it can be properly (re)opened and
20673 # appended to by config.status.  When coming back to configure, we
20674 # need to make the FD available again.
20675 if test "$no_create" != yes; then
20676   ac_cs_success=:
20677   ac_config_status_args=
20678   test "$silent" = yes &&
20679     ac_config_status_args="$ac_config_status_args --quiet"
20680   exec 5>/dev/null
20681   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20682   exec 5>>config.log
20683   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20684   # would make configure fail if this is the last instruction.
20685   $ac_cs_success || { (exit 1); exit 1; }
20686 fi
20687