OSDN Git Service

Concerning compilaton with vcc or bcc in Myss or cygwin environment.
[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 MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS VCPP_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 "*)
3888 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
3889         test -n "$SHLD" || SHLD="BCC32 -WD"
3890         BORLANDC=yes
3891         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3892                 BORLANDC_START='C0X32.OBJ'
3893         CFLAGS="$CFLAGS  -tWM -VM"
3894         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3895         ;;
3896       "xcl "*)
3897          test -n "$SHLD" || SHLD="link -dll"
3898          VCPP_LDFLAGS="-nologo -incremental:no  -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3899          CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX  -Ob2"
3900          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
3901          VCPP=yes
3902          ;;
3903       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3904       *) test -n "$SHLD" || SHLD="unknown" ;;
3905     esac
3906     so="dll"
3907     CYGNUS=yes
3908     lib_user32_test=-luser32
3909     ;;
3910   *-*-mingw*)
3911     EXTRADEFS="-D__W32__"
3912     # ??
3913     case "x${CC} " in
3914       "xbcc32 "*)
3915 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
3916         test -n "$SHLD" || SHLD="BCC32 -WD"
3917         BORLANDC=yes
3918         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3919         BORLANDC_START='C0X32.OBJ'
3920         CFLAGS="$CFLAGS  -tWM -VM"
3921         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3922         ;;
3923       "xcl "*)
3924          test -n "$SHLD" || SHLD="link -dll"
3925          VCPP=yes
3926          VCPP_LDFLAGS="-nologo -incremental:no  -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3927          CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX  -Ob2"
3928          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
3929          ;;
3930       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3931       *) test -n "$SHLD" || SHLD="unknown" ;;
3932     esac
3933     so="dll"
3934     MSYS=yes
3935     lib_user32_test=-luser32
3936     ;;
3937   *-dec-*)
3938     EXTRADEFS="-DDEC"
3939     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3940     so="so"
3941     ;;
3942   *-*-solaris*)
3943     EXTRADEFS="-DSOLARIS"
3944     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3945     so="so"
3946     ;;
3947   *-*-nextstep*)
3948     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3949     so="so"
3950     ;;
3951   *-*-darwin*)
3952     if test "x$SIMD" = "xyes"; then
3953
3954 cat >>confdefs.h <<\_ACEOF
3955 #define USE_ALTIVEC 1
3956 _ACEOF
3957
3958        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3959        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3960     else
3961
3962 cat >>confdefs.h <<\_ACEOF
3963 #define USE_ALTIVEC 0
3964 _ACEOF
3965
3966     fi
3967     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3968     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3969     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3970     so="bundle"
3971     ;;
3972   *)
3973     test -n "$SHLD" || \
3974       if test "x$GCC" = xyes; then
3975         SHLD="$CC -shared"
3976       else
3977         SHLD="ld -Bdynamic -G"
3978       fi
3979     so="so"
3980     ;;
3981 esac
3982
3983
3984 # Checks for libraries.
3985
3986 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3987 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3988 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   ac_check_lib_save_LIBS=$LIBS
3992 LIBS="-lm  $LIBS"
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h.  */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h.  */
3999
4000 /* Override any gcc2 internal prototype to avoid an error.  */
4001 #ifdef __cplusplus
4002 extern "C"
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005    builtin and then its argument prototype would still apply.  */
4006 char sqrt ();
4007 int
4008 main ()
4009 {
4010 sqrt ();
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext conftest$ac_exeext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017   (eval $ac_link) 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } &&
4024          { ac_try='test -z "$ac_c_werror_flag"
4025                          || test ! -s conftest.err'
4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027   (eval $ac_try) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; } &&
4031          { ac_try='test -s conftest$ac_exeext'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   ac_cv_lib_m_sqrt=yes
4038 else
4039   echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 ac_cv_lib_m_sqrt=no
4043 fi
4044 rm -f conftest.err conftest.$ac_objext \
4045       conftest$ac_exeext conftest.$ac_ext
4046 LIBS=$ac_check_lib_save_LIBS
4047 fi
4048 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4049 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4050 if test $ac_cv_lib_m_sqrt = yes; then
4051   cat >>confdefs.h <<_ACEOF
4052 #define HAVE_LIBM 1
4053 _ACEOF
4054
4055   LIBS="-lm $LIBS"
4056
4057 fi
4058
4059
4060 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4061 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4062 if test "${ac_cv_lib_socket_socket+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   ac_check_lib_save_LIBS=$LIBS
4066 LIBS="-lsocket  $LIBS"
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h.  */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h.  */
4073
4074 /* Override any gcc2 internal prototype to avoid an error.  */
4075 #ifdef __cplusplus
4076 extern "C"
4077 #endif
4078 /* We use char because int might match the return type of a gcc2
4079    builtin and then its argument prototype would still apply.  */
4080 char socket ();
4081 int
4082 main ()
4083 {
4084 socket ();
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.$ac_objext conftest$ac_exeext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091   (eval $ac_link) 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } &&
4098          { ac_try='test -z "$ac_c_werror_flag"
4099                          || test ! -s conftest.err'
4100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; } &&
4105          { ac_try='test -s conftest$ac_exeext'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; }; then
4111   ac_cv_lib_socket_socket=yes
4112 else
4113   echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4115
4116 ac_cv_lib_socket_socket=no
4117 fi
4118 rm -f conftest.err conftest.$ac_objext \
4119       conftest$ac_exeext conftest.$ac_ext
4120 LIBS=$ac_check_lib_save_LIBS
4121 fi
4122 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4123 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4124 if test $ac_cv_lib_socket_socket = yes; then
4125   cat >>confdefs.h <<_ACEOF
4126 #define HAVE_LIBSOCKET 1
4127 _ACEOF
4128
4129   LIBS="-lsocket $LIBS"
4130
4131 fi
4132
4133 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   ac_check_lib_save_LIBS=$LIBS
4139 LIBS="-ldl  $LIBS"
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 /* Override any gcc2 internal prototype to avoid an error.  */
4148 #ifdef __cplusplus
4149 extern "C"
4150 #endif
4151 /* We use char because int might match the return type of a gcc2
4152    builtin and then its argument prototype would still apply.  */
4153 char dlopen ();
4154 int
4155 main ()
4156 {
4157 dlopen ();
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164   (eval $ac_link) 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } &&
4171          { ac_try='test -z "$ac_c_werror_flag"
4172                          || test ! -s conftest.err'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; } &&
4178          { ac_try='test -s conftest$ac_exeext'
4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180   (eval $ac_try) 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   ac_cv_lib_dl_dlopen=yes
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_cv_lib_dl_dlopen=no
4190 fi
4191 rm -f conftest.err conftest.$ac_objext \
4192       conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4194 fi
4195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4197 if test $ac_cv_lib_dl_dlopen = yes; then
4198   lib_dl_opt=-ldl
4199 fi
4200
4201 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4202 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4203 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   ac_check_lib_save_LIBS=$LIBS
4207 LIBS="-lobjc  $LIBS"
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214
4215 /* Override any gcc2 internal prototype to avoid an error.  */
4216 #ifdef __cplusplus
4217 extern "C"
4218 #endif
4219 /* We use char because int might match the return type of a gcc2
4220    builtin and then its argument prototype would still apply.  */
4221 char NSLinkModule ();
4222 int
4223 main ()
4224 {
4225 NSLinkModule ();
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232   (eval $ac_link) 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } &&
4239          { ac_try='test -z "$ac_c_werror_flag"
4240                          || test ! -s conftest.err'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; } &&
4246          { ac_try='test -s conftest$ac_exeext'
4247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248   (eval $ac_try) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   ac_cv_lib_objc_NSLinkModule=yes
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ac_cv_lib_objc_NSLinkModule=no
4258 fi
4259 rm -f conftest.err conftest.$ac_objext \
4260       conftest$ac_exeext conftest.$ac_ext
4261 LIBS=$ac_check_lib_save_LIBS
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4264 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4265 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4266   lib_dl_opt=-lobjc
4267 fi
4268  # Mac OS X need this.
4269 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes"; then
4270
4271 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4272 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4273 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   ac_check_lib_save_LIBS=$LIBS
4277 LIBS="-lxpg4  $LIBS"
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284
4285 /* Override any gcc2 internal prototype to avoid an error.  */
4286 #ifdef __cplusplus
4287 extern "C"
4288 #endif
4289 /* We use char because int might match the return type of a gcc2
4290    builtin and then its argument prototype would still apply.  */
4291 char setlocale ();
4292 int
4293 main ()
4294 {
4295 setlocale ();
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302   (eval $ac_link) 2>conftest.er1
4303   ac_status=$?
4304   grep -v '^ *+' conftest.er1 >conftest.err
4305   rm -f conftest.er1
4306   cat conftest.err >&5
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); } &&
4309          { ac_try='test -z "$ac_c_werror_flag"
4310                          || test ! -s conftest.err'
4311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312   (eval $ac_try) 2>&5
4313   ac_status=$?
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); }; } &&
4316          { ac_try='test -s conftest$ac_exeext'
4317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318   (eval $ac_try) 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); }; }; then
4322   ac_cv_lib_xpg4_setlocale=yes
4323 else
4324   echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327 ac_cv_lib_xpg4_setlocale=no
4328 fi
4329 rm -f conftest.err conftest.$ac_objext \
4330       conftest$ac_exeext conftest.$ac_ext
4331 LIBS=$ac_check_lib_save_LIBS
4332 fi
4333 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4334 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4335 if test $ac_cv_lib_xpg4_setlocale = yes; then
4336   cat >>confdefs.h <<_ACEOF
4337 #define HAVE_LIBXPG4 1
4338 _ACEOF
4339
4340   LIBS="-lxpg4 $LIBS"
4341
4342 fi
4343  # Mac OS X (and maybe NetBSD) need this.
4344 fi
4345
4346 for ac_func in gethostbyname
4347 do
4348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4349 echo "$as_me:$LINENO: checking for $ac_func" >&5
4350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4351 if eval "test \"\${$as_ac_var+set}\" = set"; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4362 #define $ac_func innocuous_$ac_func
4363
4364 /* System header to define __stub macros and hopefully few prototypes,
4365     which can conflict with char $ac_func (); below.
4366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367     <limits.h> exists even on freestanding compilers.  */
4368
4369 #ifdef __STDC__
4370 # include <limits.h>
4371 #else
4372 # include <assert.h>
4373 #endif
4374
4375 #undef $ac_func
4376
4377 /* Override any gcc2 internal prototype to avoid an error.  */
4378 #ifdef __cplusplus
4379 extern "C"
4380 {
4381 #endif
4382 /* We use char because int might match the return type of a gcc2
4383    builtin and then its argument prototype would still apply.  */
4384 char $ac_func ();
4385 /* The GNU C library defines this for functions which it implements
4386     to always fail with ENOSYS.  Some functions are actually named
4387     something starting with __ and the normal name is an alias.  */
4388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4389 choke me
4390 #else
4391 char (*f) () = $ac_func;
4392 #endif
4393 #ifdef __cplusplus
4394 }
4395 #endif
4396
4397 int
4398 main ()
4399 {
4400 return f != $ac_func;
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407   (eval $ac_link) 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -z "$ac_c_werror_flag"
4415                          || test ! -s conftest.err'
4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417   (eval $ac_try) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; } &&
4421          { ac_try='test -s conftest$ac_exeext'
4422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423   (eval $ac_try) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; }; then
4427   eval "$as_ac_var=yes"
4428 else
4429   echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 eval "$as_ac_var=no"
4433 fi
4434 rm -f conftest.err conftest.$ac_objext \
4435       conftest$ac_exeext conftest.$ac_ext
4436 fi
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4439 if test `eval echo '${'$as_ac_var'}'` = yes; then
4440   cat >>confdefs.h <<_ACEOF
4441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4442 _ACEOF
4443
4444 else
4445
4446 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4447 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4448 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   ac_check_lib_save_LIBS=$LIBS
4452 LIBS="-lnsl  $LIBS"
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459
4460 /* Override any gcc2 internal prototype to avoid an error.  */
4461 #ifdef __cplusplus
4462 extern "C"
4463 #endif
4464 /* We use char because int might match the return type of a gcc2
4465    builtin and then its argument prototype would still apply.  */
4466 char gethostbyname ();
4467 int
4468 main ()
4469 {
4470 gethostbyname ();
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477   (eval $ac_link) 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } &&
4484          { ac_try='test -z "$ac_c_werror_flag"
4485                          || test ! -s conftest.err'
4486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487   (eval $ac_try) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; } &&
4491          { ac_try='test -s conftest$ac_exeext'
4492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493   (eval $ac_try) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; }; then
4497   ac_cv_lib_nsl_gethostbyname=yes
4498 else
4499   echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 ac_cv_lib_nsl_gethostbyname=no
4503 fi
4504 rm -f conftest.err conftest.$ac_objext \
4505       conftest$ac_exeext conftest.$ac_ext
4506 LIBS=$ac_check_lib_save_LIBS
4507 fi
4508 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4509 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4510 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4511   cat >>confdefs.h <<_ACEOF
4512 #define HAVE_LIBNSL 1
4513 _ACEOF
4514
4515   LIBS="-lnsl $LIBS"
4516
4517 fi
4518
4519 fi
4520 done
4521
4522 echo "$as_me:$LINENO: checking for X" >&5
4523 echo $ECHO_N "checking for X... $ECHO_C" >&6
4524
4525
4526 # Check whether --with-x or --without-x was given.
4527 if test "${with_x+set}" = set; then
4528   withval="$with_x"
4529
4530 fi;
4531 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4532 if test "x$with_x" = xno; then
4533   # The user explicitly disabled X.
4534   have_x=disabled
4535 else
4536   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4537     # Both variables are already set.
4538     have_x=yes
4539   else
4540     if test "${ac_cv_have_x+set}" = set; then
4541   echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543   # One or both of the vars are not set, and there is no cached value.
4544 ac_x_includes=no ac_x_libraries=no
4545 rm -fr conftest.dir
4546 if mkdir conftest.dir; then
4547   cd conftest.dir
4548   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4549   cat >Imakefile <<'_ACEOF'
4550 acfindx:
4551         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4552 _ACEOF
4553   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4554     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4555     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4556     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4557     for ac_extension in a so sl; do
4558       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4559          test -f $ac_im_libdir/libX11.$ac_extension; then
4560         ac_im_usrlibdir=$ac_im_libdir; break
4561       fi
4562     done
4563     # Screen out bogus values from the imake configuration.  They are
4564     # bogus both because they are the default anyway, and because
4565     # using them would break gcc on systems where it needs fixed includes.
4566     case $ac_im_incroot in
4567         /usr/include) ;;
4568         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4569     esac
4570     case $ac_im_usrlibdir in
4571         /usr/lib | /lib) ;;
4572         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4573     esac
4574   fi
4575   cd ..
4576   rm -fr conftest.dir
4577 fi
4578
4579 # Standard set of common directories for X headers.
4580 # Check X11 before X11Rn because it is often a symlink to the current release.
4581 ac_x_header_dirs='
4582 /usr/X11/include
4583 /usr/X11R6/include
4584 /usr/X11R5/include
4585 /usr/X11R4/include
4586
4587 /usr/include/X11
4588 /usr/include/X11R6
4589 /usr/include/X11R5
4590 /usr/include/X11R4
4591
4592 /usr/local/X11/include
4593 /usr/local/X11R6/include
4594 /usr/local/X11R5/include
4595 /usr/local/X11R4/include
4596
4597 /usr/local/include/X11
4598 /usr/local/include/X11R6
4599 /usr/local/include/X11R5
4600 /usr/local/include/X11R4
4601
4602 /usr/X386/include
4603 /usr/x386/include
4604 /usr/XFree86/include/X11
4605
4606 /usr/include
4607 /usr/local/include
4608 /usr/unsupported/include
4609 /usr/athena/include
4610 /usr/local/x11r5/include
4611 /usr/lpp/Xamples/include
4612
4613 /usr/openwin/include
4614 /usr/openwin/share/include'
4615
4616 if test "$ac_x_includes" = no; then
4617   # Guess where to find include files, by looking for Intrinsic.h.
4618   # First, try using that file with no special directory specified.
4619   cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 #include <X11/Intrinsic.h>
4626 _ACEOF
4627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4629   ac_status=$?
4630   grep -v '^ *+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
4632   cat conftest.err >&5
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } >/dev/null; then
4635   if test -s conftest.err; then
4636     ac_cpp_err=$ac_c_preproc_warn_flag
4637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4638   else
4639     ac_cpp_err=
4640   fi
4641 else
4642   ac_cpp_err=yes
4643 fi
4644 if test -z "$ac_cpp_err"; then
4645   # We can compile using X headers with no special include directory.
4646 ac_x_includes=
4647 else
4648   echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651   for ac_dir in $ac_x_header_dirs; do
4652   if test -r "$ac_dir/X11/Intrinsic.h"; then
4653     ac_x_includes=$ac_dir
4654     break
4655   fi
4656 done
4657 fi
4658 rm -f conftest.err conftest.$ac_ext
4659 fi # $ac_x_includes = no
4660
4661 if test "$ac_x_libraries" = no; then
4662   # Check for the libraries.
4663   # See if we find them without any special options.
4664   # Don't add to $LIBS permanently.
4665   ac_save_LIBS=$LIBS
4666   LIBS="-lXt $LIBS"
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 #include <X11/Intrinsic.h>
4674 int
4675 main ()
4676 {
4677 XtMalloc (0)
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684   (eval $ac_link) 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_c_werror_flag"
4692                          || test ! -s conftest.err'
4693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694   (eval $ac_try) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; } &&
4698          { ac_try='test -s conftest$ac_exeext'
4699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700   (eval $ac_try) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }; }; then
4704   LIBS=$ac_save_LIBS
4705 # We can link X programs with no special library path.
4706 ac_x_libraries=
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 LIBS=$ac_save_LIBS
4712 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4713 do
4714   # Don't even attempt the hair of trying to link an X program!
4715   for ac_extension in a so sl; do
4716     if test -r $ac_dir/libXt.$ac_extension; then
4717       ac_x_libraries=$ac_dir
4718       break 2
4719     fi
4720   done
4721 done
4722 fi
4723 rm -f conftest.err conftest.$ac_objext \
4724       conftest$ac_exeext conftest.$ac_ext
4725 fi # $ac_x_libraries = no
4726
4727 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4728   # Didn't find X anywhere.  Cache the known absence of X.
4729   ac_cv_have_x="have_x=no"
4730 else
4731   # Record where we found X for the cache.
4732   ac_cv_have_x="have_x=yes \
4733                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4734 fi
4735 fi
4736
4737   fi
4738   eval "$ac_cv_have_x"
4739 fi # $with_x != no
4740
4741 if test "$have_x" != yes; then
4742   echo "$as_me:$LINENO: result: $have_x" >&5
4743 echo "${ECHO_T}$have_x" >&6
4744   no_x=yes
4745 else
4746   # If each of the values was on the command line, it overrides each guess.
4747   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4748   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4749   # Update the cache value to reflect the command line values.
4750   ac_cv_have_x="have_x=yes \
4751                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4752   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4753 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4754 fi
4755
4756 if test "$no_x" = yes; then
4757   # Not all programs may use this symbol, but it does not hurt to define it.
4758
4759 cat >>confdefs.h <<\_ACEOF
4760 #define X_DISPLAY_MISSING 1
4761 _ACEOF
4762
4763   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4764 else
4765   if test -n "$x_includes"; then
4766     X_CFLAGS="$X_CFLAGS -I$x_includes"
4767   fi
4768
4769   # It would also be nice to do this for all -L options, not just this one.
4770   if test -n "$x_libraries"; then
4771     X_LIBS="$X_LIBS -L$x_libraries"
4772     # For Solaris; some versions of Sun CC require a space after -R and
4773     # others require no space.  Words are not sufficient . . . .
4774     case `(uname -sr) 2>/dev/null` in
4775     "SunOS 5"*)
4776       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4777 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4778       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4779       cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785
4786 int
4787 main ()
4788 {
4789
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796   (eval $ac_link) 2>conftest.er1
4797   ac_status=$?
4798   grep -v '^ *+' conftest.er1 >conftest.err
4799   rm -f conftest.er1
4800   cat conftest.err >&5
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } &&
4803          { ac_try='test -z "$ac_c_werror_flag"
4804                          || test ! -s conftest.err'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; } &&
4810          { ac_try='test -s conftest$ac_exeext'
4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812   (eval $ac_try) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }; }; then
4816   ac_R_nospace=yes
4817 else
4818   echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 ac_R_nospace=no
4822 fi
4823 rm -f conftest.err conftest.$ac_objext \
4824       conftest$ac_exeext conftest.$ac_ext
4825       if test $ac_R_nospace = yes; then
4826         echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4828         X_LIBS="$X_LIBS -R$x_libraries"
4829       else
4830         LIBS="$ac_xsave_LIBS -R $x_libraries"
4831         cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837
4838 int
4839 main ()
4840 {
4841
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848   (eval $ac_link) 2>conftest.er1
4849   ac_status=$?
4850   grep -v '^ *+' conftest.er1 >conftest.err
4851   rm -f conftest.er1
4852   cat conftest.err >&5
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } &&
4855          { ac_try='test -z "$ac_c_werror_flag"
4856                          || test ! -s conftest.err'
4857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858   (eval $ac_try) 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; } &&
4862          { ac_try='test -s conftest$ac_exeext'
4863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864   (eval $ac_try) 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); }; }; then
4868   ac_R_space=yes
4869 else
4870   echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 ac_R_space=no
4874 fi
4875 rm -f conftest.err conftest.$ac_objext \
4876       conftest$ac_exeext conftest.$ac_ext
4877         if test $ac_R_space = yes; then
4878           echo "$as_me:$LINENO: result: yes" >&5
4879 echo "${ECHO_T}yes" >&6
4880           X_LIBS="$X_LIBS -R $x_libraries"
4881         else
4882           echo "$as_me:$LINENO: result: neither works" >&5
4883 echo "${ECHO_T}neither works" >&6
4884         fi
4885       fi
4886       LIBS=$ac_xsave_LIBS
4887     esac
4888   fi
4889
4890   # Check for system-dependent libraries X programs must link with.
4891   # Do this before checking for the system-independent R6 libraries
4892   # (-lICE), since we may need -lsocket or whatever for X linking.
4893
4894   if test "$ISC" = yes; then
4895     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4896   else
4897     # Martyn Johnson says this is needed for Ultrix, if the X
4898     # libraries were built with DECnet support.  And Karl Berry says
4899     # the Alpha needs dnet_stub (dnet does not exist).
4900     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4901     cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907
4908 /* Override any gcc2 internal prototype to avoid an error.  */
4909 #ifdef __cplusplus
4910 extern "C"
4911 #endif
4912 /* We use char because int might match the return type of a gcc2
4913    builtin and then its argument prototype would still apply.  */
4914 char XOpenDisplay ();
4915 int
4916 main ()
4917 {
4918 XOpenDisplay ();
4919   ;
4920   return 0;
4921 }
4922 _ACEOF
4923 rm -f conftest.$ac_objext conftest$ac_exeext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925   (eval $ac_link) 2>conftest.er1
4926   ac_status=$?
4927   grep -v '^ *+' conftest.er1 >conftest.err
4928   rm -f conftest.er1
4929   cat conftest.err >&5
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); } &&
4932          { ac_try='test -z "$ac_c_werror_flag"
4933                          || test ! -s conftest.err'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; } &&
4939          { ac_try='test -s conftest$ac_exeext'
4940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941   (eval $ac_try) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; }; then
4945   :
4946 else
4947   echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4951 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4952 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   ac_check_lib_save_LIBS=$LIBS
4956 LIBS="-ldnet  $LIBS"
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963
4964 /* Override any gcc2 internal prototype to avoid an error.  */
4965 #ifdef __cplusplus
4966 extern "C"
4967 #endif
4968 /* We use char because int might match the return type of a gcc2
4969    builtin and then its argument prototype would still apply.  */
4970 char dnet_ntoa ();
4971 int
4972 main ()
4973 {
4974 dnet_ntoa ();
4975   ;
4976   return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext conftest$ac_exeext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981   (eval $ac_link) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -z "$ac_c_werror_flag"
4989                          || test ! -s conftest.err'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; } &&
4995          { ac_try='test -s conftest$ac_exeext'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; }; then
5001   ac_cv_lib_dnet_dnet_ntoa=yes
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_cv_lib_dnet_dnet_ntoa=no
5007 fi
5008 rm -f conftest.err conftest.$ac_objext \
5009       conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5013 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5014 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5015   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5016 fi
5017
5018     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5019       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5020 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5021 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   ac_check_lib_save_LIBS=$LIBS
5025 LIBS="-ldnet_stub  $LIBS"
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032
5033 /* Override any gcc2 internal prototype to avoid an error.  */
5034 #ifdef __cplusplus
5035 extern "C"
5036 #endif
5037 /* We use char because int might match the return type of a gcc2
5038    builtin and then its argument prototype would still apply.  */
5039 char dnet_ntoa ();
5040 int
5041 main ()
5042 {
5043 dnet_ntoa ();
5044   ;
5045   return 0;
5046 }
5047 _ACEOF
5048 rm -f conftest.$ac_objext conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050   (eval $ac_link) 2>conftest.er1
5051   ac_status=$?
5052   grep -v '^ *+' conftest.er1 >conftest.err
5053   rm -f conftest.er1
5054   cat conftest.err >&5
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } &&
5057          { ac_try='test -z "$ac_c_werror_flag"
5058                          || test ! -s conftest.err'
5059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060   (eval $ac_try) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); }; } &&
5064          { ac_try='test -s conftest$ac_exeext'
5065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066   (eval $ac_try) 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }; }; then
5070   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5071 else
5072   echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 ac_cv_lib_dnet_stub_dnet_ntoa=no
5076 fi
5077 rm -f conftest.err conftest.$ac_objext \
5078       conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5080 fi
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5082 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5083 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5084   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5085 fi
5086
5087     fi
5088 fi
5089 rm -f conftest.err conftest.$ac_objext \
5090       conftest$ac_exeext conftest.$ac_ext
5091     LIBS="$ac_xsave_LIBS"
5092
5093     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5094     # to get the SysV transport functions.
5095     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5096     # needs -lnsl.
5097     # The nsl library prevents programs from opening the X display
5098     # on Irix 5.2, according to T.E. Dickey.
5099     # The functions gethostbyname, getservbyname, and inet_addr are
5100     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5101     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5102 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5103 if test "${ac_cv_func_gethostbyname+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5114 #define gethostbyname innocuous_gethostbyname
5115
5116 /* System header to define __stub macros and hopefully few prototypes,
5117     which can conflict with char gethostbyname (); below.
5118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119     <limits.h> exists even on freestanding compilers.  */
5120
5121 #ifdef __STDC__
5122 # include <limits.h>
5123 #else
5124 # include <assert.h>
5125 #endif
5126
5127 #undef gethostbyname
5128
5129 /* Override any gcc2 internal prototype to avoid an error.  */
5130 #ifdef __cplusplus
5131 extern "C"
5132 {
5133 #endif
5134 /* We use char because int might match the return type of a gcc2
5135    builtin and then its argument prototype would still apply.  */
5136 char gethostbyname ();
5137 /* The GNU C library defines this for functions which it implements
5138     to always fail with ENOSYS.  Some functions are actually named
5139     something starting with __ and the normal name is an alias.  */
5140 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5141 choke me
5142 #else
5143 char (*f) () = gethostbyname;
5144 #endif
5145 #ifdef __cplusplus
5146 }
5147 #endif
5148
5149 int
5150 main ()
5151 {
5152 return f != gethostbyname;
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159   (eval $ac_link) 2>conftest.er1
5160   ac_status=$?
5161   grep -v '^ *+' conftest.er1 >conftest.err
5162   rm -f conftest.er1
5163   cat conftest.err >&5
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } &&
5166          { ac_try='test -z "$ac_c_werror_flag"
5167                          || test ! -s conftest.err'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; } &&
5173          { ac_try='test -s conftest$ac_exeext'
5174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175   (eval $ac_try) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; }; then
5179   ac_cv_func_gethostbyname=yes
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 ac_cv_func_gethostbyname=no
5185 fi
5186 rm -f conftest.err conftest.$ac_objext \
5187       conftest$ac_exeext conftest.$ac_ext
5188 fi
5189 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5190 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5191
5192     if test $ac_cv_func_gethostbyname = no; then
5193       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5194 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5195 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   ac_check_lib_save_LIBS=$LIBS
5199 LIBS="-lnsl  $LIBS"
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206
5207 /* Override any gcc2 internal prototype to avoid an error.  */
5208 #ifdef __cplusplus
5209 extern "C"
5210 #endif
5211 /* We use char because int might match the return type of a gcc2
5212    builtin and then its argument prototype would still apply.  */
5213 char gethostbyname ();
5214 int
5215 main ()
5216 {
5217 gethostbyname ();
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224   (eval $ac_link) 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } &&
5231          { ac_try='test -z "$ac_c_werror_flag"
5232                          || test ! -s conftest.err'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; } &&
5238          { ac_try='test -s conftest$ac_exeext'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; }; then
5244   ac_cv_lib_nsl_gethostbyname=yes
5245 else
5246   echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 ac_cv_lib_nsl_gethostbyname=no
5250 fi
5251 rm -f conftest.err conftest.$ac_objext \
5252       conftest$ac_exeext conftest.$ac_ext
5253 LIBS=$ac_check_lib_save_LIBS
5254 fi
5255 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5256 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5257 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5258   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5259 fi
5260
5261       if test $ac_cv_lib_nsl_gethostbyname = no; then
5262         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5263 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5264 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267   ac_check_lib_save_LIBS=$LIBS
5268 LIBS="-lbsd  $LIBS"
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275
5276 /* Override any gcc2 internal prototype to avoid an error.  */
5277 #ifdef __cplusplus
5278 extern "C"
5279 #endif
5280 /* We use char because int might match the return type of a gcc2
5281    builtin and then its argument prototype would still apply.  */
5282 char gethostbyname ();
5283 int
5284 main ()
5285 {
5286 gethostbyname ();
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293   (eval $ac_link) 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -z "$ac_c_werror_flag"
5301                          || test ! -s conftest.err'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; } &&
5307          { ac_try='test -s conftest$ac_exeext'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; }; then
5313   ac_cv_lib_bsd_gethostbyname=yes
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ac_cv_lib_bsd_gethostbyname=no
5319 fi
5320 rm -f conftest.err conftest.$ac_objext \
5321       conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5323 fi
5324 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5325 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5326 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5327   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5328 fi
5329
5330       fi
5331     fi
5332
5333     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5334     # socket/setsockopt and other routines are undefined under SCO ODT
5335     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5336     # on later versions), says Simon Leinen: it contains gethostby*
5337     # variants that don't use the name server (or something).  -lsocket
5338     # must be given before -lnsl if both are needed.  We assume that
5339     # if connect needs -lnsl, so does gethostbyname.
5340     echo "$as_me:$LINENO: checking for connect" >&5
5341 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5342 if test "${ac_cv_func_connect+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h.  */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h.  */
5351 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5353 #define connect innocuous_connect
5354
5355 /* System header to define __stub macros and hopefully few prototypes,
5356     which can conflict with char connect (); below.
5357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5358     <limits.h> exists even on freestanding compilers.  */
5359
5360 #ifdef __STDC__
5361 # include <limits.h>
5362 #else
5363 # include <assert.h>
5364 #endif
5365
5366 #undef connect
5367
5368 /* Override any gcc2 internal prototype to avoid an error.  */
5369 #ifdef __cplusplus
5370 extern "C"
5371 {
5372 #endif
5373 /* We use char because int might match the return type of a gcc2
5374    builtin and then its argument prototype would still apply.  */
5375 char connect ();
5376 /* The GNU C library defines this for functions which it implements
5377     to always fail with ENOSYS.  Some functions are actually named
5378     something starting with __ and the normal name is an alias.  */
5379 #if defined (__stub_connect) || defined (__stub___connect)
5380 choke me
5381 #else
5382 char (*f) () = connect;
5383 #endif
5384 #ifdef __cplusplus
5385 }
5386 #endif
5387
5388 int
5389 main ()
5390 {
5391 return f != connect;
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398   (eval $ac_link) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_c_werror_flag"
5406                          || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest$ac_exeext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_cv_func_connect=yes
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_cv_func_connect=no
5424 fi
5425 rm -f conftest.err conftest.$ac_objext \
5426       conftest$ac_exeext conftest.$ac_ext
5427 fi
5428 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5429 echo "${ECHO_T}$ac_cv_func_connect" >&6
5430
5431     if test $ac_cv_func_connect = no; then
5432       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5433 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5434 if test "${ac_cv_lib_socket_connect+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   ac_check_lib_save_LIBS=$LIBS
5438 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5439 cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445
5446 /* Override any gcc2 internal prototype to avoid an error.  */
5447 #ifdef __cplusplus
5448 extern "C"
5449 #endif
5450 /* We use char because int might match the return type of a gcc2
5451    builtin and then its argument prototype would still apply.  */
5452 char connect ();
5453 int
5454 main ()
5455 {
5456 connect ();
5457   ;
5458   return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext conftest$ac_exeext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463   (eval $ac_link) 2>conftest.er1
5464   ac_status=$?
5465   grep -v '^ *+' conftest.er1 >conftest.err
5466   rm -f conftest.er1
5467   cat conftest.err >&5
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); } &&
5470          { ac_try='test -z "$ac_c_werror_flag"
5471                          || test ! -s conftest.err'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; } &&
5477          { ac_try='test -s conftest$ac_exeext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_cv_lib_socket_connect=yes
5484 else
5485   echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_cv_lib_socket_connect=no
5489 fi
5490 rm -f conftest.err conftest.$ac_objext \
5491       conftest$ac_exeext conftest.$ac_ext
5492 LIBS=$ac_check_lib_save_LIBS
5493 fi
5494 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5495 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5496 if test $ac_cv_lib_socket_connect = yes; then
5497   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5498 fi
5499
5500     fi
5501
5502     # Guillermo Gomez says -lposix is necessary on A/UX.
5503     echo "$as_me:$LINENO: checking for remove" >&5
5504 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5505 if test "${ac_cv_func_remove+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5516 #define remove innocuous_remove
5517
5518 /* System header to define __stub macros and hopefully few prototypes,
5519     which can conflict with char remove (); below.
5520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521     <limits.h> exists even on freestanding compilers.  */
5522
5523 #ifdef __STDC__
5524 # include <limits.h>
5525 #else
5526 # include <assert.h>
5527 #endif
5528
5529 #undef remove
5530
5531 /* Override any gcc2 internal prototype to avoid an error.  */
5532 #ifdef __cplusplus
5533 extern "C"
5534 {
5535 #endif
5536 /* We use char because int might match the return type of a gcc2
5537    builtin and then its argument prototype would still apply.  */
5538 char remove ();
5539 /* The GNU C library defines this for functions which it implements
5540     to always fail with ENOSYS.  Some functions are actually named
5541     something starting with __ and the normal name is an alias.  */
5542 #if defined (__stub_remove) || defined (__stub___remove)
5543 choke me
5544 #else
5545 char (*f) () = remove;
5546 #endif
5547 #ifdef __cplusplus
5548 }
5549 #endif
5550
5551 int
5552 main ()
5553 {
5554 return f != remove;
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561   (eval $ac_link) 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } &&
5568          { ac_try='test -z "$ac_c_werror_flag"
5569                          || test ! -s conftest.err'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; } &&
5575          { ac_try='test -s conftest$ac_exeext'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   ac_cv_func_remove=yes
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_cv_func_remove=no
5587 fi
5588 rm -f conftest.err conftest.$ac_objext \
5589       conftest$ac_exeext conftest.$ac_ext
5590 fi
5591 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5592 echo "${ECHO_T}$ac_cv_func_remove" >&6
5593
5594     if test $ac_cv_func_remove = no; then
5595       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5596 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5597 if test "${ac_cv_lib_posix_remove+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lposix  $LIBS"
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608
5609 /* Override any gcc2 internal prototype to avoid an error.  */
5610 #ifdef __cplusplus
5611 extern "C"
5612 #endif
5613 /* We use char because int might match the return type of a gcc2
5614    builtin and then its argument prototype would still apply.  */
5615 char remove ();
5616 int
5617 main ()
5618 {
5619 remove ();
5620   ;
5621   return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626   (eval $ac_link) 2>conftest.er1
5627   ac_status=$?
5628   grep -v '^ *+' conftest.er1 >conftest.err
5629   rm -f conftest.er1
5630   cat conftest.err >&5
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -z "$ac_c_werror_flag"
5634                          || test ! -s conftest.err'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; } &&
5640          { ac_try='test -s conftest$ac_exeext'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; }; then
5646   ac_cv_lib_posix_remove=yes
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 ac_cv_lib_posix_remove=no
5652 fi
5653 rm -f conftest.err conftest.$ac_objext \
5654       conftest$ac_exeext conftest.$ac_ext
5655 LIBS=$ac_check_lib_save_LIBS
5656 fi
5657 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5658 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5659 if test $ac_cv_lib_posix_remove = yes; then
5660   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5661 fi
5662
5663     fi
5664
5665     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5666     echo "$as_me:$LINENO: checking for shmat" >&5
5667 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5668 if test "${ac_cv_func_shmat+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5679 #define shmat innocuous_shmat
5680
5681 /* System header to define __stub macros and hopefully few prototypes,
5682     which can conflict with char shmat (); below.
5683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684     <limits.h> exists even on freestanding compilers.  */
5685
5686 #ifdef __STDC__
5687 # include <limits.h>
5688 #else
5689 # include <assert.h>
5690 #endif
5691
5692 #undef shmat
5693
5694 /* Override any gcc2 internal prototype to avoid an error.  */
5695 #ifdef __cplusplus
5696 extern "C"
5697 {
5698 #endif
5699 /* We use char because int might match the return type of a gcc2
5700    builtin and then its argument prototype would still apply.  */
5701 char shmat ();
5702 /* The GNU C library defines this for functions which it implements
5703     to always fail with ENOSYS.  Some functions are actually named
5704     something starting with __ and the normal name is an alias.  */
5705 #if defined (__stub_shmat) || defined (__stub___shmat)
5706 choke me
5707 #else
5708 char (*f) () = shmat;
5709 #endif
5710 #ifdef __cplusplus
5711 }
5712 #endif
5713
5714 int
5715 main ()
5716 {
5717 return f != shmat;
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724   (eval $ac_link) 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } &&
5731          { ac_try='test -z "$ac_c_werror_flag"
5732                          || test ! -s conftest.err'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; } &&
5738          { ac_try='test -s conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_func_shmat=yes
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 ac_cv_func_shmat=no
5750 fi
5751 rm -f conftest.err conftest.$ac_objext \
5752       conftest$ac_exeext conftest.$ac_ext
5753 fi
5754 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5755 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5756
5757     if test $ac_cv_func_shmat = no; then
5758       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5759 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5760 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   ac_check_lib_save_LIBS=$LIBS
5764 LIBS="-lipc  $LIBS"
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771
5772 /* Override any gcc2 internal prototype to avoid an error.  */
5773 #ifdef __cplusplus
5774 extern "C"
5775 #endif
5776 /* We use char because int might match the return type of a gcc2
5777    builtin and then its argument prototype would still apply.  */
5778 char shmat ();
5779 int
5780 main ()
5781 {
5782 shmat ();
5783   ;
5784   return 0;
5785 }
5786 _ACEOF
5787 rm -f conftest.$ac_objext conftest$ac_exeext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789   (eval $ac_link) 2>conftest.er1
5790   ac_status=$?
5791   grep -v '^ *+' conftest.er1 >conftest.err
5792   rm -f conftest.er1
5793   cat conftest.err >&5
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); } &&
5796          { ac_try='test -z "$ac_c_werror_flag"
5797                          || test ! -s conftest.err'
5798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799   (eval $ac_try) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; } &&
5803          { ac_try='test -s conftest$ac_exeext'
5804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805   (eval $ac_try) 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }; }; then
5809   ac_cv_lib_ipc_shmat=yes
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 ac_cv_lib_ipc_shmat=no
5815 fi
5816 rm -f conftest.err conftest.$ac_objext \
5817       conftest$ac_exeext conftest.$ac_ext
5818 LIBS=$ac_check_lib_save_LIBS
5819 fi
5820 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5821 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5822 if test $ac_cv_lib_ipc_shmat = yes; then
5823   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5824 fi
5825
5826     fi
5827   fi
5828
5829   # Check for libraries that X11R6 Xt/Xaw programs need.
5830   ac_save_LDFLAGS=$LDFLAGS
5831   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5832   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5833   # check for ICE first), but we must link in the order -lSM -lICE or
5834   # we get undefined symbols.  So assume we have SM if we have ICE.
5835   # These have to be linked with before -lX11, unlike the other
5836   # libraries we check for below, so use a different variable.
5837   # John Interrante, Karl Berry
5838   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5839 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5840 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   ac_check_lib_save_LIBS=$LIBS
5844 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851
5852 /* Override any gcc2 internal prototype to avoid an error.  */
5853 #ifdef __cplusplus
5854 extern "C"
5855 #endif
5856 /* We use char because int might match the return type of a gcc2
5857    builtin and then its argument prototype would still apply.  */
5858 char IceConnectionNumber ();
5859 int
5860 main ()
5861 {
5862 IceConnectionNumber ();
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869   (eval $ac_link) 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } &&
5876          { ac_try='test -z "$ac_c_werror_flag"
5877                          || test ! -s conftest.err'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; } &&
5883          { ac_try='test -s conftest$ac_exeext'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_cv_lib_ICE_IceConnectionNumber=yes
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 ac_cv_lib_ICE_IceConnectionNumber=no
5895 fi
5896 rm -f conftest.err conftest.$ac_objext \
5897       conftest$ac_exeext conftest.$ac_ext
5898 LIBS=$ac_check_lib_save_LIBS
5899 fi
5900 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5901 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5902 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5903   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5904 fi
5905
5906   LDFLAGS=$ac_save_LDFLAGS
5907
5908 fi
5909
5910
5911 # Checks for X
5912 if test "x$with_x" = xyes; then
5913   if test "x$have_x" = xno; then
5914     if test "x$x_config_flag" = xyes; then
5915       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5916 echo "$as_me: error: Could not configure X" >&2;}
5917    { (exit 1); exit 1; }; }
5918     else
5919       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5920 echo "$as_me: WARNING: Could not configure X" >&2;}
5921     fi
5922   fi
5923 fi
5924 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5925   if test "x$x_libraries" != x; then
5926     ldflags_x_opt="-L$x_libraries"
5927     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5928     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5929   else
5930     ldflags_x_opt=
5931   fi
5932   if test "x$x_includes" != x; then
5933     CPPFLAGS="$CPPFLAGS -I$x_includes"
5934   fi
5935
5936
5937 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5938 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5939 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   ac_check_lib_save_LIBS=$LIBS
5943 LIBS="-lX11  $LIBS"
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950
5951 /* Override any gcc2 internal prototype to avoid an error.  */
5952 #ifdef __cplusplus
5953 extern "C"
5954 #endif
5955 /* We use char because int might match the return type of a gcc2
5956    builtin and then its argument prototype would still apply.  */
5957 char XOpenDisplay ();
5958 int
5959 main ()
5960 {
5961 XOpenDisplay ();
5962   ;
5963   return 0;
5964 }
5965 _ACEOF
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968   (eval $ac_link) 2>conftest.er1
5969   ac_status=$?
5970   grep -v '^ *+' conftest.er1 >conftest.err
5971   rm -f conftest.er1
5972   cat conftest.err >&5
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); } &&
5975          { ac_try='test -z "$ac_c_werror_flag"
5976                          || test ! -s conftest.err'
5977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978   (eval $ac_try) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }; } &&
5982          { ac_try='test -s conftest$ac_exeext'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   ac_cv_lib_X11_XOpenDisplay=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 ac_cv_lib_X11_XOpenDisplay=no
5994 fi
5995 rm -f conftest.err conftest.$ac_objext \
5996       conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5998 fi
5999 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6000 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6001 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6002   cat >>confdefs.h <<_ACEOF
6003 #define HAVE_LIBX11 1
6004 _ACEOF
6005
6006   LIBS="-lX11 $LIBS"
6007
6008 fi
6009
6010   echo "$as_me:$LINENO: checking X11 version 6" >&5
6011 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6012   if test "${timidity_cv_x11_version_6+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021 #include <X11/Xlib.h>
6022 int
6023 main ()
6024 {
6025
6026 #if XlibSpecificationRelease < 6
6027 fail;
6028 #endif
6029
6030   ;
6031   return 0;
6032 }
6033 _ACEOF
6034 rm -f conftest.$ac_objext conftest$ac_exeext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6036   (eval $ac_link) 2>conftest.er1
6037   ac_status=$?
6038   grep -v '^ *+' conftest.er1 >conftest.err
6039   rm -f conftest.er1
6040   cat conftest.err >&5
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); } &&
6043          { ac_try='test -z "$ac_c_werror_flag"
6044                          || test ! -s conftest.err'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; } &&
6050          { ac_try='test -s conftest$ac_exeext'
6051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052   (eval $ac_try) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); }; }; then
6056   timidity_cv_x11_version_6=yes
6057 else
6058   echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061 timidity_cv_x11_version_6=no
6062 fi
6063 rm -f conftest.err conftest.$ac_objext \
6064       conftest$ac_exeext conftest.$ac_ext
6065 fi
6066
6067   if test "$timidity_cv_x11_version_6" = "yes"; then
6068     echo "$as_me:$LINENO: result: 6 or newer" >&5
6069 echo "${ECHO_T}6 or newer" >&6
6070       else
6071     echo "$as_me:$LINENO: result: before 6" >&5
6072 echo "${ECHO_T}before 6" >&6
6073   fi
6074
6075     KEEPLIBS=$LIBS
6076   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6077 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6078 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   ac_check_lib_save_LIBS=$LIBS
6082 LIBS="-lXext  $LIBS"
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089
6090 /* Override any gcc2 internal prototype to avoid an error.  */
6091 #ifdef __cplusplus
6092 extern "C"
6093 #endif
6094 /* We use char because int might match the return type of a gcc2
6095    builtin and then its argument prototype would still apply.  */
6096 char XShapeCombineMask ();
6097 int
6098 main ()
6099 {
6100 XShapeCombineMask ();
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext conftest$ac_exeext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107   (eval $ac_link) 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -z "$ac_c_werror_flag"
6115                          || test ! -s conftest.err'
6116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117   (eval $ac_try) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; } &&
6121          { ac_try='test -s conftest$ac_exeext'
6122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123   (eval $ac_try) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; }; then
6127   ac_cv_lib_Xext_XShapeCombineMask=yes
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_cv_lib_Xext_XShapeCombineMask=no
6133 fi
6134 rm -f conftest.err conftest.$ac_objext \
6135       conftest$ac_exeext conftest.$ac_ext
6136 LIBS=$ac_check_lib_save_LIBS
6137 fi
6138 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6139 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6140 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6141   have_xext=yes; LIBS="-lXext $LIBS"
6142 else
6143   have_xext=no
6144 fi
6145
6146
6147 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6148 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6149 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   ac_check_lib_save_LIBS=$LIBS
6153 LIBS="-lICE  $LIBS"
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160
6161 /* Override any gcc2 internal prototype to avoid an error.  */
6162 #ifdef __cplusplus
6163 extern "C"
6164 #endif
6165 /* We use char because int might match the return type of a gcc2
6166    builtin and then its argument prototype would still apply.  */
6167 char IceConnectionNumber ();
6168 int
6169 main ()
6170 {
6171 IceConnectionNumber ();
6172   ;
6173   return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178   (eval $ac_link) 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -z "$ac_c_werror_flag"
6186                          || test ! -s conftest.err'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; } &&
6192          { ac_try='test -s conftest$ac_exeext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   ac_cv_lib_ICE_IceConnectionNumber=yes
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 ac_cv_lib_ICE_IceConnectionNumber=no
6204 fi
6205 rm -f conftest.err conftest.$ac_objext \
6206       conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6208 fi
6209 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6210 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6211 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6212   cat >>confdefs.h <<_ACEOF
6213 #define HAVE_LIBICE 1
6214 _ACEOF
6215
6216   LIBS="-lICE $LIBS"
6217
6218 fi
6219
6220   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6221 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6222 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lSM  $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233
6234 /* Override any gcc2 internal prototype to avoid an error.  */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239    builtin and then its argument prototype would still apply.  */
6240 char SmcOpenConnection ();
6241 int
6242 main ()
6243 {
6244 SmcOpenConnection ();
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251   (eval $ac_link) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -z "$ac_c_werror_flag"
6259                          || test ! -s conftest.err'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; } &&
6265          { ac_try='test -s conftest$ac_exeext'
6266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267   (eval $ac_try) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }; }; then
6271   ac_cv_lib_SM_SmcOpenConnection=yes
6272 else
6273   echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 ac_cv_lib_SM_SmcOpenConnection=no
6277 fi
6278 rm -f conftest.err conftest.$ac_objext \
6279       conftest$ac_exeext conftest.$ac_ext
6280 LIBS=$ac_check_lib_save_LIBS
6281 fi
6282 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6283 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6284 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6285   have_xprelibs=yes; LIBS="-lSM $LIBS"
6286 else
6287   have_xprelibs=no
6288 fi
6289
6290   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6291 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6292 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   ac_check_lib_save_LIBS=$LIBS
6296 LIBS="-lXt  $LIBS"
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303
6304 /* Override any gcc2 internal prototype to avoid an error.  */
6305 #ifdef __cplusplus
6306 extern "C"
6307 #endif
6308 /* We use char because int might match the return type of a gcc2
6309    builtin and then its argument prototype would still apply.  */
6310 char XtVaAppInitialize ();
6311 int
6312 main ()
6313 {
6314 XtVaAppInitialize ();
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321   (eval $ac_link) 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } &&
6328          { ac_try='test -z "$ac_c_werror_flag"
6329                          || test ! -s conftest.err'
6330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; } &&
6335          { ac_try='test -s conftest$ac_exeext'
6336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337   (eval $ac_try) 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }; }; then
6341   ac_cv_lib_Xt_XtVaAppInitialize=yes
6342 else
6343   echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_cv_lib_Xt_XtVaAppInitialize=no
6347 fi
6348 rm -f conftest.err conftest.$ac_objext \
6349       conftest$ac_exeext conftest.$ac_ext
6350 LIBS=$ac_check_lib_save_LIBS
6351 fi
6352 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6353 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6354 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6355   have_xt=yes; LIBS="-lXt $LIBS"
6356 else
6357   have_xt=no
6358 fi
6359
6360   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6361 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6362 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   ac_check_lib_save_LIBS=$LIBS
6366 LIBS="-lXmu  $LIBS"
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h.  */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h.  */
6373
6374 /* Override any gcc2 internal prototype to avoid an error.  */
6375 #ifdef __cplusplus
6376 extern "C"
6377 #endif
6378 /* We use char because int might match the return type of a gcc2
6379    builtin and then its argument prototype would still apply.  */
6380 char XmuInternAtom ();
6381 int
6382 main ()
6383 {
6384 XmuInternAtom ();
6385   ;
6386   return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext conftest$ac_exeext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391   (eval $ac_link) 2>conftest.er1
6392   ac_status=$?
6393   grep -v '^ *+' conftest.er1 >conftest.err
6394   rm -f conftest.er1
6395   cat conftest.err >&5
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -z "$ac_c_werror_flag"
6399                          || test ! -s conftest.err'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; } &&
6405          { ac_try='test -s conftest$ac_exeext'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; }; then
6411   ac_cv_lib_Xmu_XmuInternAtom=yes
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ac_cv_lib_Xmu_XmuInternAtom=no
6417 fi
6418 rm -f conftest.err conftest.$ac_objext \
6419       conftest$ac_exeext conftest.$ac_ext
6420 LIBS=$ac_check_lib_save_LIBS
6421 fi
6422 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6423 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6424 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6425   LIBS="-lXmu $LIBS"
6426 fi
6427
6428
6429 for ac_func in XmuRegisterExternalAgent
6430 do
6431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6432 echo "$as_me:$LINENO: checking for $ac_func" >&5
6433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6434 if eval "test \"\${$as_ac_var+set}\" = set"; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6445 #define $ac_func innocuous_$ac_func
6446
6447 /* System header to define __stub macros and hopefully few prototypes,
6448     which can conflict with char $ac_func (); below.
6449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6450     <limits.h> exists even on freestanding compilers.  */
6451
6452 #ifdef __STDC__
6453 # include <limits.h>
6454 #else
6455 # include <assert.h>
6456 #endif
6457
6458 #undef $ac_func
6459
6460 /* Override any gcc2 internal prototype to avoid an error.  */
6461 #ifdef __cplusplus
6462 extern "C"
6463 {
6464 #endif
6465 /* We use char because int might match the return type of a gcc2
6466    builtin and then its argument prototype would still apply.  */
6467 char $ac_func ();
6468 /* The GNU C library defines this for functions which it implements
6469     to always fail with ENOSYS.  Some functions are actually named
6470     something starting with __ and the normal name is an alias.  */
6471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6472 choke me
6473 #else
6474 char (*f) () = $ac_func;
6475 #endif
6476 #ifdef __cplusplus
6477 }
6478 #endif
6479
6480 int
6481 main ()
6482 {
6483 return f != $ac_func;
6484   ;
6485   return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6490   (eval $ac_link) 2>conftest.er1
6491   ac_status=$?
6492   grep -v '^ *+' conftest.er1 >conftest.err
6493   rm -f conftest.er1
6494   cat conftest.err >&5
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } &&
6497          { ac_try='test -z "$ac_c_werror_flag"
6498                          || test ! -s conftest.err'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; } &&
6504          { ac_try='test -s conftest$ac_exeext'
6505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506   (eval $ac_try) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; }; then
6510   eval "$as_ac_var=yes"
6511 else
6512   echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 eval "$as_ac_var=no"
6516 fi
6517 rm -f conftest.err conftest.$ac_objext \
6518       conftest$ac_exeext conftest.$ac_ext
6519 fi
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6522 if test `eval echo '${'$as_ac_var'}'` = yes; then
6523   cat >>confdefs.h <<_ACEOF
6524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6525 _ACEOF
6526
6527 fi
6528 done
6529
6530   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6531 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6532 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   ac_check_lib_save_LIBS=$LIBS
6536 LIBS="-lXaw3d  $LIBS"
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543
6544 /* Override any gcc2 internal prototype to avoid an error.  */
6545 #ifdef __cplusplus
6546 extern "C"
6547 #endif
6548 /* We use char because int might match the return type of a gcc2
6549    builtin and then its argument prototype would still apply.  */
6550 char XawInitializeWidgetSet ();
6551 int
6552 main ()
6553 {
6554 XawInitializeWidgetSet ();
6555   ;
6556   return 0;
6557 }
6558 _ACEOF
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561   (eval $ac_link) 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } &&
6568          { ac_try='test -z "$ac_c_werror_flag"
6569                          || test ! -s conftest.err'
6570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571   (eval $ac_try) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; } &&
6575          { ac_try='test -s conftest$ac_exeext'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6582 else
6583   echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6587 fi
6588 rm -f conftest.err conftest.$ac_objext \
6589       conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6591 fi
6592 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6593 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6594 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6595   have_xaw=3d
6596 else
6597    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6598 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6599 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   ac_check_lib_save_LIBS=$LIBS
6603 LIBS="-lXaw  $LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h.  */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h.  */
6610
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616    builtin and then its argument prototype would still apply.  */
6617 char XawInitializeWidgetSet ();
6618 int
6619 main ()
6620 {
6621 XawInitializeWidgetSet ();
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628   (eval $ac_link) 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -z "$ac_c_werror_flag"
6636                          || test ! -s conftest.err'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; } &&
6642          { ac_try='test -s conftest$ac_exeext'
6643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644   (eval $ac_try) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6654 fi
6655 rm -f conftest.err conftest.$ac_objext \
6656       conftest$ac_exeext conftest.$ac_ext
6657 LIBS=$ac_check_lib_save_LIBS
6658 fi
6659 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6660 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6661 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6662   have_xaw=yes
6663 else
6664   have_xaw=no
6665 fi
6666
6667 fi
6668
6669   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6670 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6671 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   ac_check_lib_save_LIBS=$LIBS
6675 LIBS="-lXm  $LIBS"
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h.  */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h.  */
6682
6683 /* Override any gcc2 internal prototype to avoid an error.  */
6684 #ifdef __cplusplus
6685 extern "C"
6686 #endif
6687 /* We use char because int might match the return type of a gcc2
6688    builtin and then its argument prototype would still apply.  */
6689 char XmCreateForm ();
6690 int
6691 main ()
6692 {
6693 XmCreateForm ();
6694   ;
6695   return 0;
6696 }
6697 _ACEOF
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700   (eval $ac_link) 2>conftest.er1
6701   ac_status=$?
6702   grep -v '^ *+' conftest.er1 >conftest.err
6703   rm -f conftest.er1
6704   cat conftest.err >&5
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -z "$ac_c_werror_flag"
6708                          || test ! -s conftest.err'
6709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710   (eval $ac_try) 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; } &&
6714          { ac_try='test -s conftest$ac_exeext'
6715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716   (eval $ac_try) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); }; }; then
6720   ac_cv_lib_Xm_XmCreateForm=yes
6721 else
6722   echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 ac_cv_lib_Xm_XmCreateForm=no
6726 fi
6727 rm -f conftest.err conftest.$ac_objext \
6728       conftest$ac_exeext conftest.$ac_ext
6729 LIBS=$ac_check_lib_save_LIBS
6730 fi
6731 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6732 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6733 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6734   have_xm=yes
6735 else
6736   have_xm=no
6737 fi
6738
6739
6740 for ac_func in XShmCreatePixmap
6741 do
6742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6743 echo "$as_me:$LINENO: checking for $ac_func" >&5
6744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6745 if eval "test \"\${$as_ac_var+set}\" = set"; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6756 #define $ac_func innocuous_$ac_func
6757
6758 /* System header to define __stub macros and hopefully few prototypes,
6759     which can conflict with char $ac_func (); below.
6760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6761     <limits.h> exists even on freestanding compilers.  */
6762
6763 #ifdef __STDC__
6764 # include <limits.h>
6765 #else
6766 # include <assert.h>
6767 #endif
6768
6769 #undef $ac_func
6770
6771 /* Override any gcc2 internal prototype to avoid an error.  */
6772 #ifdef __cplusplus
6773 extern "C"
6774 {
6775 #endif
6776 /* We use char because int might match the return type of a gcc2
6777    builtin and then its argument prototype would still apply.  */
6778 char $ac_func ();
6779 /* The GNU C library defines this for functions which it implements
6780     to always fail with ENOSYS.  Some functions are actually named
6781     something starting with __ and the normal name is an alias.  */
6782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6783 choke me
6784 #else
6785 char (*f) () = $ac_func;
6786 #endif
6787 #ifdef __cplusplus
6788 }
6789 #endif
6790
6791 int
6792 main ()
6793 {
6794 return f != $ac_func;
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801   (eval $ac_link) 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
6805   cat conftest.err >&5
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } &&
6808          { ac_try='test -z "$ac_c_werror_flag"
6809                          || test ! -s conftest.err'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; } &&
6815          { ac_try='test -s conftest$ac_exeext'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821   eval "$as_ac_var=yes"
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 eval "$as_ac_var=no"
6827 fi
6828 rm -f conftest.err conftest.$ac_objext \
6829       conftest$ac_exeext conftest.$ac_ext
6830 fi
6831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6833 if test `eval echo '${'$as_ac_var'}'` = yes; then
6834   cat >>confdefs.h <<_ACEOF
6835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6836 _ACEOF
6837
6838 fi
6839 done
6840
6841   LIBS=$KEEPLIBS
6842 fi
6843
6844 # Checks for header files.
6845 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6847 if test "${ac_cv_header_stdc+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h.  */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h.  */
6856 #include <stdlib.h>
6857 #include <stdarg.h>
6858 #include <string.h>
6859 #include <float.h>
6860
6861 int
6862 main ()
6863 {
6864
6865   ;
6866   return 0;
6867 }
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871   (eval $ac_compile) 2>conftest.er1
6872   ac_status=$?
6873   grep -v '^ *+' conftest.er1 >conftest.err
6874   rm -f conftest.er1
6875   cat conftest.err >&5
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); } &&
6878          { ac_try='test -z "$ac_c_werror_flag"
6879                          || test ! -s conftest.err'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; } &&
6885          { ac_try='test -s conftest.$ac_objext'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; }; then
6891   ac_cv_header_stdc=yes
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 ac_cv_header_stdc=no
6897 fi
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899
6900 if test $ac_cv_header_stdc = yes; then
6901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6902   cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908 #include <string.h>
6909
6910 _ACEOF
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912   $EGREP "memchr" >/dev/null 2>&1; then
6913   :
6914 else
6915   ac_cv_header_stdc=no
6916 fi
6917 rm -f conftest*
6918
6919 fi
6920
6921 if test $ac_cv_header_stdc = yes; then
6922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6923   cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h.  */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h.  */
6929 #include <stdlib.h>
6930
6931 _ACEOF
6932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933   $EGREP "free" >/dev/null 2>&1; then
6934   :
6935 else
6936   ac_cv_header_stdc=no
6937 fi
6938 rm -f conftest*
6939
6940 fi
6941
6942 if test $ac_cv_header_stdc = yes; then
6943   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6944   if test "$cross_compiling" = yes; then
6945   :
6946 else
6947   cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953 #include <ctype.h>
6954 #if ((' ' & 0x0FF) == 0x020)
6955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6957 #else
6958 # define ISLOWER(c) \
6959                    (('a' <= (c) && (c) <= 'i') \
6960                      || ('j' <= (c) && (c) <= 'r') \
6961                      || ('s' <= (c) && (c) <= 'z'))
6962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6963 #endif
6964
6965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6966 int
6967 main ()
6968 {
6969   int i;
6970   for (i = 0; i < 256; i++)
6971     if (XOR (islower (i), ISLOWER (i))
6972         || toupper (i) != TOUPPER (i))
6973       exit(2);
6974   exit (0);
6975 }
6976 _ACEOF
6977 rm -f conftest$ac_exeext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979   (eval $ac_link) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984   (eval $ac_try) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; }; then
6988   :
6989 else
6990   echo "$as_me: program exited with status $ac_status" >&5
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 ( exit $ac_status )
6995 ac_cv_header_stdc=no
6996 fi
6997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6998 fi
6999 fi
7000 fi
7001 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7003 if test $ac_cv_header_stdc = yes; then
7004
7005 cat >>confdefs.h <<\_ACEOF
7006 #define STDC_HEADERS 1
7007 _ACEOF
7008
7009 fi
7010
7011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7022                   inttypes.h stdint.h unistd.h
7023 do
7024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025 echo "$as_me:$LINENO: checking for $ac_header" >&5
7026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h.  */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h.  */
7036 $ac_includes_default
7037
7038 #include <$ac_header>
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042   (eval $ac_compile) 2>conftest.er1
7043   ac_status=$?
7044   grep -v '^ *+' conftest.er1 >conftest.err
7045   rm -f conftest.er1
7046   cat conftest.err >&5
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } &&
7049          { ac_try='test -z "$ac_c_werror_flag"
7050                          || test ! -s conftest.err'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; } &&
7056          { ac_try='test -s conftest.$ac_objext'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; }; then
7062   eval "$as_ac_Header=yes"
7063 else
7064   echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 eval "$as_ac_Header=no"
7068 fi
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070 fi
7071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7074   cat >>confdefs.h <<_ACEOF
7075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7076 _ACEOF
7077
7078 fi
7079
7080 done
7081
7082
7083 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7084 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7085 if test "${ac_cv_header_stdbool_h+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094
7095 #include <stdbool.h>
7096 #ifndef bool
7097 # error bool is not defined
7098 #endif
7099 #ifndef false
7100 # error false is not defined
7101 #endif
7102 #if false
7103 # error false is not 0
7104 #endif
7105 #ifndef true
7106 # error true is not defined
7107 #endif
7108 #if true != 1
7109 # error true is not 1
7110 #endif
7111 #ifndef __bool_true_false_are_defined
7112 # error __bool_true_false_are_defined is not defined
7113 #endif
7114
7115         struct s { _Bool s: 1; _Bool t; } s;
7116
7117         char a[true == 1 ? 1 : -1];
7118         char b[false == 0 ? 1 : -1];
7119         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7120         char d[(bool) -0.5 == true ? 1 : -1];
7121         bool e = &s;
7122         char f[(_Bool) -0.0 == false ? 1 : -1];
7123         char g[true];
7124         char h[sizeof (_Bool)];
7125         char i[sizeof s.t];
7126
7127 int
7128 main ()
7129 {
7130  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7131   ;
7132   return 0;
7133 }
7134 _ACEOF
7135 rm -f conftest.$ac_objext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7137   (eval $ac_compile) 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } &&
7144          { ac_try='test -z "$ac_c_werror_flag"
7145                          || test ! -s conftest.err'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; } &&
7151          { ac_try='test -s conftest.$ac_objext'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; }; then
7157   ac_cv_header_stdbool_h=yes
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162 ac_cv_header_stdbool_h=no
7163 fi
7164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7165 fi
7166 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7167 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7168 echo "$as_me:$LINENO: checking for _Bool" >&5
7169 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7170 if test "${ac_cv_type__Bool+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h.  */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h.  */
7179 $ac_includes_default
7180 int
7181 main ()
7182 {
7183 if ((_Bool *) 0)
7184   return 0;
7185 if (sizeof (_Bool))
7186   return 0;
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193   (eval $ac_compile) 2>conftest.er1
7194   ac_status=$?
7195   grep -v '^ *+' conftest.er1 >conftest.err
7196   rm -f conftest.er1
7197   cat conftest.err >&5
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } &&
7200          { ac_try='test -z "$ac_c_werror_flag"
7201                          || test ! -s conftest.err'
7202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203   (eval $ac_try) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }; } &&
7207          { ac_try='test -s conftest.$ac_objext'
7208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209   (eval $ac_try) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; }; then
7213   ac_cv_type__Bool=yes
7214 else
7215   echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 ac_cv_type__Bool=no
7219 fi
7220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7223 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7224 if test $ac_cv_type__Bool = yes; then
7225
7226 cat >>confdefs.h <<_ACEOF
7227 #define HAVE__BOOL 1
7228 _ACEOF
7229
7230
7231 fi
7232
7233 if test $ac_cv_header_stdbool_h = yes; then
7234
7235 cat >>confdefs.h <<\_ACEOF
7236 #define HAVE_STDBOOL_H 1
7237 _ACEOF
7238
7239 fi
7240
7241 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7242 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7243 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246   cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h.  */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h.  */
7252 #include <sys/types.h>
7253 #include <sys/wait.h>
7254 #ifndef WEXITSTATUS
7255 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7256 #endif
7257 #ifndef WIFEXITED
7258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7259 #endif
7260
7261 int
7262 main ()
7263 {
7264   int s;
7265   wait (&s);
7266   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273   (eval $ac_compile) 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -z "$ac_c_werror_flag"
7281                          || test ! -s conftest.err'
7282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283   (eval $ac_try) 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; } &&
7287          { ac_try='test -s conftest.$ac_objext'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; }; then
7293   ac_cv_header_sys_wait_h=yes
7294 else
7295   echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 ac_cv_header_sys_wait_h=no
7299 fi
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 fi
7302 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7303 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7304 if test $ac_cv_header_sys_wait_h = yes; then
7305
7306 cat >>confdefs.h <<\_ACEOF
7307 #define HAVE_SYS_WAIT_H 1
7308 _ACEOF
7309
7310 fi
7311
7312 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7313 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7314 if test "${ac_cv_header_time+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 #include <sys/types.h>
7324 #include <sys/time.h>
7325 #include <time.h>
7326
7327 int
7328 main ()
7329 {
7330 if ((struct tm *) 0)
7331 return 0;
7332   ;
7333   return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338   (eval $ac_compile) 2>conftest.er1
7339   ac_status=$?
7340   grep -v '^ *+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } &&
7345          { ac_try='test -z "$ac_c_werror_flag"
7346                          || test ! -s conftest.err'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; } &&
7352          { ac_try='test -s conftest.$ac_objext'
7353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354   (eval $ac_try) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; }; then
7358   ac_cv_header_time=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363 ac_cv_header_time=no
7364 fi
7365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7368 echo "${ECHO_T}$ac_cv_header_time" >&6
7369 if test $ac_cv_header_time = yes; then
7370
7371 cat >>confdefs.h <<\_ACEOF
7372 #define TIME_WITH_SYS_TIME 1
7373 _ACEOF
7374
7375 fi
7376
7377
7378
7379
7380
7381
7382 ac_header_dirent=no
7383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7384   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7385 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396 #include <sys/types.h>
7397 #include <$ac_hdr>
7398
7399 int
7400 main ()
7401 {
7402 if ((DIR *) 0)
7403 return 0;
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410   (eval $ac_compile) 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } &&
7417          { ac_try='test -z "$ac_c_werror_flag"
7418                          || test ! -s conftest.err'
7419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420   (eval $ac_try) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }; } &&
7424          { ac_try='test -s conftest.$ac_objext'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; }; then
7430   eval "$as_ac_Header=yes"
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 eval "$as_ac_Header=no"
7436 fi
7437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7438 fi
7439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7442   cat >>confdefs.h <<_ACEOF
7443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7444 _ACEOF
7445
7446 ac_header_dirent=$ac_hdr; break
7447 fi
7448
7449 done
7450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7451 if test $ac_header_dirent = dirent.h; then
7452   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7454 if test "${ac_cv_search_opendir+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   ac_func_search_save_LIBS=$LIBS
7458 ac_cv_search_opendir=no
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h.  */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h.  */
7465
7466 /* Override any gcc2 internal prototype to avoid an error.  */
7467 #ifdef __cplusplus
7468 extern "C"
7469 #endif
7470 /* We use char because int might match the return type of a gcc2
7471    builtin and then its argument prototype would still apply.  */
7472 char opendir ();
7473 int
7474 main ()
7475 {
7476 opendir ();
7477   ;
7478   return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483   (eval $ac_link) 2>conftest.er1
7484   ac_status=$?
7485   grep -v '^ *+' conftest.er1 >conftest.err
7486   rm -f conftest.er1
7487   cat conftest.err >&5
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); } &&
7490          { ac_try='test -z "$ac_c_werror_flag"
7491                          || test ! -s conftest.err'
7492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493   (eval $ac_try) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); }; } &&
7497          { ac_try='test -s conftest$ac_exeext'
7498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499   (eval $ac_try) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); }; }; then
7503   ac_cv_search_opendir="none required"
7504 else
7505   echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 fi
7509 rm -f conftest.err conftest.$ac_objext \
7510       conftest$ac_exeext conftest.$ac_ext
7511 if test "$ac_cv_search_opendir" = no; then
7512   for ac_lib in dir; do
7513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7514     cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520
7521 /* Override any gcc2 internal prototype to avoid an error.  */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 /* We use char because int might match the return type of a gcc2
7526    builtin and then its argument prototype would still apply.  */
7527 char opendir ();
7528 int
7529 main ()
7530 {
7531 opendir ();
7532   ;
7533   return 0;
7534 }
7535 _ACEOF
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538   (eval $ac_link) 2>conftest.er1
7539   ac_status=$?
7540   grep -v '^ *+' conftest.er1 >conftest.err
7541   rm -f conftest.er1
7542   cat conftest.err >&5
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } &&
7545          { ac_try='test -z "$ac_c_werror_flag"
7546                          || test ! -s conftest.err'
7547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548   (eval $ac_try) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); }; } &&
7552          { ac_try='test -s conftest$ac_exeext'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; }; then
7558   ac_cv_search_opendir="-l$ac_lib"
7559 break
7560 else
7561   echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 fi
7565 rm -f conftest.err conftest.$ac_objext \
7566       conftest$ac_exeext conftest.$ac_ext
7567   done
7568 fi
7569 LIBS=$ac_func_search_save_LIBS
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7572 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7573 if test "$ac_cv_search_opendir" != no; then
7574   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7575
7576 fi
7577
7578 else
7579   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7581 if test "${ac_cv_search_opendir+set}" = set; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   ac_func_search_save_LIBS=$LIBS
7585 ac_cv_search_opendir=no
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592
7593 /* Override any gcc2 internal prototype to avoid an error.  */
7594 #ifdef __cplusplus
7595 extern "C"
7596 #endif
7597 /* We use char because int might match the return type of a gcc2
7598    builtin and then its argument prototype would still apply.  */
7599 char opendir ();
7600 int
7601 main ()
7602 {
7603 opendir ();
7604   ;
7605   return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610   (eval $ac_link) 2>conftest.er1
7611   ac_status=$?
7612   grep -v '^ *+' conftest.er1 >conftest.err
7613   rm -f conftest.er1
7614   cat conftest.err >&5
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); } &&
7617          { ac_try='test -z "$ac_c_werror_flag"
7618                          || test ! -s conftest.err'
7619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620   (eval $ac_try) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); }; } &&
7624          { ac_try='test -s conftest$ac_exeext'
7625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626   (eval $ac_try) 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); }; }; then
7630   ac_cv_search_opendir="none required"
7631 else
7632   echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7634
7635 fi
7636 rm -f conftest.err conftest.$ac_objext \
7637       conftest$ac_exeext conftest.$ac_ext
7638 if test "$ac_cv_search_opendir" = no; then
7639   for ac_lib in x; do
7640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7641     cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h.  */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h.  */
7647
7648 /* Override any gcc2 internal prototype to avoid an error.  */
7649 #ifdef __cplusplus
7650 extern "C"
7651 #endif
7652 /* We use char because int might match the return type of a gcc2
7653    builtin and then its argument prototype would still apply.  */
7654 char opendir ();
7655 int
7656 main ()
7657 {
7658 opendir ();
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665   (eval $ac_link) 2>conftest.er1
7666   ac_status=$?
7667   grep -v '^ *+' conftest.er1 >conftest.err
7668   rm -f conftest.er1
7669   cat conftest.err >&5
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); } &&
7672          { ac_try='test -z "$ac_c_werror_flag"
7673                          || test ! -s conftest.err'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; } &&
7679          { ac_try='test -s conftest$ac_exeext'
7680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681   (eval $ac_try) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; }; then
7685   ac_cv_search_opendir="-l$ac_lib"
7686 break
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 fi
7692 rm -f conftest.err conftest.$ac_objext \
7693       conftest$ac_exeext conftest.$ac_ext
7694   done
7695 fi
7696 LIBS=$ac_func_search_save_LIBS
7697 fi
7698 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7699 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7700 if test "$ac_cv_search_opendir" != no; then
7701   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7702
7703 fi
7704
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744 for ac_header in \
7745   arpa/inet.h \
7746   errno.h \
7747   getopt.h \
7748   glob.h \
7749   dlfcn.h \
7750   fcntl.h \
7751   inttypes.h \
7752   limits.h \
7753   machine/endian.h \
7754   memory.h \
7755   netdb.h \
7756   netinet/in.h \
7757   nlist.h \
7758   stddef.h \
7759   stdlib.h \
7760   stdint.h \
7761   string.h \
7762   strings.h \
7763   stropts.h \
7764   soundcard.h \
7765   alsa/asoundlib.h \
7766   sys/asoundlib.h \
7767   sys/audioio.h \
7768   sys/awe_voice.h\
7769   sys/ioctl.h \
7770   sys/ipc.h \
7771   sys/param.h \
7772   sys/shm.h \
7773   sys/socket.h \
7774   sys/soundcard.h \
7775   sys/param.h \
7776   sys/time.h \
7777   sys/types.h \
7778   sys/sysctl.h \
7779   termios.h \
7780   unistd.h \
7781   X11/Xlib.h
7782 do
7783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7785   echo "$as_me:$LINENO: checking for $ac_header" >&5
7786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 fi
7790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7792 else
7793   # Is the header compilable?
7794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802 $ac_includes_default
7803 #include <$ac_header>
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807   (eval $ac_compile) 2>conftest.er1
7808   ac_status=$?
7809   grep -v '^ *+' conftest.er1 >conftest.err
7810   rm -f conftest.er1
7811   cat conftest.err >&5
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); } &&
7814          { ac_try='test -z "$ac_c_werror_flag"
7815                          || test ! -s conftest.err'
7816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817   (eval $ac_try) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); }; } &&
7821          { ac_try='test -s conftest.$ac_objext'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; }; then
7827   ac_header_compiler=yes
7828 else
7829   echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ac_header_compiler=no
7833 fi
7834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7836 echo "${ECHO_T}$ac_header_compiler" >&6
7837
7838 # Is the header present?
7839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847 #include <$ac_header>
7848 _ACEOF
7849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } >/dev/null; then
7857   if test -s conftest.err; then
7858     ac_cpp_err=$ac_c_preproc_warn_flag
7859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7860   else
7861     ac_cpp_err=
7862   fi
7863 else
7864   ac_cpp_err=yes
7865 fi
7866 if test -z "$ac_cpp_err"; then
7867   ac_header_preproc=yes
7868 else
7869   echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872   ac_header_preproc=no
7873 fi
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7877
7878 # So?  What about this header?
7879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7880   yes:no: )
7881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7885     ac_header_preproc=yes
7886     ;;
7887   no:yes:* )
7888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7900     (
7901       cat <<\_ASBOX
7902 ## ------------------------------- ##
7903 ## Report this to root@mput.dip.jp ##
7904 ## ------------------------------- ##
7905 _ASBOX
7906     ) |
7907       sed "s/^/$as_me: WARNING:     /" >&2
7908     ;;
7909 esac
7910 echo "$as_me:$LINENO: checking for $ac_header" >&5
7911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   eval "$as_ac_Header=\$ac_header_preproc"
7916 fi
7917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7919
7920 fi
7921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7922   cat >>confdefs.h <<_ACEOF
7923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7924 _ACEOF
7925
7926 fi
7927
7928 done
7929
7930
7931
7932 for ac_header in \
7933   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7934 do
7935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7936 echo "$as_me:$LINENO: checking for $ac_header" >&5
7937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941   cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h.  */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h.  */
7947
7948 #ifdef HAVE_X11_XLIB_H
7949 #include <X11/Xlib.h>
7950 #endif
7951
7952
7953 #include <$ac_header>
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957   (eval $ac_compile) 2>conftest.er1
7958   ac_status=$?
7959   grep -v '^ *+' conftest.er1 >conftest.err
7960   rm -f conftest.er1
7961   cat conftest.err >&5
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -z "$ac_c_werror_flag"
7965                          || test ! -s conftest.err'
7966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967   (eval $ac_try) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); }; } &&
7971          { ac_try='test -s conftest.$ac_objext'
7972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973   (eval $ac_try) 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); }; }; then
7977   eval "$as_ac_Header=yes"
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982 eval "$as_ac_Header=no"
7983 fi
7984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7985 fi
7986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7989   cat >>confdefs.h <<_ACEOF
7990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7991 _ACEOF
7992
7993 fi
7994
7995 done
7996
7997 if test "${ac_cv_header_string_h+set}" = set; then
7998   echo "$as_me:$LINENO: checking for string.h" >&5
7999 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8000 if test "${ac_cv_header_string_h+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 fi
8003 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8004 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8005 else
8006   # Is the header compilable?
8007 echo "$as_me:$LINENO: checking string.h usability" >&5
8008 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h.  */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h.  */
8015 $ac_includes_default
8016 #include <string.h>
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8020   (eval $ac_compile) 2>conftest.er1
8021   ac_status=$?
8022   grep -v '^ *+' conftest.er1 >conftest.err
8023   rm -f conftest.er1
8024   cat conftest.err >&5
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); } &&
8027          { ac_try='test -z "$ac_c_werror_flag"
8028                          || test ! -s conftest.err'
8029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030   (eval $ac_try) 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); }; } &&
8034          { ac_try='test -s conftest.$ac_objext'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; }; then
8040   ac_header_compiler=yes
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045 ac_header_compiler=no
8046 fi
8047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049 echo "${ECHO_T}$ac_header_compiler" >&6
8050
8051 # Is the header present?
8052 echo "$as_me:$LINENO: checking string.h presence" >&5
8053 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060 #include <string.h>
8061 _ACEOF
8062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8064   ac_status=$?
8065   grep -v '^ *+' conftest.er1 >conftest.err
8066   rm -f conftest.er1
8067   cat conftest.err >&5
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); } >/dev/null; then
8070   if test -s conftest.err; then
8071     ac_cpp_err=$ac_c_preproc_warn_flag
8072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8073   else
8074     ac_cpp_err=
8075   fi
8076 else
8077   ac_cpp_err=yes
8078 fi
8079 if test -z "$ac_cpp_err"; then
8080   ac_header_preproc=yes
8081 else
8082   echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085   ac_header_preproc=no
8086 fi
8087 rm -f conftest.err conftest.$ac_ext
8088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089 echo "${ECHO_T}$ac_header_preproc" >&6
8090
8091 # So?  What about this header?
8092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8093   yes:no: )
8094     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8095 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8097 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8098     ac_header_preproc=yes
8099     ;;
8100   no:yes:* )
8101     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8102 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8103     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8104 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8105     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8106 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8107     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8108 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8109     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8110 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8111     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8112 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8113     (
8114       cat <<\_ASBOX
8115 ## ------------------------------- ##
8116 ## Report this to root@mput.dip.jp ##
8117 ## ------------------------------- ##
8118 _ASBOX
8119     ) |
8120       sed "s/^/$as_me: WARNING:     /" >&2
8121     ;;
8122 esac
8123 echo "$as_me:$LINENO: checking for string.h" >&5
8124 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8125 if test "${ac_cv_header_string_h+set}" = set; then
8126   echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128   ac_cv_header_string_h=$ac_header_preproc
8129 fi
8130 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8131 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8132
8133 fi
8134 if test $ac_cv_header_string_h = yes; then
8135   :
8136 else
8137
8138 cat >>confdefs.h <<\_ACEOF
8139 #define NO_STRING_H 1
8140 _ACEOF
8141
8142 fi
8143
8144
8145 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes; then
8146
8147 for ac_header in malloc.h
8148 do
8149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151   echo "$as_me:$LINENO: checking for $ac_header" >&5
8152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 fi
8156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8158 else
8159   # Is the header compilable?
8160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168 $ac_includes_default
8169 #include <$ac_header>
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173   (eval $ac_compile) 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } &&
8180          { ac_try='test -z "$ac_c_werror_flag"
8181                          || test ! -s conftest.err'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; } &&
8187          { ac_try='test -s conftest.$ac_objext'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   ac_header_compiler=yes
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ac_header_compiler=no
8199 fi
8200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8202 echo "${ECHO_T}$ac_header_compiler" >&6
8203
8204 # Is the header present?
8205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 #include <$ac_header>
8214 _ACEOF
8215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8217   ac_status=$?
8218   grep -v '^ *+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } >/dev/null; then
8223   if test -s conftest.err; then
8224     ac_cpp_err=$ac_c_preproc_warn_flag
8225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8226   else
8227     ac_cpp_err=
8228   fi
8229 else
8230   ac_cpp_err=yes
8231 fi
8232 if test -z "$ac_cpp_err"; then
8233   ac_header_preproc=yes
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238   ac_header_preproc=no
8239 fi
8240 rm -f conftest.err conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8242 echo "${ECHO_T}$ac_header_preproc" >&6
8243
8244 # So?  What about this header?
8245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8246   yes:no: )
8247     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8251     ac_header_preproc=yes
8252     ;;
8253   no:yes:* )
8254     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8256     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8257 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8258     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8260     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8261 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8264     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8266     (
8267       cat <<\_ASBOX
8268 ## ------------------------------- ##
8269 ## Report this to root@mput.dip.jp ##
8270 ## ------------------------------- ##
8271 _ASBOX
8272     ) |
8273       sed "s/^/$as_me: WARNING:     /" >&2
8274     ;;
8275 esac
8276 echo "$as_me:$LINENO: checking for $ac_header" >&5
8277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8279   echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281   eval "$as_ac_Header=\$ac_header_preproc"
8282 fi
8283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8285
8286 fi
8287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288   cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8290 _ACEOF
8291
8292 fi
8293
8294 done
8295
8296 fi
8297
8298 # Checks for typedefs, structures, and compiler characteristics.
8299 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8300 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8301 if test "${ac_cv_c_bigendian+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   # See if sys/param.h defines the BYTE_ORDER macro.
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 #include <sys/types.h>
8312 #include <sys/param.h>
8313
8314 int
8315 main ()
8316 {
8317 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8318  bogus endian macros
8319 #endif
8320
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327   (eval $ac_compile) 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } &&
8334          { ac_try='test -z "$ac_c_werror_flag"
8335                          || test ! -s conftest.err'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; } &&
8341          { ac_try='test -s conftest.$ac_objext'
8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343   (eval $ac_try) 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; }; then
8347   # It does; now see whether it defined to BIG_ENDIAN or not.
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h.  */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h.  */
8354 #include <sys/types.h>
8355 #include <sys/param.h>
8356
8357 int
8358 main ()
8359 {
8360 #if BYTE_ORDER != BIG_ENDIAN
8361  not big endian
8362 #endif
8363
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370   (eval $ac_compile) 2>conftest.er1
8371   ac_status=$?
8372   grep -v '^ *+' conftest.er1 >conftest.err
8373   rm -f conftest.er1
8374   cat conftest.err >&5
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } &&
8377          { ac_try='test -z "$ac_c_werror_flag"
8378                          || test ! -s conftest.err'
8379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380   (eval $ac_try) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; } &&
8384          { ac_try='test -s conftest.$ac_objext'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   ac_cv_c_bigendian=yes
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 ac_cv_c_bigendian=no
8396 fi
8397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8398 else
8399   echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 # It does not; compile a test program.
8403 if test "$cross_compiling" = yes; then
8404   # try to guess the endianness by grepping values into an object file
8405   ac_cv_c_bigendian=unknown
8406   cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8413 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8414 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8415 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8416 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8417 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8418 int
8419 main ()
8420 {
8421  _ascii (); _ebcdic ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428   (eval $ac_compile) 2>conftest.er1
8429   ac_status=$?
8430   grep -v '^ *+' conftest.er1 >conftest.err
8431   rm -f conftest.er1
8432   cat conftest.err >&5
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -z "$ac_c_werror_flag"
8436                          || test ! -s conftest.err'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444   (eval $ac_try) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; }; then
8448   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8449   ac_cv_c_bigendian=yes
8450 fi
8451 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8452   if test "$ac_cv_c_bigendian" = unknown; then
8453     ac_cv_c_bigendian=no
8454   else
8455     # finding both strings is unlikely to happen, but who knows?
8456     ac_cv_c_bigendian=unknown
8457   fi
8458 fi
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 fi
8464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8465 else
8466   cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472 int
8473 main ()
8474 {
8475   /* Are we little or big endian?  From Harbison&Steele.  */
8476   union
8477   {
8478     long l;
8479     char c[sizeof (long)];
8480   } u;
8481   u.l = 1;
8482   exit (u.c[sizeof (long) - 1] == 1);
8483 }
8484 _ACEOF
8485 rm -f conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487   (eval $ac_link) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496   ac_cv_c_bigendian=no
8497 else
8498   echo "$as_me: program exited with status $ac_status" >&5
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ( exit $ac_status )
8503 ac_cv_c_bigendian=yes
8504 fi
8505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8506 fi
8507 fi
8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8511 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8512 case $ac_cv_c_bigendian in
8513   yes)
8514
8515 cat >>confdefs.h <<\_ACEOF
8516 #define WORDS_BIGENDIAN 1
8517 _ACEOF
8518  ;;
8519   no)
8520      ;;
8521   *)
8522     { { echo "$as_me:$LINENO: error: unknown endianness
8523 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8524 echo "$as_me: error: unknown endianness
8525 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8526    { (exit 1); exit 1; }; } ;;
8527 esac
8528
8529
8530 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8531 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8532 if test "${ac_cv_c_char_unsigned+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535   cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541 $ac_includes_default
8542 int
8543 main ()
8544 {
8545 static int test_array [1 - 2 * !(((char) -1) < 0)];
8546 test_array [0] = 0
8547
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554   (eval $ac_compile) 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } &&
8561          { ac_try='test -z "$ac_c_werror_flag"
8562                          || test ! -s conftest.err'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; } &&
8568          { ac_try='test -s conftest.$ac_objext'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   ac_cv_c_char_unsigned=no
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579 ac_cv_c_char_unsigned=yes
8580 fi
8581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582 fi
8583 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8584 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8585 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8586   cat >>confdefs.h <<\_ACEOF
8587 #define __CHAR_UNSIGNED__ 1
8588 _ACEOF
8589
8590 fi
8591
8592 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8593 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8594 if test "${ac_cv_c_const+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603
8604 int
8605 main ()
8606 {
8607 /* FIXME: Include the comments suggested by Paul. */
8608 #ifndef __cplusplus
8609   /* Ultrix mips cc rejects this.  */
8610   typedef int charset[2];
8611   const charset x;
8612   /* SunOS 4.1.1 cc rejects this.  */
8613   char const *const *ccp;
8614   char **p;
8615   /* NEC SVR4.0.2 mips cc rejects this.  */
8616   struct point {int x, y;};
8617   static struct point const zero = {0,0};
8618   /* AIX XL C 1.02.0.0 rejects this.
8619      It does not let you subtract one const X* pointer from another in
8620      an arm of an if-expression whose if-part is not a constant
8621      expression */
8622   const char *g = "string";
8623   ccp = &g + (g ? g-g : 0);
8624   /* HPUX 7.0 cc rejects these. */
8625   ++ccp;
8626   p = (char**) ccp;
8627   ccp = (char const *const *) p;
8628   { /* SCO 3.2v4 cc rejects this.  */
8629     char *t;
8630     char const *s = 0 ? (char *) 0 : (char const *) 0;
8631
8632     *t++ = 0;
8633   }
8634   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8635     int x[] = {25, 17};
8636     const int *foo = &x[0];
8637     ++foo;
8638   }
8639   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8640     typedef const int *iptr;
8641     iptr p = 0;
8642     ++p;
8643   }
8644   { /* AIX XL C 1.02.0.0 rejects this saying
8645        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8646     struct s { int j; const int *ap[3]; };
8647     struct s *b; b->j = 5;
8648   }
8649   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8650     const int foo = 10;
8651   }
8652 #endif
8653
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660   (eval $ac_compile) 2>conftest.er1
8661   ac_status=$?
8662   grep -v '^ *+' conftest.er1 >conftest.err
8663   rm -f conftest.er1
8664   cat conftest.err >&5
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } &&
8667          { ac_try='test -z "$ac_c_werror_flag"
8668                          || test ! -s conftest.err'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; } &&
8674          { ac_try='test -s conftest.$ac_objext'
8675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676   (eval $ac_try) 2>&5
8677   ac_status=$?
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); }; }; then
8680   ac_cv_c_const=yes
8681 else
8682   echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8684
8685 ac_cv_c_const=no
8686 fi
8687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8688 fi
8689 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8690 echo "${ECHO_T}$ac_cv_c_const" >&6
8691 if test $ac_cv_c_const = no; then
8692
8693 cat >>confdefs.h <<\_ACEOF
8694 #define const
8695 _ACEOF
8696
8697 fi
8698
8699 echo "$as_me:$LINENO: checking for inline" >&5
8700 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8701 if test "${ac_cv_c_inline+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   ac_cv_c_inline=no
8705 for ac_kw in inline __inline__ __inline; do
8706   cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712 #ifndef __cplusplus
8713 typedef int foo_t;
8714 static $ac_kw foo_t static_foo () {return 0; }
8715 $ac_kw foo_t foo () {return 0; }
8716 #endif
8717
8718 _ACEOF
8719 rm -f conftest.$ac_objext
8720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721   (eval $ac_compile) 2>conftest.er1
8722   ac_status=$?
8723   grep -v '^ *+' conftest.er1 >conftest.err
8724   rm -f conftest.er1
8725   cat conftest.err >&5
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); } &&
8728          { ac_try='test -z "$ac_c_werror_flag"
8729                          || test ! -s conftest.err'
8730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731   (eval $ac_try) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); }; } &&
8735          { ac_try='test -s conftest.$ac_objext'
8736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737   (eval $ac_try) 2>&5
8738   ac_status=$?
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); }; }; then
8741   ac_cv_c_inline=$ac_kw; break
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 fi
8747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748 done
8749
8750 fi
8751 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8752 echo "${ECHO_T}$ac_cv_c_inline" >&6
8753
8754
8755 case $ac_cv_c_inline in
8756   inline | yes) ;;
8757   *)
8758     case $ac_cv_c_inline in
8759       no) ac_val=;;
8760       *) ac_val=$ac_cv_c_inline;;
8761     esac
8762     cat >>confdefs.h <<_ACEOF
8763 #ifndef __cplusplus
8764 #define inline $ac_val
8765 #endif
8766 _ACEOF
8767     ;;
8768 esac
8769
8770 echo "$as_me:$LINENO: checking for working volatile" >&5
8771 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8772 if test "${ac_cv_c_volatile+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
8782 int
8783 main ()
8784 {
8785
8786 volatile int x;
8787 int * volatile y;
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794   (eval $ac_compile) 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } &&
8801          { ac_try='test -z "$ac_c_werror_flag"
8802                          || test ! -s conftest.err'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; } &&
8808          { ac_try='test -s conftest.$ac_objext'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; }; then
8814   ac_cv_c_volatile=yes
8815 else
8816   echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 ac_cv_c_volatile=no
8820 fi
8821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8822 fi
8823 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8824 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8825 if test $ac_cv_c_volatile = no; then
8826
8827 cat >>confdefs.h <<\_ACEOF
8828 #define volatile
8829 _ACEOF
8830
8831 fi
8832
8833 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8834 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8835 if test "${ac_cv_c_stringize+set}" = set; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h.  */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h.  */
8844 #define x(y) #y
8845
8846 char *s = x(teststring);
8847 _ACEOF
8848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8849   $EGREP "#teststring" >/dev/null 2>&1; then
8850   ac_cv_c_stringize=no
8851 else
8852   ac_cv_c_stringize=yes
8853 fi
8854 rm -f conftest*
8855
8856 fi
8857 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8858 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8859 if test $ac_cv_c_stringize = yes; then
8860
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_STRINGIZE 1
8863 _ACEOF
8864
8865 fi
8866
8867 echo "$as_me:$LINENO: checking for function prototypes" >&5
8868 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8869 if test "$ac_cv_prog_cc_stdc" != no; then
8870   echo "$as_me:$LINENO: result: yes" >&5
8871 echo "${ECHO_T}yes" >&6
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define PROTOTYPES 1
8875 _ACEOF
8876
8877
8878 cat >>confdefs.h <<\_ACEOF
8879 #define __PROTOTYPES 1
8880 _ACEOF
8881
8882 else
8883   echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8885 fi
8886
8887 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8888 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8889 if test "${ac_cv_struct_tm+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898 #include <sys/types.h>
8899 #include <time.h>
8900
8901 int
8902 main ()
8903 {
8904 struct tm *tp; tp->tm_sec;
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911   (eval $ac_compile) 2>conftest.er1
8912   ac_status=$?
8913   grep -v '^ *+' conftest.er1 >conftest.err
8914   rm -f conftest.er1
8915   cat conftest.err >&5
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } &&
8918          { ac_try='test -z "$ac_c_werror_flag"
8919                          || test ! -s conftest.err'
8920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921   (eval $ac_try) 2>&5
8922   ac_status=$?
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); }; } &&
8925          { ac_try='test -s conftest.$ac_objext'
8926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927   (eval $ac_try) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; }; then
8931   ac_cv_struct_tm=time.h
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 ac_cv_struct_tm=sys/time.h
8937 fi
8938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8941 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8942 if test $ac_cv_struct_tm = sys/time.h; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define TM_IN_SYS_TIME 1
8946 _ACEOF
8947
8948 fi
8949
8950 echo "$as_me:$LINENO: checking for size_t" >&5
8951 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8952 if test "${ac_cv_type_size_t+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961 $ac_includes_default
8962 int
8963 main ()
8964 {
8965 if ((size_t *) 0)
8966   return 0;
8967 if (sizeof (size_t))
8968   return 0;
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 rm -f conftest.$ac_objext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975   (eval $ac_compile) 2>conftest.er1
8976   ac_status=$?
8977   grep -v '^ *+' conftest.er1 >conftest.err
8978   rm -f conftest.er1
8979   cat conftest.err >&5
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -z "$ac_c_werror_flag"
8983                          || test ! -s conftest.err'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; } &&
8989          { ac_try='test -s conftest.$ac_objext'
8990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991   (eval $ac_try) 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }; }; then
8995   ac_cv_type_size_t=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 ac_cv_type_size_t=no
9001 fi
9002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 fi
9004 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9005 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9006 if test $ac_cv_type_size_t = yes; then
9007   :
9008 else
9009
9010 cat >>confdefs.h <<_ACEOF
9011 #define size_t unsigned
9012 _ACEOF
9013
9014 fi
9015
9016 echo "$as_me:$LINENO: checking for off_t" >&5
9017 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9018 if test "${ac_cv_type_off_t+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 $ac_includes_default
9028 int
9029 main ()
9030 {
9031 if ((off_t *) 0)
9032   return 0;
9033 if (sizeof (off_t))
9034   return 0;
9035   ;
9036   return 0;
9037 }
9038 _ACEOF
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041   (eval $ac_compile) 2>conftest.er1
9042   ac_status=$?
9043   grep -v '^ *+' conftest.er1 >conftest.err
9044   rm -f conftest.er1
9045   cat conftest.err >&5
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); } &&
9048          { ac_try='test -z "$ac_c_werror_flag"
9049                          || test ! -s conftest.err'
9050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051   (eval $ac_try) 2>&5
9052   ac_status=$?
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); }; } &&
9055          { ac_try='test -s conftest.$ac_objext'
9056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057   (eval $ac_try) 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; }; then
9061   ac_cv_type_off_t=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066 ac_cv_type_off_t=no
9067 fi
9068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9069 fi
9070 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9071 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9072 if test $ac_cv_type_off_t = yes; then
9073   :
9074 else
9075
9076 cat >>confdefs.h <<_ACEOF
9077 #define off_t long
9078 _ACEOF
9079
9080 fi
9081
9082 echo "$as_me:$LINENO: checking for pid_t" >&5
9083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9084 if test "${ac_cv_type_pid_t+set}" = set; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093 $ac_includes_default
9094 int
9095 main ()
9096 {
9097 if ((pid_t *) 0)
9098   return 0;
9099 if (sizeof (pid_t))
9100   return 0;
9101   ;
9102   return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107   (eval $ac_compile) 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } &&
9114          { ac_try='test -z "$ac_c_werror_flag"
9115                          || test ! -s conftest.err'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; } &&
9121          { ac_try='test -s conftest.$ac_objext'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   ac_cv_type_pid_t=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_cv_type_pid_t=no
9133 fi
9134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9135 fi
9136 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9138 if test $ac_cv_type_pid_t = yes; then
9139   :
9140 else
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define pid_t int
9144 _ACEOF
9145
9146 fi
9147
9148
9149 echo "$as_me:$LINENO: checking volatile declaration" >&5
9150 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9151 if test "${timidity_cv_type_volatile+set}" = set; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154   cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160
9161 int
9162 main ()
9163 {
9164 volatile int x
9165   ;
9166   return 0;
9167 }
9168 _ACEOF
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171   (eval $ac_compile) 2>conftest.er1
9172   ac_status=$?
9173   grep -v '^ *+' conftest.er1 >conftest.err
9174   rm -f conftest.er1
9175   cat conftest.err >&5
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } &&
9178          { ac_try='test -z "$ac_c_werror_flag"
9179                          || test ! -s conftest.err'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; } &&
9185          { ac_try='test -s conftest.$ac_objext'
9186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187   (eval $ac_try) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); }; }; then
9191   timidity_cv_type_volatile=yes
9192 else
9193   echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9195
9196 timidity_cv_type_volatile=no
9197 fi
9198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199 fi
9200 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9201 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9202 if test $timidity_cv_type_volatile = no; then
9203
9204 cat >>confdefs.h <<\_ACEOF
9205 #define NO_VOLATILE 1
9206 _ACEOF
9207
9208 fi
9209
9210 echo "$as_me:$LINENO: checking union semun declaration" >&5
9211 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9212 if test "${timidity_cv_type_union_semun+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 #include <sys/types.h>
9223 #include <sys/ipc.h>
9224 #include <sys/sem.h>
9225
9226 int
9227 main ()
9228 {
9229 union semun x
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236   (eval $ac_compile) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"
9244                          || test ! -s conftest.err'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; } &&
9250          { ac_try='test -s conftest.$ac_objext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   timidity_cv_type_union_semun=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 timidity_cv_type_union_semun=no
9262 fi
9263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9264 fi
9265 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9266 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9267 if test $timidity_cv_type_union_semun = yes; then
9268
9269 cat >>confdefs.h <<\_ACEOF
9270 #define HAVE_UNION_SEMUN 1
9271 _ACEOF
9272
9273 fi
9274
9275 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9276         case "x${CC}" in
9277         "xgcc"*)
9278                 msnative_struct=''
9279             echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9280 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9281             if test -z "$ac_cv_prog_CC"; then
9282                         our_gcc="$CC"
9283                 else
9284                         our_gcc="$ac_cv_prog_CC"
9285                 fi
9286                 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9287                         2.)
9288                 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9289                         msnative_struct='-fnative-struct'
9290                 fi
9291                 ;;
9292                         *)
9293                 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9294                         msnative_struct='-mms-bitfields'
9295                 fi
9296                 ;;
9297                 esac
9298                 if test x"$msnative_struct" = x ; then
9299                         echo "$as_me:$LINENO: result: no way" >&5
9300 echo "${ECHO_T}no way" >&6
9301                         { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9302 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9303                 else
9304                         CFLAGS="$CFLAGS $msnative_struct"
9305                         CPPFLAGS="$CPPFLAGS $msnative_struct"
9306                         echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9307 echo "${ECHO_T}${msnative_struct}" >&6
9308                 fi
9309                 ;;
9310         *)
9311                 ;;
9312         esac
9313 fi
9314 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9315   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9316 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9317 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h.  */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h.  */
9326
9327 #include <windows.h>
9328 #include <mmsystem.h>
9329
9330 int
9331 main ()
9332 {
9333 return WOM_OPEN != 0x3BB
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340   (eval $ac_compile) 2>conftest.er1
9341   ac_status=$?
9342   grep -v '^ *+' conftest.er1 >conftest.err
9343   rm -f conftest.er1
9344   cat conftest.err >&5
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } &&
9347          { ac_try='test -z "$ac_c_werror_flag"
9348                          || test ! -s conftest.err'
9349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350   (eval $ac_try) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; } &&
9354          { ac_try='test -s conftest.$ac_objext'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; }; then
9360   timidity_cv_header_new_mmsystem=yes
9361 else
9362   echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365 timidity_cv_header_new_mmsystem=no
9366 fi
9367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9368 fi
9369 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9370 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9371   if test $timidity_cv_header_new_mmsystem = yes; then
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_NEW_MMSYSTEM 1
9375 _ACEOF
9376
9377   fi
9378 fi
9379
9380 # Checks for library functions.
9381 echo "$as_me:$LINENO: checking for error_at_line" >&5
9382 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9383 if test "${ac_cv_lib_error_at_line+set}" = set; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392 $ac_includes_default
9393 int
9394 main ()
9395 {
9396 error_at_line (0, 0, "", 0, "");
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403   (eval $ac_link) 2>conftest.er1
9404   ac_status=$?
9405   grep -v '^ *+' conftest.er1 >conftest.err
9406   rm -f conftest.er1
9407   cat conftest.err >&5
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } &&
9410          { ac_try='test -z "$ac_c_werror_flag"
9411                          || test ! -s conftest.err'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; } &&
9417          { ac_try='test -s conftest$ac_exeext'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_lib_error_at_line=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_lib_error_at_line=no
9429 fi
9430 rm -f conftest.err conftest.$ac_objext \
9431       conftest$ac_exeext conftest.$ac_ext
9432 fi
9433 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9434 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9435 if test $ac_cv_lib_error_at_line = no; then
9436   case $LIBOBJS in
9437     "error.$ac_objext"   | \
9438   *" error.$ac_objext"   | \
9439     "error.$ac_objext "* | \
9440   *" error.$ac_objext "* ) ;;
9441   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9442 esac
9443
9444 fi
9445
9446
9447
9448 for ac_header in unistd.h vfork.h
9449 do
9450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452   echo "$as_me:$LINENO: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 fi
9457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9459 else
9460   # Is the header compilable?
9461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469 $ac_includes_default
9470 #include <$ac_header>
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474   (eval $ac_compile) 2>conftest.er1
9475   ac_status=$?
9476   grep -v '^ *+' conftest.er1 >conftest.err
9477   rm -f conftest.er1
9478   cat conftest.err >&5
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } &&
9481          { ac_try='test -z "$ac_c_werror_flag"
9482                          || test ! -s conftest.err'
9483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484   (eval $ac_try) 2>&5
9485   ac_status=$?
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); }; } &&
9488          { ac_try='test -s conftest.$ac_objext'
9489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; }; then
9494   ac_header_compiler=yes
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 ac_header_compiler=no
9500 fi
9501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9503 echo "${ECHO_T}$ac_header_compiler" >&6
9504
9505 # Is the header present?
9506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514 #include <$ac_header>
9515 _ACEOF
9516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } >/dev/null; then
9524   if test -s conftest.err; then
9525     ac_cpp_err=$ac_c_preproc_warn_flag
9526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9527   else
9528     ac_cpp_err=
9529   fi
9530 else
9531   ac_cpp_err=yes
9532 fi
9533 if test -z "$ac_cpp_err"; then
9534   ac_header_preproc=yes
9535 else
9536   echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9538
9539   ac_header_preproc=no
9540 fi
9541 rm -f conftest.err conftest.$ac_ext
9542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543 echo "${ECHO_T}$ac_header_preproc" >&6
9544
9545 # So?  What about this header?
9546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547   yes:no: )
9548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552     ac_header_preproc=yes
9553     ;;
9554   no:yes:* )
9555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9567     (
9568       cat <<\_ASBOX
9569 ## ------------------------------- ##
9570 ## Report this to root@mput.dip.jp ##
9571 ## ------------------------------- ##
9572 _ASBOX
9573     ) |
9574       sed "s/^/$as_me: WARNING:     /" >&2
9575     ;;
9576 esac
9577 echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   eval "$as_ac_Header=\$ac_header_preproc"
9583 fi
9584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9586
9587 fi
9588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9589   cat >>confdefs.h <<_ACEOF
9590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9591 _ACEOF
9592
9593 fi
9594
9595 done
9596
9597
9598
9599 for ac_func in fork vfork
9600 do
9601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 echo "$as_me:$LINENO: checking for $ac_func" >&5
9603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_var+set}\" = set"; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607   cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h.  */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h.  */
9613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9615 #define $ac_func innocuous_$ac_func
9616
9617 /* System header to define __stub macros and hopefully few prototypes,
9618     which can conflict with char $ac_func (); below.
9619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620     <limits.h> exists even on freestanding compilers.  */
9621
9622 #ifdef __STDC__
9623 # include <limits.h>
9624 #else
9625 # include <assert.h>
9626 #endif
9627
9628 #undef $ac_func
9629
9630 /* Override any gcc2 internal prototype to avoid an error.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 {
9634 #endif
9635 /* We use char because int might match the return type of a gcc2
9636    builtin and then its argument prototype would still apply.  */
9637 char $ac_func ();
9638 /* The GNU C library defines this for functions which it implements
9639     to always fail with ENOSYS.  Some functions are actually named
9640     something starting with __ and the normal name is an alias.  */
9641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9642 choke me
9643 #else
9644 char (*f) () = $ac_func;
9645 #endif
9646 #ifdef __cplusplus
9647 }
9648 #endif
9649
9650 int
9651 main ()
9652 {
9653 return f != $ac_func;
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660   (eval $ac_link) 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } &&
9667          { ac_try='test -z "$ac_c_werror_flag"
9668                          || test ! -s conftest.err'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; } &&
9674          { ac_try='test -s conftest$ac_exeext'
9675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676   (eval $ac_try) 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); }; }; then
9680   eval "$as_ac_var=yes"
9681 else
9682   echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685 eval "$as_ac_var=no"
9686 fi
9687 rm -f conftest.err conftest.$ac_objext \
9688       conftest$ac_exeext conftest.$ac_ext
9689 fi
9690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9692 if test `eval echo '${'$as_ac_var'}'` = yes; then
9693   cat >>confdefs.h <<_ACEOF
9694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9695 _ACEOF
9696
9697 fi
9698 done
9699
9700 if test "x$ac_cv_func_fork" = xyes; then
9701   echo "$as_me:$LINENO: checking for working fork" >&5
9702 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9703 if test "${ac_cv_func_fork_works+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   if test "$cross_compiling" = yes; then
9707   ac_cv_func_fork_works=cross
9708 else
9709   cat >conftest.$ac_ext <<_ACEOF
9710 /* By Ruediger Kuhlmann. */
9711       #include <sys/types.h>
9712       #if HAVE_UNISTD_H
9713       # include <unistd.h>
9714       #endif
9715       /* Some systems only have a dummy stub for fork() */
9716       int main ()
9717       {
9718         if (fork() < 0)
9719           exit (1);
9720         exit (0);
9721       }
9722 _ACEOF
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   ac_cv_func_fork_works=yes
9735 else
9736   echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ( exit $ac_status )
9741 ac_cv_func_fork_works=no
9742 fi
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 fi
9746 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9747 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9748
9749 else
9750   ac_cv_func_fork_works=$ac_cv_func_fork
9751 fi
9752 if test "x$ac_cv_func_fork_works" = xcross; then
9753   case $host in
9754     *-*-amigaos* | *-*-msdosdjgpp*)
9755       # Override, as these systems have only a dummy fork() stub
9756       ac_cv_func_fork_works=no
9757       ;;
9758     *)
9759       ac_cv_func_fork_works=yes
9760       ;;
9761   esac
9762   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9763 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9764 fi
9765 ac_cv_func_vfork_works=$ac_cv_func_vfork
9766 if test "x$ac_cv_func_vfork" = xyes; then
9767   echo "$as_me:$LINENO: checking for working vfork" >&5
9768 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9769 if test "${ac_cv_func_vfork_works+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   if test "$cross_compiling" = yes; then
9773   ac_cv_func_vfork_works=cross
9774 else
9775   cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781 /* Thanks to Paul Eggert for this test.  */
9782 #include <stdio.h>
9783 #include <stdlib.h>
9784 #include <sys/types.h>
9785 #include <sys/stat.h>
9786 #include <sys/wait.h>
9787 #if HAVE_UNISTD_H
9788 # include <unistd.h>
9789 #endif
9790 #if HAVE_VFORK_H
9791 # include <vfork.h>
9792 #endif
9793 /* On some sparc systems, changes by the child to local and incoming
9794    argument registers are propagated back to the parent.  The compiler
9795    is told about this with #include <vfork.h>, but some compilers
9796    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9797    static variable whose address is put into a register that is
9798    clobbered by the vfork.  */
9799 static void
9800 #ifdef __cplusplus
9801 sparc_address_test (int arg)
9802 # else
9803 sparc_address_test (arg) int arg;
9804 #endif
9805 {
9806   static pid_t child;
9807   if (!child) {
9808     child = vfork ();
9809     if (child < 0) {
9810       perror ("vfork");
9811       _exit(2);
9812     }
9813     if (!child) {
9814       arg = getpid();
9815       write(-1, "", 0);
9816       _exit (arg);
9817     }
9818   }
9819 }
9820
9821 int
9822 main ()
9823 {
9824   pid_t parent = getpid ();
9825   pid_t child;
9826
9827   sparc_address_test (0);
9828
9829   child = vfork ();
9830
9831   if (child == 0) {
9832     /* Here is another test for sparc vfork register problems.  This
9833        test uses lots of local variables, at least as many local
9834        variables as main has allocated so far including compiler
9835        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9836        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9837        reuse the register of parent for one of the local variables,
9838        since it will think that parent can't possibly be used any more
9839        in this routine.  Assigning to the local variable will thus
9840        munge parent in the parent process.  */
9841     pid_t
9842       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9843       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9844     /* Convince the compiler that p..p7 are live; otherwise, it might
9845        use the same hardware register for all 8 local variables.  */
9846     if (p != p1 || p != p2 || p != p3 || p != p4
9847         || p != p5 || p != p6 || p != p7)
9848       _exit(1);
9849
9850     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9851        from child file descriptors.  If the child closes a descriptor
9852        before it execs or exits, this munges the parent's descriptor
9853        as well.  Test for this by closing stdout in the child.  */
9854     _exit(close(fileno(stdout)) != 0);
9855   } else {
9856     int status;
9857     struct stat st;
9858
9859     while (wait(&status) != child)
9860       ;
9861     exit(
9862          /* Was there some problem with vforking?  */
9863          child < 0
9864
9865          /* Did the child fail?  (This shouldn't happen.)  */
9866          || status
9867
9868          /* Did the vfork/compiler bug occur?  */
9869          || parent != getpid()
9870
9871          /* Did the file descriptor bug occur?  */
9872          || fstat(fileno(stdout), &st) != 0
9873          );
9874   }
9875 }
9876 _ACEOF
9877 rm -f conftest$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879   (eval $ac_link) 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_func_vfork_works=yes
9889 else
9890   echo "$as_me: program exited with status $ac_status" >&5
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 ( exit $ac_status )
9895 ac_cv_func_vfork_works=no
9896 fi
9897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9898 fi
9899 fi
9900 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9901 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9902
9903 fi;
9904 if test "x$ac_cv_func_fork_works" = xcross; then
9905   ac_cv_func_vfork_works=$ac_cv_func_vfork
9906   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9907 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9908 fi
9909
9910 if test "x$ac_cv_func_vfork_works" = xyes; then
9911
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_WORKING_VFORK 1
9914 _ACEOF
9915
9916 else
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define vfork fork
9920 _ACEOF
9921
9922 fi
9923 if test "x$ac_cv_func_fork_works" = xyes; then
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_WORKING_FORK 1
9927 _ACEOF
9928
9929 fi
9930
9931 echo "$as_me:$LINENO: checking for working memcmp" >&5
9932 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9933 if test "${ac_cv_func_memcmp_working+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   if test "$cross_compiling" = yes; then
9937   ac_cv_func_memcmp_working=no
9938 else
9939   cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h.  */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h.  */
9945 $ac_includes_default
9946 int
9947 main ()
9948 {
9949
9950   /* Some versions of memcmp are not 8-bit clean.  */
9951   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9952   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9953     exit (1);
9954
9955   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9956      or more and with at least one buffer not starting on a 4-byte boundary.
9957      William Lewis provided this test program.   */
9958   {
9959     char foo[21];
9960     char bar[21];
9961     int i;
9962     for (i = 0; i < 4; i++)
9963       {
9964         char *a = foo + i;
9965         char *b = bar + i;
9966         strcpy (a, "--------01111111");
9967         strcpy (b, "--------10000000");
9968         if (memcmp (a, b, 16) >= 0)
9969           exit (1);
9970       }
9971     exit (0);
9972   }
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985   (eval $ac_try) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; }; then
9989   ac_cv_func_memcmp_working=yes
9990 else
9991   echo "$as_me: program exited with status $ac_status" >&5
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995 ( exit $ac_status )
9996 ac_cv_func_memcmp_working=no
9997 fi
9998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9999 fi
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10002 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10003 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
10004     "memcmp.$ac_objext"   | \
10005   *" memcmp.$ac_objext"   | \
10006     "memcmp.$ac_objext "* | \
10007   *" memcmp.$ac_objext "* ) ;;
10008   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
10009 esac
10010
10011
10012
10013
10014 for ac_header in stdlib.h unistd.h
10015 do
10016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10018   echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 fi
10023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10025 else
10026   # Is the header compilable?
10027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035 $ac_includes_default
10036 #include <$ac_header>
10037 _ACEOF
10038 rm -f conftest.$ac_objext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040   (eval $ac_compile) 2>conftest.er1
10041   ac_status=$?
10042   grep -v '^ *+' conftest.er1 >conftest.err
10043   rm -f conftest.er1
10044   cat conftest.err >&5
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); } &&
10047          { ac_try='test -z "$ac_c_werror_flag"
10048                          || test ! -s conftest.err'
10049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050   (eval $ac_try) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; } &&
10054          { ac_try='test -s conftest.$ac_objext'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; }; then
10060   ac_header_compiler=yes
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 ac_header_compiler=no
10066 fi
10067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10069 echo "${ECHO_T}$ac_header_compiler" >&6
10070
10071 # Is the header present?
10072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h.  */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h.  */
10080 #include <$ac_header>
10081 _ACEOF
10082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10084   ac_status=$?
10085   grep -v '^ *+' conftest.er1 >conftest.err
10086   rm -f conftest.er1
10087   cat conftest.err >&5
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } >/dev/null; then
10090   if test -s conftest.err; then
10091     ac_cpp_err=$ac_c_preproc_warn_flag
10092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10093   else
10094     ac_cpp_err=
10095   fi
10096 else
10097   ac_cpp_err=yes
10098 fi
10099 if test -z "$ac_cpp_err"; then
10100   ac_header_preproc=yes
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105   ac_header_preproc=no
10106 fi
10107 rm -f conftest.err conftest.$ac_ext
10108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10109 echo "${ECHO_T}$ac_header_preproc" >&6
10110
10111 # So?  What about this header?
10112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10113   yes:no: )
10114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10118     ac_header_preproc=yes
10119     ;;
10120   no:yes:* )
10121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10123     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10124 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10125     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10127     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10128 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10131     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10133     (
10134       cat <<\_ASBOX
10135 ## ------------------------------- ##
10136 ## Report this to root@mput.dip.jp ##
10137 ## ------------------------------- ##
10138 _ASBOX
10139     ) |
10140       sed "s/^/$as_me: WARNING:     /" >&2
10141     ;;
10142 esac
10143 echo "$as_me:$LINENO: checking for $ac_header" >&5
10144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   eval "$as_ac_Header=\$ac_header_preproc"
10149 fi
10150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10152
10153 fi
10154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10155   cat >>confdefs.h <<_ACEOF
10156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10157 _ACEOF
10158
10159 fi
10160
10161 done
10162
10163
10164 for ac_func in getpagesize
10165 do
10166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167 echo "$as_me:$LINENO: checking for $ac_func" >&5
10168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10169 if eval "test \"\${$as_ac_var+set}\" = set"; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10180 #define $ac_func innocuous_$ac_func
10181
10182 /* System header to define __stub macros and hopefully few prototypes,
10183     which can conflict with char $ac_func (); below.
10184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185     <limits.h> exists even on freestanding compilers.  */
10186
10187 #ifdef __STDC__
10188 # include <limits.h>
10189 #else
10190 # include <assert.h>
10191 #endif
10192
10193 #undef $ac_func
10194
10195 /* Override any gcc2 internal prototype to avoid an error.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 {
10199 #endif
10200 /* We use char because int might match the return type of a gcc2
10201    builtin and then its argument prototype would still apply.  */
10202 char $ac_func ();
10203 /* The GNU C library defines this for functions which it implements
10204     to always fail with ENOSYS.  Some functions are actually named
10205     something starting with __ and the normal name is an alias.  */
10206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10207 choke me
10208 #else
10209 char (*f) () = $ac_func;
10210 #endif
10211 #ifdef __cplusplus
10212 }
10213 #endif
10214
10215 int
10216 main ()
10217 {
10218 return f != $ac_func;
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225   (eval $ac_link) 2>conftest.er1
10226   ac_status=$?
10227   grep -v '^ *+' conftest.er1 >conftest.err
10228   rm -f conftest.er1
10229   cat conftest.err >&5
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); } &&
10232          { ac_try='test -z "$ac_c_werror_flag"
10233                          || test ! -s conftest.err'
10234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235   (eval $ac_try) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; } &&
10239          { ac_try='test -s conftest$ac_exeext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   eval "$as_ac_var=yes"
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 eval "$as_ac_var=no"
10251 fi
10252 rm -f conftest.err conftest.$ac_objext \
10253       conftest$ac_exeext conftest.$ac_ext
10254 fi
10255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10257 if test `eval echo '${'$as_ac_var'}'` = yes; then
10258   cat >>confdefs.h <<_ACEOF
10259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10260 _ACEOF
10261
10262 fi
10263 done
10264
10265 echo "$as_me:$LINENO: checking for working mmap" >&5
10266 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10267 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   if test "$cross_compiling" = yes; then
10271   ac_cv_func_mmap_fixed_mapped=no
10272 else
10273   cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h.  */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h.  */
10279 $ac_includes_default
10280 /* malloc might have been renamed as rpl_malloc. */
10281 #undef malloc
10282
10283 /* Thanks to Mike Haertel and Jim Avera for this test.
10284    Here is a matrix of mmap possibilities:
10285         mmap private not fixed
10286         mmap private fixed at somewhere currently unmapped
10287         mmap private fixed at somewhere already mapped
10288         mmap shared not fixed
10289         mmap shared fixed at somewhere currently unmapped
10290         mmap shared fixed at somewhere already mapped
10291    For private mappings, we should verify that changes cannot be read()
10292    back from the file, nor mmap's back from the file at a different
10293    address.  (There have been systems where private was not correctly
10294    implemented like the infamous i386 svr4.0, and systems where the
10295    VM page cache was not coherent with the file system buffer cache
10296    like early versions of FreeBSD and possibly contemporary NetBSD.)
10297    For shared mappings, we should conversely verify that changes get
10298    propagated back to all the places they're supposed to be.
10299
10300    Grep wants private fixed already mapped.
10301    The main things grep needs to know about mmap are:
10302    * does it exist and is it safe to write into the mmap'd area
10303    * how to use it (BSD variants)  */
10304
10305 #include <fcntl.h>
10306 #include <sys/mman.h>
10307
10308 #if !STDC_HEADERS && !HAVE_STDLIB_H
10309 char *malloc ();
10310 #endif
10311
10312 /* This mess was copied from the GNU getpagesize.h.  */
10313 #if !HAVE_GETPAGESIZE
10314 /* Assume that all systems that can run configure have sys/param.h.  */
10315 # if !HAVE_SYS_PARAM_H
10316 #  define HAVE_SYS_PARAM_H 1
10317 # endif
10318
10319 # ifdef _SC_PAGESIZE
10320 #  define getpagesize() sysconf(_SC_PAGESIZE)
10321 # else /* no _SC_PAGESIZE */
10322 #  if HAVE_SYS_PARAM_H
10323 #   include <sys/param.h>
10324 #   ifdef EXEC_PAGESIZE
10325 #    define getpagesize() EXEC_PAGESIZE
10326 #   else /* no EXEC_PAGESIZE */
10327 #    ifdef NBPG
10328 #     define getpagesize() NBPG * CLSIZE
10329 #     ifndef CLSIZE
10330 #      define CLSIZE 1
10331 #     endif /* no CLSIZE */
10332 #    else /* no NBPG */
10333 #     ifdef NBPC
10334 #      define getpagesize() NBPC
10335 #     else /* no NBPC */
10336 #      ifdef PAGESIZE
10337 #       define getpagesize() PAGESIZE
10338 #      endif /* PAGESIZE */
10339 #     endif /* no NBPC */
10340 #    endif /* no NBPG */
10341 #   endif /* no EXEC_PAGESIZE */
10342 #  else /* no HAVE_SYS_PARAM_H */
10343 #   define getpagesize() 8192   /* punt totally */
10344 #  endif /* no HAVE_SYS_PARAM_H */
10345 # endif /* no _SC_PAGESIZE */
10346
10347 #endif /* no HAVE_GETPAGESIZE */
10348
10349 int
10350 main ()
10351 {
10352   char *data, *data2, *data3;
10353   int i, pagesize;
10354   int fd;
10355
10356   pagesize = getpagesize ();
10357
10358   /* First, make a file with some known garbage in it. */
10359   data = (char *) malloc (pagesize);
10360   if (!data)
10361     exit (1);
10362   for (i = 0; i < pagesize; ++i)
10363     *(data + i) = rand ();
10364   umask (0);
10365   fd = creat ("conftest.mmap", 0600);
10366   if (fd < 0)
10367     exit (1);
10368   if (write (fd, data, pagesize) != pagesize)
10369     exit (1);
10370   close (fd);
10371
10372   /* Next, try to mmap the file at a fixed address which already has
10373      something else allocated at it.  If we can, also make sure that
10374      we see the same garbage.  */
10375   fd = open ("conftest.mmap", O_RDWR);
10376   if (fd < 0)
10377     exit (1);
10378   data2 = (char *) malloc (2 * pagesize);
10379   if (!data2)
10380     exit (1);
10381   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10382   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10383                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10384     exit (1);
10385   for (i = 0; i < pagesize; ++i)
10386     if (*(data + i) != *(data2 + i))
10387       exit (1);
10388
10389   /* Finally, make sure that changes to the mapped area do not
10390      percolate back to the file as seen by read().  (This is a bug on
10391      some variants of i386 svr4.0.)  */
10392   for (i = 0; i < pagesize; ++i)
10393     *(data2 + i) = *(data2 + i) + 1;
10394   data3 = (char *) malloc (pagesize);
10395   if (!data3)
10396     exit (1);
10397   if (read (fd, data3, pagesize) != pagesize)
10398     exit (1);
10399   for (i = 0; i < pagesize; ++i)
10400     if (*(data + i) != *(data3 + i))
10401       exit (1);
10402   close (fd);
10403   exit (0);
10404 }
10405 _ACEOF
10406 rm -f conftest$ac_exeext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408   (eval $ac_link) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   ac_cv_func_mmap_fixed_mapped=yes
10418 else
10419   echo "$as_me: program exited with status $ac_status" >&5
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 ( exit $ac_status )
10424 ac_cv_func_mmap_fixed_mapped=no
10425 fi
10426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10427 fi
10428 fi
10429 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10430 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10431 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10432
10433 cat >>confdefs.h <<\_ACEOF
10434 #define HAVE_MMAP 1
10435 _ACEOF
10436
10437 fi
10438 rm -f conftest.mmap
10439
10440 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10441 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10442 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   ac_cv_func_setvbuf_reversed=no
10446    cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h.  */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h.  */
10452 #include <stdio.h>
10453 #         if PROTOTYPES
10454            int (setvbuf) (FILE *, int, char *, size_t);
10455 #         endif
10456 int
10457 main ()
10458 {
10459 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } &&
10473          { ac_try='test -z "$ac_c_werror_flag"
10474                          || test ! -s conftest.err'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest$ac_exeext'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h.  */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h.  */
10492 #include <stdio.h>
10493 #            if PROTOTYPES
10494               int (setvbuf) (FILE *, int, char *, size_t);
10495 #            endif
10496 int
10497 main ()
10498 {
10499 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506   (eval $ac_link) 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } &&
10513          { ac_try='test -z "$ac_c_werror_flag"
10514                          || test ! -s conftest.err'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; } &&
10520          { ac_try='test -s conftest$ac_exeext'
10521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522   (eval $ac_try) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }; }; then
10526   # It compiles and links either way, so it must not be declared
10527          # with a prototype and most likely this is a K&R C compiler.
10528          # Try running it.
10529          if test "$cross_compiling" = yes; then
10530   : # Assume setvbuf is not reversed when cross-compiling.
10531 else
10532   cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538 #include <stdio.h>
10539 int
10540 main ()
10541 {
10542 /* This call has the arguments reversed.
10543                    A reversed system may check and see that the address of buf
10544                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10545                 char buf;
10546                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10547                   exit (1);
10548                 putchar ('\r');
10549                 exit (0); /* Non-reversed systems SEGV here.  */
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest$ac_exeext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556   (eval $ac_link) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565   ac_cv_func_setvbuf_reversed=yes
10566 else
10567   echo "$as_me: program exited with status $ac_status" >&5
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ( exit $ac_status )
10572 rm -f core *.core
10573 fi
10574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10575 fi
10576         ac_cv_func_setvbuf_reversed=yes
10577 else
10578   echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10580
10581 fi
10582 rm -f conftest.err conftest.$ac_objext \
10583       conftest$ac_exeext conftest.$ac_ext
10584 else
10585   echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10587
10588 fi
10589 rm -f conftest.err conftest.$ac_objext \
10590       conftest$ac_exeext conftest.$ac_ext
10591 fi
10592 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10593 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10594 if test $ac_cv_func_setvbuf_reversed = yes; then
10595
10596 cat >>confdefs.h <<\_ACEOF
10597 #define SETVBUF_REVERSED 1
10598 _ACEOF
10599
10600 fi
10601
10602 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10603 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10604 if test "${ac_cv_type_signal+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 #include <sys/types.h>
10614 #include <signal.h>
10615 #ifdef signal
10616 # undef signal
10617 #endif
10618 #ifdef __cplusplus
10619 extern "C" void (*signal (int, void (*)(int)))(int);
10620 #else
10621 void (*signal ()) ();
10622 #endif
10623
10624 int
10625 main ()
10626 {
10627 int i;
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 rm -f conftest.$ac_objext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634   (eval $ac_compile) 2>conftest.er1
10635   ac_status=$?
10636   grep -v '^ *+' conftest.er1 >conftest.err
10637   rm -f conftest.er1
10638   cat conftest.err >&5
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); } &&
10641          { ac_try='test -z "$ac_c_werror_flag"
10642                          || test ! -s conftest.err'
10643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644   (eval $ac_try) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; } &&
10648          { ac_try='test -s conftest.$ac_objext'
10649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650   (eval $ac_try) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; }; then
10654   ac_cv_type_signal=void
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659 ac_cv_type_signal=int
10660 fi
10661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10662 fi
10663 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10664 echo "${ECHO_T}$ac_cv_type_signal" >&6
10665
10666 cat >>confdefs.h <<_ACEOF
10667 #define RETSIGTYPE $ac_cv_type_signal
10668 _ACEOF
10669
10670
10671 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes; then
10672
10673 for ac_func in vprintf
10674 do
10675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10676 echo "$as_me:$LINENO: checking for $ac_func" >&5
10677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10678 if eval "test \"\${$as_ac_var+set}\" = set"; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h.  */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h.  */
10687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10689 #define $ac_func innocuous_$ac_func
10690
10691 /* System header to define __stub macros and hopefully few prototypes,
10692     which can conflict with char $ac_func (); below.
10693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10694     <limits.h> exists even on freestanding compilers.  */
10695
10696 #ifdef __STDC__
10697 # include <limits.h>
10698 #else
10699 # include <assert.h>
10700 #endif
10701
10702 #undef $ac_func
10703
10704 /* Override any gcc2 internal prototype to avoid an error.  */
10705 #ifdef __cplusplus
10706 extern "C"
10707 {
10708 #endif
10709 /* We use char because int might match the return type of a gcc2
10710    builtin and then its argument prototype would still apply.  */
10711 char $ac_func ();
10712 /* The GNU C library defines this for functions which it implements
10713     to always fail with ENOSYS.  Some functions are actually named
10714     something starting with __ and the normal name is an alias.  */
10715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10716 choke me
10717 #else
10718 char (*f) () = $ac_func;
10719 #endif
10720 #ifdef __cplusplus
10721 }
10722 #endif
10723
10724 int
10725 main ()
10726 {
10727 return f != $ac_func;
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734   (eval $ac_link) 2>conftest.er1
10735   ac_status=$?
10736   grep -v '^ *+' conftest.er1 >conftest.err
10737   rm -f conftest.er1
10738   cat conftest.err >&5
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } &&
10741          { ac_try='test -z "$ac_c_werror_flag"
10742                          || test ! -s conftest.err'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; } &&
10748          { ac_try='test -s conftest$ac_exeext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   eval "$as_ac_var=yes"
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 eval "$as_ac_var=no"
10760 fi
10761 rm -f conftest.err conftest.$ac_objext \
10762       conftest$ac_exeext conftest.$ac_ext
10763 fi
10764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10766 if test `eval echo '${'$as_ac_var'}'` = yes; then
10767   cat >>confdefs.h <<_ACEOF
10768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10769 _ACEOF
10770
10771 echo "$as_me:$LINENO: checking for _doprnt" >&5
10772 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10773 if test "${ac_cv_func__doprnt+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h.  */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h.  */
10782 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10784 #define _doprnt innocuous__doprnt
10785
10786 /* System header to define __stub macros and hopefully few prototypes,
10787     which can conflict with char _doprnt (); below.
10788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10789     <limits.h> exists even on freestanding compilers.  */
10790
10791 #ifdef __STDC__
10792 # include <limits.h>
10793 #else
10794 # include <assert.h>
10795 #endif
10796
10797 #undef _doprnt
10798
10799 /* Override any gcc2 internal prototype to avoid an error.  */
10800 #ifdef __cplusplus
10801 extern "C"
10802 {
10803 #endif
10804 /* We use char because int might match the return type of a gcc2
10805    builtin and then its argument prototype would still apply.  */
10806 char _doprnt ();
10807 /* The GNU C library defines this for functions which it implements
10808     to always fail with ENOSYS.  Some functions are actually named
10809     something starting with __ and the normal name is an alias.  */
10810 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10811 choke me
10812 #else
10813 char (*f) () = _doprnt;
10814 #endif
10815 #ifdef __cplusplus
10816 }
10817 #endif
10818
10819 int
10820 main ()
10821 {
10822 return f != _doprnt;
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10829   (eval $ac_link) 2>conftest.er1
10830   ac_status=$?
10831   grep -v '^ *+' conftest.er1 >conftest.err
10832   rm -f conftest.er1
10833   cat conftest.err >&5
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } &&
10836          { ac_try='test -z "$ac_c_werror_flag"
10837                          || test ! -s conftest.err'
10838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839   (eval $ac_try) 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }; } &&
10843          { ac_try='test -s conftest$ac_exeext'
10844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845   (eval $ac_try) 2>&5
10846   ac_status=$?
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); }; }; then
10849   ac_cv_func__doprnt=yes
10850 else
10851   echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 ac_cv_func__doprnt=no
10855 fi
10856 rm -f conftest.err conftest.$ac_objext \
10857       conftest$ac_exeext conftest.$ac_ext
10858 fi
10859 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10860 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10861 if test $ac_cv_func__doprnt = yes; then
10862
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_DOPRNT 1
10865 _ACEOF
10866
10867 fi
10868
10869 fi
10870 done
10871
10872
10873 fi
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907 for ac_func in \
10908   alarm \
10909   dup2 \
10910   floor \
10911   getcwd \
10912   getopt \
10913   gethostbyname \
10914   gettimeofday \
10915   getwd \
10916   isatty \
10917   memchr \
10918   memmove \
10919   memset \
10920   modf \
10921   munmap \
10922   popen \
10923   pow \
10924   select \
10925   signal \
10926   socket \
10927   sleep \
10928   vsnprintf \
10929   snprintf \
10930   sqrt \
10931   strchr \
10932   strdup \
10933   strstr \
10934   strerror \
10935   strcasecmp \
10936   strncasecmp \
10937   strrchr \
10938   strstr \
10939   strtol \
10940   usleep
10941 do
10942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 echo "$as_me:$LINENO: checking for $ac_func" >&5
10944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10945 if eval "test \"\${$as_ac_var+set}\" = set"; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10956 #define $ac_func innocuous_$ac_func
10957
10958 /* System header to define __stub macros and hopefully few prototypes,
10959     which can conflict with char $ac_func (); below.
10960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961     <limits.h> exists even on freestanding compilers.  */
10962
10963 #ifdef __STDC__
10964 # include <limits.h>
10965 #else
10966 # include <assert.h>
10967 #endif
10968
10969 #undef $ac_func
10970
10971 /* Override any gcc2 internal prototype to avoid an error.  */
10972 #ifdef __cplusplus
10973 extern "C"
10974 {
10975 #endif
10976 /* We use char because int might match the return type of a gcc2
10977    builtin and then its argument prototype would still apply.  */
10978 char $ac_func ();
10979 /* The GNU C library defines this for functions which it implements
10980     to always fail with ENOSYS.  Some functions are actually named
10981     something starting with __ and the normal name is an alias.  */
10982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10983 choke me
10984 #else
10985 char (*f) () = $ac_func;
10986 #endif
10987 #ifdef __cplusplus
10988 }
10989 #endif
10990
10991 int
10992 main ()
10993 {
10994 return f != $ac_func;
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001   (eval $ac_link) 2>conftest.er1
11002   ac_status=$?
11003   grep -v '^ *+' conftest.er1 >conftest.err
11004   rm -f conftest.er1
11005   cat conftest.err >&5
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } &&
11008          { ac_try='test -z "$ac_c_werror_flag"
11009                          || test ! -s conftest.err'
11010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011   (eval $ac_try) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; } &&
11015          { ac_try='test -s conftest$ac_exeext'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; }; then
11021   eval "$as_ac_var=yes"
11022 else
11023   echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 eval "$as_ac_var=no"
11027 fi
11028 rm -f conftest.err conftest.$ac_objext \
11029       conftest$ac_exeext conftest.$ac_ext
11030 fi
11031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11033 if test `eval echo '${'$as_ac_var'}'` = yes; then
11034   cat >>confdefs.h <<_ACEOF
11035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11036 _ACEOF
11037
11038 fi
11039 done
11040
11041 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
11042   cat >>confdefs.h <<\_ACEOF
11043 #define RETSIGTYPE int
11044 _ACEOF
11045
11046   cat >>confdefs.h <<\_ACEOF
11047 #define HAVE_GETCWD int
11048 _ACEOF
11049
11050   cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_GETHOSTBYNAME 1
11052 _ACEOF
11053
11054   cat >>confdefs.h <<\_ACEOF
11055 #define HAVE_POPEN 1
11056 _ACEOF
11057
11058
11059 cat >>confdefs.h <<\_ACEOF
11060 #define popen _popen
11061 _ACEOF
11062
11063
11064 cat >>confdefs.h <<\_ACEOF
11065 #define pclose _pclose
11066 _ACEOF
11067
11068   cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_SELECT 1
11070 _ACEOF
11071
11072   cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_SNPRINTF 1
11074 _ACEOF
11075
11076   cat >>confdefs.h <<\_ACEOF
11077 #define HAVE_STRDUP 1
11078 _ACEOF
11079
11080   cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_STRERROR 1
11082 _ACEOF
11083
11084   cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_STRNCASECMP 1
11086 _ACEOF
11087
11088   cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_STRSTR 1
11090 _ACEOF
11091
11092
11093 cat >>confdefs.h <<\_ACEOF
11094 #define snprintf _snprintf
11095 _ACEOF
11096
11097   cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_SOCKET 1
11099 _ACEOF
11100
11101   cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_VSNPRINTF 1
11103 _ACEOF
11104
11105
11106 cat >>confdefs.h <<\_ACEOF
11107 #define vsnprintf _vsnprintf
11108 _ACEOF
11109
11110
11111 cat >>confdefs.h <<\_ACEOF
11112 #define TIMID_VERSION $(PACKAGE_VERSION)
11113 _ACEOF
11114
11115
11116 cat >>confdefs.h <<\_ACEOF
11117 #define DEFAULT_PATH ".\\"
11118 _ACEOF
11119
11120 fi
11121
11122 echo "$as_me:$LINENO: checking for getopt_long" >&5
11123 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
11124 if test "${ac_cv_func_getopt_long+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11135 #define getopt_long innocuous_getopt_long
11136
11137 /* System header to define __stub macros and hopefully few prototypes,
11138     which can conflict with char getopt_long (); below.
11139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11140     <limits.h> exists even on freestanding compilers.  */
11141
11142 #ifdef __STDC__
11143 # include <limits.h>
11144 #else
11145 # include <assert.h>
11146 #endif
11147
11148 #undef getopt_long
11149
11150 /* Override any gcc2 internal prototype to avoid an error.  */
11151 #ifdef __cplusplus
11152 extern "C"
11153 {
11154 #endif
11155 /* We use char because int might match the return type of a gcc2
11156    builtin and then its argument prototype would still apply.  */
11157 char getopt_long ();
11158 /* The GNU C library defines this for functions which it implements
11159     to always fail with ENOSYS.  Some functions are actually named
11160     something starting with __ and the normal name is an alias.  */
11161 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11162 choke me
11163 #else
11164 char (*f) () = getopt_long;
11165 #endif
11166 #ifdef __cplusplus
11167 }
11168 #endif
11169
11170 int
11171 main ()
11172 {
11173 return f != getopt_long;
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180   (eval $ac_link) 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag"
11188                          || test ! -s conftest.err'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; } &&
11194          { ac_try='test -s conftest$ac_exeext'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }; then
11200   ac_cv_func_getopt_long=yes
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205 ac_cv_func_getopt_long=no
11206 fi
11207 rm -f conftest.err conftest.$ac_objext \
11208       conftest$ac_exeext conftest.$ac_ext
11209 fi
11210 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11211 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11212 if test $ac_cv_func_getopt_long = yes; then
11213
11214 cat >>confdefs.h <<\_ACEOF
11215 #define HAVE_GETOPT_LONG 1
11216 _ACEOF
11217
11218          tm_cv_needgetopt="no"
11219 else
11220   tm_cv_needgetopt="yes"
11221 fi
11222
11223
11224
11225 if test "x$tm_cv_needgetopt" = "xyes"; then
11226   NEEDGETOPT_TRUE=
11227   NEEDGETOPT_FALSE='#'
11228 else
11229   NEEDGETOPT_TRUE='#'
11230   NEEDGETOPT_FALSE=
11231 fi
11232
11233
11234 # Checks on cygnus and MYSYS
11235 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
11236   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
11237   *yes*)
11238     echo "$as_me:$LINENO: checking for opendir" >&5
11239 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11240 if test "${ac_cv_func_opendir+set}" = set; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11251 #define opendir innocuous_opendir
11252
11253 /* System header to define __stub macros and hopefully few prototypes,
11254     which can conflict with char opendir (); below.
11255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11256     <limits.h> exists even on freestanding compilers.  */
11257
11258 #ifdef __STDC__
11259 # include <limits.h>
11260 #else
11261 # include <assert.h>
11262 #endif
11263
11264 #undef opendir
11265
11266 /* Override any gcc2 internal prototype to avoid an error.  */
11267 #ifdef __cplusplus
11268 extern "C"
11269 {
11270 #endif
11271 /* We use char because int might match the return type of a gcc2
11272    builtin and then its argument prototype would still apply.  */
11273 char opendir ();
11274 /* The GNU C library defines this for functions which it implements
11275     to always fail with ENOSYS.  Some functions are actually named
11276     something starting with __ and the normal name is an alias.  */
11277 #if defined (__stub_opendir) || defined (__stub___opendir)
11278 choke me
11279 #else
11280 char (*f) () = opendir;
11281 #endif
11282 #ifdef __cplusplus
11283 }
11284 #endif
11285
11286 int
11287 main ()
11288 {
11289 return f != opendir;
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 rm -f conftest.$ac_objext conftest$ac_exeext
11295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11296   (eval $ac_link) 2>conftest.er1
11297   ac_status=$?
11298   grep -v '^ *+' conftest.er1 >conftest.err
11299   rm -f conftest.er1
11300   cat conftest.err >&5
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); } &&
11303          { ac_try='test -z "$ac_c_werror_flag"
11304                          || test ! -s conftest.err'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; } &&
11310          { ac_try='test -s conftest$ac_exeext'
11311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312   (eval $ac_try) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   ac_cv_func_opendir=yes
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ac_cv_func_opendir=no
11322 fi
11323 rm -f conftest.err conftest.$ac_objext \
11324       conftest$ac_exeext conftest.$ac_ext
11325 fi
11326 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11327 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11328 if test $ac_cv_func_opendir = yes; then
11329   :
11330 else
11331    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11332     W32READDIR=yes
11333 fi
11334
11335     ;;
11336   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11337     W32READDIR=yes
11338     ;;
11339   esac
11340   if test "x$enable_network" = "xyes"; then
11341         if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
11342       EXTRALIBS="$EXTRALIBS  wsock32.lib"
11343       EXTRADEFS="$EXTRADEFS -DWINSOCK"
11344     else
11345       echo "$as_me:$LINENO: checking for socket" >&5
11346 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11347 if test "${ac_cv_func_socket+set}" = set; then
11348   echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350   cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h.  */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h.  */
11356 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11358 #define socket innocuous_socket
11359
11360 /* System header to define __stub macros and hopefully few prototypes,
11361     which can conflict with char socket (); below.
11362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11363     <limits.h> exists even on freestanding compilers.  */
11364
11365 #ifdef __STDC__
11366 # include <limits.h>
11367 #else
11368 # include <assert.h>
11369 #endif
11370
11371 #undef socket
11372
11373 /* Override any gcc2 internal prototype to avoid an error.  */
11374 #ifdef __cplusplus
11375 extern "C"
11376 {
11377 #endif
11378 /* We use char because int might match the return type of a gcc2
11379    builtin and then its argument prototype would still apply.  */
11380 char socket ();
11381 /* The GNU C library defines this for functions which it implements
11382     to always fail with ENOSYS.  Some functions are actually named
11383     something starting with __ and the normal name is an alias.  */
11384 #if defined (__stub_socket) || defined (__stub___socket)
11385 choke me
11386 #else
11387 char (*f) () = socket;
11388 #endif
11389 #ifdef __cplusplus
11390 }
11391 #endif
11392
11393 int
11394 main ()
11395 {
11396 return f != socket;
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403   (eval $ac_link) 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -z "$ac_c_werror_flag"
11411                          || test ! -s conftest.err'
11412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413   (eval $ac_try) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; } &&
11417          { ac_try='test -s conftest$ac_exeext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   ac_cv_func_socket=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 ac_cv_func_socket=no
11429 fi
11430 rm -f conftest.err conftest.$ac_objext \
11431       conftest$ac_exeext conftest.$ac_ext
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11434 echo "${ECHO_T}$ac_cv_func_socket" >&6
11435 if test $ac_cv_func_socket = yes; then
11436   :
11437 else
11438   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11439 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11440 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11441 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   ac_save_LIBS="$LIBS"
11445 LIBS="-lwsock32  $LIBS"
11446 cat >conftest.$ac_ext <<_ACEOF
11447 /* confdefs.h.  */
11448 _ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h.  */
11452 #include <windows.h>
11453 #include <winsock.h>
11454
11455 int
11456 main ()
11457 {
11458 WSAStartup(0,0);
11459   ;
11460   return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11465   (eval $ac_link) 2>conftest.er1
11466   ac_status=$?
11467   grep -v '^ *+' conftest.er1 >conftest.err
11468   rm -f conftest.er1
11469   cat conftest.err >&5
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -z "$ac_c_werror_flag"
11473                          || test ! -s conftest.err'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; } &&
11479          { ac_try='test -s conftest$ac_exeext'
11480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481   (eval $ac_try) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; }; then
11485   eval "wapi_cv_lib_$ac_lib_var=yes"
11486 else
11487   echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11489
11490 eval "wapi_cv_lib_$ac_lib_var=no"
11491 fi
11492 rm -f conftest.err conftest.$ac_objext \
11493       conftest$ac_exeext conftest.$ac_ext
11494 LIBS="$ac_save_LIBS"
11495
11496 fi
11497 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11498   echo "$as_me:$LINENO: result: yes" >&5
11499 echo "${ECHO_T}yes" >&6
11500    EXTRALIBS="$EXTRALIBS -lwsock32"
11501           EXTRADEFS="$EXTRADEFS -DWINSOCK"
11502
11503 else
11504   echo "$as_me:$LINENO: result: no" >&5
11505 echo "${ECHO_T}no" >&6
11506 fi
11507
11508
11509 fi
11510
11511     fi
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   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
11921         EXTRALIBS="$EXTRALIBS winmm.lib"
11922   else
11923     EXTRALIBS="$EXTRALIBS -lwinmm"
11924   fi
11925   EXTRADEFS="$EXTRADEFS -DAU_W32"
11926 else
11927   echo "$as_me:$LINENO: result: no" >&5
11928 echo "${ECHO_T}no" >&6
11929 fi
11930
11931 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11932 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11933 if test "x$au_enable_darwin" = xyes; then
11934   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11935   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11936   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11937     case "$target" in
11938     *-*-darwin*)
11939      echo "$as_me:$LINENO: result: yes" >&5
11940 echo "${ECHO_T}yes" >&6;;
11941    *)
11942      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11943 echo "$as_me: WARNING: may not work on $target" >&2;}
11944      ;;
11945   esac
11946 else
11947   echo "$as_me:$LINENO: result: no" >&5
11948 echo "${ECHO_T}no" >&6
11949 fi
11950
11951
11952 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11953 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11954 if test "x$au_enable_alsa" = xyes; then
11955   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11956 echo "${ECHO_T}yes, configuring alsa" >&6
11957   KEEPCFLAGS=$CFLAGS
11958   KEEPLIBS=$LIBS
11959   KEEPLDFLAGS=$LDFLAGS
11960   alsa_save_CFLAGS="$CFLAGS"
11961 alsa_save_LDFLAGS="$LDFLAGS"
11962 alsa_save_LIBS="$LIBS"
11963 alsa_found=yes
11964
11965
11966 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11967 if test "${with_alsa_prefix+set}" = set; then
11968   withval="$with_alsa_prefix"
11969   alsa_prefix="$withval"
11970 else
11971   alsa_prefix=""
11972 fi;
11973
11974
11975 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11976 if test "${with_alsa_inc_prefix+set}" = set; then
11977   withval="$with_alsa_inc_prefix"
11978   alsa_inc_prefix="$withval"
11979 else
11980   alsa_inc_prefix=""
11981 fi;
11982
11983 # Check whether --enable-alsatest or --disable-alsatest was given.
11984 if test "${enable_alsatest+set}" = set; then
11985   enableval="$enable_alsatest"
11986   enable_alsatest=no
11987 else
11988   enable_alsatest=yes
11989 fi;
11990
11991 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11992 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11993 if test "$alsa_inc_prefix" != "" ; then
11994         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11995         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11996 fi
11997 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11998 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11999
12000 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12001 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12002 if test "$alsa_prefix" != "" ; then
12003         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12004         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12005 fi
12006
12007 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12008 LIBS=`echo $LIBS | sed 's/-lm//'`
12009 LIBS=`echo $LIBS | sed 's/-ldl//'`
12010 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12011 LIBS=`echo $LIBS | sed 's/  //'`
12012 LIBS="$ALSA_LIBS $LIBS"
12013 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12014 echo "${ECHO_T}$ALSA_LIBS" >&6
12015
12016 min_alsa_version=0.1.1
12017 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12018 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12019 no_alsa=""
12020     alsa_min_major_version=`echo $min_alsa_version | \
12021            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12022     alsa_min_minor_version=`echo $min_alsa_version | \
12023            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12024     alsa_min_micro_version=`echo $min_alsa_version | \
12025            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12026
12027
12028
12029
12030 ac_ext=c
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042
12043 #include <alsa/asoundlib.h>
12044
12045 int
12046 main ()
12047 {
12048
12049 /* ensure backward compatibility */
12050 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12051 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12052 #endif
12053 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12054 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12055 #endif
12056 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12057 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12058 #endif
12059
12060 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12061   exit(0);
12062 #  else
12063 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12064 #       error not present
12065 #    endif
12066
12067 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12068   exit(0);
12069 #   else
12070 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12071 #          error not present
12072 #      endif
12073
12074 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12075 #        error not present
12076 #      endif
12077 #    endif
12078 #  endif
12079 exit(0);
12080
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12087   (eval $ac_compile) 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -z "$ac_c_werror_flag"
12095                          || test ! -s conftest.err'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest.$ac_objext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   echo "$as_me:$LINENO: result: found." >&5
12108 echo "${ECHO_T}found." >&6
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119
12120 #include <sys/asoundlib.h>
12121
12122 int
12123 main ()
12124 {
12125
12126 /* ensure backward compatibility */
12127 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12128 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12129 #endif
12130 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12131 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12132 #endif
12133 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12134 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12135 #endif
12136
12137 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12138   exit(0);
12139 #  else
12140 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12141 #       error not present
12142 #    endif
12143
12144 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12145   exit(0);
12146 #   else
12147 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12148 #          error not present
12149 #      endif
12150
12151 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12152 #        error not present
12153 #      endif
12154 #    endif
12155 #  endif
12156 exit(0);
12157
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164   (eval $ac_compile) 2>conftest.er1
12165   ac_status=$?
12166   grep -v '^ *+' conftest.er1 >conftest.err
12167   rm -f conftest.er1
12168   cat conftest.err >&5
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } &&
12171          { ac_try='test -z "$ac_c_werror_flag"
12172                          || test ! -s conftest.err'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; } &&
12178          { ac_try='test -s conftest.$ac_objext'
12179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180   (eval $ac_try) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   echo "$as_me:$LINENO: result: found." >&5
12185 echo "${ECHO_T}found." >&6
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 echo "$as_me:$LINENO: result: not present." >&5
12191 echo "${ECHO_T}not present." >&6
12192    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12193 echo "${ECHO_T}libasound was not found anywhere." >&6
12194    alsa_found=no
12195 fi
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12198 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12199
12200 fi
12201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12202 ac_ext=c
12203 ac_cpp='$CPP $CPPFLAGS'
12204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12207
12208
12209
12210 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12211 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12212 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lasound  $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223
12224 /* Override any gcc2 internal prototype to avoid an error.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 /* We use char because int might match the return type of a gcc2
12229    builtin and then its argument prototype would still apply.  */
12230 char snd_ctl_open ();
12231 int
12232 main ()
12233 {
12234 snd_ctl_open ();
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241   (eval $ac_link) 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } &&
12248          { ac_try='test -z "$ac_c_werror_flag"
12249                          || test ! -s conftest.err'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; } &&
12255          { ac_try='test -s conftest$ac_exeext'
12256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257   (eval $ac_try) 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; }; then
12261   ac_cv_lib_asound_snd_ctl_open=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_cv_lib_asound_snd_ctl_open=no
12267 fi
12268 rm -f conftest.err conftest.$ac_objext \
12269       conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12271 fi
12272 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12273 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12274 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12275   cat >>confdefs.h <<_ACEOF
12276 #define HAVE_LIBASOUND 1
12277 _ACEOF
12278
12279   LIBS="-lasound $LIBS"
12280
12281 else
12282   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12283 echo "${ECHO_T}No linkable libasound was found." >&6
12284    alsa_found=no
12285
12286 fi
12287
12288
12289 if test "x$alsa_found" = "xyes" ; then
12290    :
12291    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12292    LIBS=`echo $LIBS | sed 's/  //'`
12293    LIBS="-lasound $LIBS"
12294 else
12295    :
12296    CFLAGS="$alsa_save_CFLAGS"
12297    LDFLAGS="$alsa_save_LDFLAGS"
12298    LIBS="$alsa_save_LIBS"
12299    ALSA_CFLAGS=""
12300    ALSA_LIBS=""
12301 fi
12302
12303
12304
12305
12306   if test "x$alsa_found" = "xyes" ; then
12307         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12308     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12309     for f in $ALSA_CFLAGS; do
12310     case ".$f" in
12311         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12312         *)              CFLAGS="$CPPFLAGS $f" ;;
12313     esac
12314 done
12315
12316     LIBS="$LIBS $ALSA_LIBS"
12317
12318 for ac_func in snd_seq_port_info_set_timestamping
12319 do
12320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12321 echo "$as_me:$LINENO: checking for $ac_func" >&5
12322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12323 if eval "test \"\${$as_ac_var+set}\" = set"; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12334 #define $ac_func innocuous_$ac_func
12335
12336 /* System header to define __stub macros and hopefully few prototypes,
12337     which can conflict with char $ac_func (); below.
12338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12339     <limits.h> exists even on freestanding compilers.  */
12340
12341 #ifdef __STDC__
12342 # include <limits.h>
12343 #else
12344 # include <assert.h>
12345 #endif
12346
12347 #undef $ac_func
12348
12349 /* Override any gcc2 internal prototype to avoid an error.  */
12350 #ifdef __cplusplus
12351 extern "C"
12352 {
12353 #endif
12354 /* We use char because int might match the return type of a gcc2
12355    builtin and then its argument prototype would still apply.  */
12356 char $ac_func ();
12357 /* The GNU C library defines this for functions which it implements
12358     to always fail with ENOSYS.  Some functions are actually named
12359     something starting with __ and the normal name is an alias.  */
12360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12361 choke me
12362 #else
12363 char (*f) () = $ac_func;
12364 #endif
12365 #ifdef __cplusplus
12366 }
12367 #endif
12368
12369 int
12370 main ()
12371 {
12372 return f != $ac_func;
12373   ;
12374   return 0;
12375 }
12376 _ACEOF
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379   (eval $ac_link) 2>conftest.er1
12380   ac_status=$?
12381   grep -v '^ *+' conftest.er1 >conftest.err
12382   rm -f conftest.er1
12383   cat conftest.err >&5
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); } &&
12386          { ac_try='test -z "$ac_c_werror_flag"
12387                          || test ! -s conftest.err'
12388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389   (eval $ac_try) 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; } &&
12393          { ac_try='test -s conftest$ac_exeext'
12394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395   (eval $ac_try) 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); }; }; then
12399   eval "$as_ac_var=yes"
12400 else
12401   echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 eval "$as_ac_var=no"
12405 fi
12406 rm -f conftest.err conftest.$ac_objext \
12407       conftest$ac_exeext conftest.$ac_ext
12408 fi
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12411 if test `eval echo '${'$as_ac_var'}'` = yes; then
12412   cat >>confdefs.h <<_ACEOF
12413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12414 _ACEOF
12415
12416 fi
12417 done
12418
12419   else
12420     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12421 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12422     CFLAGS=$KEEPCFLAGS
12423     LIBS=$KEEPLIBS
12424     LDFLAGS=$KEEPLDFLAGS
12425   fi
12426 else
12427   echo "$as_me:$LINENO: result: no" >&5
12428 echo "${ECHO_T}no" >&6
12429 fi
12430
12431 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12432 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12433 if test "x$au_enable_alib" = xyes; then
12434   case "$target" in
12435     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12436 echo "${ECHO_T}yes" >&6 ;;
12437     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12438 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12439   esac
12440   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12441   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12442   if test -d /opt/audio/include; then
12443     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12444   fi
12445   if test -d /opt/audio/lib; then
12446     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12447   fi
12448   EXTRALIBS="$EXTRALIBS -lAlib"
12449 else
12450   echo "$as_me:$LINENO: result: no" >&5
12451 echo "${ECHO_T}no" >&6
12452 fi
12453
12454 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12455 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12456 if test "x$au_enable_nas" = xyes; then
12457   if test "x$with_x" != xyes; then
12458     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12459 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12460    { (exit 1); exit 1; }; }
12461   fi
12462   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12463   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12464
12465
12466   if test "x$with_nas_library" != x; then
12467     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12468 echo "${ECHO_T}$with_nas_library" >&6;
12469     EXTRALIBS="$EXTRALIBS $with_nas_library"
12470   else
12471     echo "$as_me:$LINENO: result: " >&5
12472 echo "${ECHO_T}" >&6
12473     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12474 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12475 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478   ac_func_search_save_LIBS="$LIBS"
12479 timidity_cv_search_AuOpenServer="no"
12480 for i in $x_libraries/libaudio.a \
12481          /usr/lib/libaudio.so \
12482          /usr/lib/libaudio.a ; do
12483   LIBS="$i  $ac_func_search_save_LIBS"
12484   cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490
12491 /* Override any gcc2 internal prototype to avoid an error.  */
12492 #ifdef __cplusplus
12493 extern "C"
12494 #endif
12495 /* We use char because int might match the return type of a gcc2
12496    builtin and then its argument prototype would still apply.  */
12497 char AuOpenServer ();
12498 int
12499 main ()
12500 {
12501 AuOpenServer ();
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12508   (eval $ac_link) 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -z "$ac_c_werror_flag"
12516                          || test ! -s conftest.err'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; } &&
12522          { ac_try='test -s conftest$ac_exeext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   timidity_cv_search_AuOpenServer="$i"; break
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 fi
12534 rm -f conftest.err conftest.$ac_objext \
12535       conftest$ac_exeext conftest.$ac_ext
12536 done
12537 LIBS="$ac_func_search_save_LIBS"
12538 fi
12539 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12540 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12541 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12542    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12543 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12544           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12545 else :
12546   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12547 echo "$as_me: WARNING: NAS library is not found." >&2;}
12548 fi
12549   fi
12550   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12551   lib_xt_opt=-lXt
12552   if test "x$have_xext" = xyes; then
12553     lib_xext_opt=-lXext
12554   fi
12555   if test "x$have_xprelibs" = xyes; then
12556     lib_xprelibs_opt='-lSM -lICE'
12557   fi
12558 else
12559   echo "$as_me:$LINENO: result: no" >&5
12560 echo "${ECHO_T}no" >&6
12561 fi
12562
12563 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12564 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12565 if test "x$au_enable_arts" = xyes; then
12566   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12567 echo "${ECHO_T}yes, configuring aRts" >&6
12568   KEEPCFLAGS=$CFLAGS
12569   KEEPLIBS=$LIBS
12570   KEEPLDFLAGS=$LDFLAGS
12571
12572 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12573 if test "${with_arts_prefix+set}" = set; then
12574   withval="$with_arts_prefix"
12575   arts_prefix="$withval"
12576 else
12577   arts_prefix=""
12578 fi;
12579 # Check whether --enable-artstest or --disable-artstest was given.
12580 if test "${enable_artstest+set}" = set; then
12581   enableval="$enable_artstest"
12582
12583 else
12584   enable_artstest=yes
12585 fi;
12586
12587   if test x$arts_prefix != x ; then
12588      arts_args="$arts_args --prefix=$arts_prefix"
12589      if test x${ARTS_CONFIG+set} != xset ; then
12590         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12591      fi
12592   fi
12593
12594   # Extract the first word of "artsc-config", so it can be a program name with args.
12595 set dummy artsc-config; ac_word=$2
12596 echo "$as_me:$LINENO: checking for $ac_word" >&5
12597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12598 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12599   echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601   case $ARTS_CONFIG in
12602   [\\/]* | ?:[\\/]*)
12603   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12604   ;;
12605   *)
12606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609   IFS=$as_save_IFS
12610   test -z "$as_dir" && as_dir=.
12611   for ac_exec_ext in '' $ac_executable_extensions; do
12612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12615     break 2
12616   fi
12617 done
12618 done
12619
12620   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12621   ;;
12622 esac
12623 fi
12624 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12625
12626 if test -n "$ARTS_CONFIG"; then
12627   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12628 echo "${ECHO_T}$ARTS_CONFIG" >&6
12629 else
12630   echo "$as_me:$LINENO: result: no" >&5
12631 echo "${ECHO_T}no" >&6
12632 fi
12633
12634   min_arts_version=0.9.5
12635   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12636 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12637   no_arts=""
12638   if test "$ARTS_CONFIG" = "no" ; then
12639     no_arts=yes
12640   else
12641     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12642     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12643
12644     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12645            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12646     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12647            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12648     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12649            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12650     if test "x$enable_artstest" = "xyes" ; then
12651       ac_save_CFLAGS="$CFLAGS"
12652       ac_save_LIBS="$LIBS"
12653       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12654       LIBS="$LIBS $ARTS_LIBS"
12655       rm -f conf.artstest
12656       if test "$cross_compiling" = yes; then
12657   echo $ac_n "cross compiling; assumed OK... $ac_c"
12658 else
12659   cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665
12666 #include <stdio.h>
12667 #include <stdlib.h>
12668 #include <string.h>
12669 #include <artsc.h>
12670
12671 char*
12672 my_strdup (char *str)
12673 {
12674   char *new_str;
12675
12676   if (str)
12677     {
12678       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12679       strcpy (new_str, str);
12680     }
12681   else
12682     new_str = NULL;
12683
12684   return new_str;
12685 }
12686
12687 int main ()
12688 {
12689   int major, minor, micro;
12690   char *tmp_version;
12691
12692   system ("touch conf.artstest");
12693
12694   /* HP/UX 9 (%@#!) writes to sscanf strings */
12695   tmp_version = my_strdup("$min_arts_version");
12696   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12697      printf("%s, bad version string\n", "$min_arts_version");
12698      exit(1);
12699    }
12700
12701    if (($arts_major_version > major) ||
12702       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12703       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12704     {
12705       return 0;
12706     }
12707   else
12708     {
12709       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12710       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12711       printf("*** best to upgrade to the required version.\n");
12712       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12713       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12714       printf("*** config.cache before re-running configure\n");
12715       return 1;
12716     }
12717 }
12718
12719
12720 _ACEOF
12721 rm -f conftest$ac_exeext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12723   (eval $ac_link) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728   (eval $ac_try) 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; }; then
12732   :
12733 else
12734   echo "$as_me: program exited with status $ac_status" >&5
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ( exit $ac_status )
12739 no_arts=yes
12740 fi
12741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12742 fi
12743        CFLAGS="$ac_save_CFLAGS"
12744        LIBS="$ac_save_LIBS"
12745      fi
12746   fi
12747   if test "x$no_arts" = x ; then
12748      echo "$as_me:$LINENO: result: yes" >&5
12749 echo "${ECHO_T}yes" >&6
12750      :
12751   else
12752      echo "$as_me:$LINENO: result: no" >&5
12753 echo "${ECHO_T}no" >&6
12754      if test "$ARTS_CONFIG" = "no" ; then
12755        echo "*** The artsc-config script installed by ARTS could not be found"
12756        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12757        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12758        echo "*** full path to artsc-config."
12759      else
12760        if test -f conf.artstest ; then
12761         :
12762        else
12763           echo "*** Could not run ARTS test program, checking why..."
12764           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12765           LIBS="$LIBS $ARTS_LIBS"
12766           cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h.  */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h.  */
12772
12773 #include <stdio.h>
12774 #include <artsc.h>
12775
12776 int
12777 main ()
12778 {
12779  return 0;
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786   (eval $ac_link) 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -z "$ac_c_werror_flag"
12794                          || test ! -s conftest.err'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; } &&
12800          { ac_try='test -s conftest$ac_exeext'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806    echo "*** The test program compiled, but did not run. This usually means"
12807           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12808           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12809           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12810           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12811           echo "*** is required on your system"
12812           echo "***"
12813           echo "*** If you have an old version installed, it is best to remove it, although"
12814           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819  echo "*** The test program failed to compile or link. See the file config.log for the"
12820           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12821           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12822           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12823 fi
12824 rm -f conftest.err conftest.$ac_objext \
12825       conftest$ac_exeext conftest.$ac_ext
12826           CFLAGS="$ac_save_CFLAGS"
12827           LIBS="$ac_save_LIBS"
12828        fi
12829      fi
12830      ARTS_CFLAGS=""
12831      ARTS_LIBS=""
12832      :
12833   fi
12834
12835
12836   rm -f conf.artstest
12837
12838   CFLAGS=$KEEPCFLAGS
12839   LIBS=$KEEPLIBS
12840   LDFLAGS=$KEEPLDFLAGS
12841   if test "x$no_arts" = x; then
12842         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12843     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12844     for f in $ARTS_CFLAGS; do
12845     case ".$f" in
12846         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12847         *)              CFLAGS="$CPPFLAGS $f" ;;
12848     esac
12849 done
12850
12851     LIBS="$LIBS $ARTS_LIBS"
12852   else
12853     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12854 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12855   fi
12856 else
12857   echo "$as_me:$LINENO: result: no" >&5
12858 echo "${ECHO_T}no" >&6
12859 fi
12860
12861 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12862 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12863 if test "x$au_enable_esd" = xyes; then
12864   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12865 echo "${ECHO_T}yes, configuring esd" >&6
12866   KEEPCFLAGS=$CFLAGS
12867   KEEPLIBS=$LIBS
12868   KEEPLDFLAGS=$LDFLAGS
12869
12870 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12871 if test "${with_esd_prefix+set}" = set; then
12872   withval="$with_esd_prefix"
12873   esd_prefix="$withval"
12874 else
12875   esd_prefix=""
12876 fi;
12877
12878 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12879 if test "${with_esd_exec_prefix+set}" = set; then
12880   withval="$with_esd_exec_prefix"
12881   esd_exec_prefix="$withval"
12882 else
12883   esd_exec_prefix=""
12884 fi;
12885 # Check whether --enable-esdtest or --disable-esdtest was given.
12886 if test "${enable_esdtest+set}" = set; then
12887   enableval="$enable_esdtest"
12888
12889 else
12890   enable_esdtest=yes
12891 fi;
12892
12893   if test x$esd_exec_prefix != x ; then
12894      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12895      if test x${ESD_CONFIG+set} != xset ; then
12896         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12897      fi
12898   fi
12899   if test x$esd_prefix != x ; then
12900      esd_args="$esd_args --prefix=$esd_prefix"
12901      if test x${ESD_CONFIG+set} != xset ; then
12902         ESD_CONFIG=$esd_prefix/bin/esd-config
12903      fi
12904   fi
12905
12906   # Extract the first word of "esd-config", so it can be a program name with args.
12907 set dummy esd-config; ac_word=$2
12908 echo "$as_me:$LINENO: checking for $ac_word" >&5
12909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12910 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12911   echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913   case $ESD_CONFIG in
12914   [\\/]* | ?:[\\/]*)
12915   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12916   ;;
12917   *)
12918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12920 do
12921   IFS=$as_save_IFS
12922   test -z "$as_dir" && as_dir=.
12923   for ac_exec_ext in '' $ac_executable_extensions; do
12924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12927     break 2
12928   fi
12929 done
12930 done
12931
12932   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12933   ;;
12934 esac
12935 fi
12936 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12937
12938 if test -n "$ESD_CONFIG"; then
12939   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12940 echo "${ECHO_T}$ESD_CONFIG" >&6
12941 else
12942   echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6
12944 fi
12945
12946   min_esd_version=0.2.7
12947   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12948 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12949   no_esd=""
12950   if test "$ESD_CONFIG" = "no" ; then
12951     no_esd=yes
12952   else
12953
12954
12955     ac_ext=c
12956 ac_cpp='$CPP $CPPFLAGS'
12957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12960
12961     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12962     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12963
12964     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12965            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12966     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12967            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12968     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12969            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12970     if test "x$enable_esdtest" = "xyes" ; then
12971       ac_save_CFLAGS="$CFLAGS"
12972       ac_save_LIBS="$LIBS"
12973       CFLAGS="$CFLAGS $ESD_CFLAGS"
12974       LIBS="$LIBS $ESD_LIBS"
12975       rm -f conf.esdtest
12976       if test "$cross_compiling" = yes; then
12977   echo $ac_n "cross compiling; assumed OK... $ac_c"
12978 else
12979   cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985
12986 #include <stdio.h>
12987 #include <stdlib.h>
12988 #include <string.h>
12989 #include <esd.h>
12990
12991 char*
12992 my_strdup (char *str)
12993 {
12994   char *new_str;
12995
12996   if (str)
12997     {
12998       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12999       strcpy (new_str, str);
13000     }
13001   else
13002     new_str = NULL;
13003
13004   return new_str;
13005 }
13006
13007 int main ()
13008 {
13009   int major, minor, micro;
13010   char *tmp_version;
13011
13012   system ("touch conf.esdtest");
13013
13014   /* HP/UX 9 (%@#!) writes to sscanf strings */
13015   tmp_version = my_strdup("$min_esd_version");
13016   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13017      printf("%s, bad version string\n", "$min_esd_version");
13018      exit(1);
13019    }
13020
13021    if (($esd_major_version > major) ||
13022       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13023       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13024     {
13025       return 0;
13026     }
13027   else
13028     {
13029       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13030       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13031       printf("*** best to upgrade to the required version.\n");
13032       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13033       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13034       printf("*** config.cache before re-running configure\n");
13035       return 1;
13036     }
13037 }
13038
13039
13040 _ACEOF
13041 rm -f conftest$ac_exeext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13043   (eval $ac_link) 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   :
13053 else
13054   echo "$as_me: program exited with status $ac_status" >&5
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058 ( exit $ac_status )
13059 no_esd=yes
13060 fi
13061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13062 fi
13063        CFLAGS="$ac_save_CFLAGS"
13064        LIBS="$ac_save_LIBS"
13065        ac_ext=c
13066 ac_cpp='$CPP $CPPFLAGS'
13067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13070
13071      fi
13072   fi
13073   if test "x$no_esd" = x ; then
13074      echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6
13076      :
13077   else
13078      echo "$as_me:$LINENO: result: no" >&5
13079 echo "${ECHO_T}no" >&6
13080      if test "$ESD_CONFIG" = "no" ; then
13081        echo "*** The esd-config script installed by ESD could not be found"
13082        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13083        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13084        echo "*** full path to esd-config."
13085      else
13086        if test -f conf.esdtest ; then
13087         :
13088        else
13089           echo "*** Could not run ESD test program, checking why..."
13090           CFLAGS="$CFLAGS $ESD_CFLAGS"
13091           LIBS="$LIBS $ESD_LIBS"
13092
13093
13094           ac_ext=c
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13099
13100           cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h.  */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h.  */
13106
13107 #include <stdio.h>
13108 #include <esd.h>
13109
13110 int
13111 main ()
13112 {
13113  return 0;
13114   ;
13115   return 0;
13116 }
13117 _ACEOF
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120   (eval $ac_link) 2>conftest.er1
13121   ac_status=$?
13122   grep -v '^ *+' conftest.er1 >conftest.err
13123   rm -f conftest.er1
13124   cat conftest.err >&5
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } &&
13127          { ac_try='test -z "$ac_c_werror_flag"
13128                          || test ! -s conftest.err'
13129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130   (eval $ac_try) 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); }; } &&
13134          { ac_try='test -s conftest$ac_exeext'
13135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136   (eval $ac_try) 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }; }; then
13140    echo "*** The test program compiled, but did not run. This usually means"
13141           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13142           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13143           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13144           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13145           echo "*** is required on your system"
13146           echo "***"
13147           echo "*** If you have an old version installed, it is best to remove it, although"
13148           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153  echo "*** The test program failed to compile or link. See the file config.log for the"
13154           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13155           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13156           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13157 fi
13158 rm -f conftest.err conftest.$ac_objext \
13159       conftest$ac_exeext conftest.$ac_ext
13160           CFLAGS="$ac_save_CFLAGS"
13161           LIBS="$ac_save_LIBS"
13162           ac_ext=c
13163 ac_cpp='$CPP $CPPFLAGS'
13164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13167
13168        fi
13169      fi
13170      ESD_CFLAGS=""
13171      ESD_LIBS=""
13172      :
13173   fi
13174
13175
13176   rm -f conf.esdtest
13177
13178   CFLAGS=$KEEPCFLAGS
13179   LIBS=$KEEPLIBS
13180   LDFLAGS=$KEEPLDFLAGS
13181   if test "x$no_esd" = x; then
13182         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13183     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13184     for f in $ESD_CFLAGS; do
13185     case ".$f" in
13186         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13187         *)              CFLAGS="$CPPFLAGS $f" ;;
13188     esac
13189 done
13190
13191     LIBS="$LIBS $ESD_LIBS"
13192   else
13193     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13194 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13195   fi
13196 else
13197   echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6
13199 fi
13200
13201 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13202 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13203 if test "x$au_enable_portaudio" = xyes; then
13204   echo "$as_me:$LINENO: result: yes" >&5
13205 echo "${ECHO_T}yes" >&6
13206   if test "x$CYGNUS" = xyes ||test "x$MSYS" = xyes; then
13207         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13208         EXTRALIBS="$EXTRALIBS -lportaudio"
13209         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13210   else
13211         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13212         EXTRALIBS="$EXTRALIBS -lportaudio"
13213         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13214   fi
13215 else
13216   echo "$as_me:$LINENO: result: no" >&5
13217 echo "${ECHO_T}no" >&6
13218 fi
13219
13220 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13221 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13222 if test "x$au_enable_jack" = xyes; then
13223   echo "$as_me:$LINENO: result: yes" >&5
13224 echo "${ECHO_T}yes" >&6
13225   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13226   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13227   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13228 else
13229   echo "$as_me:$LINENO: result: no" >&5
13230 echo "${ECHO_T}no" >&6
13231 fi
13232
13233 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13234 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13235 if test "x$au_enable_ao" = xyes; then
13236   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13237 echo "${ECHO_T}yes, configuring ao" >&6
13238
13239 # Check whether --with-ao or --without-ao was given.
13240 if test "${with_ao+set}" = set; then
13241   withval="$with_ao"
13242   ao_prefix="$withval"
13243 else
13244   ao_prefix=""
13245 fi;
13246
13247 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13248 if test "${with_ao_libraries+set}" = set; then
13249   withval="$with_ao_libraries"
13250   ao_libraries="$withval"
13251 else
13252   ao_libraries=""
13253 fi;
13254
13255 # Check whether --with-ao-includes or --without-ao-includes was given.
13256 if test "${with_ao_includes+set}" = set; then
13257   withval="$with_ao_includes"
13258   ao_includes="$withval"
13259 else
13260   ao_includes=""
13261 fi;
13262 # Check whether --enable-aotest or --disable-aotest was given.
13263 if test "${enable_aotest+set}" = set; then
13264   enableval="$enable_aotest"
13265
13266 else
13267   enable_aotest=yes
13268 fi;
13269
13270
13271   if test "x$ao_libraries" != "x" ; then
13272     AO_LIBS="-L$ao_libraries"
13273   elif test "x$ao_prefix" != "x"; then
13274     AO_LIBS="-L$ao_prefix/lib"
13275   elif test "x$prefix" != "xNONE"; then
13276     AO_LIBS="-L$prefix/lib"
13277   fi
13278
13279   if test "x$ao_includes" != "x" ; then
13280     AO_CFLAGS="-I$ao_includes"
13281   elif test "x$ao_prefix" != "x"; then
13282     AO_CFLAGS="-I$ao_prefix/include"
13283   elif test "x$prefix" != "xNONE"; then
13284     AO_CFLAGS="-I$prefix/include"
13285   fi
13286
13287   # see where dl* and friends live
13288
13289 for ac_func in dlopen
13290 do
13291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13292 echo "$as_me:$LINENO: checking for $ac_func" >&5
13293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13294 if eval "test \"\${$as_ac_var+set}\" = set"; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13305 #define $ac_func innocuous_$ac_func
13306
13307 /* System header to define __stub macros and hopefully few prototypes,
13308     which can conflict with char $ac_func (); below.
13309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13310     <limits.h> exists even on freestanding compilers.  */
13311
13312 #ifdef __STDC__
13313 # include <limits.h>
13314 #else
13315 # include <assert.h>
13316 #endif
13317
13318 #undef $ac_func
13319
13320 /* Override any gcc2 internal prototype to avoid an error.  */
13321 #ifdef __cplusplus
13322 extern "C"
13323 {
13324 #endif
13325 /* We use char because int might match the return type of a gcc2
13326    builtin and then its argument prototype would still apply.  */
13327 char $ac_func ();
13328 /* The GNU C library defines this for functions which it implements
13329     to always fail with ENOSYS.  Some functions are actually named
13330     something starting with __ and the normal name is an alias.  */
13331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13332 choke me
13333 #else
13334 char (*f) () = $ac_func;
13335 #endif
13336 #ifdef __cplusplus
13337 }
13338 #endif
13339
13340 int
13341 main ()
13342 {
13343 return f != $ac_func;
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 rm -f conftest.$ac_objext conftest$ac_exeext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13350   (eval $ac_link) 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } &&
13357          { ac_try='test -z "$ac_c_werror_flag"
13358                          || test ! -s conftest.err'
13359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360   (eval $ac_try) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; } &&
13364          { ac_try='test -s conftest$ac_exeext'
13365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366   (eval $ac_try) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); }; }; then
13370   eval "$as_ac_var=yes"
13371 else
13372   echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 eval "$as_ac_var=no"
13376 fi
13377 rm -f conftest.err conftest.$ac_objext \
13378       conftest$ac_exeext conftest.$ac_ext
13379 fi
13380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13382 if test `eval echo '${'$as_ac_var'}'` = yes; then
13383   cat >>confdefs.h <<_ACEOF
13384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13385 _ACEOF
13386  AO_DL_LIBS=""
13387 else
13388
13389     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13390 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13391 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394   ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-ldl  $LIBS"
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h.  */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h.  */
13402
13403 /* Override any gcc2 internal prototype to avoid an error.  */
13404 #ifdef __cplusplus
13405 extern "C"
13406 #endif
13407 /* We use char because int might match the return type of a gcc2
13408    builtin and then its argument prototype would still apply.  */
13409 char dlopen ();
13410 int
13411 main ()
13412 {
13413 dlopen ();
13414   ;
13415   return 0;
13416 }
13417 _ACEOF
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13420   (eval $ac_link) 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } &&
13427          { ac_try='test -z "$ac_c_werror_flag"
13428                          || test ! -s conftest.err'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; } &&
13434          { ac_try='test -s conftest$ac_exeext'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; }; then
13440   ac_cv_lib_dl_dlopen=yes
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_cv_lib_dl_dlopen=no
13446 fi
13447 rm -f conftest.err conftest.$ac_objext \
13448       conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13450 fi
13451 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13453 if test $ac_cv_lib_dl_dlopen = yes; then
13454   AO_DL_LIBS="-ldl"
13455 else
13456
13457       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13458       your system may not be supported." >&5
13459 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13460       your system may not be supported." >&2;}
13461
13462 fi
13463
13464
13465 fi
13466 done
13467
13468
13469   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13470
13471   echo "$as_me:$LINENO: checking for ao" >&5
13472 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13473   no_ao=""
13474
13475
13476   if test "x$enable_aotest" = "xyes" ; then
13477     ac_save_CFLAGS="$CFLAGS"
13478     ac_save_LIBS="$LIBS"
13479     CFLAGS="$CFLAGS $AO_CFLAGS"
13480     LIBS="$LIBS $AO_LIBS"
13481       rm -f conf.aotest
13482       if test "$cross_compiling" = yes; then
13483   echo $ac_n "cross compiling; assumed OK... $ac_c"
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491
13492 #include <stdio.h>
13493 #include <stdlib.h>
13494 #include <string.h>
13495 #include <ao/ao.h>
13496
13497 int main ()
13498 {
13499   system("touch conf.aotest");
13500   return 0;
13501 }
13502
13503
13504 _ACEOF
13505 rm -f conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507   (eval $ac_link) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516   :
13517 else
13518   echo "$as_me: program exited with status $ac_status" >&5
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ( exit $ac_status )
13523 no_ao=yes
13524 fi
13525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13526 fi
13527        CFLAGS="$ac_save_CFLAGS"
13528        LIBS="$ac_save_LIBS"
13529   fi
13530
13531   if test "x$no_ao" = "x" ; then
13532      echo "$as_me:$LINENO: result: yes" >&5
13533 echo "${ECHO_T}yes" >&6
13534      :
13535   else
13536      echo "$as_me:$LINENO: result: no" >&5
13537 echo "${ECHO_T}no" >&6
13538      if test -f conf.aotest ; then
13539        :
13540      else
13541        echo "*** Could not run ao test program, checking why..."
13542        CFLAGS="$CFLAGS $AO_CFLAGS"
13543        LIBS="$LIBS $AO_LIBS"
13544        cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h.  */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h.  */
13550
13551 #include <stdio.h>
13552 #include <ao/ao.h>
13553
13554 int
13555 main ()
13556 {
13557  return 0;
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564   (eval $ac_link) 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -z "$ac_c_werror_flag"
13572                          || test ! -s conftest.err'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; } &&
13578          { ac_try='test -s conftest$ac_exeext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584    echo "*** The test program compiled, but did not run. This usually means"
13585        echo "*** that the run-time linker is not finding ao or finding the wrong"
13586        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13587        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13588        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13589        echo "*** is required on your system"
13590        echo "***"
13591        echo "*** If you have an old version installed, it is best to remove it, although"
13592        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597  echo "*** The test program failed to compile or link. See the file config.log for the"
13598        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13599        echo "*** or that you have moved ao since it was installed."
13600 fi
13601 rm -f conftest.err conftest.$ac_objext \
13602       conftest$ac_exeext conftest.$ac_ext
13603        CFLAGS="$ac_save_CFLAGS"
13604        LIBS="$ac_save_LIBS"
13605      fi
13606      AO_CFLAGS=""
13607      AO_LIBS=""
13608      :
13609   fi
13610
13611
13612   rm -f conf.aotest
13613
13614   if test "x$no_ao" = "x" ; then
13615     echo "$as_me:$LINENO: result: yes" >&5
13616 echo "${ECHO_T}yes" >&6
13617     EXTRADEFS="$EXTRADEFS -DAU_AO"
13618     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13619     for f in $AO_CFLAGS; do
13620     case ".$f" in
13621         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13622         *)              CFLAGS="$CPPFLAGS $f" ;;
13623     esac
13624 done
13625
13626     LIBS="$LIBS $AO_LIBS"
13627   else
13628     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13629 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13630   fi
13631 else
13632   echo "$as_me:$LINENO: result: no" >&5
13633 echo "${ECHO_T}no" >&6
13634 fi
13635
13636 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13637 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13638 if test "x$au_enable_vorbis" = xyes; then
13639   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13640 echo "${ECHO_T}yes, configuring vorbis" >&6
13641
13642 # Check whether --with-ogg or --without-ogg was given.
13643 if test "${with_ogg+set}" = set; then
13644   withval="$with_ogg"
13645   ogg_prefix="$withval"
13646 else
13647   ogg_prefix=""
13648 fi;
13649
13650 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13651 if test "${with_ogg_libraries+set}" = set; then
13652   withval="$with_ogg_libraries"
13653   ogg_libraries="$withval"
13654 else
13655   ogg_libraries=""
13656 fi;
13657
13658 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13659 if test "${with_ogg_includes+set}" = set; then
13660   withval="$with_ogg_includes"
13661   ogg_includes="$withval"
13662 else
13663   ogg_includes=""
13664 fi;
13665 # Check whether --enable-oggtest or --disable-oggtest was given.
13666 if test "${enable_oggtest+set}" = set; then
13667   enableval="$enable_oggtest"
13668
13669 else
13670   enable_oggtest=yes
13671 fi;
13672
13673   if test "x$ogg_libraries" != "x" ; then
13674     OGG_LIBS="-L$ogg_libraries"
13675   elif test "x$ogg_prefix" != "x" ; then
13676     OGG_LIBS="-L$ogg_prefix/lib"
13677   elif test "x$prefix" != "xNONE" ; then
13678     OGG_LIBS="-L$prefix/lib"
13679   fi
13680
13681   OGG_LIBS="$OGG_LIBS -logg"
13682
13683   if test "x$ogg_includes" != "x" ; then
13684     OGG_CFLAGS="-I$ogg_includes"
13685   elif test "x$ogg_prefix" != "x" ; then
13686     OGG_CFLAGS="-I$ogg_prefix/include"
13687   elif test "x$prefix" != "xNONE"; then
13688     OGG_CFLAGS="-I$prefix/include"
13689   fi
13690
13691   echo "$as_me:$LINENO: checking for Ogg" >&5
13692 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13693   no_ogg=""
13694
13695
13696   if test "x$enable_oggtest" = "xyes" ; then
13697     ac_save_CFLAGS="$CFLAGS"
13698     ac_save_LIBS="$LIBS"
13699     CFLAGS="$CFLAGS $OGG_CFLAGS"
13700     LIBS="$LIBS $OGG_LIBS"
13701       rm -f conf.oggtest
13702       if test "$cross_compiling" = yes; then
13703   echo $ac_n "cross compiling; assumed OK... $ac_c"
13704 else
13705   cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711
13712 #include <stdio.h>
13713 #include <stdlib.h>
13714 #include <string.h>
13715 #include <ogg/ogg.h>
13716
13717 int main ()
13718 {
13719   system("touch conf.oggtest");
13720   return 0;
13721 }
13722
13723
13724 _ACEOF
13725 rm -f conftest$ac_exeext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13727   (eval $ac_link) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; }; then
13736   :
13737 else
13738   echo "$as_me: program exited with status $ac_status" >&5
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ( exit $ac_status )
13743 no_ogg=yes
13744 fi
13745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13746 fi
13747        CFLAGS="$ac_save_CFLAGS"
13748        LIBS="$ac_save_LIBS"
13749   fi
13750
13751   if test "x$no_ogg" = "x" ; then
13752      echo "$as_me:$LINENO: result: yes" >&5
13753 echo "${ECHO_T}yes" >&6
13754
13755
13756 # Check whether --with-vorbis or --without-vorbis was given.
13757 if test "${with_vorbis+set}" = set; then
13758   withval="$with_vorbis"
13759   vorbis_prefix="$withval"
13760 else
13761   vorbis_prefix=""
13762 fi;
13763
13764 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13765 if test "${with_vorbis_libraries+set}" = set; then
13766   withval="$with_vorbis_libraries"
13767   vorbis_libraries="$withval"
13768 else
13769   vorbis_libraries=""
13770 fi;
13771
13772 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13773 if test "${with_vorbis_includes+set}" = set; then
13774   withval="$with_vorbis_includes"
13775   vorbis_includes="$withval"
13776 else
13777   vorbis_includes=""
13778 fi;
13779 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13780 if test "${enable_vorbistest+set}" = set; then
13781   enableval="$enable_vorbistest"
13782
13783 else
13784   enable_vorbistest=yes
13785 fi;
13786
13787   if test "x$vorbis_libraries" != "x" ; then
13788     VORBIS_LIBS="-L$vorbis_libraries"
13789   elif test "x$vorbis_prefix" != "x" ; then
13790     VORBIS_LIBS="-L$vorbis_prefix/lib"
13791   elif test "x$prefix" != "xNONE"; then
13792     VORBIS_LIBS="-L$prefix/lib"
13793   fi
13794
13795   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13796   VORBISFILE_LIBS="-lvorbisfile"
13797   VORBISENC_LIBS="-lvorbisenc"
13798
13799   if test "x$vorbis_includes" != "x" ; then
13800     VORBIS_CFLAGS="-I$vorbis_includes"
13801   elif test "x$vorbis_prefix" != "x" ; then
13802     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13803   elif test "x$prefix" != "xNONE"; then
13804     VORBIS_CFLAGS="-I$prefix/include"
13805   fi
13806
13807
13808   echo "$as_me:$LINENO: checking for Vorbis" >&5
13809 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13810   no_vorbis=""
13811
13812
13813   if test "x$enable_vorbistest" = "xyes" ; then
13814     ac_save_CFLAGS="$CFLAGS"
13815     ac_save_LIBS="$LIBS"
13816     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13817     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13818       rm -f conf.vorbistest
13819       if test "$cross_compiling" = yes; then
13820   echo $ac_n "cross compiling; assumed OK... $ac_c"
13821 else
13822   cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828
13829 #include <stdio.h>
13830 #include <stdlib.h>
13831 #include <string.h>
13832 #include <vorbis/codec.h>
13833
13834 int main ()
13835 {
13836   system("touch conf.vorbistest");
13837   return 0;
13838 }
13839
13840
13841 _ACEOF
13842 rm -f conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844   (eval $ac_link) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849   (eval $ac_try) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; }; then
13853   :
13854 else
13855   echo "$as_me: program exited with status $ac_status" >&5
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 ( exit $ac_status )
13860 no_vorbis=yes
13861 fi
13862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13863 fi
13864        CFLAGS="$ac_save_CFLAGS"
13865        LIBS="$ac_save_LIBS"
13866   fi
13867
13868   if test "x$no_vorbis" = "x" ; then
13869      echo "$as_me:$LINENO: result: yes" >&5
13870 echo "${ECHO_T}yes" >&6
13871
13872       have_vorbis=yes
13873       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13874       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13875       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13876       if test "x$CYGNUS" = "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       if test "x$MSYS" = "xyes"; then
13881       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13882           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13883       fi
13884
13885   else
13886      echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6
13888      if test -f conf.vorbistest ; then
13889        :
13890      else
13891        echo "*** Could not run Vorbis test program, checking why..."
13892        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13893        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13894        cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h.  */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h.  */
13900
13901 #include <stdio.h>
13902 #include <vorbis/codec.h>
13903
13904 int
13905 main ()
13906 {
13907  return 0;
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914   (eval $ac_link) 2>conftest.er1
13915   ac_status=$?
13916   grep -v '^ *+' conftest.er1 >conftest.err
13917   rm -f conftest.er1
13918   cat conftest.err >&5
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); } &&
13921          { ac_try='test -z "$ac_c_werror_flag"
13922                          || test ! -s conftest.err'
13923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924   (eval $ac_try) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; } &&
13928          { ac_try='test -s conftest$ac_exeext'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934    echo "*** The test program compiled, but did not run. This usually means"
13935        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13936        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13937        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13938        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13939        echo "*** is required on your system"
13940        echo "***"
13941        echo "*** If you have an old version installed, it is best to remove it, although"
13942        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13946
13947  echo "*** The test program failed to compile or link. See the file config.log for the"
13948        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13949        echo "*** or that you have moved Vorbis since it was installed."
13950 fi
13951 rm -f conftest.err conftest.$ac_objext \
13952       conftest$ac_exeext conftest.$ac_ext
13953        CFLAGS="$ac_save_CFLAGS"
13954        LIBS="$ac_save_LIBS"
13955      fi
13956      VORBIS_CFLAGS=""
13957      VORBIS_LIBS=""
13958      VORBISFILE_LIBS=""
13959      VORBISENC_LIBS=""
13960
13961       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13962 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13963
13964   fi
13965
13966
13967
13968
13969   rm -f conf.vorbistest
13970
13971
13972   else
13973      echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6
13975      if test -f conf.oggtest ; then
13976        :
13977      else
13978        echo "*** Could not run Ogg test program, checking why..."
13979        CFLAGS="$CFLAGS $OGG_CFLAGS"
13980        LIBS="$LIBS $OGG_LIBS"
13981        cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987
13988 #include <stdio.h>
13989 #include <ogg/ogg.h>
13990
13991 int
13992 main ()
13993 {
13994  return 0;
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 rm -f conftest.$ac_objext conftest$ac_exeext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14001   (eval $ac_link) 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } &&
14008          { ac_try='test -z "$ac_c_werror_flag"
14009                          || test ! -s conftest.err'
14010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011   (eval $ac_try) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }; } &&
14015          { ac_try='test -s conftest$ac_exeext'
14016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017   (eval $ac_try) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; }; then
14021    echo "*** The test program compiled, but did not run. This usually means"
14022        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14023        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14024        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14025        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14026        echo "*** is required on your system"
14027        echo "***"
14028        echo "*** If you have an old version installed, it is best to remove it, although"
14029        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14030 else
14031   echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034  echo "*** The test program failed to compile or link. See the file config.log for the"
14035        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14036        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14037        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14038 fi
14039 rm -f conftest.err conftest.$ac_objext \
14040       conftest$ac_exeext conftest.$ac_ext
14041        CFLAGS="$ac_save_CFLAGS"
14042        LIBS="$ac_save_LIBS"
14043      fi
14044      OGG_CFLAGS=""
14045      OGG_LIBS=""
14046
14047     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14048 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14049     have_vorbis=no
14050
14051   fi
14052
14053
14054   rm -f conf.oggtest
14055
14056 else
14057   echo "$as_me:$LINENO: result: no" >&5
14058 echo "${ECHO_T}no" >&6
14059 fi
14060
14061 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes ; then
14062   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14063 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14064   if test "x$au_enable_flac" = xyes; then
14065     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14066 echo "${ECHO_T}yes, configuring flac" >&6
14067     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14068
14069 # Check whether --with-libFLAC or --without-libFLAC was given.
14070 if test "${with_libFLAC+set}" = set; then
14071   withval="$with_libFLAC"
14072   libFLAC_prefix="$withval"
14073 else
14074   libFLAC_prefix=""
14075 fi;
14076
14077 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14078 if test "${with_libFLAC_libraries+set}" = set; then
14079   withval="$with_libFLAC_libraries"
14080   libFLAC_libraries="$withval"
14081 else
14082   libFLAC_libraries=""
14083 fi;
14084
14085 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14086 if test "${with_libFLAC_includes+set}" = set; then
14087   withval="$with_libFLAC_includes"
14088   libFLAC_includes="$withval"
14089 else
14090   libFLAC_includes=""
14091 fi;
14092 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14093 if test "${enable_libFLACtest+set}" = set; then
14094   enableval="$enable_libFLACtest"
14095
14096 else
14097   enable_libFLACtest=yes
14098 fi;
14099
14100   if test "x$libFLAC_libraries" != "x" ; then
14101     LIBFLAC_LIBS="-L$libFLAC_libraries"
14102   elif test "x$libFLAC_prefix" != "x" ; then
14103     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14104   elif test "x$prefix" != "xNONE" ; then
14105     LIBFLAC_LIBS="-L$prefix/lib"
14106   fi
14107
14108   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14109
14110   if test "x$libFLAC_includes" != "x" ; then
14111     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14112   elif test "x$libFLAC_prefix" != "x" ; then
14113     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14114   elif test "$prefix" != "xNONE"; then
14115     LIBFLAC_CFLAGS="-I$prefix/include"
14116   fi
14117
14118   echo "$as_me:$LINENO: checking for libFLAC" >&5
14119 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14120   no_libFLAC=""
14121
14122
14123   if test "x$enable_libFLACtest" = "xyes" ; then
14124     ac_save_CFLAGS="$CFLAGS"
14125     ac_save_CXXFLAGS="$CXXFLAGS"
14126     ac_save_LIBS="$LIBS"
14127     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14128     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14129     LIBS="$LIBS $LIBFLAC_LIBS"
14130       rm -f conf.libFLACtest
14131       if test "$cross_compiling" = yes; then
14132   echo $ac_n "cross compiling; assumed OK... $ac_c"
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140
14141 #include <stdio.h>
14142 #include <stdlib.h>
14143 #include <string.h>
14144 #include <FLAC/format.h>
14145
14146 int main ()
14147 {
14148   system("touch conf.libFLACtest");
14149   return 0;
14150 }
14151
14152
14153 _ACEOF
14154 rm -f conftest$ac_exeext
14155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156   (eval $ac_link) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }; then
14165   :
14166 else
14167   echo "$as_me: program exited with status $ac_status" >&5
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 ( exit $ac_status )
14172 no_libFLAC=yes
14173 fi
14174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14175 fi
14176        CFLAGS="$ac_save_CFLAGS"
14177        LIBS="$ac_save_LIBS"
14178   fi
14179
14180   if test "x$no_libFLAC" = "x" ; then
14181      echo "$as_me:$LINENO: result: yes" >&5
14182 echo "${ECHO_T}yes" >&6
14183
14184       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14185       for f in $LIBFLAC_CFLAGS; do
14186     case ".$f" in
14187         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14188         *)              CFLAGS="$CPPFLAGS $f" ;;
14189     esac
14190 done
14191
14192       LIBS="$LIBS $LIBFLAC_LIBS"
14193
14194   else
14195      echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6
14197      if test -f conf.libFLACtest ; then
14198        :
14199      else
14200        echo "*** Could not run libFLAC test program, checking why..."
14201        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14202        LIBS="$LIBS $LIBFLAC_LIBS"
14203        cat >conftest.$ac_ext <<_ACEOF
14204 /* confdefs.h.  */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h.  */
14209
14210 #include <stdio.h>
14211 #include <FLAC/format.h>
14212
14213 int
14214 main ()
14215 {
14216  return 0;
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14223   (eval $ac_link) 2>conftest.er1
14224   ac_status=$?
14225   grep -v '^ *+' conftest.er1 >conftest.err
14226   rm -f conftest.er1
14227   cat conftest.err >&5
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); } &&
14230          { ac_try='test -z "$ac_c_werror_flag"
14231                          || test ! -s conftest.err'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; } &&
14237          { ac_try='test -s conftest$ac_exeext'
14238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239   (eval $ac_try) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; }; then
14243    echo "*** The test program compiled, but did not run. This usually means"
14244        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14245        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14246        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14247        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14248        echo "*** is required on your system"
14249        echo "***"
14250        echo "*** If you have an old version installed, it is best to remove it, although"
14251        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14252 else
14253   echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256  echo "*** The test program failed to compile or link. See the file config.log for the"
14257        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14258        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14259        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14260 fi
14261 rm -f conftest.err conftest.$ac_objext \
14262       conftest$ac_exeext conftest.$ac_ext
14263        CFLAGS="$ac_save_CFLAGS"
14264        LIBS="$ac_save_LIBS"
14265      fi
14266      LIBFLAC_CFLAGS=""
14267      LIBFLAC_LIBS=""
14268      :
14269   fi
14270
14271
14272   rm -f conf.libFLACtest
14273
14274
14275 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14276 if test "${with_libOggFLAC+set}" = set; then
14277   withval="$with_libOggFLAC"
14278   libOggFLAC_prefix="$withval"
14279 else
14280   libOggFLAC_prefix=""
14281 fi;
14282
14283 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14284 if test "${with_libOggFLAC_libraries+set}" = set; then
14285   withval="$with_libOggFLAC_libraries"
14286   libOggFLAC_libraries="$withval"
14287 else
14288   libOggFLAC_libraries=""
14289 fi;
14290
14291 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14292 if test "${with_libOggFLAC_includes+set}" = set; then
14293   withval="$with_libOggFLAC_includes"
14294   libOggFLAC_includes="$withval"
14295 else
14296   libOggFLAC_includes=""
14297 fi;
14298 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14299 if test "${enable_libOggFLACtest+set}" = set; then
14300   enableval="$enable_libOggFLACtest"
14301
14302 else
14303   enable_libOggFLACtest=yes
14304 fi;
14305
14306   if test "x$libOggFLAC_libraries" != "x" ; then
14307     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14308   elif test "x$libOggFLAC_prefix" != "x" ; then
14309     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14310   elif test "x$prefix" != "xNONE" ; then
14311     LIBOGGFLAC_LIBS="-L$prefix/lib"
14312   fi
14313
14314   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14315
14316   if test "x$libOggFLAC_includes" != "x" ; then
14317     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14318   elif test "x$libOggFLAC_prefix" != "x" ; then
14319     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14320   elif test "$prefix" != "xNONE"; then
14321     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14322   fi
14323
14324   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14325 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14326   no_libOggFLAC=""
14327
14328
14329   if test "x$enable_libOggFLACtest" = "xyes" ; then
14330     ac_save_CFLAGS="$CFLAGS"
14331     ac_save_CXXFLAGS="$CXXFLAGS"
14332     ac_save_LIBS="$LIBS"
14333     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14334     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14335     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14336       rm -f conf.libOggFLACtest
14337       if test "$cross_compiling" = yes; then
14338   echo $ac_n "cross compiling; assumed OK... $ac_c"
14339 else
14340   cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h.  */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h.  */
14346
14347 #include <stdio.h>
14348 #include <stdlib.h>
14349 #include <string.h>
14350 #include <OggFLAC/stream_decoder.h>
14351
14352 int main ()
14353 {
14354   system("touch conf.libOggFLACtest");
14355   return 0;
14356 }
14357
14358
14359 _ACEOF
14360 rm -f conftest$ac_exeext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362   (eval $ac_link) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   :
14372 else
14373   echo "$as_me: program exited with status $ac_status" >&5
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 ( exit $ac_status )
14378 no_libOggFLAC=yes
14379 fi
14380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14381 fi
14382        CFLAGS="$ac_save_CFLAGS"
14383        LIBS="$ac_save_LIBS"
14384   fi
14385
14386   if test "x$no_libOggFLAC" = "x" ; then
14387      echo "$as_me:$LINENO: result: yes" >&5
14388 echo "${ECHO_T}yes" >&6
14389
14390       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14391       for f in $LIBOGGFLAC_CFLAGS; do
14392     case ".$f" in
14393         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14394         *)              CFLAGS="$CPPFLAGS $f" ;;
14395     esac
14396 done
14397
14398       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14399
14400   else
14401      echo "$as_me:$LINENO: result: no" >&5
14402 echo "${ECHO_T}no" >&6
14403      if test -f conf.libOggFLACtest ; then
14404        :
14405      else
14406        echo "*** Could not run libOggFLAC test program, checking why..."
14407        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14408        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14409        cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h.  */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h.  */
14415
14416 #include <stdio.h>
14417 #include <OggFLAC/stream_decoder.h>
14418
14419 int
14420 main ()
14421 {
14422  return 0;
14423   ;
14424   return 0;
14425 }
14426 _ACEOF
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429   (eval $ac_link) 2>conftest.er1
14430   ac_status=$?
14431   grep -v '^ *+' conftest.er1 >conftest.err
14432   rm -f conftest.er1
14433   cat conftest.err >&5
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } &&
14436          { ac_try='test -z "$ac_c_werror_flag"
14437                          || test ! -s conftest.err'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; } &&
14443          { ac_try='test -s conftest$ac_exeext'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449    echo "*** The test program compiled, but did not run. This usually means"
14450        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14451        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14452        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14453        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14454        echo "*** is required on your system"
14455        echo "***"
14456        echo "*** If you have an old version installed, it is best to remove it, although"
14457        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14458 else
14459   echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462  echo "*** The test program failed to compile or link. See the file config.log for the"
14463        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14464        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14465        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14466 fi
14467 rm -f conftest.err conftest.$ac_objext \
14468       conftest$ac_exeext conftest.$ac_ext
14469        CFLAGS="$ac_save_CFLAGS"
14470        LIBS="$ac_save_LIBS"
14471      fi
14472      LIBOGGFLAC_CFLAGS=""
14473      LIBOGGFLAC_LIBS=""
14474      :
14475   fi
14476
14477
14478   rm -f conf.libOggFLACtest
14479
14480   else
14481     echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6
14483   fi
14484 else
14485   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14486 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14487   if test "x$au_enable_flac" = xyes; then
14488     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14489 echo "${ECHO_T}yes, configuring flac" >&6
14490     SYSEXTRAS="$SYSEXTRAS flac_a.c"
14491
14492 # Check whether --with-libFLAC or --without-libFLAC was given.
14493 if test "${with_libFLAC+set}" = set; then
14494   withval="$with_libFLAC"
14495   libFLAC_prefix="$withval"
14496 else
14497   libFLAC_prefix=""
14498 fi;
14499
14500 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14501 if test "${with_libFLAC_libraries+set}" = set; then
14502   withval="$with_libFLAC_libraries"
14503   libFLAC_libraries="$withval"
14504 else
14505   libFLAC_libraries=""
14506 fi;
14507
14508 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14509 if test "${with_libFLAC_includes+set}" = set; then
14510   withval="$with_libFLAC_includes"
14511   libFLAC_includes="$withval"
14512 else
14513   libFLAC_includes=""
14514 fi;
14515 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14516 if test "${enable_libFLACtest+set}" = set; then
14517   enableval="$enable_libFLACtest"
14518
14519 else
14520   enable_libFLACtest=yes
14521 fi;
14522
14523   if test "x$libFLAC_libraries" != "x" ; then
14524     LIBFLAC_LIBS="-L$libFLAC_libraries"
14525   elif test "x$libFLAC_prefix" != "x" ; then
14526     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14527   elif test "x$prefix" != "xNONE" ; then
14528     LIBFLAC_LIBS="-L$prefix/lib"
14529   fi
14530
14531   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14532
14533   if test "x$libFLAC_includes" != "x" ; then
14534     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14535   elif test "x$libFLAC_prefix" != "x" ; then
14536     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14537   elif test "$prefix" != "xNONE"; then
14538     LIBFLAC_CFLAGS="-I$prefix/include"
14539   fi
14540
14541   echo "$as_me:$LINENO: checking for libFLAC" >&5
14542 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14543   no_libFLAC=""
14544
14545
14546   if test "x$enable_libFLACtest" = "xyes" ; then
14547     ac_save_CFLAGS="$CFLAGS"
14548     ac_save_CXXFLAGS="$CXXFLAGS"
14549     ac_save_LIBS="$LIBS"
14550     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14551     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14552     LIBS="$LIBS $LIBFLAC_LIBS"
14553       rm -f conf.libFLACtest
14554       if test "$cross_compiling" = yes; then
14555   echo $ac_n "cross compiling; assumed OK... $ac_c"
14556 else
14557   cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h.  */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h.  */
14563
14564 #include <stdio.h>
14565 #include <stdlib.h>
14566 #include <string.h>
14567 #include <FLAC/format.h>
14568
14569 int main ()
14570 {
14571   system("touch conf.libFLACtest");
14572   return 0;
14573 }
14574
14575
14576 _ACEOF
14577 rm -f conftest$ac_exeext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14579   (eval $ac_link) 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; }; then
14588   :
14589 else
14590   echo "$as_me: program exited with status $ac_status" >&5
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 ( exit $ac_status )
14595 no_libFLAC=yes
14596 fi
14597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14598 fi
14599        CFLAGS="$ac_save_CFLAGS"
14600        LIBS="$ac_save_LIBS"
14601   fi
14602
14603   if test "x$no_libFLAC" = "x" ; then
14604      echo "$as_me:$LINENO: result: yes" >&5
14605 echo "${ECHO_T}yes" >&6
14606
14607       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14608       for f in $LIBFLAC_CFLAGS; do
14609     case ".$f" in
14610         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14611         *)              CFLAGS="$CPPFLAGS $f" ;;
14612     esac
14613 done
14614
14615       LIBS="$LIBS $LIBFLAC_LIBS"
14616
14617   else
14618      echo "$as_me:$LINENO: result: no" >&5
14619 echo "${ECHO_T}no" >&6
14620      if test -f conf.libFLACtest ; then
14621        :
14622      else
14623        echo "*** Could not run libFLAC test program, checking why..."
14624        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14625        LIBS="$LIBS $LIBFLAC_LIBS"
14626        cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h.  */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h.  */
14632
14633 #include <stdio.h>
14634 #include <FLAC/format.h>
14635
14636 int
14637 main ()
14638 {
14639  return 0;
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646   (eval $ac_link) 2>conftest.er1
14647   ac_status=$?
14648   grep -v '^ *+' conftest.er1 >conftest.err
14649   rm -f conftest.er1
14650   cat conftest.err >&5
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } &&
14653          { ac_try='test -z "$ac_c_werror_flag"
14654                          || test ! -s conftest.err'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; } &&
14660          { ac_try='test -s conftest$ac_exeext'
14661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662   (eval $ac_try) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; }; then
14666    echo "*** The test program compiled, but did not run. This usually means"
14667        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14668        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14669        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14670        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14671        echo "*** is required on your system"
14672        echo "***"
14673        echo "*** If you have an old version installed, it is best to remove it, although"
14674        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679  echo "*** The test program failed to compile or link. See the file config.log for the"
14680        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14681        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14682        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14683 fi
14684 rm -f conftest.err conftest.$ac_objext \
14685       conftest$ac_exeext conftest.$ac_ext
14686        CFLAGS="$ac_save_CFLAGS"
14687        LIBS="$ac_save_LIBS"
14688      fi
14689      LIBFLAC_CFLAGS=""
14690      LIBFLAC_LIBS=""
14691      :
14692   fi
14693
14694
14695   rm -f conf.libFLACtest
14696
14697
14698 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14699 if test "${with_libOggFLAC+set}" = set; then
14700   withval="$with_libOggFLAC"
14701   libOggFLAC_prefix="$withval"
14702 else
14703   libOggFLAC_prefix=""
14704 fi;
14705
14706 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14707 if test "${with_libOggFLAC_libraries+set}" = set; then
14708   withval="$with_libOggFLAC_libraries"
14709   libOggFLAC_libraries="$withval"
14710 else
14711   libOggFLAC_libraries=""
14712 fi;
14713
14714 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14715 if test "${with_libOggFLAC_includes+set}" = set; then
14716   withval="$with_libOggFLAC_includes"
14717   libOggFLAC_includes="$withval"
14718 else
14719   libOggFLAC_includes=""
14720 fi;
14721 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14722 if test "${enable_libOggFLACtest+set}" = set; then
14723   enableval="$enable_libOggFLACtest"
14724
14725 else
14726   enable_libOggFLACtest=yes
14727 fi;
14728
14729   if test "x$libOggFLAC_libraries" != "x" ; then
14730     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14731   elif test "x$libOggFLAC_prefix" != "x" ; then
14732     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14733   elif test "x$prefix" != "xNONE" ; then
14734     LIBOGGFLAC_LIBS="-L$prefix/lib"
14735   fi
14736
14737   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14738
14739   if test "x$libOggFLAC_includes" != "x" ; then
14740     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14741   elif test "x$libOggFLAC_prefix" != "x" ; then
14742     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14743   elif test "$prefix" != "xNONE"; then
14744     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14745   fi
14746
14747   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14748 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14749   no_libOggFLAC=""
14750
14751
14752   if test "x$enable_libOggFLACtest" = "xyes" ; then
14753     ac_save_CFLAGS="$CFLAGS"
14754     ac_save_CXXFLAGS="$CXXFLAGS"
14755     ac_save_LIBS="$LIBS"
14756     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14757     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14758     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14759       rm -f conf.libOggFLACtest
14760       if test "$cross_compiling" = yes; then
14761   echo $ac_n "cross compiling; assumed OK... $ac_c"
14762 else
14763   cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769
14770 #include <stdio.h>
14771 #include <stdlib.h>
14772 #include <string.h>
14773 #include <OggFLAC/stream_decoder.h>
14774
14775 int main ()
14776 {
14777   system("touch conf.libOggFLACtest");
14778   return 0;
14779 }
14780
14781
14782 _ACEOF
14783 rm -f conftest$ac_exeext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14785   (eval $ac_link) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790   (eval $ac_try) 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; }; then
14794   :
14795 else
14796   echo "$as_me: program exited with status $ac_status" >&5
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800 ( exit $ac_status )
14801 no_libOggFLAC=yes
14802 fi
14803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14804 fi
14805        CFLAGS="$ac_save_CFLAGS"
14806        LIBS="$ac_save_LIBS"
14807   fi
14808
14809   if test "x$no_libOggFLAC" = "x" ; then
14810      echo "$as_me:$LINENO: result: yes" >&5
14811 echo "${ECHO_T}yes" >&6
14812
14813       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14814       for f in $LIBOGGFLAC_CFLAGS; do
14815     case ".$f" in
14816         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14817         *)              CFLAGS="$CPPFLAGS $f" ;;
14818     esac
14819 done
14820
14821       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14822
14823   else
14824      echo "$as_me:$LINENO: result: no" >&5
14825 echo "${ECHO_T}no" >&6
14826      if test -f conf.libOggFLACtest ; then
14827        :
14828      else
14829        echo "*** Could not run libOggFLAC test program, checking why..."
14830        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14831        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14832        cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h.  */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h.  */
14838
14839 #include <stdio.h>
14840 #include <OggFLAC/stream_decoder.h>
14841
14842 int
14843 main ()
14844 {
14845  return 0;
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852   (eval $ac_link) 2>conftest.er1
14853   ac_status=$?
14854   grep -v '^ *+' conftest.er1 >conftest.err
14855   rm -f conftest.er1
14856   cat conftest.err >&5
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } &&
14859          { ac_try='test -z "$ac_c_werror_flag"
14860                          || test ! -s conftest.err'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest$ac_exeext'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }; then
14872    echo "*** The test program compiled, but did not run. This usually means"
14873        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14874        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14875        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14876        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14877        echo "*** is required on your system"
14878        echo "***"
14879        echo "*** If you have an old version installed, it is best to remove it, although"
14880        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885  echo "*** The test program failed to compile or link. See the file config.log for the"
14886        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14887        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14888        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14889 fi
14890 rm -f conftest.err conftest.$ac_objext \
14891       conftest$ac_exeext conftest.$ac_ext
14892        CFLAGS="$ac_save_CFLAGS"
14893        LIBS="$ac_save_LIBS"
14894      fi
14895      LIBOGGFLAC_CFLAGS=""
14896      LIBOGGFLAC_LIBS=""
14897      :
14898   fi
14899
14900
14901   rm -f conf.libOggFLACtest
14902
14903   else
14904     echo "$as_me:$LINENO: result: no" >&5
14905 echo "${ECHO_T}no" >&6
14906   fi
14907 fi
14908 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14909 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14910 if test "x$au_enable_speex" = xyes; then
14911   if test "${have_speex+set}" = set; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h.  */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h.  */
14920
14921   #include <speex.h>
14922   #include <ogg/ogg.h>
14923
14924 int
14925 main ()
14926 {
14927
14928     SpeexBits *dummy;
14929
14930   ;
14931   return 0;
14932 }
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936   (eval $ac_link) 2>conftest.er1
14937   ac_status=$?
14938   grep -v '^ *+' conftest.er1 >conftest.err
14939   rm -f conftest.er1
14940   cat conftest.err >&5
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } &&
14943          { ac_try='test -z "$ac_c_werror_flag"
14944                          || test ! -s conftest.err'
14945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946   (eval $ac_try) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; } &&
14950          { ac_try='test -s conftest$ac_exeext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   have_speex=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 have_speex=no
14962 fi
14963 rm -f conftest.err conftest.$ac_objext \
14964       conftest$ac_exeext conftest.$ac_ext
14965 fi
14966
14967   echo "$as_me:$LINENO: result: $have_speex" >&5
14968 echo "${ECHO_T}$have_speex" >&6
14969   if test "x$have_speex" = xyes; then
14970     SYSEXTRAS="$SYSEXTRAS speex_a.c"
14971     EXTRALIBS="$EXTRALIBS -lspeex -logg"
14972     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14973   fi
14974 else
14975   echo "$as_me:$LINENO: result: no" >&5
14976 echo "${ECHO_T}no" >&6
14977 fi
14978
14979 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14980 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14981 if test "x$au_enable_gogo" = xyes; then
14982   if test "x$CYGNUS" = "xyes"; then
14983     echo "$as_me:$LINENO: result: yes" >&5
14984 echo "${ECHO_T}yes" >&6
14985   else
14986     if test "x$MSYS" = "xyes"; then
14987     echo "$as_me:$LINENO: result: yes" >&5
14988 echo "${ECHO_T}yes" >&6
14989     else
14990       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14991 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14992     fi
14993   fi
14994   have_gogo=yes
14995   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14996   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14997   EXTRALIBS="$EXTRALIBS -lgogo"
14998 else
14999   echo "$as_me:$LINENO: result: no" >&5
15000 echo "${ECHO_T}no" >&6
15001 fi
15002
15003 if test "x$au_enable_none" = xyes; then
15004     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15005     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15006 fi
15007 echo "$as_me:$LINENO: checking default output mode" >&5
15008 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
15009 if test "x$DEFAULT_PLAYMODE" = x; then
15010   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15011 fi
15012 case ".$DEFAULT_PLAYMODE" in
15013   .default)  TIMIDITY_OUTPUT_ID=d ;;
15014   .oss)      TIMIDITY_OUTPUT_ID=d ;;
15015   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
15016   .sun)      TIMIDITY_OUTPUT_ID=d ;;
15017   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
15018   .irix)     TIMIDITY_OUTPUT_ID=d ;;
15019   .mme)      TIMIDITY_OUTPUT_ID=d ;;
15020   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
15021   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
15022   .w32)      TIMIDITY_OUTPUT_ID=d ;;
15023   .alib)     TIMIDITY_OUTPUT_ID=A ;;
15024   .nas)      TIMIDITY_OUTPUT_ID=n ;;
15025   .arts)     TIMIDITY_OUTPUT_ID=R ;;
15026   .esd)      TIMIDITY_OUTPUT_ID=e ;;
15027   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
15028   .wav)      TIMIDITY_OUTPUT_ID=w ;;
15029   .au)       TIMIDITY_OUTPUT_ID=u ;;
15030   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
15031   .list)     TIMIDITY_OUTPUT_ID=l ;;
15032   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
15033   .flac)     TIMIDITY_OUTPUT_ID=F ;;
15034   .speex)    TIMIDITY_OUTPUT_ID=S ;;
15035   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
15036   .jack)     TIMIDITY_OUTPUT_ID=j ;;
15037   *)         TIMIDITY_OUTPUT_ID= ;;
15038 esac
15039 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15040 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
15041
15042 #
15043 # Interface Section
15044 #
15045
15046 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
15047
15048 # Check whether --enable-interface or --disable-interface was given.
15049 if test "${enable_interface+set}" = set; then
15050   enableval="$enable_interface"
15051    for i in `echo $enableval | sed 's/,/ /g'`; do
15052       eval "enable_$i=yes"
15053     done
15054 fi;
15055
15056 #  Dynamic link configuration
15057 # Check whether --enable-dynamic or --disable-dynamic was given.
15058 if test "${enable_dynamic+set}" = set; then
15059   enableval="$enable_dynamic"
15060        if test "x$enable_dynamic" = xyes; then
15061       enable_dynamic=dynamic
15062     elif test "x$enable_dynamic" != xno; then
15063       for i in `echo $enableval | sed 's/,/ /g'`; do
15064         eval "enable_$i=dynamic"
15065       done
15066     fi
15067 fi;
15068
15069 join_targets=
15070 for i in $interface_targets; do
15071   eval "join_targets=$join_targets\$enable_$i"
15072 done
15073
15074 case ".$join_targets" in
15075 .*dynamic*) NEEDDLOPEN=yes;;
15076 *)          NEEDDLOPEN=no;;
15077 esac
15078
15079 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15080 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15081
15082 if test "$NEEDDLOPEN" = "yes"; then
15083   have_dl=no
15084
15085   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15086 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
15087 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096 #include <windows.h>
15097
15098
15099 int
15100 main ()
15101 {
15102 LoadLibrary(0);
15103   ;
15104   return 0;
15105 }
15106 _ACEOF
15107 rm -f conftest.$ac_objext conftest$ac_exeext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15109   (eval $ac_link) 2>conftest.er1
15110   ac_status=$?
15111   grep -v '^ *+' conftest.er1 >conftest.err
15112   rm -f conftest.er1
15113   cat conftest.err >&5
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } &&
15116          { ac_try='test -z "$ac_c_werror_flag"
15117                          || test ! -s conftest.err'
15118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119   (eval $ac_try) 2>&5
15120   ac_status=$?
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); }; } &&
15123          { ac_try='test -s conftest$ac_exeext'
15124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125   (eval $ac_try) 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; }; then
15129   wapi_cv_func_LoadLibrary=yes
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 wapi_cv_func_LoadLibrary=no
15135 fi
15136 rm -f conftest.err conftest.$ac_objext \
15137       conftest$ac_exeext conftest.$ac_ext
15138 fi
15139
15140 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15141   echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15143   have_dl=w32
15144 else
15145   echo "$as_me:$LINENO: result: no" >&5
15146 echo "${ECHO_T}no" >&6
15147 fi
15148
15149   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15150
15151   if test "$have_dl" = "no"; then
15152     echo "$as_me:$LINENO: checking for shl_load" >&5
15153 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15154 if test "${ac_cv_func_shl_load+set}" = set; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15165 #define shl_load innocuous_shl_load
15166
15167 /* System header to define __stub macros and hopefully few prototypes,
15168     which can conflict with char shl_load (); below.
15169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15170     <limits.h> exists even on freestanding compilers.  */
15171
15172 #ifdef __STDC__
15173 # include <limits.h>
15174 #else
15175 # include <assert.h>
15176 #endif
15177
15178 #undef shl_load
15179
15180 /* Override any gcc2 internal prototype to avoid an error.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 {
15184 #endif
15185 /* We use char because int might match the return type of a gcc2
15186    builtin and then its argument prototype would still apply.  */
15187 char shl_load ();
15188 /* The GNU C library defines this for functions which it implements
15189     to always fail with ENOSYS.  Some functions are actually named
15190     something starting with __ and the normal name is an alias.  */
15191 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15192 choke me
15193 #else
15194 char (*f) () = shl_load;
15195 #endif
15196 #ifdef __cplusplus
15197 }
15198 #endif
15199
15200 int
15201 main ()
15202 {
15203 return f != shl_load;
15204   ;
15205   return 0;
15206 }
15207 _ACEOF
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210   (eval $ac_link) 2>conftest.er1
15211   ac_status=$?
15212   grep -v '^ *+' conftest.er1 >conftest.err
15213   rm -f conftest.er1
15214   cat conftest.err >&5
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } &&
15217          { ac_try='test -z "$ac_c_werror_flag"
15218                          || test ! -s conftest.err'
15219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220   (eval $ac_try) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; } &&
15224          { ac_try='test -s conftest$ac_exeext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   ac_cv_func_shl_load=yes
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ac_cv_func_shl_load=no
15236 fi
15237 rm -f conftest.err conftest.$ac_objext \
15238       conftest$ac_exeext conftest.$ac_ext
15239 fi
15240 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15241 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15242 if test $ac_cv_func_shl_load = yes; then
15243   have_dl=hpux
15244 fi
15245
15246   fi
15247   if test "$have_dl" = "no"; then
15248             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15249 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15250 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15261 #define NSLinkModule innocuous_NSLinkModule
15262
15263 /* System header to define __stub macros and hopefully few prototypes,
15264     which can conflict with char NSLinkModule (); below.
15265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15266     <limits.h> exists even on freestanding compilers.  */
15267
15268 #ifdef __STDC__
15269 # include <limits.h>
15270 #else
15271 # include <assert.h>
15272 #endif
15273
15274 #undef NSLinkModule
15275
15276 /* Override any gcc2 internal prototype to avoid an error.  */
15277 #ifdef __cplusplus
15278 extern "C"
15279 {
15280 #endif
15281 /* We use char because int might match the return type of a gcc2
15282    builtin and then its argument prototype would still apply.  */
15283 char NSLinkModule ();
15284 /* The GNU C library defines this for functions which it implements
15285     to always fail with ENOSYS.  Some functions are actually named
15286     something starting with __ and the normal name is an alias.  */
15287 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15288 choke me
15289 #else
15290 char (*f) () = NSLinkModule;
15291 #endif
15292 #ifdef __cplusplus
15293 }
15294 #endif
15295
15296 int
15297 main ()
15298 {
15299 return f != NSLinkModule;
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306   (eval $ac_link) 2>conftest.er1
15307   ac_status=$?
15308   grep -v '^ *+' conftest.er1 >conftest.err
15309   rm -f conftest.er1
15310   cat conftest.err >&5
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); } &&
15313          { ac_try='test -z "$ac_c_werror_flag"
15314                          || test ! -s conftest.err'
15315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316   (eval $ac_try) 2>&5
15317   ac_status=$?
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); }; } &&
15320          { ac_try='test -s conftest$ac_exeext'
15321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322   (eval $ac_try) 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; }; then
15326   ac_cv_func_NSLinkModule=yes
15327 else
15328   echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331 ac_cv_func_NSLinkModule=no
15332 fi
15333 rm -f conftest.err conftest.$ac_objext \
15334       conftest$ac_exeext conftest.$ac_ext
15335 fi
15336 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15337 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15338 if test $ac_cv_func_NSLinkModule = yes; then
15339   have_dl=dyld
15340 fi
15341
15342   fi
15343   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15344     have_dl=dlopen
15345   fi
15346   if test "$have_dl" = "no"; then
15347     echo "$as_me:$LINENO: checking for dlopen" >&5
15348 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15349 if test "${ac_cv_func_dlopen+set}" = set; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352   cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h.  */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h.  */
15358 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15360 #define dlopen innocuous_dlopen
15361
15362 /* System header to define __stub macros and hopefully few prototypes,
15363     which can conflict with char dlopen (); below.
15364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15365     <limits.h> exists even on freestanding compilers.  */
15366
15367 #ifdef __STDC__
15368 # include <limits.h>
15369 #else
15370 # include <assert.h>
15371 #endif
15372
15373 #undef dlopen
15374
15375 /* Override any gcc2 internal prototype to avoid an error.  */
15376 #ifdef __cplusplus
15377 extern "C"
15378 {
15379 #endif
15380 /* We use char because int might match the return type of a gcc2
15381    builtin and then its argument prototype would still apply.  */
15382 char dlopen ();
15383 /* The GNU C library defines this for functions which it implements
15384     to always fail with ENOSYS.  Some functions are actually named
15385     something starting with __ and the normal name is an alias.  */
15386 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15387 choke me
15388 #else
15389 char (*f) () = dlopen;
15390 #endif
15391 #ifdef __cplusplus
15392 }
15393 #endif
15394
15395 int
15396 main ()
15397 {
15398 return f != dlopen;
15399   ;
15400   return 0;
15401 }
15402 _ACEOF
15403 rm -f conftest.$ac_objext conftest$ac_exeext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15405   (eval $ac_link) 2>conftest.er1
15406   ac_status=$?
15407   grep -v '^ *+' conftest.er1 >conftest.err
15408   rm -f conftest.er1
15409   cat conftest.err >&5
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); } &&
15412          { ac_try='test -z "$ac_c_werror_flag"
15413                          || test ! -s conftest.err'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; } &&
15419          { ac_try='test -s conftest$ac_exeext'
15420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421   (eval $ac_try) 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }; }; then
15425   ac_cv_func_dlopen=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ac_cv_func_dlopen=no
15431 fi
15432 rm -f conftest.err conftest.$ac_objext \
15433       conftest$ac_exeext conftest.$ac_ext
15434 fi
15435 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15436 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15437 if test $ac_cv_func_dlopen = yes; then
15438   have_dl=dlopen
15439 fi
15440
15441   fi
15442   if test "$have_dl" = "no"; then
15443     echo "$as_me:$LINENO: checking for dld_init" >&5
15444 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15445 if test "${ac_cv_func_dld_init+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15456 #define dld_init innocuous_dld_init
15457
15458 /* System header to define __stub macros and hopefully few prototypes,
15459     which can conflict with char dld_init (); below.
15460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461     <limits.h> exists even on freestanding compilers.  */
15462
15463 #ifdef __STDC__
15464 # include <limits.h>
15465 #else
15466 # include <assert.h>
15467 #endif
15468
15469 #undef dld_init
15470
15471 /* Override any gcc2 internal prototype to avoid an error.  */
15472 #ifdef __cplusplus
15473 extern "C"
15474 {
15475 #endif
15476 /* We use char because int might match the return type of a gcc2
15477    builtin and then its argument prototype would still apply.  */
15478 char dld_init ();
15479 /* The GNU C library defines this for functions which it implements
15480     to always fail with ENOSYS.  Some functions are actually named
15481     something starting with __ and the normal name is an alias.  */
15482 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15483 choke me
15484 #else
15485 char (*f) () = dld_init;
15486 #endif
15487 #ifdef __cplusplus
15488 }
15489 #endif
15490
15491 int
15492 main ()
15493 {
15494 return f != dld_init;
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 rm -f conftest.$ac_objext conftest$ac_exeext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15501   (eval $ac_link) 2>conftest.er1
15502   ac_status=$?
15503   grep -v '^ *+' conftest.er1 >conftest.err
15504   rm -f conftest.er1
15505   cat conftest.err >&5
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } &&
15508          { ac_try='test -z "$ac_c_werror_flag"
15509                          || test ! -s conftest.err'
15510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511   (eval $ac_try) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; } &&
15515          { ac_try='test -s conftest$ac_exeext'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }; then
15521   ac_cv_func_dld_init=yes
15522 else
15523   echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ac_cv_func_dld_init=no
15527 fi
15528 rm -f conftest.err conftest.$ac_objext \
15529       conftest$ac_exeext conftest.$ac_ext
15530 fi
15531 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15532 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15533 if test $ac_cv_func_dld_init = yes; then
15534   have_dl=dld
15535 fi
15536
15537   fi
15538   if test "$have_dl" = "no"; then
15539     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15540 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15541 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15542   echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544   ac_check_lib_save_LIBS=$LIBS
15545 LIBS="-ldld  $LIBS"
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552
15553 /* Override any gcc2 internal prototype to avoid an error.  */
15554 #ifdef __cplusplus
15555 extern "C"
15556 #endif
15557 /* We use char because int might match the return type of a gcc2
15558    builtin and then its argument prototype would still apply.  */
15559 char dld_init ();
15560 int
15561 main ()
15562 {
15563 dld_init ();
15564   ;
15565   return 0;
15566 }
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570   (eval $ac_link) 2>conftest.er1
15571   ac_status=$?
15572   grep -v '^ *+' conftest.er1 >conftest.err
15573   rm -f conftest.er1
15574   cat conftest.err >&5
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); } &&
15577          { ac_try='test -z "$ac_c_werror_flag"
15578                          || test ! -s conftest.err'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest$ac_exeext'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590   ac_cv_lib_dld_dld_init=yes
15591 else
15592   echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 ac_cv_lib_dld_dld_init=no
15596 fi
15597 rm -f conftest.err conftest.$ac_objext \
15598       conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15600 fi
15601 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15602 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15603 if test $ac_cv_lib_dld_dld_init = yes; then
15604   have_dl=dld;lib_dl_opt=-ldld
15605 fi
15606
15607   fi
15608
15609   echo "$as_me:$LINENO: checking dynamic link method" >&5
15610 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15611   case "$have_dl" in
15612     dlopen)
15613       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15614 echo "${ECHO_T}use dl_dlopen.c" >&6
15615       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15616       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15617 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15618 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   case "$ac_cv_header_dlfcn_h" in
15622 yes) i_dlfcn=define;;
15623 *)   i_dlfcn=undef;;
15624 esac
15625 cat > dyna.c <<EOM
15626 fred () { }
15627 EOM
15628
15629 cat > fred.c <<EOM
15630 #include <stdio.h>
15631 #$i_dlfcn I_DLFCN
15632 #ifdef I_DLFCN
15633 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15634 #else
15635 #include <sys/types.h>
15636 #include <nlist.h>
15637 #include <link.h>
15638 #endif
15639
15640 extern int fred() ;
15641
15642 main()
15643 {
15644     void * handle ;
15645     void * symbol ;
15646 #ifndef RTLD_LAZY
15647     int mode = 1 ;
15648 #else
15649     int mode = RTLD_LAZY ;
15650 #endif
15651     handle = dlopen("./dyna.$so", mode) ;
15652     if (handle == NULL) {
15653         printf ("1\n") ;
15654         fflush (stdout) ;
15655         exit(0);
15656     }
15657     symbol = dlsym(handle, "fred") ;
15658     if (symbol == NULL) {
15659         /* try putting a leading underscore */
15660         symbol = dlsym(handle, "_fred") ;
15661         if (symbol == NULL) {
15662             printf ("2\n") ;
15663             fflush (stdout) ;
15664             exit(0);
15665         }
15666         printf ("3\n") ;
15667     }
15668     else
15669         printf ("4\n") ;
15670     fflush (stdout) ;
15671     exit(0);
15672 }
15673 EOM
15674 : Call the object file tmp-dyna.o in case dlext=o.
15675 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15676         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15677         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15678         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15679         xxx=`./fred`
15680         case $xxx in
15681         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15682 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15683                 ;;
15684         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15685 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15686                 ;;
15687         3)      timidity_cv_func_dlsym_underscore=yes
15688                 ;;
15689         4)      timidity_cv_func_dlsym_underscore=no
15690                 ;;
15691         esac
15692 else
15693         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15694 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15695 fi
15696 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15697
15698 fi
15699
15700 case "x$timidity_cv_func_dlsym_underscore" in
15701 xyes)
15702 cat >>confdefs.h <<\_ACEOF
15703 #define DLSYM_NEEDS_UNDERSCORE 1
15704 _ACEOF
15705
15706         echo "$as_me:$LINENO: result: yes" >&5
15707 echo "${ECHO_T}yes" >&6
15708         ;;
15709 xno)
15710         echo "$as_me:$LINENO: result: no" >&5
15711 echo "${ECHO_T}no" >&6
15712         ;;
15713 esac
15714
15715       ;;
15716     dld)
15717       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15718 echo "${ECHO_T}use dl_dld.c" >&6
15719       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15720       ;;
15721     hpux)
15722       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15723 echo "${ECHO_T}use dl_hpux.c" >&6
15724       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15725       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15726       ;;
15727     w32)
15728       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15729 echo "${ECHO_T}use dl_w32.c" >&6
15730       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15731       ;;
15732     dyld)
15733       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15734 echo "${ECHO_T}use dl_dyld.c" >&6
15735       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15736       ;;
15737     *)
15738       NEEDDLOPEN="no"
15739       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15740 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15741       ;;
15742   esac
15743 fi
15744
15745 if test "$NEEDDLOPEN" = "yes"; then
15746   cat >> confdefs.h <<EOF
15747 #define IA_DYNAMIC 1
15748 EOF
15749
15750
15751 cat >>confdefs.h <<_ACEOF
15752 #define SHARED_LIB_EXT ".$so"
15753 _ACEOF
15754
15755       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15756 fi
15757
15758
15759
15760 if test "$NEEDDLOPEN" = "yes"; then
15761   NEEDDLOPEN_TRUE=
15762   NEEDDLOPEN_FALSE='#'
15763 else
15764   NEEDDLOPEN_TRUE='#'
15765   NEEDDLOPEN_FALSE=
15766 fi
15767
15768
15769
15770
15771
15772 if false; then
15773   ENABLE_NCURSES_TRUE=
15774   ENABLE_NCURSES_FALSE='#'
15775 else
15776   ENABLE_NCURSES_TRUE='#'
15777   ENABLE_NCURSES_FALSE=
15778 fi
15779
15780 # Check whether --enable-ncurses or --disable-ncurses was given.
15781 if test "${enable_ncurses+set}" = set; then
15782   enableval="$enable_ncurses"
15783   case "x$enable_ncurses" in xyes|xdynamic)
15784
15785
15786 for ac_header in ncurses.h ncurses/curses.h curses.h
15787 do
15788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15790   echo "$as_me:$LINENO: checking for $ac_header" >&5
15791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 fi
15795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15797 else
15798   # Is the header compilable?
15799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15801 cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h.  */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h.  */
15807 $ac_includes_default
15808 #include <$ac_header>
15809 _ACEOF
15810 rm -f conftest.$ac_objext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15812   (eval $ac_compile) 2>conftest.er1
15813   ac_status=$?
15814   grep -v '^ *+' conftest.er1 >conftest.err
15815   rm -f conftest.er1
15816   cat conftest.err >&5
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -z "$ac_c_werror_flag"
15820                          || test ! -s conftest.err'
15821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822   (eval $ac_try) 2>&5
15823   ac_status=$?
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); }; } &&
15826          { ac_try='test -s conftest.$ac_objext'
15827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828   (eval $ac_try) 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); }; }; then
15832   ac_header_compiler=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837 ac_header_compiler=no
15838 fi
15839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15841 echo "${ECHO_T}$ac_header_compiler" >&6
15842
15843 # Is the header present?
15844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15846 cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852 #include <$ac_header>
15853 _ACEOF
15854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15856   ac_status=$?
15857   grep -v '^ *+' conftest.er1 >conftest.err
15858   rm -f conftest.er1
15859   cat conftest.err >&5
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } >/dev/null; then
15862   if test -s conftest.err; then
15863     ac_cpp_err=$ac_c_preproc_warn_flag
15864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15865   else
15866     ac_cpp_err=
15867   fi
15868 else
15869   ac_cpp_err=yes
15870 fi
15871 if test -z "$ac_cpp_err"; then
15872   ac_header_preproc=yes
15873 else
15874   echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876
15877   ac_header_preproc=no
15878 fi
15879 rm -f conftest.err conftest.$ac_ext
15880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15881 echo "${ECHO_T}$ac_header_preproc" >&6
15882
15883 # So?  What about this header?
15884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15885   yes:no: )
15886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15890     ac_header_preproc=yes
15891     ;;
15892   no:yes:* )
15893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15905     (
15906       cat <<\_ASBOX
15907 ## ------------------------------- ##
15908 ## Report this to root@mput.dip.jp ##
15909 ## ------------------------------- ##
15910 _ASBOX
15911     ) |
15912       sed "s/^/$as_me: WARNING:     /" >&2
15913     ;;
15914 esac
15915 echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920   eval "$as_ac_Header=\$ac_header_preproc"
15921 fi
15922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15924
15925 fi
15926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15927   cat >>confdefs.h <<_ACEOF
15928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15929 _ACEOF
15930
15931 fi
15932
15933 done
15934
15935
15936
15937   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15938     *yes*);;
15939     *)  for i in /usr/include /usr/local/include; do
15940           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15941             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15942 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15943             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15944             break
15945           fi
15946         done
15947         ;;
15948     esac
15949
15950     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15951 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15952 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955   ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lncurses  $LIBS"
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h.  */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h.  */
15963
15964 /* Override any gcc2 internal prototype to avoid an error.  */
15965 #ifdef __cplusplus
15966 extern "C"
15967 #endif
15968 /* We use char because int might match the return type of a gcc2
15969    builtin and then its argument prototype would still apply.  */
15970 char initscr ();
15971 int
15972 main ()
15973 {
15974 initscr ();
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15981   (eval $ac_link) 2>conftest.er1
15982   ac_status=$?
15983   grep -v '^ *+' conftest.er1 >conftest.err
15984   rm -f conftest.er1
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); } &&
15988          { ac_try='test -z "$ac_c_werror_flag"
15989                          || test ! -s conftest.err'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; } &&
15995          { ac_try='test -s conftest$ac_exeext'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; }; then
16001   ac_cv_lib_ncurses_initscr=yes
16002 else
16003   echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16005
16006 ac_cv_lib_ncurses_initscr=no
16007 fi
16008 rm -f conftest.err conftest.$ac_objext \
16009       conftest$ac_exeext conftest.$ac_ext
16010 LIBS=$ac_check_lib_save_LIBS
16011 fi
16012 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16013 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
16014 if test $ac_cv_lib_ncurses_initscr = yes; then
16015   lib_curses_opt=-lncurses
16016 else
16017         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16018 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
16019 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16020   echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022   ac_check_lib_save_LIBS=$LIBS
16023 LIBS="-lcurses $lib_user32_test $LIBS"
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030
16031 /* Override any gcc2 internal prototype to avoid an error.  */
16032 #ifdef __cplusplus
16033 extern "C"
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036    builtin and then its argument prototype would still apply.  */
16037 char PDC_set_ctrl_break ();
16038 int
16039 main ()
16040 {
16041 PDC_set_ctrl_break ();
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048   (eval $ac_link) 2>conftest.er1
16049   ac_status=$?
16050   grep -v '^ *+' conftest.er1 >conftest.err
16051   rm -f conftest.er1
16052   cat conftest.err >&5
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); } &&
16055          { ac_try='test -z "$ac_c_werror_flag"
16056                          || test ! -s conftest.err'
16057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058   (eval $ac_try) 2>&5
16059   ac_status=$?
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); }; } &&
16062          { ac_try='test -s conftest$ac_exeext'
16063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064   (eval $ac_try) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; }; then
16068   ac_cv_lib_curses_PDC_set_ctrl_break=yes
16069 else
16070   echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16072
16073 ac_cv_lib_curses_PDC_set_ctrl_break=no
16074 fi
16075 rm -f conftest.err conftest.$ac_objext \
16076       conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16078 fi
16079 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16080 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
16081 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16082    lib_curses_opt=-lcurses
16083
16084 cat >>confdefs.h <<\_ACEOF
16085 #define USE_PDCURSES 1
16086 _ACEOF
16087
16088             lib_user32_opt="$lib_user32_test"
16089
16090 else
16091             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16092 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
16093 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16094   echo $ECHO_N "(cached) $ECHO_C" >&6
16095 else
16096   ac_check_lib_save_LIBS=$LIBS
16097 LIBS="-lpdcurses  $LIBS"
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104
16105 /* Override any gcc2 internal prototype to avoid an error.  */
16106 #ifdef __cplusplus
16107 extern "C"
16108 #endif
16109 /* We use char because int might match the return type of a gcc2
16110    builtin and then its argument prototype would still apply.  */
16111 char PDC_set_ctrl_break ();
16112 int
16113 main ()
16114 {
16115 PDC_set_ctrl_break ();
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122   (eval $ac_link) 2>conftest.er1
16123   ac_status=$?
16124   grep -v '^ *+' conftest.er1 >conftest.err
16125   rm -f conftest.er1
16126   cat conftest.err >&5
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); } &&
16129          { ac_try='test -z "$ac_c_werror_flag"
16130                          || test ! -s conftest.err'
16131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132   (eval $ac_try) 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); }; } &&
16136          { ac_try='test -s conftest$ac_exeext'
16137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138   (eval $ac_try) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); }; }; then
16142   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16143 else
16144   echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16146
16147 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16148 fi
16149 rm -f conftest.err conftest.$ac_objext \
16150       conftest$ac_exeext conftest.$ac_ext
16151 LIBS=$ac_check_lib_save_LIBS
16152 fi
16153 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16154 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16155 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16156    lib_curses_opt=-lpdcurses
16157
16158 cat >>confdefs.h <<\_ACEOF
16159 #define USE_PDCURSES 1
16160 _ACEOF
16161
16162               lib_user32_opt="$lib_user32_test"
16163
16164 else
16165               case "$target" in
16166                 *openbsd*)
16167                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16168 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16169 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-lcurses  $LIBS"
16174 cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180
16181 /* Override any gcc2 internal prototype to avoid an error.  */
16182 #ifdef __cplusplus
16183 extern "C"
16184 #endif
16185 /* We use char because int might match the return type of a gcc2
16186    builtin and then its argument prototype would still apply.  */
16187 char initscr ();
16188 int
16189 main ()
16190 {
16191 initscr ();
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext conftest$ac_exeext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16198   (eval $ac_link) 2>conftest.er1
16199   ac_status=$?
16200   grep -v '^ *+' conftest.er1 >conftest.err
16201   rm -f conftest.er1
16202   cat conftest.err >&5
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } &&
16205          { ac_try='test -z "$ac_c_werror_flag"
16206                          || test ! -s conftest.err'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; } &&
16212          { ac_try='test -s conftest$ac_exeext'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; }; then
16218   ac_cv_lib_curses_initscr=yes
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223 ac_cv_lib_curses_initscr=no
16224 fi
16225 rm -f conftest.err conftest.$ac_objext \
16226       conftest$ac_exeext conftest.$ac_ext
16227 LIBS=$ac_check_lib_save_LIBS
16228 fi
16229 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16230 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16231 if test $ac_cv_lib_curses_initscr = yes; then
16232   lib_curses_opt=-lcurses
16233 else
16234    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16235 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16236                       enable_ncurses=no
16237 fi
16238
16239                   ;;
16240                 *)
16241                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
16242                     lib_curses_opt=libpdcurses.lib
16243
16244 cat >>confdefs.h <<\_ACEOF
16245 #define USE_PDCURSES 1
16246 _ACEOF
16247
16248                   else
16249                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16250 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16251                     enable_ncurses=no
16252                   fi
16253                   ;;
16254               esac
16255
16256 fi
16257
16258
16259 fi
16260
16261
16262 fi
16263
16264    ;; esac
16265 fi;
16266 case "x$enable_ncurses" in
16267 xyes)
16268   cat >> confdefs.h <<EOF
16269 #define IA_NCURSES 1
16270 EOF
16271
16272
16273
16274 if true; then
16275   ENABLE_NCURSES_TRUE=
16276   ENABLE_NCURSES_FALSE='#'
16277 else
16278   ENABLE_NCURSES_TRUE='#'
16279   ENABLE_NCURSES_FALSE=
16280 fi
16281
16282    LIBS="$LIBS $lib_curses_opt"
16283     case "$target" in
16284        *-*-freebsd123*)
16285          EXTRALIBS="$EXTRALIBS -lmytinfo"
16286          ;;
16287      esac
16288     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16289
16290   ;;
16291 xdynamic)
16292   dynamic_targets="$dynamic_targets interface_n.\$(so)"
16293    n_so_libs="$lib_curses_opt"
16294     case "$target" in
16295        *-*-freebsd123*)
16296          EXTRALIBS="$EXTRALIBS -lmytinfo"
16297          ;;
16298      esac
16299   ;;
16300 *)
16301
16302   ;;
16303 esac
16304
16305
16306
16307
16308
16309 if false; then
16310   ENABLE_SLANG_TRUE=
16311   ENABLE_SLANG_FALSE='#'
16312 else
16313   ENABLE_SLANG_TRUE='#'
16314   ENABLE_SLANG_FALSE=
16315 fi
16316
16317 # Check whether --enable-slang or --disable-slang was given.
16318 if test "${enable_slang+set}" = set; then
16319   enableval="$enable_slang"
16320   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16321 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16322 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325   ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lslang  $LIBS"
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333
16334 /* Override any gcc2 internal prototype to avoid an error.  */
16335 #ifdef __cplusplus
16336 extern "C"
16337 #endif
16338 /* We use char because int might match the return type of a gcc2
16339    builtin and then its argument prototype would still apply.  */
16340 char SLang_init_tty ();
16341 int
16342 main ()
16343 {
16344 SLang_init_tty ();
16345   ;
16346   return 0;
16347 }
16348 _ACEOF
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16351   (eval $ac_link) 2>conftest.er1
16352   ac_status=$?
16353   grep -v '^ *+' conftest.er1 >conftest.err
16354   rm -f conftest.er1
16355   cat conftest.err >&5
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } &&
16358          { ac_try='test -z "$ac_c_werror_flag"
16359                          || test ! -s conftest.err'
16360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361   (eval $ac_try) 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; } &&
16365          { ac_try='test -s conftest$ac_exeext'
16366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367   (eval $ac_try) 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; }; then
16371   ac_cv_lib_slang_SLang_init_tty=yes
16372 else
16373   echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 ac_cv_lib_slang_SLang_init_tty=no
16377 fi
16378 rm -f conftest.err conftest.$ac_objext \
16379       conftest$ac_exeext conftest.$ac_ext
16380 LIBS=$ac_check_lib_save_LIBS
16381 fi
16382 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16383 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16384 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16385   :
16386 else
16387    enable_slang=no
16388       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16389 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16390
16391 fi
16392
16393
16394
16395 for ac_header in slang/slang.h slang.h
16396 do
16397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16399   echo "$as_me:$LINENO: checking for $ac_header" >&5
16400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 fi
16404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16406 else
16407   # Is the header compilable?
16408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416 $ac_includes_default
16417 #include <$ac_header>
16418 _ACEOF
16419 rm -f conftest.$ac_objext
16420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16421   (eval $ac_compile) 2>conftest.er1
16422   ac_status=$?
16423   grep -v '^ *+' conftest.er1 >conftest.err
16424   rm -f conftest.er1
16425   cat conftest.err >&5
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } &&
16428          { ac_try='test -z "$ac_c_werror_flag"
16429                          || test ! -s conftest.err'
16430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431   (eval $ac_try) 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; } &&
16435          { ac_try='test -s conftest.$ac_objext'
16436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437   (eval $ac_try) 2>&5
16438   ac_status=$?
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); }; }; then
16441   ac_header_compiler=yes
16442 else
16443   echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446 ac_header_compiler=no
16447 fi
16448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16450 echo "${ECHO_T}$ac_header_compiler" >&6
16451
16452 # Is the header present?
16453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461 #include <$ac_header>
16462 _ACEOF
16463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } >/dev/null; then
16471   if test -s conftest.err; then
16472     ac_cpp_err=$ac_c_preproc_warn_flag
16473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16474   else
16475     ac_cpp_err=
16476   fi
16477 else
16478   ac_cpp_err=yes
16479 fi
16480 if test -z "$ac_cpp_err"; then
16481   ac_header_preproc=yes
16482 else
16483   echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486   ac_header_preproc=no
16487 fi
16488 rm -f conftest.err conftest.$ac_ext
16489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16490 echo "${ECHO_T}$ac_header_preproc" >&6
16491
16492 # So?  What about this header?
16493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16494   yes:no: )
16495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16499     ac_header_preproc=yes
16500     ;;
16501   no:yes:* )
16502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16514     (
16515       cat <<\_ASBOX
16516 ## ------------------------------- ##
16517 ## Report this to root@mput.dip.jp ##
16518 ## ------------------------------- ##
16519 _ASBOX
16520     ) |
16521       sed "s/^/$as_me: WARNING:     /" >&2
16522     ;;
16523 esac
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   eval "$as_ac_Header=\$ac_header_preproc"
16530 fi
16531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16533
16534 fi
16535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16536   cat >>confdefs.h <<_ACEOF
16537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16538 _ACEOF
16539
16540 fi
16541
16542 done
16543
16544    ;; esac
16545 fi;
16546 case "x$enable_slang" in
16547 xyes)
16548   cat >> confdefs.h <<EOF
16549 #define IA_SLANG 1
16550 EOF
16551
16552
16553
16554 if true; then
16555   ENABLE_SLANG_TRUE=
16556   ENABLE_SLANG_FALSE='#'
16557 else
16558   ENABLE_SLANG_TRUE='#'
16559   ENABLE_SLANG_FALSE=
16560 fi
16561
16562    LIBS="$LIBS -lslang"
16563     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16564
16565   ;;
16566 xdynamic)
16567   dynamic_targets="$dynamic_targets interface_s.\$(so)"
16568    s_so_libs="-lslang"
16569     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16570 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16571 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16572   echo $ECHO_N "(cached) $ECHO_C" >&6
16573 else
16574   ac_check_lib_save_LIBS=$LIBS
16575 LIBS="-ltermcap  $LIBS"
16576 cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582
16583 /* Override any gcc2 internal prototype to avoid an error.  */
16584 #ifdef __cplusplus
16585 extern "C"
16586 #endif
16587 /* We use char because int might match the return type of a gcc2
16588    builtin and then its argument prototype would still apply.  */
16589 char initscr ();
16590 int
16591 main ()
16592 {
16593 initscr ();
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600   (eval $ac_link) 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } &&
16607          { ac_try='test -z "$ac_c_werror_flag"
16608                          || test ! -s conftest.err'
16609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610   (eval $ac_try) 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; } &&
16614          { ac_try='test -s conftest$ac_exeext'
16615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616   (eval $ac_try) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; }; then
16620   ac_cv_lib_termcap_initscr=yes
16621 else
16622   echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16624
16625 ac_cv_lib_termcap_initscr=no
16626 fi
16627 rm -f conftest.err conftest.$ac_objext \
16628       conftest$ac_exeext conftest.$ac_ext
16629 LIBS=$ac_check_lib_save_LIBS
16630 fi
16631 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16632 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16633 if test $ac_cv_lib_termcap_initscr = yes; then
16634   s_so_libs="$s_so_libs -ltermcap"
16635 fi
16636
16637
16638   ;;
16639 *)
16640
16641   ;;
16642 esac
16643
16644
16645
16646
16647
16648 if false; then
16649   ENABLE_MOTIF_TRUE=
16650   ENABLE_MOTIF_FALSE='#'
16651 else
16652   ENABLE_MOTIF_TRUE='#'
16653   ENABLE_MOTIF_FALSE=
16654 fi
16655
16656 # Check whether --enable-motif or --disable-motif was given.
16657 if test "${enable_motif+set}" = set; then
16658   enableval="$enable_motif"
16659   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16660         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16661 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16662    { (exit 1); exit 1; }; }
16663     fi
16664     if test "x$have_xm" != xyes; then
16665       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16666 echo "$as_me: WARNING: Motif library is not found." >&2;}
16667       enable_motif=no
16668     fi
16669    ;; esac
16670 fi;
16671 case "x$enable_motif" in
16672 xyes)
16673   cat >> confdefs.h <<EOF
16674 #define IA_MOTIF 1
16675 EOF
16676
16677
16678
16679 if true; then
16680   ENABLE_MOTIF_TRUE=
16681   ENABLE_MOTIF_FALSE='#'
16682 else
16683   ENABLE_MOTIF_TRUE='#'
16684   ENABLE_MOTIF_FALSE=
16685 fi
16686
16687    lib_xm_opt=-lXm
16688     lib_xt_opt=-lXt
16689     lib_xext_opt=-lXext
16690     if test "x$have_xprelibs" = xyes; then
16691         lib_xprelibs_opt='-lSM -lICE'
16692     fi
16693     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16694
16695   ;;
16696 xdynamic)
16697   dynamic_targets="$dynamic_targets interface_m.\$(so)"
16698    if test x$have_xprelibs = xyes; then
16699       m_so_libs="-lXext -lSM -lICE"
16700     fi
16701     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16702
16703   ;;
16704 *)
16705
16706   ;;
16707 esac
16708
16709
16710
16711
16712
16713 if false; then
16714   ENABLE_TCLTK_TRUE=
16715   ENABLE_TCLTK_FALSE='#'
16716 else
16717   ENABLE_TCLTK_TRUE='#'
16718   ENABLE_TCLTK_FALSE=
16719 fi
16720
16721 # Check whether --enable-tcltk or --disable-tcltk was given.
16722 if test "${enable_tcltk+set}" = set; then
16723   enableval="$enable_tcltk"
16724   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16725         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16726 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16727    { (exit 1); exit 1; }; }
16728     fi
16729
16730         KEEPCPPFLAGS=$CPPFLAGS
16731     KEEPLDFLAGS=$LDFLAGS
16732     KEEPLIBS=$LIBS
16733
16734     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16735     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16736     LIBS="$LIBS $lib_dl_opt"
16737
16738     tcl_lib=
16739     tk_lib=
16740     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16741       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16742 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16743 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16744 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16745   echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747   ac_check_lib_save_LIBS=$LIBS
16748 LIBS="-l$l  $LIBS"
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755
16756 /* Override any gcc2 internal prototype to avoid an error.  */
16757 #ifdef __cplusplus
16758 extern "C"
16759 #endif
16760 /* We use char because int might match the return type of a gcc2
16761    builtin and then its argument prototype would still apply.  */
16762 char Tcl_Init ();
16763 int
16764 main ()
16765 {
16766 Tcl_Init ();
16767   ;
16768   return 0;
16769 }
16770 _ACEOF
16771 rm -f conftest.$ac_objext conftest$ac_exeext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773   (eval $ac_link) 2>conftest.er1
16774   ac_status=$?
16775   grep -v '^ *+' conftest.er1 >conftest.err
16776   rm -f conftest.er1
16777   cat conftest.err >&5
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } &&
16780          { ac_try='test -z "$ac_c_werror_flag"
16781                          || test ! -s conftest.err'
16782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783   (eval $ac_try) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; } &&
16787          { ac_try='test -s conftest$ac_exeext'
16788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789   (eval $ac_try) 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; }; then
16793   eval "$as_ac_Lib=yes"
16794 else
16795   echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16797
16798 eval "$as_ac_Lib=no"
16799 fi
16800 rm -f conftest.err conftest.$ac_objext \
16801       conftest$ac_exeext conftest.$ac_ext
16802 LIBS=$ac_check_lib_save_LIBS
16803 fi
16804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16805 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16806 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16807   tcl_lib=-l$l
16808 fi
16809 ;; esac
16810     done
16811     LIBS="$LIBS $tcl_lib"
16812     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16813       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16814 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16815 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16816 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   ac_check_lib_save_LIBS=$LIBS
16820 LIBS="-l$l  $LIBS"
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827
16828 /* Override any gcc2 internal prototype to avoid an error.  */
16829 #ifdef __cplusplus
16830 extern "C"
16831 #endif
16832 /* We use char because int might match the return type of a gcc2
16833    builtin and then its argument prototype would still apply.  */
16834 char Tk_Init ();
16835 int
16836 main ()
16837 {
16838 Tk_Init ();
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845   (eval $ac_link) 2>conftest.er1
16846   ac_status=$?
16847   grep -v '^ *+' conftest.er1 >conftest.err
16848   rm -f conftest.er1
16849   cat conftest.err >&5
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } &&
16852          { ac_try='test -z "$ac_c_werror_flag"
16853                          || test ! -s conftest.err'
16854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855   (eval $ac_try) 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; } &&
16859          { ac_try='test -s conftest$ac_exeext'
16860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861   (eval $ac_try) 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; }; then
16865   eval "$as_ac_Lib=yes"
16866 else
16867   echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 eval "$as_ac_Lib=no"
16871 fi
16872 rm -f conftest.err conftest.$ac_objext \
16873       conftest$ac_exeext conftest.$ac_ext
16874 LIBS=$ac_check_lib_save_LIBS
16875 fi
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16878 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16879   tk_lib=-l$l
16880 fi
16881 ;; esac
16882     done
16883
16884     LIBS=$KEEPLIBS
16885     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16886       CPPFLAGS=$KEEPCPPFLAGS
16887       LDFLAGS=$KEEPLDFLAGS
16888       enable_tcltk=no
16889       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16890 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16891     else
16892       tcltk_dep='tclIndex'
16893     fi
16894    ;; esac
16895 fi;
16896 case "x$enable_tcltk" in
16897 xyes)
16898   cat >> confdefs.h <<EOF
16899 #define IA_TCLTK 1
16900 EOF
16901
16902
16903
16904 if true; then
16905   ENABLE_TCLTK_TRUE=
16906   ENABLE_TCLTK_FALSE='#'
16907 else
16908   ENABLE_TCLTK_TRUE='#'
16909   ENABLE_TCLTK_FALSE=
16910 fi
16911
16912    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16913     case "$target" in
16914       *-*-bsdi*)
16915         EXTRALIBS="$EXTRALIBS -lipc"
16916         ;;
16917     esac
16918     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16919
16920   ;;
16921 xdynamic)
16922   dynamic_targets="$dynamic_targets interface_k.\$(so)"
16923    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16924     case "$target" in
16925       *-*-bsdi*)
16926         k_so_libs="$k_so_libs -lipc"
16927         ;;
16928     esac
16929     k_so_libs="$k_so_libs -lX11 -lm"
16930
16931   ;;
16932 *)
16933
16934   ;;
16935 esac
16936
16937
16938
16939
16940 if test "x$enable_tcltk" = "xdynamic"; then
16941   ENABLE_DYNAMIC_TCLTK_TRUE=
16942   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16943 else
16944   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16945   ENABLE_DYNAMIC_TCLTK_FALSE=
16946 fi
16947
16948
16949
16950
16951 if false; then
16952   ENABLE_EMACS_TRUE=
16953   ENABLE_EMACS_FALSE='#'
16954 else
16955   ENABLE_EMACS_TRUE='#'
16956   ENABLE_EMACS_FALSE=
16957 fi
16958
16959 # Check whether --enable-emacs or --disable-emacs was given.
16960 if test "${enable_emacs+set}" = set; then
16961   enableval="$enable_emacs"
16962   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16963 fi;
16964 case "x$enable_emacs" in
16965 xyes)
16966   cat >> confdefs.h <<EOF
16967 #define IA_EMACS 1
16968 EOF
16969
16970
16971
16972 if true; then
16973   ENABLE_EMACS_TRUE=
16974   ENABLE_EMACS_FALSE='#'
16975 else
16976   ENABLE_EMACS_TRUE='#'
16977   ENABLE_EMACS_FALSE=
16978 fi
16979
16980    ELFILES="$ELFILES timidity.el"
16981     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16982
16983   ;;
16984 xdynamic)
16985   dynamic_targets="$dynamic_targets interface_e.\$(so)"
16986    ELFILES="$ELFILES timidity.el"
16987   ;;
16988 *)
16989
16990   ;;
16991 esac
16992
16993
16994
16995
16996
16997 if false; then
16998   ENABLE_VT100_TRUE=
16999   ENABLE_VT100_FALSE='#'
17000 else
17001   ENABLE_VT100_TRUE='#'
17002   ENABLE_VT100_FALSE=
17003 fi
17004
17005 # Check whether --enable-vt100 or --disable-vt100 was given.
17006 if test "${enable_vt100+set}" = set; then
17007   enableval="$enable_vt100"
17008   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
17009 fi;
17010 case "x$enable_vt100" in
17011 xyes)
17012   cat >> confdefs.h <<EOF
17013 #define IA_VT100 1
17014 EOF
17015
17016
17017
17018 if true; then
17019   ENABLE_VT100_TRUE=
17020   ENABLE_VT100_FALSE='#'
17021 else
17022   ENABLE_VT100_TRUE='#'
17023   ENABLE_VT100_FALSE=
17024 fi
17025
17026    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17027   ;;
17028 xdynamic)
17029   dynamic_targets="$dynamic_targets interface_T.\$(so)"
17030
17031   ;;
17032 *)
17033
17034   ;;
17035 esac
17036
17037
17038
17039
17040
17041 if false; then
17042   ENABLE_XAW_TRUE=
17043   ENABLE_XAW_FALSE='#'
17044 else
17045   ENABLE_XAW_TRUE='#'
17046   ENABLE_XAW_FALSE=
17047 fi
17048
17049 # Check whether --enable-xaw or --disable-xaw was given.
17050 if test "${enable_xaw+set}" = set; then
17051   enableval="$enable_xaw"
17052   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17053         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17054 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17055    { (exit 1); exit 1; }; }
17056     fi
17057     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17058       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17059 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17060       enable_xaw=no
17061     fi  ;; esac
17062 fi;
17063 case "x$enable_xaw" in
17064 xyes)
17065   cat >> confdefs.h <<EOF
17066 #define IA_XAW 1
17067 EOF
17068
17069
17070
17071 if true; then
17072   ENABLE_XAW_TRUE=
17073   ENABLE_XAW_FALSE='#'
17074 else
17075   ENABLE_XAW_TRUE='#'
17076   ENABLE_XAW_FALSE=
17077 fi
17078
17079        if test "x$have_xext" = xyes; then
17080       lib_xext_opt=-lXext
17081     fi
17082     if test "x$have_xprelibs" = xyes; then
17083       lib_xprelibs_opt='-lSM -lICE'
17084     fi
17085     lib_xmu_opt=-lXmu
17086     lib_xt_opt=-lXt
17087     if test "x$have_xaw" = x3d; then
17088
17089 cat >>confdefs.h <<\_ACEOF
17090 #define XAW3D 1
17091 _ACEOF
17092
17093       lib_xaw_opt=-lXaw3d
17094     else
17095       lib_xaw_opt=-lXaw
17096     fi
17097     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17098
17099   ;;
17100 xdynamic)
17101   dynamic_targets="$dynamic_targets interface_a.\$(so)"
17102    if test "x$have_xext" = xyes; then
17103       a_so_libs="-lXext -lX11"
17104     else
17105       a_so_libs="-lX11"
17106     fi
17107     case "$target" in
17108       *darwin*)
17109         a_so_libs="$a_so_libs -lcc_dynamic"
17110         ;;
17111     esac
17112     if test "x$have_xprelibs" = xyes; then
17113       a_so_libs="-lSM -lICE $a_so_libs"
17114     fi
17115     if test "x$have_xaw" = xyes; then
17116       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17117     elif test "x$have_xaw" = x3d; then
17118
17119 cat >>confdefs.h <<\_ACEOF
17120 #define XAW3D 1
17121 _ACEOF
17122
17123       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17124     fi
17125     a_so_libs="$ldflags_x_opt $a_so_libs"
17126
17127   ;;
17128 *)
17129
17130   ;;
17131 esac
17132
17133
17134
17135
17136 if test "x$enable_xaw" = "xdynamic"; then
17137   ENABLE_DYNAMIC_XAW_TRUE=
17138   ENABLE_DYNAMIC_XAW_FALSE='#'
17139 else
17140   ENABLE_DYNAMIC_XAW_TRUE='#'
17141   ENABLE_DYNAMIC_XAW_FALSE=
17142 fi
17143
17144
17145
17146
17147 if false; then
17148   ENABLE_XSKIN_TRUE=
17149   ENABLE_XSKIN_FALSE='#'
17150 else
17151   ENABLE_XSKIN_TRUE='#'
17152   ENABLE_XSKIN_FALSE=
17153 fi
17154
17155 # Check whether --enable-xskin or --disable-xskin was given.
17156 if test "${enable_xskin+set}" = set; then
17157   enableval="$enable_xskin"
17158   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17159         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17160 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17161    { (exit 1); exit 1; }; }
17162     fi
17163    ;; esac
17164 fi;
17165 case "x$enable_xskin" in
17166 xyes)
17167   cat >> confdefs.h <<EOF
17168 #define IA_XSKIN 1
17169 EOF
17170
17171
17172
17173 if true; then
17174   ENABLE_XSKIN_TRUE=
17175   ENABLE_XSKIN_FALSE='#'
17176 else
17177   ENABLE_XSKIN_TRUE='#'
17178   ENABLE_XSKIN_FALSE=
17179 fi
17180
17181    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17182   ;;
17183 xdynamic)
17184   dynamic_targets="$dynamic_targets interface_i.\$(so)"
17185    i_so_libs="$ldflags_x_opt -lX11"
17186   ;;
17187 *)
17188
17189   ;;
17190 esac
17191
17192
17193
17194
17195
17196 if false; then
17197   ENABLE_GTK_TRUE=
17198   ENABLE_GTK_FALSE='#'
17199 else
17200   ENABLE_GTK_TRUE='#'
17201   ENABLE_GTK_FALSE=
17202 fi
17203
17204 # Check whether --enable-gtk or --disable-gtk was given.
17205 if test "${enable_gtk+set}" = set; then
17206   enableval="$enable_gtk"
17207   case "x$enable_gtk" in xyes|xdynamic)
17208 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17209 if test "${with_gtk_prefix+set}" = set; then
17210   withval="$with_gtk_prefix"
17211   gtk_config_prefix="$withval"
17212 else
17213   gtk_config_prefix=""
17214 fi;
17215
17216 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17217 if test "${with_gtk_exec_prefix+set}" = set; then
17218   withval="$with_gtk_exec_prefix"
17219   gtk_config_exec_prefix="$withval"
17220 else
17221   gtk_config_exec_prefix=""
17222 fi;
17223 # Check whether --enable-gtktest or --disable-gtktest was given.
17224 if test "${enable_gtktest+set}" = set; then
17225   enableval="$enable_gtktest"
17226
17227 else
17228   enable_gtktest=yes
17229 fi;
17230
17231   for module in .
17232   do
17233       case "$module" in
17234          gthread)
17235              gtk_config_args="$gtk_config_args gthread"
17236          ;;
17237       esac
17238   done
17239
17240   if test x$gtk_config_exec_prefix != x ; then
17241      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17242      if test x${GTK_CONFIG+set} != xset ; then
17243         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17244      fi
17245   fi
17246   if test x$gtk_config_prefix != x ; then
17247      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17248      if test x${GTK_CONFIG+set} != xset ; then
17249         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17250      fi
17251   fi
17252
17253   # Extract the first word of "gtk-config", so it can be a program name with args.
17254 set dummy gtk-config; ac_word=$2
17255 echo "$as_me:$LINENO: checking for $ac_word" >&5
17256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17257 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17258   echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260   case $GTK_CONFIG in
17261   [\\/]* | ?:[\\/]*)
17262   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17263   ;;
17264   *)
17265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17266 for as_dir in $PATH
17267 do
17268   IFS=$as_save_IFS
17269   test -z "$as_dir" && as_dir=.
17270   for ac_exec_ext in '' $ac_executable_extensions; do
17271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17272     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17274     break 2
17275   fi
17276 done
17277 done
17278
17279   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17280   ;;
17281 esac
17282 fi
17283 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17284
17285 if test -n "$GTK_CONFIG"; then
17286   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17287 echo "${ECHO_T}$GTK_CONFIG" >&6
17288 else
17289   echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6
17291 fi
17292
17293   min_gtk_version=1.1.3
17294   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17295 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17296   no_gtk=""
17297   if test "$GTK_CONFIG" = "no" ; then
17298     no_gtk=yes
17299   else
17300     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17301     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17302     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17303            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17304     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17305            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17306     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17307            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17308     if test "x$enable_gtktest" = "xyes" ; then
17309       ac_save_CFLAGS="$CFLAGS"
17310       ac_save_LIBS="$LIBS"
17311       CFLAGS="$CFLAGS $GTK_CFLAGS"
17312       LIBS="$GTK_LIBS $LIBS"
17313       rm -f conf.gtktest
17314       if test "$cross_compiling" = yes; then
17315   echo $ac_n "cross compiling; assumed OK... $ac_c"
17316 else
17317   cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h.  */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h.  */
17323
17324 #include <gtk/gtk.h>
17325 #include <stdio.h>
17326 #include <stdlib.h>
17327
17328 int
17329 main ()
17330 {
17331   int major, minor, micro;
17332   char *tmp_version;
17333
17334   system ("touch conf.gtktest");
17335
17336   /* HP/UX 9 (%@#!) writes to sscanf strings */
17337   tmp_version = g_strdup("$min_gtk_version");
17338   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17339      printf("%s, bad version string\n", "$min_gtk_version");
17340      exit(1);
17341    }
17342
17343   if ((gtk_major_version != $gtk_config_major_version) ||
17344       (gtk_minor_version != $gtk_config_minor_version) ||
17345       (gtk_micro_version != $gtk_config_micro_version))
17346     {
17347       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17348              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17349              gtk_major_version, gtk_minor_version, gtk_micro_version);
17350       printf ("*** was found! If gtk-config was correct, then it is best\n");
17351       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17352       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17353       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17354       printf("*** required on your system.\n");
17355       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17356       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17357       printf("*** before re-running configure\n");
17358     }
17359 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17360   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17361            (gtk_minor_version != GTK_MINOR_VERSION) ||
17362            (gtk_micro_version != GTK_MICRO_VERSION))
17363     {
17364       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17365              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17366       printf("*** library (version %d.%d.%d)\n",
17367              gtk_major_version, gtk_minor_version, gtk_micro_version);
17368     }
17369 #endif /* defined (GTK_MAJOR_VERSION) ... */
17370   else
17371     {
17372       if ((gtk_major_version > major) ||
17373         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17374         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17375       {
17376         return 0;
17377        }
17378      else
17379       {
17380         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17381                gtk_major_version, gtk_minor_version, gtk_micro_version);
17382         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17383                major, minor, micro);
17384         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17385         printf("***\n");
17386         printf("*** If you have already installed a sufficiently new version, this error\n");
17387         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17388         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17389         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17390         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17391         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17392         printf("*** so that the correct libraries are found at run-time))\n");
17393       }
17394     }
17395   return 1;
17396 }
17397
17398 _ACEOF
17399 rm -f conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401   (eval $ac_link) 2>&5
17402   ac_status=$?
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406   (eval $ac_try) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; }; then
17410   :
17411 else
17412   echo "$as_me: program exited with status $ac_status" >&5
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 ( exit $ac_status )
17417 no_gtk=yes
17418 fi
17419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17420 fi
17421        CFLAGS="$ac_save_CFLAGS"
17422        LIBS="$ac_save_LIBS"
17423      fi
17424   fi
17425   if test "x$no_gtk" = x ; then
17426      echo "$as_me:$LINENO: result: yes" >&5
17427 echo "${ECHO_T}yes" >&6
17428      :
17429   else
17430      echo "$as_me:$LINENO: result: no" >&5
17431 echo "${ECHO_T}no" >&6
17432      if test "$GTK_CONFIG" = "no" ; then
17433        echo "*** The gtk-config script installed by GTK could not be found"
17434        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17435        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17436        echo "*** full path to gtk-config."
17437      else
17438        if test -f conf.gtktest ; then
17439         :
17440        else
17441           echo "*** Could not run GTK test program, checking why..."
17442           CFLAGS="$CFLAGS $GTK_CFLAGS"
17443           LIBS="$LIBS $GTK_LIBS"
17444           cat >conftest.$ac_ext <<_ACEOF
17445 /* confdefs.h.  */
17446 _ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h.  */
17450
17451 #include <gtk/gtk.h>
17452 #include <stdio.h>
17453
17454 int
17455 main ()
17456 {
17457  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464   (eval $ac_link) 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } &&
17471          { ac_try='test -z "$ac_c_werror_flag"
17472                          || test ! -s conftest.err'
17473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474   (eval $ac_try) 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); }; } &&
17478          { ac_try='test -s conftest$ac_exeext'
17479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480   (eval $ac_try) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; }; then
17484    echo "*** The test program compiled, but did not run. This usually means"
17485           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17486           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17487           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17488           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17489           echo "*** is required on your system"
17490           echo "***"
17491           echo "*** If you have an old version installed, it is best to remove it, although"
17492           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17493           echo "***"
17494           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17495           echo "*** came with the system with the command"
17496           echo "***"
17497           echo "***    rpm --erase --nodeps gtk gtk-devel"
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502  echo "*** The test program failed to compile or link. See the file config.log for the"
17503           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17504           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17505           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17506 fi
17507 rm -f conftest.err conftest.$ac_objext \
17508       conftest$ac_exeext conftest.$ac_ext
17509           CFLAGS="$ac_save_CFLAGS"
17510           LIBS="$ac_save_LIBS"
17511        fi
17512      fi
17513      GTK_CFLAGS=""
17514      GTK_LIBS=""
17515      enable_gtk=no
17516   fi
17517
17518
17519   rm -f conf.gtktest
17520   ;; esac
17521 fi;
17522 case "x$enable_gtk" in
17523 xyes)
17524   cat >> confdefs.h <<EOF
17525 #define IA_GTK 1
17526 EOF
17527
17528
17529
17530 if true; then
17531   ENABLE_GTK_TRUE=
17532   ENABLE_GTK_FALSE='#'
17533 else
17534   ENABLE_GTK_TRUE='#'
17535   ENABLE_GTK_FALSE=
17536 fi
17537
17538    LIBS="$LIBS $GTK_LIBS"
17539     for f in $GTK_CFLAGS; do
17540     case ".$f" in
17541         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17542         *)              CFLAGS="$CPPFLAGS $f" ;;
17543     esac
17544 done
17545
17546     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17547
17548   ;;
17549 xdynamic)
17550   dynamic_targets="$dynamic_targets interface_g.\$(so)"
17551    if test "x$GCC" = xyes; then
17552                 for i in $GTK_LIBS; do
17553             case "x$i" in
17554                 x-rdynamic) ;;
17555                 *) g_so_libs="$g_so_libs $i" ;;
17556             esac
17557         done
17558     else
17559         g_so_libs="$GTK_LIBS"
17560     fi
17561     for f in $GTK_CFLAGS; do
17562     case ".$f" in
17563         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17564         *)              CFLAGS="$CPPFLAGS $f" ;;
17565     esac
17566 done
17567
17568   ;;
17569 *)
17570
17571   ;;
17572 esac
17573
17574
17575
17576
17577
17578 if false; then
17579   ENABLE_SERVER_TRUE=
17580   ENABLE_SERVER_FALSE='#'
17581 else
17582   ENABLE_SERVER_TRUE='#'
17583   ENABLE_SERVER_FALSE=
17584 fi
17585
17586 # Check whether --enable-server or --disable-server was given.
17587 if test "${enable_server+set}" = set; then
17588   enableval="$enable_server"
17589   case "x$enable_server" in xyes|xdynamic)  ;; esac
17590 fi;
17591 case "x$enable_server" in
17592 xyes)
17593   cat >> confdefs.h <<EOF
17594 #define IA_SERVER 1
17595 EOF
17596
17597
17598
17599 if true; then
17600   ENABLE_SERVER_TRUE=
17601   ENABLE_SERVER_FALSE='#'
17602 else
17603   ENABLE_SERVER_TRUE='#'
17604   ENABLE_SERVER_FALSE=
17605 fi
17606
17607    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17608
17609 for ac_header in sys/soundcard.h
17610 do
17611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17613   echo "$as_me:$LINENO: checking for $ac_header" >&5
17614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17616   echo $ECHO_N "(cached) $ECHO_C" >&6
17617 fi
17618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17620 else
17621   # Is the header compilable?
17622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630 $ac_includes_default
17631 #include <$ac_header>
17632 _ACEOF
17633 rm -f conftest.$ac_objext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17635   (eval $ac_compile) 2>conftest.er1
17636   ac_status=$?
17637   grep -v '^ *+' conftest.er1 >conftest.err
17638   rm -f conftest.er1
17639   cat conftest.err >&5
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); } &&
17642          { ac_try='test -z "$ac_c_werror_flag"
17643                          || test ! -s conftest.err'
17644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645   (eval $ac_try) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; } &&
17649          { ac_try='test -s conftest.$ac_objext'
17650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651   (eval $ac_try) 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; }; then
17655   ac_header_compiler=yes
17656 else
17657   echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 ac_header_compiler=no
17661 fi
17662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17664 echo "${ECHO_T}$ac_header_compiler" >&6
17665
17666 # Is the header present?
17667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 #include <$ac_header>
17676 _ACEOF
17677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } >/dev/null; then
17685   if test -s conftest.err; then
17686     ac_cpp_err=$ac_c_preproc_warn_flag
17687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17688   else
17689     ac_cpp_err=
17690   fi
17691 else
17692   ac_cpp_err=yes
17693 fi
17694 if test -z "$ac_cpp_err"; then
17695   ac_header_preproc=yes
17696 else
17697   echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17699
17700   ac_header_preproc=no
17701 fi
17702 rm -f conftest.err conftest.$ac_ext
17703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17704 echo "${ECHO_T}$ac_header_preproc" >&6
17705
17706 # So?  What about this header?
17707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17708   yes:no: )
17709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17713     ac_header_preproc=yes
17714     ;;
17715   no:yes:* )
17716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17728     (
17729       cat <<\_ASBOX
17730 ## ------------------------------- ##
17731 ## Report this to root@mput.dip.jp ##
17732 ## ------------------------------- ##
17733 _ASBOX
17734     ) |
17735       sed "s/^/$as_me: WARNING:     /" >&2
17736     ;;
17737 esac
17738 echo "$as_me:$LINENO: checking for $ac_header" >&5
17739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17741   echo $ECHO_N "(cached) $ECHO_C" >&6
17742 else
17743   eval "$as_ac_Header=\$ac_header_preproc"
17744 fi
17745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17747
17748 fi
17749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17750   cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17752 _ACEOF
17753
17754 fi
17755
17756 done
17757
17758
17759   ;;
17760 xdynamic)
17761   dynamic_targets="$dynamic_targets interface_r.\$(so)"
17762
17763   ;;
17764 *)
17765
17766   ;;
17767 esac
17768
17769
17770
17771
17772
17773 if false; then
17774   ENABLE_ALSASEQ_TRUE=
17775   ENABLE_ALSASEQ_FALSE='#'
17776 else
17777   ENABLE_ALSASEQ_TRUE='#'
17778   ENABLE_ALSASEQ_FALSE=
17779 fi
17780
17781 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17782 if test "${enable_alsaseq+set}" = set; then
17783   enableval="$enable_alsaseq"
17784   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
17785 fi;
17786 case "x$enable_alsaseq" in
17787 xyes)
17788   cat >> confdefs.h <<EOF
17789 #define IA_ALSASEQ 1
17790 EOF
17791
17792
17793
17794 if true; then
17795   ENABLE_ALSASEQ_TRUE=
17796   ENABLE_ALSASEQ_FALSE='#'
17797 else
17798   ENABLE_ALSASEQ_TRUE='#'
17799   ENABLE_ALSASEQ_FALSE=
17800 fi
17801
17802    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17803     alsa_save_CFLAGS="$CFLAGS"
17804 alsa_save_LDFLAGS="$LDFLAGS"
17805 alsa_save_LIBS="$LIBS"
17806 alsa_found=yes
17807
17808
17809 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17810 if test "${with_alsa_prefix+set}" = set; then
17811   withval="$with_alsa_prefix"
17812   alsa_prefix="$withval"
17813 else
17814   alsa_prefix=""
17815 fi;
17816
17817
17818 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17819 if test "${with_alsa_inc_prefix+set}" = set; then
17820   withval="$with_alsa_inc_prefix"
17821   alsa_inc_prefix="$withval"
17822 else
17823   alsa_inc_prefix=""
17824 fi;
17825
17826 # Check whether --enable-alsatest or --disable-alsatest was given.
17827 if test "${enable_alsatest+set}" = set; then
17828   enableval="$enable_alsatest"
17829   enable_alsatest=no
17830 else
17831   enable_alsatest=yes
17832 fi;
17833
17834 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17835 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17836 if test "$alsa_inc_prefix" != "" ; then
17837         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17838         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17839 fi
17840 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17841 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17842
17843 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17844 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17845 if test "$alsa_prefix" != "" ; then
17846         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17847         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17848 fi
17849
17850 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17851 LIBS=`echo $LIBS | sed 's/-lm//'`
17852 LIBS=`echo $LIBS | sed 's/-ldl//'`
17853 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17854 LIBS=`echo $LIBS | sed 's/  //'`
17855 LIBS="$ALSA_LIBS $LIBS"
17856 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17857 echo "${ECHO_T}$ALSA_LIBS" >&6
17858
17859 min_alsa_version=0.1.1
17860 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17861 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17862 no_alsa=""
17863     alsa_min_major_version=`echo $min_alsa_version | \
17864            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17865     alsa_min_minor_version=`echo $min_alsa_version | \
17866            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17867     alsa_min_micro_version=`echo $min_alsa_version | \
17868            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17869
17870
17871
17872
17873 ac_ext=c
17874 ac_cpp='$CPP $CPPFLAGS'
17875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17878
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885
17886 #include <alsa/asoundlib.h>
17887
17888 int
17889 main ()
17890 {
17891
17892 /* ensure backward compatibility */
17893 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17894 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17895 #endif
17896 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17897 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17898 #endif
17899 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17900 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17901 #endif
17902
17903 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17904   exit(0);
17905 #  else
17906 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17907 #       error not present
17908 #    endif
17909
17910 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17911   exit(0);
17912 #   else
17913 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17914 #          error not present
17915 #      endif
17916
17917 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17918 #        error not present
17919 #      endif
17920 #    endif
17921 #  endif
17922 exit(0);
17923
17924   ;
17925   return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930   (eval $ac_compile) 2>conftest.er1
17931   ac_status=$?
17932   grep -v '^ *+' conftest.er1 >conftest.err
17933   rm -f conftest.er1
17934   cat conftest.err >&5
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } &&
17937          { ac_try='test -z "$ac_c_werror_flag"
17938                          || test ! -s conftest.err'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest.$ac_objext'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; }; then
17950   echo "$as_me:$LINENO: result: found." >&5
17951 echo "${ECHO_T}found." >&6
17952 else
17953   echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 cat >conftest.$ac_ext <<_ACEOF
17957 /* confdefs.h.  */
17958 _ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h.  */
17962
17963 #include <sys/asoundlib.h>
17964
17965 int
17966 main ()
17967 {
17968
17969 /* ensure backward compatibility */
17970 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17971 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17972 #endif
17973 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17974 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17975 #endif
17976 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17977 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17978 #endif
17979
17980 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17981   exit(0);
17982 #  else
17983 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17984 #       error not present
17985 #    endif
17986
17987 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17988   exit(0);
17989 #   else
17990 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17991 #          error not present
17992 #      endif
17993
17994 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17995 #        error not present
17996 #      endif
17997 #    endif
17998 #  endif
17999 exit(0);
18000
18001   ;
18002   return 0;
18003 }
18004 _ACEOF
18005 rm -f conftest.$ac_objext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007   (eval $ac_compile) 2>conftest.er1
18008   ac_status=$?
18009   grep -v '^ *+' conftest.er1 >conftest.err
18010   rm -f conftest.er1
18011   cat conftest.err >&5
18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013   (exit $ac_status); } &&
18014          { ac_try='test -z "$ac_c_werror_flag"
18015                          || test ! -s conftest.err'
18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017   (eval $ac_try) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; } &&
18021          { ac_try='test -s conftest.$ac_objext'
18022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023   (eval $ac_try) 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; }; then
18027   echo "$as_me:$LINENO: result: found." >&5
18028 echo "${ECHO_T}found." >&6
18029 else
18030   echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033 echo "$as_me:$LINENO: result: not present." >&5
18034 echo "${ECHO_T}not present." >&6
18035    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18036 echo "${ECHO_T}libasound was not found anywhere." >&6
18037    alsa_found=no
18038 fi
18039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18040    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18041 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18042
18043 fi
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18045 ac_ext=c
18046 ac_cpp='$CPP $CPPFLAGS'
18047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18050
18051
18052
18053 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18054 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18055 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   ac_check_lib_save_LIBS=$LIBS
18059 LIBS="-lasound  $LIBS"
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h.  */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h.  */
18066
18067 /* Override any gcc2 internal prototype to avoid an error.  */
18068 #ifdef __cplusplus
18069 extern "C"
18070 #endif
18071 /* We use char because int might match the return type of a gcc2
18072    builtin and then its argument prototype would still apply.  */
18073 char snd_ctl_open ();
18074 int
18075 main ()
18076 {
18077 snd_ctl_open ();
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084   (eval $ac_link) 2>conftest.er1
18085   ac_status=$?
18086   grep -v '^ *+' conftest.er1 >conftest.err
18087   rm -f conftest.er1
18088   cat conftest.err >&5
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -z "$ac_c_werror_flag"
18092                          || test ! -s conftest.err'
18093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094   (eval $ac_try) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); }; } &&
18098          { ac_try='test -s conftest$ac_exeext'
18099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100   (eval $ac_try) 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; }; then
18104   ac_cv_lib_asound_snd_ctl_open=yes
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 ac_cv_lib_asound_snd_ctl_open=no
18110 fi
18111 rm -f conftest.err conftest.$ac_objext \
18112       conftest$ac_exeext conftest.$ac_ext
18113 LIBS=$ac_check_lib_save_LIBS
18114 fi
18115 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18116 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18117 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18118   cat >>confdefs.h <<_ACEOF
18119 #define HAVE_LIBASOUND 1
18120 _ACEOF
18121
18122   LIBS="-lasound $LIBS"
18123
18124 else
18125   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18126 echo "${ECHO_T}No linkable libasound was found." >&6
18127    alsa_found=no
18128
18129 fi
18130
18131
18132 if test "x$alsa_found" = "xyes" ; then
18133    :
18134    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18135    LIBS=`echo $LIBS | sed 's/  //'`
18136    LIBS="-lasound $LIBS"
18137 else
18138    :
18139    CFLAGS="$alsa_save_CFLAGS"
18140    LDFLAGS="$alsa_save_LDFLAGS"
18141    LIBS="$alsa_save_LIBS"
18142    ALSA_CFLAGS=""
18143    ALSA_LIBS=""
18144 fi
18145
18146
18147
18148
18149
18150   ;;
18151 xdynamic)
18152   dynamic_targets="$dynamic_targets interface_A.\$(so)"
18153
18154   ;;
18155 *)
18156
18157   ;;
18158 esac
18159
18160
18161
18162
18163
18164 if false; then
18165   ENABLE_WINSYN_TRUE=
18166   ENABLE_WINSYN_FALSE='#'
18167 else
18168   ENABLE_WINSYN_TRUE='#'
18169   ENABLE_WINSYN_FALSE=
18170 fi
18171
18172 # Check whether --enable-winsyn or --disable-winsyn was given.
18173 if test "${enable_winsyn+set}" = set; then
18174   enableval="$enable_winsyn"
18175   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
18176 fi;
18177 case "x$enable_winsyn" in
18178 xyes)
18179   cat >> confdefs.h <<EOF
18180 #define IA_WINSYN 1
18181 EOF
18182
18183
18184
18185 if true; then
18186   ENABLE_WINSYN_TRUE=
18187   ENABLE_WINSYN_FALSE='#'
18188 else
18189   ENABLE_WINSYN_TRUE='#'
18190   ENABLE_WINSYN_FALSE=
18191 fi
18192
18193    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18194   ;;
18195 xdynamic)
18196   dynamic_targets="$dynamic_targets interface_W.\$(so)"
18197
18198   ;;
18199 *)
18200
18201   ;;
18202 esac
18203
18204
18205
18206
18207
18208 if false; then
18209   ENABLE_PORTMIDISYN_TRUE=
18210   ENABLE_PORTMIDISYN_FALSE='#'
18211 else
18212   ENABLE_PORTMIDISYN_TRUE='#'
18213   ENABLE_PORTMIDISYN_FALSE=
18214 fi
18215
18216 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18217 if test "${enable_portmidisyn+set}" = set; then
18218   enableval="$enable_portmidisyn"
18219   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
18220 fi;
18221 case "x$enable_portmidisyn" in
18222 xyes)
18223   cat >> confdefs.h <<EOF
18224 #define IA_PORTMIDISYN 1
18225 EOF
18226
18227
18228
18229 if true; then
18230   ENABLE_PORTMIDISYN_TRUE=
18231   ENABLE_PORTMIDISYN_FALSE='#'
18232 else
18233   ENABLE_PORTMIDISYN_TRUE='#'
18234   ENABLE_PORTMIDISYN_FALSE=
18235 fi
18236
18237    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18238   ;;
18239 xdynamic)
18240   dynamic_targets="$dynamic_targets interface_P.\$(so)"
18241
18242   ;;
18243 *)
18244
18245   ;;
18246 esac
18247
18248
18249
18250
18251
18252 if false; then
18253   ENABLE_W32G_SYN_TRUE=
18254   ENABLE_W32G_SYN_FALSE='#'
18255 else
18256   ENABLE_W32G_SYN_TRUE='#'
18257   ENABLE_W32G_SYN_FALSE=
18258 fi
18259
18260 # Check whether --enable-winsyng or --disable-winsyng was given.
18261 if test "${enable_winsyng+set}" = set; then
18262   enableval="$enable_winsyng"
18263   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
18264 fi;
18265 case "x$enable_winsyng" in
18266 xyes)
18267   cat >> confdefs.h <<EOF
18268 #define IA_W32G_SYN 1
18269 EOF
18270
18271
18272
18273 if true; then
18274   ENABLE_W32G_SYN_TRUE=
18275   ENABLE_W32G_SYN_FALSE='#'
18276 else
18277   ENABLE_W32G_SYN_TRUE='#'
18278   ENABLE_W32G_SYN_FALSE=
18279 fi
18280
18281
18282   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
18283     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18284
18285 cat >>confdefs.h <<\_ACEOF
18286 #define ANOTHER_MAIN 1
18287 _ACEOF
18288
18289     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18290     lib_user32_opt='user32.lib'
18291     if test "x$VCPP" = xyes; then
18292       VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18293     else
18294           BORLANDC_START='C0W32.OBJ'
18295       CFLAGS="$CFLAGS -tW"
18296     fi
18297   else
18298         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18299     lib_user32_opt='-luser32'
18300     LDFLAGS="-mwindows $LDFLAGS"
18301     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"
18302   fi
18303
18304   ;;
18305 xdynamic)
18306   dynamic_targets="$dynamic_targets interface_W.\$(so)"
18307
18308   ;;
18309 *)
18310
18311   ;;
18312 esac
18313
18314
18315
18316
18317
18318
18319 if false; then
18320   ENABLE_W32GUI_TRUE=
18321   ENABLE_W32GUI_FALSE='#'
18322 else
18323   ENABLE_W32GUI_TRUE='#'
18324   ENABLE_W32GUI_FALSE=
18325 fi
18326
18327 # Check whether --enable-w32gui or --disable-w32gui was given.
18328 if test "${enable_w32gui+set}" = set; then
18329   enableval="$enable_w32gui"
18330   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
18331 fi;
18332 case "x$enable_w32gui" in
18333 xyes)
18334   cat >> confdefs.h <<EOF
18335 #define IA_W32GUI 1
18336 EOF
18337
18338
18339
18340 if true; then
18341   ENABLE_W32GUI_TRUE=
18342   ENABLE_W32GUI_FALSE='#'
18343 else
18344   ENABLE_W32GUI_TRUE='#'
18345   ENABLE_W32GUI_FALSE=
18346 fi
18347
18348
18349   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
18350         INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
18351
18352 cat >>confdefs.h <<\_ACEOF
18353 #define ANOTHER_MAIN 1
18354 _ACEOF
18355
18356     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18357     lib_user32_opt='user32.lib'
18358     if test "x$VCPP" = xyes; then
18359           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18360         else
18361           BORLANDC_START='C0W32.OBJ'
18362           CFLAGS="$CFLAGS -tW"
18363         fi
18364   else
18365     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18366     lib_user32_opt='-luser32'
18367     LDFLAGS="-mwindows $LDFLAGS"
18368     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"
18369   fi
18370
18371   ;;
18372 xdynamic)
18373   dynamic_targets="$dynamic_targets interface_w.\$(so)"
18374
18375   ;;
18376 *)
18377
18378   ;;
18379 esac
18380
18381
18382
18383
18384
18385 if false; then
18386   ENABLE_PLUGIN_TRUE=
18387   ENABLE_PLUGIN_FALSE='#'
18388 else
18389   ENABLE_PLUGIN_TRUE='#'
18390   ENABLE_PLUGIN_FALSE=
18391 fi
18392
18393 # Check whether --enable-ump or --disable-ump was given.
18394 if test "${enable_ump+set}" = set; then
18395   enableval="$enable_ump"
18396   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
18397         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
18398 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
18399    { (exit 1); exit 1; }; }
18400     fi
18401     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18402   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18403 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18404 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 fi
18407 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18408 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18409 else
18410   # Is the header compilable?
18411 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18412 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h.  */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h.  */
18419 $ac_includes_default
18420 #include <X11/xpm.h>
18421 _ACEOF
18422 rm -f conftest.$ac_objext
18423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18424   (eval $ac_compile) 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } &&
18431          { ac_try='test -z "$ac_c_werror_flag"
18432                          || test ! -s conftest.err'
18433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434   (eval $ac_try) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); }; } &&
18438          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18444   ac_header_compiler=yes
18445 else
18446   echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 ac_header_compiler=no
18450 fi
18451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18453 echo "${ECHO_T}$ac_header_compiler" >&6
18454
18455 # Is the header present?
18456 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18457 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464 #include <X11/xpm.h>
18465 _ACEOF
18466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18468   ac_status=$?
18469   grep -v '^ *+' conftest.er1 >conftest.err
18470   rm -f conftest.er1
18471   cat conftest.err >&5
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); } >/dev/null; then
18474   if test -s conftest.err; then
18475     ac_cpp_err=$ac_c_preproc_warn_flag
18476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18477   else
18478     ac_cpp_err=
18479   fi
18480 else
18481   ac_cpp_err=yes
18482 fi
18483 if test -z "$ac_cpp_err"; then
18484   ac_header_preproc=yes
18485 else
18486   echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489   ac_header_preproc=no
18490 fi
18491 rm -f conftest.err conftest.$ac_ext
18492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18493 echo "${ECHO_T}$ac_header_preproc" >&6
18494
18495 # So?  What about this header?
18496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18497   yes:no: )
18498     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18499 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18500     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18501 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18502     ac_header_preproc=yes
18503     ;;
18504   no:yes:* )
18505     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18506 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18507     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
18508 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
18509     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18510 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18511     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
18512 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18513     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18514 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18515     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18516 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18517     (
18518       cat <<\_ASBOX
18519 ## ------------------------------- ##
18520 ## Report this to root@mput.dip.jp ##
18521 ## ------------------------------- ##
18522 _ASBOX
18523     ) |
18524       sed "s/^/$as_me: WARNING:     /" >&2
18525     ;;
18526 esac
18527 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18528 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18529 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18530   echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532   ac_cv_header_X11_xpm_h=$ac_header_preproc
18533 fi
18534 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18535 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18536
18537 fi
18538 if test $ac_cv_header_X11_xpm_h = yes; then
18539   :
18540 else
18541   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18542 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18543    { (exit 1); exit 1; }; }
18544 fi
18545
18546
18547     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18548 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18549 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552   ac_check_lib_save_LIBS=$LIBS
18553 LIBS="-lXpm  $LIBS"
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h.  */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h.  */
18560
18561 /* Override any gcc2 internal prototype to avoid an error.  */
18562 #ifdef __cplusplus
18563 extern "C"
18564 #endif
18565 /* We use char because int might match the return type of a gcc2
18566    builtin and then its argument prototype would still apply.  */
18567 char XpmCreatePixmapFromData ();
18568 int
18569 main ()
18570 {
18571 XpmCreatePixmapFromData ();
18572   ;
18573   return 0;
18574 }
18575 _ACEOF
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18578   (eval $ac_link) 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -z "$ac_c_werror_flag"
18586                          || test ! -s conftest.err'
18587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588   (eval $ac_try) 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; } &&
18592          { ac_try='test -s conftest$ac_exeext'
18593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594   (eval $ac_try) 2>&5
18595   ac_status=$?
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); }; }; then
18598   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18599 else
18600   echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18604 fi
18605 rm -f conftest.err conftest.$ac_objext \
18606       conftest$ac_exeext conftest.$ac_ext
18607 LIBS=$ac_check_lib_save_LIBS
18608 fi
18609 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18610 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18611 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18612   :
18613 else
18614   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18615 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18616    { (exit 1); exit 1; }; }
18617 fi
18618
18619     if test "x$have_xext" = xyes; then
18620       lib_xext_opt=-lXext
18621     fi
18622     if test "x$have_xprelibs" = xyes; then
18623       lib_xprelibs_opt='-lSM -lICE'
18624     fi
18625     lib_xmu_opt=-lXmu
18626     lib_xt_opt=-lXt
18627    ;; esac
18628 fi;
18629 case "x$enable_ump" in
18630 xyes)
18631   cat >> confdefs.h <<EOF
18632 #define IA_PLUGIN 1
18633 EOF
18634
18635
18636
18637 if true; then
18638   ENABLE_PLUGIN_TRUE=
18639   ENABLE_PLUGIN_FALSE='#'
18640 else
18641   ENABLE_PLUGIN_TRUE='#'
18642   ENABLE_PLUGIN_FALSE=
18643 fi
18644
18645
18646   ;;
18647 xdynamic)
18648   dynamic_targets="$dynamic_targets interface_p.\$(so)"
18649
18650   ;;
18651 *)
18652
18653   ;;
18654 esac
18655
18656
18657
18658
18659 # Check whether --enable-offix or --disable-offix was given.
18660 if test "${enable_offix+set}" = set; then
18661   enableval="$enable_offix"
18662    if test "$enableval" = "yes"; then
18663       KEEPCPPFLAGS=$CPPFLAGS
18664       KEEPLIBS=$LIBS
18665       KEEPLDFLAGS=$LDFLAGS
18666       CPPFLAGS="$CPPFLAGS $offix_include_dir"
18667       LDFLAGS="$LDFLAGS $offix_lib_dir"
18668       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18669       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18670 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18671 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18672   echo $ECHO_N "(cached) $ECHO_C" >&6
18673 else
18674   ac_check_lib_save_LIBS=$LIBS
18675 LIBS="-lDnd  $LIBS"
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682
18683 /* Override any gcc2 internal prototype to avoid an error.  */
18684 #ifdef __cplusplus
18685 extern "C"
18686 #endif
18687 /* We use char because int might match the return type of a gcc2
18688    builtin and then its argument prototype would still apply.  */
18689 char DndInitialize ();
18690 int
18691 main ()
18692 {
18693 DndInitialize ();
18694   ;
18695   return 0;
18696 }
18697 _ACEOF
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700   (eval $ac_link) 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } &&
18707          { ac_try='test -z "$ac_c_werror_flag"
18708                          || test ! -s conftest.err'
18709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710   (eval $ac_try) 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; } &&
18714          { ac_try='test -s conftest$ac_exeext'
18715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716   (eval $ac_try) 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; }; then
18720   ac_cv_lib_Dnd_DndInitialize=yes
18721 else
18722   echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 ac_cv_lib_Dnd_DndInitialize=no
18726 fi
18727 rm -f conftest.err conftest.$ac_objext \
18728       conftest$ac_exeext conftest.$ac_ext
18729 LIBS=$ac_check_lib_save_LIBS
18730 fi
18731 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18732 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18733 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18734
18735         LIBS=$KEEPLIBS
18736         lib_offix_opt="-lDnd"
18737
18738 cat >>confdefs.h <<\_ACEOF
18739 #define OFFIX 1
18740 _ACEOF
18741
18742
18743 else
18744    LDFLAGS=$KEEPLDFLAGS
18745         CPPFLAGS=$KEEPCPPFLAGS
18746         LIBS=$KEEPLIBS
18747
18748 fi
18749
18750     fi
18751
18752 fi;
18753
18754 # Check whether --enable-network or --disable-network was given.
18755 if test "${enable_network+set}" = set; then
18756   enableval="$enable_network"
18757    if test "$enableval" = "yes"; then
18758
18759 cat >>confdefs.h <<\_ACEOF
18760 #define SUPPORT_SOCKET 1
18761 _ACEOF
18762
18763     fi
18764 fi;
18765
18766
18767 if test "x$enable_network" = "xyes"; then
18768   ENABLE_NETWORK_TRUE=
18769   ENABLE_NETWORK_FALSE='#'
18770 else
18771   ENABLE_NETWORK_TRUE='#'
18772   ENABLE_NETWORK_FALSE=
18773 fi
18774
18775
18776 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18777 if test "${enable_spectrogram+set}" = set; then
18778   enableval="$enable_spectrogram"
18779    if test "$enableval" = "yes"; then
18780       if test "x$with_x" != xyes; then
18781         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18782 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18783    { (exit 1); exit 1; }; }
18784       fi
18785
18786 cat >>confdefs.h <<\_ACEOF
18787 #define SUPPORT_SOUNDSPEC 1
18788 _ACEOF
18789
18790     fi
18791 fi;
18792
18793
18794 if test "x$enable_spectrogram" = "xyes"; then
18795   ENABLE_SOUND_SPEC_TRUE=
18796   ENABLE_SOUND_SPEC_FALSE='#'
18797 else
18798   ENABLE_SOUND_SPEC_TRUE='#'
18799   ENABLE_SOUND_SPEC_FALSE=
18800 fi
18801
18802
18803 # Check whether --enable-spline or --disable-spline was given.
18804 if test "${enable_spline+set}" = set; then
18805   enableval="$enable_spline"
18806    case "x$enableval" in
18807       xlinear)
18808
18809 cat >>confdefs.h <<\_ACEOF
18810 #define DEFAULT_RESAMPLATION resample_linear
18811 _ACEOF
18812
18813         ;;
18814       xcubic)
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define DEFAULT_RESAMPLATION resample_cspline
18818 _ACEOF
18819
18820         ;;
18821       xlagrange)
18822
18823 cat >>confdefs.h <<\_ACEOF
18824 #define DEFAULT_RESAMPLATION resample_lagrange
18825 _ACEOF
18826
18827         ;;
18828       xnewton)
18829
18830 cat >>confdefs.h <<\_ACEOF
18831 #define DEFAULT_RESAMPLATION resample_newton
18832 _ACEOF
18833
18834         ;;
18835       xgauss)
18836
18837 cat >>confdefs.h <<\_ACEOF
18838 #define DEFAULT_RESAMPLATION resample_gauss
18839 _ACEOF
18840
18841         ;;
18842       xno)
18843
18844 cat >>confdefs.h <<\_ACEOF
18845 #define DEFAULT_RESAMPLATION resample_none
18846 _ACEOF
18847
18848         ;;
18849       *)
18850         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18851 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18852    { (exit 1); exit 1; }; }
18853         ;;
18854     esac
18855 fi;
18856
18857 # Check whether --enable-wrd or --disable-wrd was given.
18858 if test "${enable_wrd+set}" = set; then
18859   enableval="$enable_wrd"
18860    if test "$enableval" = "yes"; then
18861       if test "x$with_x" != xyes; then
18862         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18863 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18864    { (exit 1); exit 1; }; }
18865       fi
18866
18867 cat >>confdefs.h <<\_ACEOF
18868 #define WRDT_X 1
18869 _ACEOF
18870
18871       enable_sherry_wrd=yes
18872       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18873 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18874 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18875   echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877   ac_check_lib_save_LIBS=$LIBS
18878 LIBS="-lz  $LIBS"
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h.  */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h.  */
18885
18886 /* Override any gcc2 internal prototype to avoid an error.  */
18887 #ifdef __cplusplus
18888 extern "C"
18889 #endif
18890 /* We use char because int might match the return type of a gcc2
18891    builtin and then its argument prototype would still apply.  */
18892 char zlibVersion ();
18893 int
18894 main ()
18895 {
18896 zlibVersion ();
18897   ;
18898   return 0;
18899 }
18900 _ACEOF
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18903   (eval $ac_link) 2>conftest.er1
18904   ac_status=$?
18905   grep -v '^ *+' conftest.er1 >conftest.err
18906   rm -f conftest.er1
18907   cat conftest.err >&5
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } &&
18910          { ac_try='test -z "$ac_c_werror_flag"
18911                          || test ! -s conftest.err'
18912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913   (eval $ac_try) 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; } &&
18917          { ac_try='test -s conftest$ac_exeext'
18918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919   (eval $ac_try) 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   ac_cv_lib_z_zlibVersion=yes
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928 ac_cv_lib_z_zlibVersion=no
18929 fi
18930 rm -f conftest.err conftest.$ac_objext \
18931       conftest$ac_exeext conftest.$ac_ext
18932 LIBS=$ac_check_lib_save_LIBS
18933 fi
18934 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18935 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18936 if test $ac_cv_lib_z_zlibVersion = yes; then
18937   :
18938 else
18939   enable_sherry_wrd=no
18940 fi
18941
18942       if test "${ac_cv_header_png_h+set}" = set; then
18943   echo "$as_me:$LINENO: checking for png.h" >&5
18944 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18945 if test "${ac_cv_header_png_h+set}" = set; then
18946   echo $ECHO_N "(cached) $ECHO_C" >&6
18947 fi
18948 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18949 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18950 else
18951   # Is the header compilable?
18952 echo "$as_me:$LINENO: checking png.h usability" >&5
18953 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18954 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960 $ac_includes_default
18961 #include <png.h>
18962 _ACEOF
18963 rm -f conftest.$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965   (eval $ac_compile) 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } &&
18972          { ac_try='test -z "$ac_c_werror_flag"
18973                          || test ! -s conftest.err'
18974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975   (eval $ac_try) 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; } &&
18979          { ac_try='test -s conftest.$ac_objext'
18980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981   (eval $ac_try) 2>&5
18982   ac_status=$?
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); }; }; then
18985   ac_header_compiler=yes
18986 else
18987   echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990 ac_header_compiler=no
18991 fi
18992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18994 echo "${ECHO_T}$ac_header_compiler" >&6
18995
18996 # Is the header present?
18997 echo "$as_me:$LINENO: checking png.h presence" >&5
18998 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005 #include <png.h>
19006 _ACEOF
19007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19009   ac_status=$?
19010   grep -v '^ *+' conftest.er1 >conftest.err
19011   rm -f conftest.er1
19012   cat conftest.err >&5
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); } >/dev/null; then
19015   if test -s conftest.err; then
19016     ac_cpp_err=$ac_c_preproc_warn_flag
19017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19018   else
19019     ac_cpp_err=
19020   fi
19021 else
19022   ac_cpp_err=yes
19023 fi
19024 if test -z "$ac_cpp_err"; then
19025   ac_header_preproc=yes
19026 else
19027   echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19029
19030   ac_header_preproc=no
19031 fi
19032 rm -f conftest.err conftest.$ac_ext
19033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19034 echo "${ECHO_T}$ac_header_preproc" >&6
19035
19036 # So?  What about this header?
19037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19038   yes:no: )
19039     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19040 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19041     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19042 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19043     ac_header_preproc=yes
19044     ;;
19045   no:yes:* )
19046     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19047 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19048     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19049 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19050     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19051 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19052     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19053 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19054     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19055 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19056     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19057 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19058     (
19059       cat <<\_ASBOX
19060 ## ------------------------------- ##
19061 ## Report this to root@mput.dip.jp ##
19062 ## ------------------------------- ##
19063 _ASBOX
19064     ) |
19065       sed "s/^/$as_me: WARNING:     /" >&2
19066     ;;
19067 esac
19068 echo "$as_me:$LINENO: checking for png.h" >&5
19069 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19070 if test "${ac_cv_header_png_h+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   ac_cv_header_png_h=$ac_header_preproc
19074 fi
19075 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19076 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19077
19078 fi
19079 if test $ac_cv_header_png_h = yes; then
19080   :
19081 else
19082   enable_sherry_wrd=no
19083 fi
19084
19085
19086       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19087 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19088 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   ac_check_lib_save_LIBS=$LIBS
19092 LIBS="-lpng -lz $LIBS"
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099
19100 /* Override any gcc2 internal prototype to avoid an error.  */
19101 #ifdef __cplusplus
19102 extern "C"
19103 #endif
19104 /* We use char because int might match the return type of a gcc2
19105    builtin and then its argument prototype would still apply.  */
19106 char png_init_io ();
19107 int
19108 main ()
19109 {
19110 png_init_io ();
19111   ;
19112   return 0;
19113 }
19114 _ACEOF
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19117   (eval $ac_link) 2>conftest.er1
19118   ac_status=$?
19119   grep -v '^ *+' conftest.er1 >conftest.err
19120   rm -f conftest.er1
19121   cat conftest.err >&5
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); } &&
19124          { ac_try='test -z "$ac_c_werror_flag"
19125                          || test ! -s conftest.err'
19126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127   (eval $ac_try) 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); }; } &&
19131          { ac_try='test -s conftest$ac_exeext'
19132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133   (eval $ac_try) 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; }; then
19137   ac_cv_lib_png_png_init_io=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142 ac_cv_lib_png_png_init_io=no
19143 fi
19144 rm -f conftest.err conftest.$ac_objext \
19145       conftest$ac_exeext conftest.$ac_ext
19146 LIBS=$ac_check_lib_save_LIBS
19147 fi
19148 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19149 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19150 if test $ac_cv_lib_png_png_init_io = yes; then
19151   :
19152 else
19153   enable_sherry_wrd=no
19154 fi
19155
19156       if test "$enable_sherry_wrd" = yes; then
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define ENABLE_SHERRY 1
19160 _ACEOF
19161
19162         lib_zip_opt=-lz
19163         lib_png_opt=-lpng
19164       else
19165          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19166 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19167       fi
19168       if test "x$have_xext" = xyes; then
19169         lib_xext_opt=-lXext
19170       fi
19171     fi
19172 fi;
19173
19174
19175
19176 #
19177 # Finish up
19178 #
19179
19180
19181
19182 if test "x$enable_wrd" = "xyes"; then
19183   ENABLE_WRD_TRUE=
19184   ENABLE_WRD_FALSE='#'
19185 else
19186   ENABLE_WRD_TRUE='#'
19187   ENABLE_WRD_FALSE=
19188 fi
19189
19190
19191
19192 if test "x$CYGNUS" = xyes; then
19193   CYGNUS_TRUE=
19194   CYGNUS_FALSE='#'
19195 else
19196   CYGNUS_TRUE='#'
19197   CYGNUS_FALSE=
19198 fi
19199
19200
19201
19202 if test "x$MSYS" = xyes; then
19203   MSYS_TRUE=
19204   MSYS_FALSE='#'
19205 else
19206   MSYS_TRUE='#'
19207   MSYS_FALSE=
19208 fi
19209
19210
19211
19212 if test "x$VCPP" = xyes; then
19213   VCPP_TRUE=
19214   VCPP_FALSE='#'
19215 else
19216   VCPP_TRUE='#'
19217   VCPP_FALSE=
19218 fi
19219
19220
19221
19222 if test "x$BORLANDC" = xyes; then
19223   BORLANDC_TRUE=
19224   BORLANDC_FALSE='#'
19225 else
19226   BORLANDC_TRUE='#'
19227   BORLANDC_FALSE=
19228 fi
19229
19230
19231
19232
19233 if test "x$W32READDIR" = "xyes"; then
19234   W32READDIR_TRUE=
19235   W32READDIR_FALSE='#'
19236 else
19237   W32READDIR_TRUE='#'
19238   W32READDIR_FALSE=
19239 fi
19240
19241
19242 rm -f wordtmp >/dev/null 2>&1
19243 val=''
19244 for f in $LDFLAGS; do
19245   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19246   :
19247 else
19248   echo $f >>wordtmp; val="$val $f"
19249 fi
19250
19251 done
19252 LDFLAGS="$val"
19253 rm -f wordtmp >/dev/null 2>&1
19254
19255 rm -f wordtmp >/dev/null 2>&1
19256 val=''
19257 for f in $SHLDFLAGS; do
19258   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19259   :
19260 else
19261   echo $f >>wordtmp; val="$val $f"
19262 fi
19263
19264 done
19265 SHLDFLAGS="$val"
19266 rm -f wordtmp >/dev/null 2>&1
19267
19268 rm -f wordtmp >/dev/null 2>&1
19269 val=''
19270 for f in $EXTRACFLAGS $CFLAGS; do
19271   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19272   :
19273 else
19274   echo $f >>wordtmp; val="$val $f"
19275 fi
19276
19277 done
19278 CFLAGS="$val"
19279 rm -f wordtmp >/dev/null 2>&1
19280
19281 rm -f wordtmp >/dev/null 2>&1
19282 val=''
19283 for f in $CPPFLAGS $EXTRADEFS; do
19284   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19285   :
19286 else
19287   echo $f >>wordtmp; val="$val $f"
19288 fi
19289
19290 done
19291 CPPFLAGS="$val"
19292 rm -f wordtmp >/dev/null 2>&1
19293
19294
19295 if test "x$oss_device" != x; then
19296
19297 cat >>confdefs.h <<_ACEOF
19298 #define OSS_DEVICE "$oss_device"
19299 _ACEOF
19300
19301 fi
19302
19303 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19304
19305 cat >>confdefs.h <<_ACEOF
19306 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19307 _ACEOF
19308
19309 fi
19310
19311 if test "x$with_x" = xyes; then
19312     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/"`
19313 fi
19314 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19315 SHLD="$SHLD $SHLDFLAGS"
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338                                                                                                                                                                                     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"
19339
19340 cat >confcache <<\_ACEOF
19341 # This file is a shell script that caches the results of configure
19342 # tests run on this system so they can be shared between configure
19343 # scripts and configure runs, see configure's option --config-cache.
19344 # It is not useful on other systems.  If it contains results you don't
19345 # want to keep, you may remove or edit it.
19346 #
19347 # config.status only pays attention to the cache file if you give it
19348 # the --recheck option to rerun configure.
19349 #
19350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19352 # following values.
19353
19354 _ACEOF
19355
19356 # The following way of writing the cache mishandles newlines in values,
19357 # but we know of no workaround that is simple, portable, and efficient.
19358 # So, don't put newlines in cache variables' values.
19359 # Ultrix sh set writes to stderr and can't be redirected directly,
19360 # and sets the high bit in the cache file unless we assign to the vars.
19361 {
19362   (set) 2>&1 |
19363     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19364     *ac_space=\ *)
19365       # `set' does not quote correctly, so add quotes (double-quote
19366       # substitution turns \\\\ into \\, and sed turns \\ into \).
19367       sed -n \
19368         "s/'/'\\\\''/g;
19369           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19370       ;;
19371     *)
19372       # `set' quotes correctly as required by POSIX, so do not add quotes.
19373       sed -n \
19374         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19375       ;;
19376     esac;
19377 } |
19378   sed '
19379      t clear
19380      : clear
19381      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19382      t end
19383      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19384      : end' >>confcache
19385 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19386   if test -w $cache_file; then
19387     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19388     cat confcache >$cache_file
19389   else
19390     echo "not updating unwritable cache $cache_file"
19391   fi
19392 fi
19393 rm -f confcache
19394
19395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19396 # Let make expand exec_prefix.
19397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19398
19399 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19400 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19401 # trailing colons and then remove the whole line if VPATH becomes empty
19402 # (actually we leave an empty line to preserve line numbers).
19403 if test "x$srcdir" = x.; then
19404   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19405 s/:*\$(srcdir):*/:/;
19406 s/:*\${srcdir}:*/:/;
19407 s/:*@srcdir@:*/:/;
19408 s/^\([^=]*=[     ]*\):*/\1/;
19409 s/:*$//;
19410 s/^[^=]*=[       ]*$//;
19411 }'
19412 fi
19413
19414 DEFS=-DHAVE_CONFIG_H
19415
19416 ac_libobjs=
19417 ac_ltlibobjs=
19418 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19419   # 1. Remove the extension, and $U if already installed.
19420   ac_i=`echo "$ac_i" |
19421          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19422   # 2. Add them.
19423   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19424   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19425 done
19426 LIBOBJS=$ac_libobjs
19427
19428 LTLIBOBJS=$ac_ltlibobjs
19429
19430
19431 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19432   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19433 Usually this means the macro was only invoked conditionally." >&5
19434 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19435 Usually this means the macro was only invoked conditionally." >&2;}
19436    { (exit 1); exit 1; }; }
19437 fi
19438 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19439   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19440 Usually this means the macro was only invoked conditionally." >&5
19441 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19442 Usually this means the macro was only invoked conditionally." >&2;}
19443    { (exit 1); exit 1; }; }
19444 fi
19445 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19446   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19447 Usually this means the macro was only invoked conditionally." >&5
19448 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19449 Usually this means the macro was only invoked conditionally." >&2;}
19450    { (exit 1); exit 1; }; }
19451 fi
19452 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
19453   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
19454 Usually this means the macro was only invoked conditionally." >&5
19455 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
19456 Usually this means the macro was only invoked conditionally." >&2;}
19457    { (exit 1); exit 1; }; }
19458 fi
19459 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
19460   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
19461 Usually this means the macro was only invoked conditionally." >&5
19462 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
19463 Usually this means the macro was only invoked conditionally." >&2;}
19464    { (exit 1); exit 1; }; }
19465 fi
19466 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19467   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19468 Usually this means the macro was only invoked conditionally." >&5
19469 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19470 Usually this means the macro was only invoked conditionally." >&2;}
19471    { (exit 1); exit 1; }; }
19472 fi
19473 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19474   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19475 Usually this means the macro was only invoked conditionally." >&5
19476 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19477 Usually this means the macro was only invoked conditionally." >&2;}
19478    { (exit 1); exit 1; }; }
19479 fi
19480 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19481   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19482 Usually this means the macro was only invoked conditionally." >&5
19483 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19484 Usually this means the macro was only invoked conditionally." >&2;}
19485    { (exit 1); exit 1; }; }
19486 fi
19487 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19488   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19489 Usually this means the macro was only invoked conditionally." >&5
19490 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19491 Usually this means the macro was only invoked conditionally." >&2;}
19492    { (exit 1); exit 1; }; }
19493 fi
19494 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19495   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19496 Usually this means the macro was only invoked conditionally." >&5
19497 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19498 Usually this means the macro was only invoked conditionally." >&2;}
19499    { (exit 1); exit 1; }; }
19500 fi
19501 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19502   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19503 Usually this means the macro was only invoked conditionally." >&5
19504 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19505 Usually this means the macro was only invoked conditionally." >&2;}
19506    { (exit 1); exit 1; }; }
19507 fi
19508 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19509   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19510 Usually this means the macro was only invoked conditionally." >&5
19511 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19512 Usually this means the macro was only invoked conditionally." >&2;}
19513    { (exit 1); exit 1; }; }
19514 fi
19515 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19516   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19517 Usually this means the macro was only invoked conditionally." >&5
19518 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19519 Usually this means the macro was only invoked conditionally." >&2;}
19520    { (exit 1); exit 1; }; }
19521 fi
19522 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19523   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19524 Usually this means the macro was only invoked conditionally." >&5
19525 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19526 Usually this means the macro was only invoked conditionally." >&2;}
19527    { (exit 1); exit 1; }; }
19528 fi
19529 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19530   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19531 Usually this means the macro was only invoked conditionally." >&5
19532 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19533 Usually this means the macro was only invoked conditionally." >&2;}
19534    { (exit 1); exit 1; }; }
19535 fi
19536 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19537   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19538 Usually this means the macro was only invoked conditionally." >&5
19539 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19540 Usually this means the macro was only invoked conditionally." >&2;}
19541    { (exit 1); exit 1; }; }
19542 fi
19543 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19544   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19545 Usually this means the macro was only invoked conditionally." >&5
19546 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19547 Usually this means the macro was only invoked conditionally." >&2;}
19548    { (exit 1); exit 1; }; }
19549 fi
19550 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19551   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19552 Usually this means the macro was only invoked conditionally." >&5
19553 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19554 Usually this means the macro was only invoked conditionally." >&2;}
19555    { (exit 1); exit 1; }; }
19556 fi
19557 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19558   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19559 Usually this means the macro was only invoked conditionally." >&5
19560 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19561 Usually this means the macro was only invoked conditionally." >&2;}
19562    { (exit 1); exit 1; }; }
19563 fi
19564 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19565   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19566 Usually this means the macro was only invoked conditionally." >&5
19567 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19568 Usually this means the macro was only invoked conditionally." >&2;}
19569    { (exit 1); exit 1; }; }
19570 fi
19571 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19572   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19573 Usually this means the macro was only invoked conditionally." >&5
19574 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19575 Usually this means the macro was only invoked conditionally." >&2;}
19576    { (exit 1); exit 1; }; }
19577 fi
19578 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19579   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19580 Usually this means the macro was only invoked conditionally." >&5
19581 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19582 Usually this means the macro was only invoked conditionally." >&2;}
19583    { (exit 1); exit 1; }; }
19584 fi
19585 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19586   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19587 Usually this means the macro was only invoked conditionally." >&5
19588 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19589 Usually this means the macro was only invoked conditionally." >&2;}
19590    { (exit 1); exit 1; }; }
19591 fi
19592 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19593   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19594 Usually this means the macro was only invoked conditionally." >&5
19595 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19596 Usually this means the macro was only invoked conditionally." >&2;}
19597    { (exit 1); exit 1; }; }
19598 fi
19599 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19600   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19601 Usually this means the macro was only invoked conditionally." >&5
19602 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19603 Usually this means the macro was only invoked conditionally." >&2;}
19604    { (exit 1); exit 1; }; }
19605 fi
19606 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19607   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19608 Usually this means the macro was only invoked conditionally." >&5
19609 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19610 Usually this means the macro was only invoked conditionally." >&2;}
19611    { (exit 1); exit 1; }; }
19612 fi
19613 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19614   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19615 Usually this means the macro was only invoked conditionally." >&5
19616 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19617 Usually this means the macro was only invoked conditionally." >&2;}
19618    { (exit 1); exit 1; }; }
19619 fi
19620 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19621   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19622 Usually this means the macro was only invoked conditionally." >&5
19623 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19624 Usually this means the macro was only invoked conditionally." >&2;}
19625    { (exit 1); exit 1; }; }
19626 fi
19627 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19628   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19629 Usually this means the macro was only invoked conditionally." >&5
19630 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19631 Usually this means the macro was only invoked conditionally." >&2;}
19632    { (exit 1); exit 1; }; }
19633 fi
19634 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19635   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19636 Usually this means the macro was only invoked conditionally." >&5
19637 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19638 Usually this means the macro was only invoked conditionally." >&2;}
19639    { (exit 1); exit 1; }; }
19640 fi
19641 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19642   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19643 Usually this means the macro was only invoked conditionally." >&5
19644 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19645 Usually this means the macro was only invoked conditionally." >&2;}
19646    { (exit 1); exit 1; }; }
19647 fi
19648 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19649   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19650 Usually this means the macro was only invoked conditionally." >&5
19651 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19652 Usually this means the macro was only invoked conditionally." >&2;}
19653    { (exit 1); exit 1; }; }
19654 fi
19655 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19656   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19657 Usually this means the macro was only invoked conditionally." >&5
19658 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19659 Usually this means the macro was only invoked conditionally." >&2;}
19660    { (exit 1); exit 1; }; }
19661 fi
19662 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19663   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19664 Usually this means the macro was only invoked conditionally." >&5
19665 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19666 Usually this means the macro was only invoked conditionally." >&2;}
19667    { (exit 1); exit 1; }; }
19668 fi
19669 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19670   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19671 Usually this means the macro was only invoked conditionally." >&5
19672 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19673 Usually this means the macro was only invoked conditionally." >&2;}
19674    { (exit 1); exit 1; }; }
19675 fi
19676 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19677   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19678 Usually this means the macro was only invoked conditionally." >&5
19679 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19680 Usually this means the macro was only invoked conditionally." >&2;}
19681    { (exit 1); exit 1; }; }
19682 fi
19683 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19684   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19685 Usually this means the macro was only invoked conditionally." >&5
19686 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19687 Usually this means the macro was only invoked conditionally." >&2;}
19688    { (exit 1); exit 1; }; }
19689 fi
19690 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19691   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19692 Usually this means the macro was only invoked conditionally." >&5
19693 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19694 Usually this means the macro was only invoked conditionally." >&2;}
19695    { (exit 1); exit 1; }; }
19696 fi
19697 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19698   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19699 Usually this means the macro was only invoked conditionally." >&5
19700 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19701 Usually this means the macro was only invoked conditionally." >&2;}
19702    { (exit 1); exit 1; }; }
19703 fi
19704 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19705   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19706 Usually this means the macro was only invoked conditionally." >&5
19707 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19708 Usually this means the macro was only invoked conditionally." >&2;}
19709    { (exit 1); exit 1; }; }
19710 fi
19711 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19712   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19713 Usually this means the macro was only invoked conditionally." >&5
19714 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19715 Usually this means the macro was only invoked conditionally." >&2;}
19716    { (exit 1); exit 1; }; }
19717 fi
19718 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19719   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19720 Usually this means the macro was only invoked conditionally." >&5
19721 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19722 Usually this means the macro was only invoked conditionally." >&2;}
19723    { (exit 1); exit 1; }; }
19724 fi
19725 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19726   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19727 Usually this means the macro was only invoked conditionally." >&5
19728 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19729 Usually this means the macro was only invoked conditionally." >&2;}
19730    { (exit 1); exit 1; }; }
19731 fi
19732 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
19733   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
19734 Usually this means the macro was only invoked conditionally." >&5
19735 echo "$as_me: error: conditional \"MSYS\" was never defined.
19736 Usually this means the macro was only invoked conditionally." >&2;}
19737    { (exit 1); exit 1; }; }
19738 fi
19739 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
19740   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
19741 Usually this means the macro was only invoked conditionally." >&5
19742 echo "$as_me: error: conditional \"VCPP\" was never defined.
19743 Usually this means the macro was only invoked conditionally." >&2;}
19744    { (exit 1); exit 1; }; }
19745 fi
19746 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
19747   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
19748 Usually this means the macro was only invoked conditionally." >&5
19749 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
19750 Usually this means the macro was only invoked conditionally." >&2;}
19751    { (exit 1); exit 1; }; }
19752 fi
19753 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19754   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19755 Usually this means the macro was only invoked conditionally." >&5
19756 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19757 Usually this means the macro was only invoked conditionally." >&2;}
19758    { (exit 1); exit 1; }; }
19759 fi
19760
19761 : ${CONFIG_STATUS=./config.status}
19762 ac_clean_files_save=$ac_clean_files
19763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19766 cat >$CONFIG_STATUS <<_ACEOF
19767 #! $SHELL
19768 # Generated by $as_me.
19769 # Run this file to recreate the current configuration.
19770 # Compiler output produced by configure, useful for debugging
19771 # configure, is in config.log if it exists.
19772
19773 debug=false
19774 ac_cs_recheck=false
19775 ac_cs_silent=false
19776 SHELL=\${CONFIG_SHELL-$SHELL}
19777 _ACEOF
19778
19779 cat >>$CONFIG_STATUS <<\_ACEOF
19780 ## --------------------- ##
19781 ## M4sh Initialization.  ##
19782 ## --------------------- ##
19783
19784 # Be Bourne compatible
19785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19786   emulate sh
19787   NULLCMD=:
19788   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19789   # is contrary to our usage.  Disable this feature.
19790   alias -g '${1+"$@"}'='"$@"'
19791 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19792   set -o posix
19793 fi
19794 DUALCASE=1; export DUALCASE # for MKS sh
19795
19796 # Support unset when possible.
19797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19798   as_unset=unset
19799 else
19800   as_unset=false
19801 fi
19802
19803
19804 # Work around bugs in pre-3.0 UWIN ksh.
19805 $as_unset ENV MAIL MAILPATH
19806 PS1='$ '
19807 PS2='> '
19808 PS4='+ '
19809
19810 # NLS nuisances.
19811 for as_var in \
19812   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19813   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19814   LC_TELEPHONE LC_TIME
19815 do
19816   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19817     eval $as_var=C; export $as_var
19818   else
19819     $as_unset $as_var
19820   fi
19821 done
19822
19823 # Required to use basename.
19824 if expr a : '\(a\)' >/dev/null 2>&1; then
19825   as_expr=expr
19826 else
19827   as_expr=false
19828 fi
19829
19830 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19831   as_basename=basename
19832 else
19833   as_basename=false
19834 fi
19835
19836
19837 # Name of the executable.
19838 as_me=`$as_basename "$0" ||
19839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19840          X"$0" : 'X\(//\)$' \| \
19841          X"$0" : 'X\(/\)$' \| \
19842          .     : '\(.\)' 2>/dev/null ||
19843 echo X/"$0" |
19844     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19845           /^X\/\(\/\/\)$/{ s//\1/; q; }
19846           /^X\/\(\/\).*/{ s//\1/; q; }
19847           s/.*/./; q'`
19848
19849
19850 # PATH needs CR, and LINENO needs CR and PATH.
19851 # Avoid depending upon Character Ranges.
19852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19855 as_cr_digits='0123456789'
19856 as_cr_alnum=$as_cr_Letters$as_cr_digits
19857
19858 # The user is always right.
19859 if test "${PATH_SEPARATOR+set}" != set; then
19860   echo "#! /bin/sh" >conf$$.sh
19861   echo  "exit 0"   >>conf$$.sh
19862   chmod +x conf$$.sh
19863   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19864     PATH_SEPARATOR=';'
19865   else
19866     PATH_SEPARATOR=:
19867   fi
19868   rm -f conf$$.sh
19869 fi
19870
19871
19872   as_lineno_1=$LINENO
19873   as_lineno_2=$LINENO
19874   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19875   test "x$as_lineno_1" != "x$as_lineno_2" &&
19876   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19877   # Find who we are.  Look in the path if we contain no path at all
19878   # relative or not.
19879   case $0 in
19880     *[\\/]* ) as_myself=$0 ;;
19881     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19882 for as_dir in $PATH
19883 do
19884   IFS=$as_save_IFS
19885   test -z "$as_dir" && as_dir=.
19886   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19887 done
19888
19889        ;;
19890   esac
19891   # We did not find ourselves, most probably we were run as `sh COMMAND'
19892   # in which case we are not to be found in the path.
19893   if test "x$as_myself" = x; then
19894     as_myself=$0
19895   fi
19896   if test ! -f "$as_myself"; then
19897     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19898 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19899    { (exit 1); exit 1; }; }
19900   fi
19901   case $CONFIG_SHELL in
19902   '')
19903     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19905 do
19906   IFS=$as_save_IFS
19907   test -z "$as_dir" && as_dir=.
19908   for as_base in sh bash ksh sh5; do
19909          case $as_dir in
19910          /*)
19911            if ("$as_dir/$as_base" -c '
19912   as_lineno_1=$LINENO
19913   as_lineno_2=$LINENO
19914   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19915   test "x$as_lineno_1" != "x$as_lineno_2" &&
19916   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19917              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19918              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19919              CONFIG_SHELL=$as_dir/$as_base
19920              export CONFIG_SHELL
19921              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19922            fi;;
19923          esac
19924        done
19925 done
19926 ;;
19927   esac
19928
19929   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19930   # uniformly replaced by the line number.  The first 'sed' inserts a
19931   # line-number line before each line; the second 'sed' does the real
19932   # work.  The second script uses 'N' to pair each line-number line
19933   # with the numbered line, and appends trailing '-' during
19934   # substitution so that $LINENO is not a special case at line end.
19935   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19936   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19937   sed '=' <$as_myself |
19938     sed '
19939       N
19940       s,$,-,
19941       : loop
19942       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19943       t loop
19944       s,-$,,
19945       s,^['$as_cr_digits']*\n,,
19946     ' >$as_me.lineno &&
19947   chmod +x $as_me.lineno ||
19948     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19949 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19950    { (exit 1); exit 1; }; }
19951
19952   # Don't try to exec as it changes $[0], causing all sort of problems
19953   # (the dirname of $[0] is not the place where we might find the
19954   # original and so on.  Autoconf is especially sensible to this).
19955   . ./$as_me.lineno
19956   # Exit status is that of the last command.
19957   exit
19958 }
19959
19960
19961 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19962   *c*,-n*) ECHO_N= ECHO_C='
19963 ' ECHO_T='      ' ;;
19964   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19965   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19966 esac
19967
19968 if expr a : '\(a\)' >/dev/null 2>&1; then
19969   as_expr=expr
19970 else
19971   as_expr=false
19972 fi
19973
19974 rm -f conf$$ conf$$.exe conf$$.file
19975 echo >conf$$.file
19976 if ln -s conf$$.file conf$$ 2>/dev/null; then
19977   # We could just check for DJGPP; but this test a) works b) is more generic
19978   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19979   if test -f conf$$.exe; then
19980     # Don't use ln at all; we don't have any links
19981     as_ln_s='cp -p'
19982   else
19983     as_ln_s='ln -s'
19984   fi
19985 elif ln conf$$.file conf$$ 2>/dev/null; then
19986   as_ln_s=ln
19987 else
19988   as_ln_s='cp -p'
19989 fi
19990 rm -f conf$$ conf$$.exe conf$$.file
19991
19992 if mkdir -p . 2>/dev/null; then
19993   as_mkdir_p=:
19994 else
19995   test -d ./-p && rmdir ./-p
19996   as_mkdir_p=false
19997 fi
19998
19999 as_executable_p="test -f"
20000
20001 # Sed expression to map a string onto a valid CPP name.
20002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20003
20004 # Sed expression to map a string onto a valid variable name.
20005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20006
20007
20008 # IFS
20009 # We need space, tab and new line, in precisely that order.
20010 as_nl='
20011 '
20012 IFS="   $as_nl"
20013
20014 # CDPATH.
20015 $as_unset CDPATH
20016
20017 exec 6>&1
20018
20019 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20020 # report actual input values of CONFIG_FILES etc. instead of their
20021 # values after options handling.  Logging --version etc. is OK.
20022 exec 5>>config.log
20023 {
20024   echo
20025   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20026 ## Running $as_me. ##
20027 _ASBOX
20028 } >&5
20029 cat >&5 <<_CSEOF
20030
20031 This file was extended by TiMidity++ $as_me current, which was
20032 generated by GNU Autoconf 2.59.  Invocation command line was
20033
20034   CONFIG_FILES    = $CONFIG_FILES
20035   CONFIG_HEADERS  = $CONFIG_HEADERS
20036   CONFIG_LINKS    = $CONFIG_LINKS
20037   CONFIG_COMMANDS = $CONFIG_COMMANDS
20038   $ $0 $@
20039
20040 _CSEOF
20041 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20042 echo >&5
20043 _ACEOF
20044
20045 # Files that config.status was made for.
20046 if test -n "$ac_config_files"; then
20047   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20048 fi
20049
20050 if test -n "$ac_config_headers"; then
20051   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20052 fi
20053
20054 if test -n "$ac_config_links"; then
20055   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20056 fi
20057
20058 if test -n "$ac_config_commands"; then
20059   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20060 fi
20061
20062 cat >>$CONFIG_STATUS <<\_ACEOF
20063
20064 ac_cs_usage="\
20065 \`$as_me' instantiates files from templates according to the
20066 current configuration.
20067
20068 Usage: $0 [OPTIONS] [FILE]...
20069
20070   -h, --help       print this help, then exit
20071   -V, --version    print version number, then exit
20072   -q, --quiet      do not print progress messages
20073   -d, --debug      don't remove temporary files
20074       --recheck    update $as_me by reconfiguring in the same conditions
20075   --file=FILE[:TEMPLATE]
20076                    instantiate the configuration file FILE
20077   --header=FILE[:TEMPLATE]
20078                    instantiate the configuration header FILE
20079
20080 Configuration files:
20081 $config_files
20082
20083 Configuration headers:
20084 $config_headers
20085
20086 Configuration commands:
20087 $config_commands
20088
20089 Report bugs to <bug-autoconf@gnu.org>."
20090 _ACEOF
20091
20092 cat >>$CONFIG_STATUS <<_ACEOF
20093 ac_cs_version="\\
20094 TiMidity++ config.status current
20095 configured by $0, generated by GNU Autoconf 2.59,
20096   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20097
20098 Copyright (C) 2003 Free Software Foundation, Inc.
20099 This config.status script is free software; the Free Software Foundation
20100 gives unlimited permission to copy, distribute and modify it."
20101 srcdir=$srcdir
20102 INSTALL="$INSTALL"
20103 _ACEOF
20104
20105 cat >>$CONFIG_STATUS <<\_ACEOF
20106 # If no file are specified by the user, then we need to provide default
20107 # value.  By we need to know if files were specified by the user.
20108 ac_need_defaults=:
20109 while test $# != 0
20110 do
20111   case $1 in
20112   --*=*)
20113     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20114     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20115     ac_shift=:
20116     ;;
20117   -*)
20118     ac_option=$1
20119     ac_optarg=$2
20120     ac_shift=shift
20121     ;;
20122   *) # This is not an option, so the user has probably given explicit
20123      # arguments.
20124      ac_option=$1
20125      ac_need_defaults=false;;
20126   esac
20127
20128   case $ac_option in
20129   # Handling of the options.
20130 _ACEOF
20131 cat >>$CONFIG_STATUS <<\_ACEOF
20132   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20133     ac_cs_recheck=: ;;
20134   --version | --vers* | -V )
20135     echo "$ac_cs_version"; exit 0 ;;
20136   --he | --h)
20137     # Conflict between --help and --header
20138     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20139 Try \`$0 --help' for more information." >&5
20140 echo "$as_me: error: ambiguous option: $1
20141 Try \`$0 --help' for more information." >&2;}
20142    { (exit 1); exit 1; }; };;
20143   --help | --hel | -h )
20144     echo "$ac_cs_usage"; exit 0 ;;
20145   --debug | --d* | -d )
20146     debug=: ;;
20147   --file | --fil | --fi | --f )
20148     $ac_shift
20149     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20150     ac_need_defaults=false;;
20151   --header | --heade | --head | --hea )
20152     $ac_shift
20153     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20154     ac_need_defaults=false;;
20155   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20156   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20157     ac_cs_silent=: ;;
20158
20159   # This is an error.
20160   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20161 Try \`$0 --help' for more information." >&5
20162 echo "$as_me: error: unrecognized option: $1
20163 Try \`$0 --help' for more information." >&2;}
20164    { (exit 1); exit 1; }; } ;;
20165
20166   *) ac_config_targets="$ac_config_targets $1" ;;
20167
20168   esac
20169   shift
20170 done
20171
20172 ac_configure_extra_args=
20173
20174 if $ac_cs_silent; then
20175   exec 6>/dev/null
20176   ac_configure_extra_args="$ac_configure_extra_args --silent"
20177 fi
20178
20179 _ACEOF
20180 cat >>$CONFIG_STATUS <<_ACEOF
20181 if \$ac_cs_recheck; then
20182   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20183   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20184 fi
20185
20186 _ACEOF
20187
20188 cat >>$CONFIG_STATUS <<_ACEOF
20189 #
20190 # INIT-COMMANDS section.
20191 #
20192
20193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20194
20195 _ACEOF
20196
20197
20198
20199 cat >>$CONFIG_STATUS <<\_ACEOF
20200 for ac_config_target in $ac_config_targets
20201 do
20202   case "$ac_config_target" in
20203   # Handling of arguments.
20204   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20205   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20206   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20207   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20208   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20209   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20210   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20211   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20212   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20213   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20214   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20215   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20216   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20217   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20218   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20219   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20220   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20221   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20222   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20223   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20224   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20225   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20226 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20227    { (exit 1); exit 1; }; };;
20228   esac
20229 done
20230
20231 # If the user did not use the arguments to specify the items to instantiate,
20232 # then the envvar interface is used.  Set only those that are not.
20233 # We use the long form for the default assignment because of an extremely
20234 # bizarre bug on SunOS 4.1.3.
20235 if $ac_need_defaults; then
20236   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20237   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20238   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20239 fi
20240
20241 # Have a temporary directory for convenience.  Make it in the build tree
20242 # simply because there is no reason to put it here, and in addition,
20243 # creating and moving files from /tmp can sometimes cause problems.
20244 # Create a temporary directory, and hook for its removal unless debugging.
20245 $debug ||
20246 {
20247   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20248   trap '{ (exit 1); exit 1; }' 1 2 13 15
20249 }
20250
20251 # Create a (secure) tmp directory for tmp files.
20252
20253 {
20254   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20255   test -n "$tmp" && test -d "$tmp"
20256 }  ||
20257 {
20258   tmp=./confstat$$-$RANDOM
20259   (umask 077 && mkdir $tmp)
20260 } ||
20261 {
20262    echo "$me: cannot create a temporary directory in ." >&2
20263    { (exit 1); exit 1; }
20264 }
20265
20266 _ACEOF
20267
20268 cat >>$CONFIG_STATUS <<_ACEOF
20269
20270 #
20271 # CONFIG_FILES section.
20272 #
20273
20274 # No need to generate the scripts if there are no CONFIG_FILES.
20275 # This happens for instance when ./config.status config.h
20276 if test -n "\$CONFIG_FILES"; then
20277   # Protect against being on the right side of a sed subst in config.status.
20278   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20279    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20280 s,@SHELL@,$SHELL,;t t
20281 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20282 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20283 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20284 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20285 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20286 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20287 s,@exec_prefix@,$exec_prefix,;t t
20288 s,@prefix@,$prefix,;t t
20289 s,@program_transform_name@,$program_transform_name,;t t
20290 s,@bindir@,$bindir,;t t
20291 s,@sbindir@,$sbindir,;t t
20292 s,@libexecdir@,$libexecdir,;t t
20293 s,@datadir@,$datadir,;t t
20294 s,@sysconfdir@,$sysconfdir,;t t
20295 s,@sharedstatedir@,$sharedstatedir,;t t
20296 s,@localstatedir@,$localstatedir,;t t
20297 s,@libdir@,$libdir,;t t
20298 s,@includedir@,$includedir,;t t
20299 s,@oldincludedir@,$oldincludedir,;t t
20300 s,@infodir@,$infodir,;t t
20301 s,@mandir@,$mandir,;t t
20302 s,@build_alias@,$build_alias,;t t
20303 s,@host_alias@,$host_alias,;t t
20304 s,@target_alias@,$target_alias,;t t
20305 s,@DEFS@,$DEFS,;t t
20306 s,@ECHO_C@,$ECHO_C,;t t
20307 s,@ECHO_N@,$ECHO_N,;t t
20308 s,@ECHO_T@,$ECHO_T,;t t
20309 s,@LIBS@,$LIBS,;t t
20310 s,@build@,$build,;t t
20311 s,@build_cpu@,$build_cpu,;t t
20312 s,@build_vendor@,$build_vendor,;t t
20313 s,@build_os@,$build_os,;t t
20314 s,@host@,$host,;t t
20315 s,@host_cpu@,$host_cpu,;t t
20316 s,@host_vendor@,$host_vendor,;t t
20317 s,@host_os@,$host_os,;t t
20318 s,@target@,$target,;t t
20319 s,@target_cpu@,$target_cpu,;t t
20320 s,@target_vendor@,$target_vendor,;t t
20321 s,@target_os@,$target_os,;t t
20322 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20323 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20324 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20325 s,@CYGPATH_W@,$CYGPATH_W,;t t
20326 s,@PACKAGE@,$PACKAGE,;t t
20327 s,@VERSION@,$VERSION,;t t
20328 s,@ACLOCAL@,$ACLOCAL,;t t
20329 s,@AUTOCONF@,$AUTOCONF,;t t
20330 s,@AUTOMAKE@,$AUTOMAKE,;t t
20331 s,@AUTOHEADER@,$AUTOHEADER,;t t
20332 s,@MAKEINFO@,$MAKEINFO,;t t
20333 s,@AMTAR@,$AMTAR,;t t
20334 s,@install_sh@,$install_sh,;t t
20335 s,@STRIP@,$STRIP,;t t
20336 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20337 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20338 s,@AWK@,$AWK,;t t
20339 s,@SET_MAKE@,$SET_MAKE,;t t
20340 s,@am__leading_dot@,$am__leading_dot,;t t
20341 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20342 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20343 s,@MAINT@,$MAINT,;t t
20344 s,@EMACS@,$EMACS,;t t
20345 s,@lispdir@,$lispdir,;t t
20346 s,@CC@,$CC,;t t
20347 s,@CFLAGS@,$CFLAGS,;t t
20348 s,@LDFLAGS@,$LDFLAGS,;t t
20349 s,@CPPFLAGS@,$CPPFLAGS,;t t
20350 s,@ac_ct_CC@,$ac_ct_CC,;t t
20351 s,@EXEEXT@,$EXEEXT,;t t
20352 s,@OBJEXT@,$OBJEXT,;t t
20353 s,@DEPDIR@,$DEPDIR,;t t
20354 s,@am__include@,$am__include,;t t
20355 s,@am__quote@,$am__quote,;t t
20356 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20357 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20358 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20359 s,@CCDEPMODE@,$CCDEPMODE,;t t
20360 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20361 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20362 s,@CPP@,$CPP,;t t
20363 s,@EGREP@,$EGREP,;t t
20364 s,@RANLIB@,$RANLIB,;t t
20365 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20366 s,@LN_S@,$LN_S,;t t
20367 s,@X_CFLAGS@,$X_CFLAGS,;t t
20368 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20369 s,@X_LIBS@,$X_LIBS,;t t
20370 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20371 s,@LIBOBJS@,$LIBOBJS,;t t
20372 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20373 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20374 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20375 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20376 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20377 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20378 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20379 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20380 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20381 s,@ESD_LIBS@,$ESD_LIBS,;t t
20382 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20383 s,@AO_LIBS@,$AO_LIBS,;t t
20384 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20385 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20386 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20387 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20388 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20389 s,@OGG_LIBS@,$OGG_LIBS,;t t
20390 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20391 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20392 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20393 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20394 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20395 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20396 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20397 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20398 s,@n_so_libs@,$n_so_libs,;t t
20399 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20400 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20401 s,@s_so_libs@,$s_so_libs,;t t
20402 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20403 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20404 s,@m_so_libs@,$m_so_libs,;t t
20405 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20406 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20407 s,@k_so_libs@,$k_so_libs,;t t
20408 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20409 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20410 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20411 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20412 s,@e_so_libs@,$e_so_libs,;t t
20413 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
20414 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
20415 s,@T_so_libs@,$T_so_libs,;t t
20416 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
20417 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
20418 s,@a_so_libs@,$a_so_libs,;t t
20419 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
20420 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
20421 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
20422 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
20423 s,@i_so_libs@,$i_so_libs,;t t
20424 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
20425 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
20426 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20427 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20428 s,@GTK_LIBS@,$GTK_LIBS,;t t
20429 s,@g_so_libs@,$g_so_libs,;t t
20430 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
20431 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
20432 s,@r_so_libs@,$r_so_libs,;t t
20433 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
20434 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
20435 s,@A_so_libs@,$A_so_libs,;t t
20436 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
20437 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
20438 s,@W_so_libs@,$W_so_libs,;t t
20439 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
20440 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
20441 s,@P_so_libs@,$P_so_libs,;t t
20442 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
20443 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
20444 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
20445 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
20446 s,@w_so_libs@,$w_so_libs,;t t
20447 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
20448 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
20449 s,@p_so_libs@,$p_so_libs,;t t
20450 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
20451 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
20452 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
20453 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
20454 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
20455 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
20456 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
20457 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
20458 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
20459 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
20460 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
20461 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
20462 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
20463 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
20464 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
20465 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
20466 s,@BORLANDC_START@,$BORLANDC_START,;t t
20467 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
20468 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
20469 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
20470 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
20471 s,@EXTRALIBS@,$EXTRALIBS,;t t
20472 s,@NETSRCS@,$NETSRCS,;t t
20473 s,@ELFILES@,$ELFILES,;t t
20474 s,@SHLD@,$SHLD,;t t
20475 s,@SHCFLAGS@,$SHCFLAGS,;t t
20476 s,@dynamic_targets@,$dynamic_targets,;t t
20477 s,@so@,$so,;t t
20478 s,@WISH@,$WISH,;t t
20479 s,@tcltk_dep@,$tcltk_dep,;t t
20480 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
20481 s,@pkgdatadir@,$pkgdatadir,;t t
20482 s,@pkglibdir@,$pkglibdir,;t t
20483 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20484 CEOF
20485
20486 _ACEOF
20487
20488   cat >>$CONFIG_STATUS <<\_ACEOF
20489   # Split the substitutions into bite-sized pieces for seds with
20490   # small command number limits, like on Digital OSF/1 and HP-UX.
20491   ac_max_sed_lines=48
20492   ac_sed_frag=1 # Number of current file.
20493   ac_beg=1 # First line for current file.
20494   ac_end=$ac_max_sed_lines # Line after last line for current file.
20495   ac_more_lines=:
20496   ac_sed_cmds=
20497   while $ac_more_lines; do
20498     if test $ac_beg -gt 1; then
20499       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20500     else
20501       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20502     fi
20503     if test ! -s $tmp/subs.frag; then
20504       ac_more_lines=false
20505     else
20506       # The purpose of the label and of the branching condition is to
20507       # speed up the sed processing (if there are no `@' at all, there
20508       # is no need to browse any of the substitutions).
20509       # These are the two extra sed commands mentioned above.
20510       (echo ':t
20511   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20512       if test -z "$ac_sed_cmds"; then
20513         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20514       else
20515         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20516       fi
20517       ac_sed_frag=`expr $ac_sed_frag + 1`
20518       ac_beg=$ac_end
20519       ac_end=`expr $ac_end + $ac_max_sed_lines`
20520     fi
20521   done
20522   if test -z "$ac_sed_cmds"; then
20523     ac_sed_cmds=cat
20524   fi
20525 fi # test -n "$CONFIG_FILES"
20526
20527 _ACEOF
20528 cat >>$CONFIG_STATUS <<\_ACEOF
20529 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20530   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20531   case $ac_file in
20532   - | *:- | *:-:* ) # input from stdin
20533         cat >$tmp/stdin
20534         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20535         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20536   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20537         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20538   * )   ac_file_in=$ac_file.in ;;
20539   esac
20540
20541   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20542   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20543 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544          X"$ac_file" : 'X\(//\)[^/]' \| \
20545          X"$ac_file" : 'X\(//\)$' \| \
20546          X"$ac_file" : 'X\(/\)' \| \
20547          .     : '\(.\)' 2>/dev/null ||
20548 echo X"$ac_file" |
20549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20550           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20551           /^X\(\/\/\)$/{ s//\1/; q; }
20552           /^X\(\/\).*/{ s//\1/; q; }
20553           s/.*/./; q'`
20554   { if $as_mkdir_p; then
20555     mkdir -p "$ac_dir"
20556   else
20557     as_dir="$ac_dir"
20558     as_dirs=
20559     while test ! -d "$as_dir"; do
20560       as_dirs="$as_dir $as_dirs"
20561       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20563          X"$as_dir" : 'X\(//\)[^/]' \| \
20564          X"$as_dir" : 'X\(//\)$' \| \
20565          X"$as_dir" : 'X\(/\)' \| \
20566          .     : '\(.\)' 2>/dev/null ||
20567 echo X"$as_dir" |
20568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20569           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20570           /^X\(\/\/\)$/{ s//\1/; q; }
20571           /^X\(\/\).*/{ s//\1/; q; }
20572           s/.*/./; q'`
20573     done
20574     test ! -n "$as_dirs" || mkdir $as_dirs
20575   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20576 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20577    { (exit 1); exit 1; }; }; }
20578
20579   ac_builddir=.
20580
20581 if test "$ac_dir" != .; then
20582   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20583   # A "../" for each directory in $ac_dir_suffix.
20584   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20585 else
20586   ac_dir_suffix= ac_top_builddir=
20587 fi
20588
20589 case $srcdir in
20590   .)  # No --srcdir option.  We are building in place.
20591     ac_srcdir=.
20592     if test -z "$ac_top_builddir"; then
20593        ac_top_srcdir=.
20594     else
20595        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20596     fi ;;
20597   [\\/]* | ?:[\\/]* )  # Absolute path.
20598     ac_srcdir=$srcdir$ac_dir_suffix;
20599     ac_top_srcdir=$srcdir ;;
20600   *) # Relative path.
20601     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20602     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20603 esac
20604
20605 # Do not use `cd foo && pwd` to compute absolute paths, because
20606 # the directories may not exist.
20607 case `pwd` in
20608 .) ac_abs_builddir="$ac_dir";;
20609 *)
20610   case "$ac_dir" in
20611   .) ac_abs_builddir=`pwd`;;
20612   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20613   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20614   esac;;
20615 esac
20616 case $ac_abs_builddir in
20617 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20618 *)
20619   case ${ac_top_builddir}. in
20620   .) ac_abs_top_builddir=$ac_abs_builddir;;
20621   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20622   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20623   esac;;
20624 esac
20625 case $ac_abs_builddir in
20626 .) ac_abs_srcdir=$ac_srcdir;;
20627 *)
20628   case $ac_srcdir in
20629   .) ac_abs_srcdir=$ac_abs_builddir;;
20630   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20631   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20632   esac;;
20633 esac
20634 case $ac_abs_builddir in
20635 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20636 *)
20637   case $ac_top_srcdir in
20638   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20639   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20640   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20641   esac;;
20642 esac
20643
20644
20645   case $INSTALL in
20646   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20647   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20648   esac
20649
20650   if test x"$ac_file" != x-; then
20651     { echo "$as_me:$LINENO: creating $ac_file" >&5
20652 echo "$as_me: creating $ac_file" >&6;}
20653     rm -f "$ac_file"
20654   fi
20655   # Let's still pretend it is `configure' which instantiates (i.e., don't
20656   # use $as_me), people would be surprised to read:
20657   #    /* config.h.  Generated by config.status.  */
20658   if test x"$ac_file" = x-; then
20659     configure_input=
20660   else
20661     configure_input="$ac_file.  "
20662   fi
20663   configure_input=$configure_input"Generated from `echo $ac_file_in |
20664                                      sed 's,.*/,,'` by configure."
20665
20666   # First look for the input files in the build tree, otherwise in the
20667   # src tree.
20668   ac_file_inputs=`IFS=:
20669     for f in $ac_file_in; do
20670       case $f in
20671       -) echo $tmp/stdin ;;
20672       [\\/$]*)
20673          # Absolute (can't be DOS-style, as IFS=:)
20674          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20675 echo "$as_me: error: cannot find input file: $f" >&2;}
20676    { (exit 1); exit 1; }; }
20677          echo "$f";;
20678       *) # Relative
20679          if test -f "$f"; then
20680            # Build tree
20681            echo "$f"
20682          elif test -f "$srcdir/$f"; then
20683            # Source tree
20684            echo "$srcdir/$f"
20685          else
20686            # /dev/null tree
20687            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20688 echo "$as_me: error: cannot find input file: $f" >&2;}
20689    { (exit 1); exit 1; }; }
20690          fi;;
20691       esac
20692     done` || { (exit 1); exit 1; }
20693 _ACEOF
20694 cat >>$CONFIG_STATUS <<_ACEOF
20695   sed "$ac_vpsub
20696 $extrasub
20697 _ACEOF
20698 cat >>$CONFIG_STATUS <<\_ACEOF
20699 :t
20700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20701 s,@configure_input@,$configure_input,;t t
20702 s,@srcdir@,$ac_srcdir,;t t
20703 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20704 s,@top_srcdir@,$ac_top_srcdir,;t t
20705 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20706 s,@builddir@,$ac_builddir,;t t
20707 s,@abs_builddir@,$ac_abs_builddir,;t t
20708 s,@top_builddir@,$ac_top_builddir,;t t
20709 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20710 s,@INSTALL@,$ac_INSTALL,;t t
20711 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20712   rm -f $tmp/stdin
20713   if test x"$ac_file" != x-; then
20714     mv $tmp/out $ac_file
20715   else
20716     cat $tmp/out
20717     rm -f $tmp/out
20718   fi
20719
20720 done
20721 _ACEOF
20722 cat >>$CONFIG_STATUS <<\_ACEOF
20723
20724 #
20725 # CONFIG_HEADER section.
20726 #
20727
20728 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20729 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20730 #
20731 # ac_d sets the value in "#define NAME VALUE" lines.
20732 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20733 ac_dB='[         ].*$,\1#\2'
20734 ac_dC=' '
20735 ac_dD=',;t'
20736 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20737 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20738 ac_uB='$,\1#\2define\3'
20739 ac_uC=' '
20740 ac_uD=',;t'
20741
20742 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20743   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20744   case $ac_file in
20745   - | *:- | *:-:* ) # input from stdin
20746         cat >$tmp/stdin
20747         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20748         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20749   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20750         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20751   * )   ac_file_in=$ac_file.in ;;
20752   esac
20753
20754   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20755 echo "$as_me: creating $ac_file" >&6;}
20756
20757   # First look for the input files in the build tree, otherwise in the
20758   # src tree.
20759   ac_file_inputs=`IFS=:
20760     for f in $ac_file_in; do
20761       case $f in
20762       -) echo $tmp/stdin ;;
20763       [\\/$]*)
20764          # Absolute (can't be DOS-style, as IFS=:)
20765          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20766 echo "$as_me: error: cannot find input file: $f" >&2;}
20767    { (exit 1); exit 1; }; }
20768          # Do quote $f, to prevent DOS paths from being IFS'd.
20769          echo "$f";;
20770       *) # Relative
20771          if test -f "$f"; then
20772            # Build tree
20773            echo "$f"
20774          elif test -f "$srcdir/$f"; then
20775            # Source tree
20776            echo "$srcdir/$f"
20777          else
20778            # /dev/null tree
20779            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20780 echo "$as_me: error: cannot find input file: $f" >&2;}
20781    { (exit 1); exit 1; }; }
20782          fi;;
20783       esac
20784     done` || { (exit 1); exit 1; }
20785   # Remove the trailing spaces.
20786   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20787
20788 _ACEOF
20789
20790 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20791 # `conftest.undefs', that substitutes the proper values into
20792 # config.h.in to produce config.h.  The first handles `#define'
20793 # templates, and the second `#undef' templates.
20794 # And first: Protect against being on the right side of a sed subst in
20795 # config.status.  Protect against being in an unquoted here document
20796 # in config.status.
20797 rm -f conftest.defines conftest.undefs
20798 # Using a here document instead of a string reduces the quoting nightmare.
20799 # Putting comments in sed scripts is not portable.
20800 #
20801 # `end' is used to avoid that the second main sed command (meant for
20802 # 0-ary CPP macros) applies to n-ary macro definitions.
20803 # See the Autoconf documentation for `clear'.
20804 cat >confdef2sed.sed <<\_ACEOF
20805 s/[\\&,]/\\&/g
20806 s,[\\$`],\\&,g
20807 t clear
20808 : clear
20809 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20810 t end
20811 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20812 : end
20813 _ACEOF
20814 # If some macros were called several times there might be several times
20815 # the same #defines, which is useless.  Nevertheless, we may not want to
20816 # sort them, since we want the *last* AC-DEFINE to be honored.
20817 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20818 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20819 rm -f confdef2sed.sed
20820
20821 # This sed command replaces #undef with comments.  This is necessary, for
20822 # example, in the case of _POSIX_SOURCE, which is predefined and required
20823 # on some systems where configure will not decide to define it.
20824 cat >>conftest.undefs <<\_ACEOF
20825 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20826 _ACEOF
20827
20828 # Break up conftest.defines because some shells have a limit on the size
20829 # of here documents, and old seds have small limits too (100 cmds).
20830 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20831 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20832 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20833 echo '  :' >>$CONFIG_STATUS
20834 rm -f conftest.tail
20835 while grep . conftest.defines >/dev/null
20836 do
20837   # Write a limited-size here document to $tmp/defines.sed.
20838   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20839   # Speed up: don't consider the non `#define' lines.
20840   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20841   # Work around the forget-to-reset-the-flag bug.
20842   echo 't clr' >>$CONFIG_STATUS
20843   echo ': clr' >>$CONFIG_STATUS
20844   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20845   echo 'CEOF
20846   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20847   rm -f $tmp/in
20848   mv $tmp/out $tmp/in
20849 ' >>$CONFIG_STATUS
20850   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20851   rm -f conftest.defines
20852   mv conftest.tail conftest.defines
20853 done
20854 rm -f conftest.defines
20855 echo '  fi # grep' >>$CONFIG_STATUS
20856 echo >>$CONFIG_STATUS
20857
20858 # Break up conftest.undefs because some shells have a limit on the size
20859 # of here documents, and old seds have small limits too (100 cmds).
20860 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20861 rm -f conftest.tail
20862 while grep . conftest.undefs >/dev/null
20863 do
20864   # Write a limited-size here document to $tmp/undefs.sed.
20865   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20866   # Speed up: don't consider the non `#undef'
20867   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20868   # Work around the forget-to-reset-the-flag bug.
20869   echo 't clr' >>$CONFIG_STATUS
20870   echo ': clr' >>$CONFIG_STATUS
20871   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20872   echo 'CEOF
20873   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20874   rm -f $tmp/in
20875   mv $tmp/out $tmp/in
20876 ' >>$CONFIG_STATUS
20877   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20878   rm -f conftest.undefs
20879   mv conftest.tail conftest.undefs
20880 done
20881 rm -f conftest.undefs
20882
20883 cat >>$CONFIG_STATUS <<\_ACEOF
20884   # Let's still pretend it is `configure' which instantiates (i.e., don't
20885   # use $as_me), people would be surprised to read:
20886   #    /* config.h.  Generated by config.status.  */
20887   if test x"$ac_file" = x-; then
20888     echo "/* Generated by configure.  */" >$tmp/config.h
20889   else
20890     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20891   fi
20892   cat $tmp/in >>$tmp/config.h
20893   rm -f $tmp/in
20894   if test x"$ac_file" != x-; then
20895     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20896       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20897 echo "$as_me: $ac_file is unchanged" >&6;}
20898     else
20899       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901          X"$ac_file" : 'X\(//\)[^/]' \| \
20902          X"$ac_file" : 'X\(//\)$' \| \
20903          X"$ac_file" : 'X\(/\)' \| \
20904          .     : '\(.\)' 2>/dev/null ||
20905 echo X"$ac_file" |
20906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20907           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20908           /^X\(\/\/\)$/{ s//\1/; q; }
20909           /^X\(\/\).*/{ s//\1/; q; }
20910           s/.*/./; q'`
20911       { if $as_mkdir_p; then
20912     mkdir -p "$ac_dir"
20913   else
20914     as_dir="$ac_dir"
20915     as_dirs=
20916     while test ! -d "$as_dir"; do
20917       as_dirs="$as_dir $as_dirs"
20918       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920          X"$as_dir" : 'X\(//\)[^/]' \| \
20921          X"$as_dir" : 'X\(//\)$' \| \
20922          X"$as_dir" : 'X\(/\)' \| \
20923          .     : '\(.\)' 2>/dev/null ||
20924 echo X"$as_dir" |
20925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20926           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20927           /^X\(\/\/\)$/{ s//\1/; q; }
20928           /^X\(\/\).*/{ s//\1/; q; }
20929           s/.*/./; q'`
20930     done
20931     test ! -n "$as_dirs" || mkdir $as_dirs
20932   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20933 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20934    { (exit 1); exit 1; }; }; }
20935
20936       rm -f $ac_file
20937       mv $tmp/config.h $ac_file
20938     fi
20939   else
20940     cat $tmp/config.h
20941     rm -f $tmp/config.h
20942   fi
20943 # Compute $ac_file's index in $config_headers.
20944 _am_stamp_count=1
20945 for _am_header in $config_headers :; do
20946   case $_am_header in
20947     $ac_file | $ac_file:* )
20948       break ;;
20949     * )
20950       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20951   esac
20952 done
20953 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20954 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955          X$ac_file : 'X\(//\)[^/]' \| \
20956          X$ac_file : 'X\(//\)$' \| \
20957          X$ac_file : 'X\(/\)' \| \
20958          .     : '\(.\)' 2>/dev/null ||
20959 echo X$ac_file |
20960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20961           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20962           /^X\(\/\/\)$/{ s//\1/; q; }
20963           /^X\(\/\).*/{ s//\1/; q; }
20964           s/.*/./; q'`/stamp-h$_am_stamp_count
20965 done
20966 _ACEOF
20967 cat >>$CONFIG_STATUS <<\_ACEOF
20968
20969 #
20970 # CONFIG_COMMANDS section.
20971 #
20972 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20973   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20974   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20975   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20976 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977          X"$ac_dest" : 'X\(//\)[^/]' \| \
20978          X"$ac_dest" : 'X\(//\)$' \| \
20979          X"$ac_dest" : 'X\(/\)' \| \
20980          .     : '\(.\)' 2>/dev/null ||
20981 echo X"$ac_dest" |
20982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20984           /^X\(\/\/\)$/{ s//\1/; q; }
20985           /^X\(\/\).*/{ s//\1/; q; }
20986           s/.*/./; q'`
20987   { if $as_mkdir_p; then
20988     mkdir -p "$ac_dir"
20989   else
20990     as_dir="$ac_dir"
20991     as_dirs=
20992     while test ! -d "$as_dir"; do
20993       as_dirs="$as_dir $as_dirs"
20994       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996          X"$as_dir" : 'X\(//\)[^/]' \| \
20997          X"$as_dir" : 'X\(//\)$' \| \
20998          X"$as_dir" : 'X\(/\)' \| \
20999          .     : '\(.\)' 2>/dev/null ||
21000 echo X"$as_dir" |
21001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21003           /^X\(\/\/\)$/{ s//\1/; q; }
21004           /^X\(\/\).*/{ s//\1/; q; }
21005           s/.*/./; q'`
21006     done
21007     test ! -n "$as_dirs" || mkdir $as_dirs
21008   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21010    { (exit 1); exit 1; }; }; }
21011
21012   ac_builddir=.
21013
21014 if test "$ac_dir" != .; then
21015   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21016   # A "../" for each directory in $ac_dir_suffix.
21017   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21018 else
21019   ac_dir_suffix= ac_top_builddir=
21020 fi
21021
21022 case $srcdir in
21023   .)  # No --srcdir option.  We are building in place.
21024     ac_srcdir=.
21025     if test -z "$ac_top_builddir"; then
21026        ac_top_srcdir=.
21027     else
21028        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21029     fi ;;
21030   [\\/]* | ?:[\\/]* )  # Absolute path.
21031     ac_srcdir=$srcdir$ac_dir_suffix;
21032     ac_top_srcdir=$srcdir ;;
21033   *) # Relative path.
21034     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21035     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21036 esac
21037
21038 # Do not use `cd foo && pwd` to compute absolute paths, because
21039 # the directories may not exist.
21040 case `pwd` in
21041 .) ac_abs_builddir="$ac_dir";;
21042 *)
21043   case "$ac_dir" in
21044   .) ac_abs_builddir=`pwd`;;
21045   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21046   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21047   esac;;
21048 esac
21049 case $ac_abs_builddir in
21050 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21051 *)
21052   case ${ac_top_builddir}. in
21053   .) ac_abs_top_builddir=$ac_abs_builddir;;
21054   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21055   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21056   esac;;
21057 esac
21058 case $ac_abs_builddir in
21059 .) ac_abs_srcdir=$ac_srcdir;;
21060 *)
21061   case $ac_srcdir in
21062   .) ac_abs_srcdir=$ac_abs_builddir;;
21063   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21064   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21065   esac;;
21066 esac
21067 case $ac_abs_builddir in
21068 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21069 *)
21070   case $ac_top_srcdir in
21071   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21072   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21073   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21074   esac;;
21075 esac
21076
21077
21078   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21079 echo "$as_me: executing $ac_dest commands" >&6;}
21080   case $ac_dest in
21081     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21082   # Strip MF so we end up with the name of the file.
21083   mf=`echo "$mf" | sed -e 's/:.*$//'`
21084   # Check whether this is an Automake generated Makefile or not.
21085   # We used to match only the files named `Makefile.in', but
21086   # some people rename them; so instead we look at the file content.
21087   # Grep'ing the first line is not enough: some people post-process
21088   # each Makefile.in and add a new line on top of each file to say so.
21089   # So let's grep whole file.
21090   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21091     dirpart=`(dirname "$mf") 2>/dev/null ||
21092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21093          X"$mf" : 'X\(//\)[^/]' \| \
21094          X"$mf" : 'X\(//\)$' \| \
21095          X"$mf" : 'X\(/\)' \| \
21096          .     : '\(.\)' 2>/dev/null ||
21097 echo X"$mf" |
21098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21099           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21100           /^X\(\/\/\)$/{ s//\1/; q; }
21101           /^X\(\/\).*/{ s//\1/; q; }
21102           s/.*/./; q'`
21103   else
21104     continue
21105   fi
21106   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21107   # Extract the definition of DEP_FILES from the Makefile without
21108   # running `make'.
21109   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21110   test -z "$DEPDIR" && continue
21111   # When using ansi2knr, U may be empty or an underscore; expand it
21112   U=`sed -n -e '/^U = / s///p' < "$mf"`
21113   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21114   # We invoke sed twice because it is the simplest approach to
21115   # changing $(DEPDIR) to its actual value in the expansion.
21116   for file in `sed -n -e '
21117     /^DEP_FILES = .*\\\\$/ {
21118       s/^DEP_FILES = //
21119       :loop
21120         s/\\\\$//
21121         p
21122         n
21123         /\\\\$/ b loop
21124       p
21125     }
21126     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21127        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21128     # Make sure the directory exists.
21129     test -f "$dirpart/$file" && continue
21130     fdir=`(dirname "$file") 2>/dev/null ||
21131 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21132          X"$file" : 'X\(//\)[^/]' \| \
21133          X"$file" : 'X\(//\)$' \| \
21134          X"$file" : 'X\(/\)' \| \
21135          .     : '\(.\)' 2>/dev/null ||
21136 echo X"$file" |
21137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21139           /^X\(\/\/\)$/{ s//\1/; q; }
21140           /^X\(\/\).*/{ s//\1/; q; }
21141           s/.*/./; q'`
21142     { if $as_mkdir_p; then
21143     mkdir -p $dirpart/$fdir
21144   else
21145     as_dir=$dirpart/$fdir
21146     as_dirs=
21147     while test ! -d "$as_dir"; do
21148       as_dirs="$as_dir $as_dirs"
21149       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151          X"$as_dir" : 'X\(//\)[^/]' \| \
21152          X"$as_dir" : 'X\(//\)$' \| \
21153          X"$as_dir" : 'X\(/\)' \| \
21154          .     : '\(.\)' 2>/dev/null ||
21155 echo X"$as_dir" |
21156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21158           /^X\(\/\/\)$/{ s//\1/; q; }
21159           /^X\(\/\).*/{ s//\1/; q; }
21160           s/.*/./; q'`
21161     done
21162     test ! -n "$as_dirs" || mkdir $as_dirs
21163   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21164 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21165    { (exit 1); exit 1; }; }; }
21166
21167     # echo "creating $dirpart/$file"
21168     echo '# dummy' > "$dirpart/$file"
21169   done
21170 done
21171  ;;
21172   esac
21173 done
21174 _ACEOF
21175
21176 cat >>$CONFIG_STATUS <<\_ACEOF
21177
21178 { (exit 0); exit 0; }
21179 _ACEOF
21180 chmod +x $CONFIG_STATUS
21181 ac_clean_files=$ac_clean_files_save
21182
21183
21184 # configure is writing to config.log, and then calls config.status.
21185 # config.status does its own redirection, appending to config.log.
21186 # Unfortunately, on DOS this fails, as config.log is still kept open
21187 # by configure, so config.status won't be able to write to it; its
21188 # output is simply discarded.  So we exec the FD to /dev/null,
21189 # effectively closing config.log, so it can be properly (re)opened and
21190 # appended to by config.status.  When coming back to configure, we
21191 # need to make the FD available again.
21192 if test "$no_create" != yes; then
21193   ac_cs_success=:
21194   ac_config_status_args=
21195   test "$silent" = yes &&
21196     ac_config_status_args="$ac_config_status_args --quiet"
21197   exec 5>/dev/null
21198   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21199   exec 5>>config.log
21200   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21201   # would make configure fail if this is the last instruction.
21202   $ac_cs_success || { (exit 1); exit 1; }
21203 fi
21204