OSDN Git Service

Add libao support thanks to Iwata@kit
[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 NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848   --target=TARGET   configure for building compilers for TARGET [HOST]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of TiMidity++ current:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-maintainer-mode enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --enable-debug          Build a debugging version.
864   --disable-dependency-tracking Speeds up one-time builds
865   --enable-dependency-tracking  Do not reject slow dependency extractors
866   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867                               default:   Automatically select audio device.
868                               oss:       OSS /dev/dsp
869                               sun:       SunOS /dev/audio
870                               hpux:      HPUX /dev/audio
871                               irix:      IRIX audio library
872                               mme:       OSF/1 MME
873                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
874                               w32:       Windows MMS
875                               darwin:    Darwin CoreAudio
876                               alsa:      ALSA pcm device
877                               alib:      HPUX network audio (Alib)
878                               nas:       NAS - Network Audio System
879                               arts:      aRts
880                               esd:       EsounD - Enlightened Sound Daemon
881                               portaudio: PortAudio
882                               jack:      JACK
883                               ao:        Libao
884                               vorbis:    Ogg Vorbis
885                               gogo:      MP3 GOGO (Only Windows is supported)
886   --disable-alsatest      Do not try to compile and run a test Alsa program
887   --disable-artstest       Do not try to compile and run a test ARTS program
888   --disable-esdtest       Do not try to compile and run a test ESD program
889   --disable-aotest       Do not try to compile and run a test ao program
890   --disable-oggtest       Do not try to compile and run a test Ogg program
891   --disable-vorbistest       Do not try to compile and run a test Vorbis program
892   --enable-interface=interface_list
893                           Comma separated interface list
894   --enable-dynamic        Enable dynamic link interface   (default is no)
895   --enable-dynamic=dynamic_list
896                           Comma separated dynamic interface list
897   --enable-ncurses        Enable ncurses interface        (default is no)
898   --enable-slang          Enable slang interface          (default is no)
899   --enable-motif          Enable motif interface          (default is no)
900   --enable-tcltk          Enable tcltk interface          (default is no)
901   --enable-emacs          Enable emacs interface          (default is no)
902   --enable-vt100          Enable VT100 interface          (default is no)
903   --enable-xaw            Enable athena interface         (default is no)
904   --enable-xskin          Enable X skin interface         (default is no)
905   --enable-gtk            Enable GTK+ interface           (default is no)
906   --disable-gtktest       Do not try to compile and run a test GTK program
907   --enable-server         Enable server interface         (default is no)
908   --enable-alsaseq        Enable ALSA sequencer server interface
909                                                           (default is no)
910   --enable-winsyn        Enable Windows Synthesizer interface
911                                                           (default is no)
912   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
913                                                           (default is no)
914   --enable-winsyng        Enable Windows GUI Synthesizer interface
915                                                           (default is no)
916   --enable-w32gui         Enable Windows GUI interface    (default is no)
917   --enable-ump            UMP configuration               (default is no)
918   --enable-offix          Enable offix support            (default is no)
919   --enable-network        Enable network support          (default is no)
920   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
921   --enable-spline=method  Specify spline method.
922                                   one of no,linear,cubic,lagrange,newton,gauss
923                                                           (default is linear)
924   --enable-wrd            Enable WRD interface for X      (default is no)
925
926 Optional Packages:
927   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
928   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
929   --with-includes=DIR     Specify include directories (colon separated)
930   --with-libraries=DIR    Specify library directories (colon separated)
931   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
932   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
933   --with-lispdir          Override the default lisp directory
934   --with-elf              create ELF shared object instead of AOUT
935   --with-x                use the X Window System
936   --with-tcl-includes=DIR Tcl include file path
937   --with-tcl-libs=DIR     Tcl library file path
938   --with-tk-includes=DIR  Tk include file path
939   --with-tk-libs=DIR      Tk library file path
940   --with-offix-includes=DIR Offix include file path
941   --with-offix-libs=DIR   Offix include file path
942   --with-nas-library=library NAS absolute library path(Don't use -laudio)
943   --with-nas-includes=DIR NAS include files are in dir
944   --with-default-output=<mode>  Specify default output mode (optional):
945                                 (default|alsa|alib|arts|nas|
946                                 esd|wav|au|aiff|list|vorbis|
947                                 gogo|portaudio|jack|ao)
948   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
949   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
950   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
951   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
952   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
953   --with-ao=PFX   Prefix where libao is installed (optional)
954   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
955   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
956   --with-ogg=PFX   Prefix where libogg is installed (optional)
957   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
958   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
959   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
960   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
961   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
962   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
963   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
964
965 Some influential environment variables:
966   CC          C compiler command
967   CFLAGS      C compiler flags
968   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
969               nonstandard directory <lib dir>
970   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
971               headers in a nonstandard directory <include dir>
972   CPP         C preprocessor
973
974 Use these variables to override the choices made by `configure' or to help
975 it to find libraries and programs with nonstandard names/locations.
976
977 Report bugs to <root@mput.dip.jp>.
978 _ACEOF
979 fi
980
981 if test "$ac_init_help" = "recursive"; then
982   # If there are subdirs, report their specific --help.
983   ac_popdir=`pwd`
984   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
985     test -d $ac_dir || continue
986     ac_builddir=.
987
988 if test "$ac_dir" != .; then
989   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
990   # A "../" for each directory in $ac_dir_suffix.
991   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
992 else
993   ac_dir_suffix= ac_top_builddir=
994 fi
995
996 case $srcdir in
997   .)  # No --srcdir option.  We are building in place.
998     ac_srcdir=.
999     if test -z "$ac_top_builddir"; then
1000        ac_top_srcdir=.
1001     else
1002        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1003     fi ;;
1004   [\\/]* | ?:[\\/]* )  # Absolute path.
1005     ac_srcdir=$srcdir$ac_dir_suffix;
1006     ac_top_srcdir=$srcdir ;;
1007   *) # Relative path.
1008     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1009     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1010 esac
1011
1012 # Do not use `cd foo && pwd` to compute absolute paths, because
1013 # the directories may not exist.
1014 case `pwd` in
1015 .) ac_abs_builddir="$ac_dir";;
1016 *)
1017   case "$ac_dir" in
1018   .) ac_abs_builddir=`pwd`;;
1019   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1020   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1021   esac;;
1022 esac
1023 case $ac_abs_builddir in
1024 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1025 *)
1026   case ${ac_top_builddir}. in
1027   .) ac_abs_top_builddir=$ac_abs_builddir;;
1028   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1029   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1030   esac;;
1031 esac
1032 case $ac_abs_builddir in
1033 .) ac_abs_srcdir=$ac_srcdir;;
1034 *)
1035   case $ac_srcdir in
1036   .) ac_abs_srcdir=$ac_abs_builddir;;
1037   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1038   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1039   esac;;
1040 esac
1041 case $ac_abs_builddir in
1042 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1043 *)
1044   case $ac_top_srcdir in
1045   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1046   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1047   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1048   esac;;
1049 esac
1050
1051     cd $ac_dir
1052     # Check for guested configure; otherwise get Cygnus style configure.
1053     if test -f $ac_srcdir/configure.gnu; then
1054       echo
1055       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1056     elif test -f $ac_srcdir/configure; then
1057       echo
1058       $SHELL $ac_srcdir/configure  --help=recursive
1059     elif test -f $ac_srcdir/configure.ac ||
1060            test -f $ac_srcdir/configure.in; then
1061       echo
1062       $ac_configure --help
1063     else
1064       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1065     fi
1066     cd $ac_popdir
1067   done
1068 fi
1069
1070 test -n "$ac_init_help" && exit 0
1071 if $ac_init_version; then
1072   cat <<\_ACEOF
1073 TiMidity++ configure current
1074 generated by GNU Autoconf 2.59
1075
1076 Copyright (C) 2003 Free Software Foundation, Inc.
1077 This configure script is free software; the Free Software Foundation
1078 gives unlimited permission to copy, distribute and modify it.
1079 _ACEOF
1080   exit 0
1081 fi
1082 exec 5>config.log
1083 cat >&5 <<_ACEOF
1084 This file contains any messages produced by compilers while
1085 running configure, to aid debugging if configure makes a mistake.
1086
1087 It was created by TiMidity++ $as_me current, which was
1088 generated by GNU Autoconf 2.59.  Invocation command line was
1089
1090   $ $0 $@
1091
1092 _ACEOF
1093 {
1094 cat <<_ASUNAME
1095 ## --------- ##
1096 ## Platform. ##
1097 ## --------- ##
1098
1099 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1100 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1101 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1102 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1103 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1104
1105 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1106 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1107
1108 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1109 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1110 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1111 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1112 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1113 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1114 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1115
1116 _ASUNAME
1117
1118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1119 for as_dir in $PATH
1120 do
1121   IFS=$as_save_IFS
1122   test -z "$as_dir" && as_dir=.
1123   echo "PATH: $as_dir"
1124 done
1125
1126 } >&5
1127
1128 cat >&5 <<_ACEOF
1129
1130
1131 ## ----------- ##
1132 ## Core tests. ##
1133 ## ----------- ##
1134
1135 _ACEOF
1136
1137
1138 # Keep a trace of the command line.
1139 # Strip out --no-create and --no-recursion so they do not pile up.
1140 # Strip out --silent because we don't want to record it for future runs.
1141 # Also quote any args containing shell meta-characters.
1142 # Make two passes to allow for proper duplicate-argument suppression.
1143 ac_configure_args=
1144 ac_configure_args0=
1145 ac_configure_args1=
1146 ac_sep=
1147 ac_must_keep_next=false
1148 for ac_pass in 1 2
1149 do
1150   for ac_arg
1151   do
1152     case $ac_arg in
1153     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1154     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155     | -silent | --silent | --silen | --sile | --sil)
1156       continue ;;
1157     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1158       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1159     esac
1160     case $ac_pass in
1161     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1162     2)
1163       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1164       if test $ac_must_keep_next = true; then
1165         ac_must_keep_next=false # Got value, back to normal.
1166       else
1167         case $ac_arg in
1168           *=* | --config-cache | -C | -disable-* | --disable-* \
1169           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1170           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1171           | -with-* | --with-* | -without-* | --without-* | --x)
1172             case "$ac_configure_args0 " in
1173               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1174             esac
1175             ;;
1176           -* ) ac_must_keep_next=true ;;
1177         esac
1178       fi
1179       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1180       # Get rid of the leading space.
1181       ac_sep=" "
1182       ;;
1183     esac
1184   done
1185 done
1186 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1187 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1188
1189 # When interrupted or exit'd, cleanup temporary files, and complete
1190 # config.log.  We remove comments because anyway the quotes in there
1191 # would cause problems or look ugly.
1192 # WARNING: Be sure not to use single quotes in there, as some shells,
1193 # such as our DU 5.0 friend, will then `close' the trap.
1194 trap 'exit_status=$?
1195   # Save into config.log some information that might help in debugging.
1196   {
1197     echo
1198
1199     cat <<\_ASBOX
1200 ## ---------------- ##
1201 ## Cache variables. ##
1202 ## ---------------- ##
1203 _ASBOX
1204     echo
1205     # The following way of writing the cache mishandles newlines in values,
1206 {
1207   (set) 2>&1 |
1208     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1209     *ac_space=\ *)
1210       sed -n \
1211         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1212           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1213       ;;
1214     *)
1215       sed -n \
1216         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1217       ;;
1218     esac;
1219 }
1220     echo
1221
1222     cat <<\_ASBOX
1223 ## ----------------- ##
1224 ## Output variables. ##
1225 ## ----------------- ##
1226 _ASBOX
1227     echo
1228     for ac_var in $ac_subst_vars
1229     do
1230       eval ac_val=$`echo $ac_var`
1231       echo "$ac_var='"'"'$ac_val'"'"'"
1232     done | sort
1233     echo
1234
1235     if test -n "$ac_subst_files"; then
1236       cat <<\_ASBOX
1237 ## ------------- ##
1238 ## Output files. ##
1239 ## ------------- ##
1240 _ASBOX
1241       echo
1242       for ac_var in $ac_subst_files
1243       do
1244         eval ac_val=$`echo $ac_var`
1245         echo "$ac_var='"'"'$ac_val'"'"'"
1246       done | sort
1247       echo
1248     fi
1249
1250     if test -s confdefs.h; then
1251       cat <<\_ASBOX
1252 ## ----------- ##
1253 ## confdefs.h. ##
1254 ## ----------- ##
1255 _ASBOX
1256       echo
1257       sed "/^$/d" confdefs.h | sort
1258       echo
1259     fi
1260     test "$ac_signal" != 0 &&
1261       echo "$as_me: caught signal $ac_signal"
1262     echo "$as_me: exit $exit_status"
1263   } >&5
1264   rm -f core *.core &&
1265   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1266     exit $exit_status
1267      ' 0
1268 for ac_signal in 1 2 13 15; do
1269   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1270 done
1271 ac_signal=0
1272
1273 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1274 rm -rf conftest* confdefs.h
1275 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1276 echo >confdefs.h
1277
1278 # Predefined preprocessor variables.
1279
1280 cat >>confdefs.h <<_ACEOF
1281 #define PACKAGE_NAME "$PACKAGE_NAME"
1282 _ACEOF
1283
1284
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1287 _ACEOF
1288
1289
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1292 _ACEOF
1293
1294
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_STRING "$PACKAGE_STRING"
1297 _ACEOF
1298
1299
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1302 _ACEOF
1303
1304
1305 # Let the site file select an alternate cache file if it wants to.
1306 # Prefer explicitly selected file to automatically selected ones.
1307 if test -z "$CONFIG_SITE"; then
1308   if test "x$prefix" != xNONE; then
1309     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1310   else
1311     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1312   fi
1313 fi
1314 for ac_site_file in $CONFIG_SITE; do
1315   if test -r "$ac_site_file"; then
1316     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1317 echo "$as_me: loading site script $ac_site_file" >&6;}
1318     sed 's/^/| /' "$ac_site_file" >&5
1319     . "$ac_site_file"
1320   fi
1321 done
1322
1323 if test -r "$cache_file"; then
1324   # Some versions of bash will fail to source /dev/null (special
1325   # files actually), so we avoid doing that.
1326   if test -f "$cache_file"; then
1327     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1328 echo "$as_me: loading cache $cache_file" >&6;}
1329     case $cache_file in
1330       [\\/]* | ?:[\\/]* ) . $cache_file;;
1331       *)                      . ./$cache_file;;
1332     esac
1333   fi
1334 else
1335   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1336 echo "$as_me: creating cache $cache_file" >&6;}
1337   >$cache_file
1338 fi
1339
1340 # Check that the precious variables saved in the cache have kept the same
1341 # value.
1342 ac_cache_corrupted=false
1343 for ac_var in `(set) 2>&1 |
1344                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1345   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1346   eval ac_new_set=\$ac_env_${ac_var}_set
1347   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1348   eval ac_new_val="\$ac_env_${ac_var}_value"
1349   case $ac_old_set,$ac_new_set in
1350     set,)
1351       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1352 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1353       ac_cache_corrupted=: ;;
1354     ,set)
1355       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1356 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1357       ac_cache_corrupted=: ;;
1358     ,);;
1359     *)
1360       if test "x$ac_old_val" != "x$ac_new_val"; then
1361         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1362 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1363         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1364 echo "$as_me:   former value:  $ac_old_val" >&2;}
1365         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1366 echo "$as_me:   current value: $ac_new_val" >&2;}
1367         ac_cache_corrupted=:
1368       fi;;
1369   esac
1370   # Pass precious variables to config.status.
1371   if test "$ac_new_set" = set; then
1372     case $ac_new_val in
1373     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1374       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1375     *) ac_arg=$ac_var=$ac_new_val ;;
1376     esac
1377     case " $ac_configure_args " in
1378       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1379       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1380     esac
1381   fi
1382 done
1383 if $ac_cache_corrupted; then
1384   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1385 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1386   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1387 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1388    { (exit 1); exit 1; }; }
1389 fi
1390
1391 ac_ext=c
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423 ac_aux_dir=
1424 for ac_dir in autoconf $srcdir/autoconf; do
1425   if test -f $ac_dir/install-sh; then
1426     ac_aux_dir=$ac_dir
1427     ac_install_sh="$ac_aux_dir/install-sh -c"
1428     break
1429   elif test -f $ac_dir/install.sh; then
1430     ac_aux_dir=$ac_dir
1431     ac_install_sh="$ac_aux_dir/install.sh -c"
1432     break
1433   elif test -f $ac_dir/shtool; then
1434     ac_aux_dir=$ac_dir
1435     ac_install_sh="$ac_aux_dir/shtool install -c"
1436     break
1437   fi
1438 done
1439 if test -z "$ac_aux_dir"; then
1440   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1441 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1442    { (exit 1); exit 1; }; }
1443 fi
1444 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1445 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1446 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1447
1448 # Make sure we can run config.sub.
1449 $ac_config_sub sun4 >/dev/null 2>&1 ||
1450   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1451 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1452    { (exit 1); exit 1; }; }
1453
1454 echo "$as_me:$LINENO: checking build system type" >&5
1455 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1456 if test "${ac_cv_build+set}" = set; then
1457   echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459   ac_cv_build_alias=$build_alias
1460 test -z "$ac_cv_build_alias" &&
1461   ac_cv_build_alias=`$ac_config_guess`
1462 test -z "$ac_cv_build_alias" &&
1463   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1464 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1465    { (exit 1); exit 1; }; }
1466 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1467   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1468 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1469    { (exit 1); exit 1; }; }
1470
1471 fi
1472 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1473 echo "${ECHO_T}$ac_cv_build" >&6
1474 build=$ac_cv_build
1475 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1476 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1477 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1478
1479
1480 echo "$as_me:$LINENO: checking host system type" >&5
1481 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1482 if test "${ac_cv_host+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   ac_cv_host_alias=$host_alias
1486 test -z "$ac_cv_host_alias" &&
1487   ac_cv_host_alias=$ac_cv_build_alias
1488 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1489   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1491    { (exit 1); exit 1; }; }
1492
1493 fi
1494 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1495 echo "${ECHO_T}$ac_cv_host" >&6
1496 host=$ac_cv_host
1497 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1500
1501
1502 echo "$as_me:$LINENO: checking target system type" >&5
1503 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1504 if test "${ac_cv_target+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   ac_cv_target_alias=$target_alias
1508 test "x$ac_cv_target_alias" = "x" &&
1509   ac_cv_target_alias=$ac_cv_host_alias
1510 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1511   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1513    { (exit 1); exit 1; }; }
1514
1515 fi
1516 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1517 echo "${ECHO_T}$ac_cv_target" >&6
1518 target=$ac_cv_target
1519 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1522
1523
1524 # The aliases save the names the user supplied, while $host etc.
1525 # will get canonicalized.
1526 test -n "$target_alias" &&
1527   test "$program_prefix$program_suffix$program_transform_name" = \
1528     NONENONEs,x,x, &&
1529   program_prefix=${target_alias}-
1530 am__api_version="1.7"
1531 # Find a good install program.  We prefer a C program (faster),
1532 # so one script is as good as another.  But avoid the broken or
1533 # incompatible versions:
1534 # SysV /etc/install, /usr/sbin/install
1535 # SunOS /usr/etc/install
1536 # IRIX /sbin/install
1537 # AIX /bin/install
1538 # AmigaOS /C/install, which installs bootblocks on floppy discs
1539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1542 # OS/2's system install, which has a completely different semantic
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1545 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1546 if test -z "$INSTALL"; then
1547 if test "${ac_cv_path_install+set}" = set; then
1548   echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553   IFS=$as_save_IFS
1554   test -z "$as_dir" && as_dir=.
1555   # Account for people who put trailing slashes in PATH elements.
1556 case $as_dir/ in
1557   ./ | .// | /cC/* | \
1558   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1559   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1560   /usr/ucb/* ) ;;
1561   *)
1562     # OSF1 and SCO ODT 3.0 have their own names for install.
1563     # Don't use installbsd from OSF since it installs stuff as root
1564     # by default.
1565     for ac_prog in ginstall scoinst install; do
1566       for ac_exec_ext in '' $ac_executable_extensions; do
1567         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1568           if test $ac_prog = install &&
1569             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570             # AIX install.  It has an incompatible calling convention.
1571             :
1572           elif test $ac_prog = install &&
1573             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574             # program-specific install script used by HP pwplus--don't use.
1575             :
1576           else
1577             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1578             break 3
1579           fi
1580         fi
1581       done
1582     done
1583     ;;
1584 esac
1585 done
1586
1587
1588 fi
1589   if test "${ac_cv_path_install+set}" = set; then
1590     INSTALL=$ac_cv_path_install
1591   else
1592     # As a last resort, use the slow shell script.  We don't cache a
1593     # path for INSTALL within a source directory, because that will
1594     # break other packages using the cache if that directory is
1595     # removed, or if the path is relative.
1596     INSTALL=$ac_install_sh
1597   fi
1598 fi
1599 echo "$as_me:$LINENO: result: $INSTALL" >&5
1600 echo "${ECHO_T}$INSTALL" >&6
1601
1602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1603 # It thinks the first close brace ends the variable substitution.
1604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1605
1606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1607
1608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609
1610 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1611 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1612 # Just in case
1613 sleep 1
1614 echo timestamp > conftest.file
1615 # Do `set' in a subshell so we don't clobber the current shell's
1616 # arguments.  Must try -L first in case configure is actually a
1617 # symlink; some systems play weird games with the mod time of symlinks
1618 # (eg FreeBSD returns the mod time of the symlink's containing
1619 # directory).
1620 if (
1621    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1622    if test "$*" = "X"; then
1623       # -L didn't work.
1624       set X `ls -t $srcdir/configure conftest.file`
1625    fi
1626    rm -f conftest.file
1627    if test "$*" != "X $srcdir/configure conftest.file" \
1628       && test "$*" != "X conftest.file $srcdir/configure"; then
1629
1630       # If neither matched, then we have a broken ls.  This can happen
1631       # if, for instance, CONFIG_SHELL is bash and it inherits a
1632       # broken ls alias from the environment.  This has actually
1633       # happened.  Such a system could not be considered "sane".
1634       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1635 alias in your environment" >&5
1636 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1637 alias in your environment" >&2;}
1638    { (exit 1); exit 1; }; }
1639    fi
1640
1641    test "$2" = conftest.file
1642    )
1643 then
1644    # Ok.
1645    :
1646 else
1647    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1648 Check your system clock" >&5
1649 echo "$as_me: error: newly created file is older than distributed files!
1650 Check your system clock" >&2;}
1651    { (exit 1); exit 1; }; }
1652 fi
1653 echo "$as_me:$LINENO: result: yes" >&5
1654 echo "${ECHO_T}yes" >&6
1655 test "$program_prefix" != NONE &&
1656   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1657 # Use a double $ so make ignores it.
1658 test "$program_suffix" != NONE &&
1659   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1660 # Double any \ or $.  echo might interpret backslashes.
1661 # By default was `s,x,x', remove it if useless.
1662 cat <<\_ACEOF >conftest.sed
1663 s/[\\$]/&&/g;s/;s,x,x,$//
1664 _ACEOF
1665 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1666 rm conftest.sed
1667
1668
1669 # expand $ac_aux_dir to an absolute path
1670 am_aux_dir=`cd $ac_aux_dir && pwd`
1671
1672 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1673 # Use eval to expand $SHELL
1674 if eval "$MISSING --run true"; then
1675   am_missing_run="$MISSING --run "
1676 else
1677   am_missing_run=
1678   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1679 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1680 fi
1681
1682 for ac_prog in gawk mawk nawk awk
1683 do
1684   # Extract the first word of "$ac_prog", so it can be a program name with args.
1685 set dummy $ac_prog; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_AWK+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$AWK"; then
1692   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697   IFS=$as_save_IFS
1698   test -z "$as_dir" && as_dir=.
1699   for ac_exec_ext in '' $ac_executable_extensions; do
1700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701     ac_cv_prog_AWK="$ac_prog"
1702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703     break 2
1704   fi
1705 done
1706 done
1707
1708 fi
1709 fi
1710 AWK=$ac_cv_prog_AWK
1711 if test -n "$AWK"; then
1712   echo "$as_me:$LINENO: result: $AWK" >&5
1713 echo "${ECHO_T}$AWK" >&6
1714 else
1715   echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719   test -n "$AWK" && break
1720 done
1721
1722 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1723 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1724 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1725 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1726   echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728   cat >conftest.make <<\_ACEOF
1729 all:
1730         @echo 'ac_maketemp="$(MAKE)"'
1731 _ACEOF
1732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1733 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1734 if test -n "$ac_maketemp"; then
1735   eval ac_cv_prog_make_${ac_make}_set=yes
1736 else
1737   eval ac_cv_prog_make_${ac_make}_set=no
1738 fi
1739 rm -f conftest.make
1740 fi
1741 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1742   echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6
1744   SET_MAKE=
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748   SET_MAKE="MAKE=${MAKE-make}"
1749 fi
1750
1751 rm -rf .tst 2>/dev/null
1752 mkdir .tst 2>/dev/null
1753 if test -d .tst; then
1754   am__leading_dot=.
1755 else
1756   am__leading_dot=_
1757 fi
1758 rmdir .tst 2>/dev/null
1759
1760  # test to see if srcdir already configured
1761 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1762    test -f $srcdir/config.status; then
1763   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1764 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1765    { (exit 1); exit 1; }; }
1766 fi
1767
1768 # test whether we have cygpath
1769 if test -z "$CYGPATH_W"; then
1770   if (cygpath --version) >/dev/null 2>/dev/null; then
1771     CYGPATH_W='cygpath -w'
1772   else
1773     CYGPATH_W=echo
1774   fi
1775 fi
1776
1777
1778 # Define the identity of the package.
1779  PACKAGE='TiMidity++'
1780  VERSION='current'
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE "$PACKAGE"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define VERSION "$VERSION"
1790 _ACEOF
1791
1792 # Some tools Automake needs.
1793
1794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1795
1796
1797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1798
1799
1800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1801
1802
1803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1804
1805
1806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1807
1808
1809 AMTAR=${AMTAR-"${am_missing_run}tar"}
1810
1811 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1812
1813 # Installed binaries are usually stripped using `strip' when the user
1814 # run `make install-strip'.  However `strip' might not be the right
1815 # tool to use in cross-compilation environments, therefore Automake
1816 # will honor the `STRIP' environment variable to overrule this program.
1817 if test "$cross_compiling" != no; then
1818   if test -n "$ac_tool_prefix"; then
1819   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1820 set dummy ${ac_tool_prefix}strip; ac_word=$2
1821 echo "$as_me:$LINENO: checking for $ac_word" >&5
1822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823 if test "${ac_cv_prog_STRIP+set}" = set; then
1824   echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826   if test -n "$STRIP"; then
1827   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1828 else
1829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 for as_dir in $PATH
1831 do
1832   IFS=$as_save_IFS
1833   test -z "$as_dir" && as_dir=.
1834   for ac_exec_ext in '' $ac_executable_extensions; do
1835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838     break 2
1839   fi
1840 done
1841 done
1842
1843 fi
1844 fi
1845 STRIP=$ac_cv_prog_STRIP
1846 if test -n "$STRIP"; then
1847   echo "$as_me:$LINENO: result: $STRIP" >&5
1848 echo "${ECHO_T}$STRIP" >&6
1849 else
1850   echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1852 fi
1853
1854 fi
1855 if test -z "$ac_cv_prog_STRIP"; then
1856   ac_ct_STRIP=$STRIP
1857   # Extract the first word of "strip", so it can be a program name with args.
1858 set dummy strip; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1862   echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864   if test -n "$ac_ct_STRIP"; then
1865   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870   IFS=$as_save_IFS
1871   test -z "$as_dir" && as_dir=.
1872   for ac_exec_ext in '' $ac_executable_extensions; do
1873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874     ac_cv_prog_ac_ct_STRIP="strip"
1875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876     break 2
1877   fi
1878 done
1879 done
1880
1881   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1882 fi
1883 fi
1884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1885 if test -n "$ac_ct_STRIP"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1887 echo "${ECHO_T}$ac_ct_STRIP" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   STRIP=$ac_ct_STRIP
1894 else
1895   STRIP="$ac_cv_prog_STRIP"
1896 fi
1897
1898 fi
1899 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1900
1901 # We need awk for the "check" target.  The system "awk" is bad on
1902 # some platforms.
1903
1904
1905
1906
1907                     ac_config_headers="$ac_config_headers config.h interface.h"
1908
1909 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1910 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1911     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1912 if test "${enable_maintainer_mode+set}" = set; then
1913   enableval="$enable_maintainer_mode"
1914   USE_MAINTAINER_MODE=$enableval
1915 else
1916   USE_MAINTAINER_MODE=no
1917 fi;
1918   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1919 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1920
1921
1922 if test $USE_MAINTAINER_MODE = yes; then
1923   MAINTAINER_MODE_TRUE=
1924   MAINTAINER_MODE_FALSE='#'
1925 else
1926   MAINTAINER_MODE_TRUE='#'
1927   MAINTAINER_MODE_FALSE=
1928 fi
1929
1930   MAINT=$MAINTAINER_MODE_TRUE
1931
1932
1933
1934 SHELL=${CONFIG_SHELL-"/bin/sh"}
1935 WISH=${WISH-"wish"}
1936
1937 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1938 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1939 echo "grimblepritz" >grimble
1940 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1941         contains="./contains"
1942 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1943         contains=grep
1944 else
1945         contains="./contains"
1946 fi
1947 rm -f grimble
1948 case "$contains" in
1949 grep)   echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6
1951         ;;
1952 ./contains)
1953         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1954 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1955         cat >./contains <<'EOSS'
1956 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1957 EOSS
1958         chmod +x "./contains"
1959         ;;
1960 esac
1961
1962
1963 # Check for compiler options -- such as debug flags.
1964
1965 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1966 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1967 # Check whether --enable-debug or --disable-debug was given.
1968 if test "${enable_debug+set}" = set; then
1969   enableval="$enable_debug"
1970   timidity_cv_debug="yes"
1971 else
1972   timidity_cv_debug="no"
1973 fi;
1974 if test "x$timidity_cv_debug" = "xyes"; then
1975
1976 cat >>confdefs.h <<\_ACEOF
1977 #define DEBUG 1
1978 _ACEOF
1979
1980   CFLAGS=${CFLAGS-"-g"}
1981 fi
1982 if test "x$timidity_cv_debug" = "xno"; then
1983
1984 cat >>confdefs.h <<\_ACEOF
1985 #define NDEBUG 1
1986 _ACEOF
1987
1988 fi
1989 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1990 echo "${ECHO_T}$timidity_cv_debug" >&6
1991
1992 CFLAGS=${CFLAGS-"-O2"}
1993
1994 if test "x$with_x" = x; then
1995   with_x=yes
1996 else
1997   x_config_flag=yes
1998 fi
1999
2000 # Checking gcc environment
2001 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2002   LDFLAGS="$LDFLAGS -L${i}"
2003 done
2004 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2005   CPPFLAGS="$CPPFLAGS -I${i}"
2006 done
2007
2008 # add $prefix if specified.
2009 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2010   LDFLAGS="-L$prefix/lib $LDFLAGS"
2011   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2012   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2013 fi
2014
2015
2016 # Check whether --with-includes or --without-includes was given.
2017 if test "${with_includes+set}" = set; then
2018   withval="$with_includes"
2019    j=' '
2020     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2021       j="${j}-I${i} "
2022     done
2023     CPPFLAGS="$j$CPPFLAGS"
2024
2025 fi;
2026
2027
2028 # Check whether --with-libraries or --without-libraries was given.
2029 if test "${with_libraries+set}" = set; then
2030   withval="$with_libraries"
2031    j=' '
2032     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2033       j="${j}-L${i} "
2034     done
2035     LDFLAGS="$j$LDFLAGS"
2036
2037 fi;
2038
2039
2040
2041 # Check whether --with-default-path or --without-default-path was given.
2042 if test "${with_default_path+set}" = set; then
2043   withval="$with_default_path"
2044   pkgdatadir=$withval
2045 else
2046
2047    if test "x$prefix" != "xNONE"; then
2048       pkgdatadir='${prefix}/share/timidity'
2049    else
2050       pkgdatadir='/usr/local/share/timidity'
2051    fi
2052
2053 fi;
2054 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define DEFAULT_PATH "$tmpdefpath"
2058 _ACEOF
2059
2060
2061 cat >>confdefs.h <<\_ACEOF
2062 #define PKGDATADIR DEFAULT_PATH
2063 _ACEOF
2064
2065
2066
2067 # Check whether --with-module-dir or --without-module-dir was given.
2068 if test "${with_module_dir+set}" = set; then
2069   withval="$with_module_dir"
2070   pkglibdir=$withval
2071 else
2072
2073    if test "x$prefix" != "xNONE"; then
2074       pkglibdir='${prefix}/lib/timidity'
2075    else
2076       pkglibdir='/usr/local/lib/timidity'
2077    fi
2078
2079 fi;
2080 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PKGLIBDIR "$tmplibdir"
2084 _ACEOF
2085
2086
2087
2088 # Checks for programs.
2089
2090 # Check whether --with-lispdir or --without-lispdir was given.
2091 if test "${with_lispdir+set}" = set; then
2092   withval="$with_lispdir"
2093    lispdir="$withval"
2094    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2095 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2096    echo "$as_me:$LINENO: result: $lispdir" >&5
2097 echo "${ECHO_T}$lispdir" >&6
2098 else
2099
2100  # If set to t, that means we are running in a shell under Emacs.
2101  # If you have an Emacs named "t", then use the full path.
2102  test x"$EMACS" = xt && EMACS=
2103  for ac_prog in emacs xemacs
2104 do
2105   # Extract the first word of "$ac_prog", so it can be a program name with args.
2106 set dummy $ac_prog; ac_word=$2
2107 echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109 if test "${ac_cv_prog_EMACS+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   if test -n "$EMACS"; then
2113   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122     ac_cv_prog_EMACS="$ac_prog"
2123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128
2129 fi
2130 fi
2131 EMACS=$ac_cv_prog_EMACS
2132 if test -n "$EMACS"; then
2133   echo "$as_me:$LINENO: result: $EMACS" >&5
2134 echo "${ECHO_T}$EMACS" >&6
2135 else
2136   echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6
2138 fi
2139
2140   test -n "$EMACS" && break
2141 done
2142 test -n "$EMACS" || EMACS="no"
2143
2144  if test $EMACS != "no"; then
2145    if test x${lispdir+set} != xset; then
2146      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2147 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2148 if test "${am_cv_lispdir+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2152   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2153   #  which is non-obvious for non-emacs users.
2154   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2155   #  emacsen earlier and avoid running this altogether.
2156   { (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
2157   ($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
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }
2161         am_cv_lispdir=`sed -n \
2162        -e 's,/$,,' \
2163        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2164        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2165        conftest.out`
2166        rm conftest.out
2167        if test -z "$am_cv_lispdir"; then
2168          am_cv_lispdir='${datadir}/emacs/site-lisp'
2169        fi
2170
2171 fi
2172 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2173 echo "${ECHO_T}$am_cv_lispdir" >&6
2174      lispdir="$am_cv_lispdir"
2175    fi
2176  fi
2177
2178 fi;
2179
2180
2181 ac_ext=c
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 if test -n "$ac_tool_prefix"; then
2187   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2189 echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test -n "$CC"; then
2195   ac_cv_prog_CC="$CC" # Let the user override the test.
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2199 do
2200   IFS=$as_save_IFS
2201   test -z "$as_dir" && as_dir=.
2202   for ac_exec_ext in '' $ac_executable_extensions; do
2203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206     break 2
2207   fi
2208 done
2209 done
2210
2211 fi
2212 fi
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215   echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6
2217 else
2218   echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6
2220 fi
2221
2222 fi
2223 if test -z "$ac_cv_prog_CC"; then
2224   ac_ct_CC=$CC
2225   # Extract the first word of "gcc", so it can be a program name with args.
2226 set dummy gcc; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$ac_ct_CC"; then
2233   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242     ac_cv_prog_ac_ct_CC="gcc"
2243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244     break 2
2245   fi
2246 done
2247 done
2248
2249 fi
2250 fi
2251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252 if test -n "$ac_ct_CC"; then
2253   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254 echo "${ECHO_T}$ac_ct_CC" >&6
2255 else
2256   echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2258 fi
2259
2260   CC=$ac_ct_CC
2261 else
2262   CC="$ac_cv_prog_CC"
2263 fi
2264
2265 if test -z "$CC"; then
2266   if test -n "$ac_tool_prefix"; then
2267   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}cc; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284     ac_cv_prog_CC="${ac_tool_prefix}cc"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290
2291 fi
2292 fi
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295   echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2297 else
2298   echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2300 fi
2301
2302 fi
2303 if test -z "$ac_cv_prog_CC"; then
2304   ac_ct_CC=$CC
2305   # Extract the first word of "cc", so it can be a program name with args.
2306 set dummy cc; ac_word=$2
2307 echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   if test -n "$ac_ct_CC"; then
2313   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_exec_ext in '' $ac_executable_extensions; do
2321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322     ac_cv_prog_ac_ct_CC="cc"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2328
2329 fi
2330 fi
2331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332 if test -n "$ac_ct_CC"; then
2333   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334 echo "${ECHO_T}$ac_ct_CC" >&6
2335 else
2336   echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6
2338 fi
2339
2340   CC=$ac_ct_CC
2341 else
2342   CC="$ac_cv_prog_CC"
2343 fi
2344
2345 fi
2346 if test -z "$CC"; then
2347   # Extract the first word of "cc", so it can be a program name with args.
2348 set dummy cc; ac_word=$2
2349 echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$CC"; then
2355   ac_cv_prog_CC="$CC" # Let the user override the test.
2356 else
2357   ac_prog_rejected=no
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366        ac_prog_rejected=yes
2367        continue
2368      fi
2369     ac_cv_prog_CC="cc"
2370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375
2376 if test $ac_prog_rejected = yes; then
2377   # We found a bogon in the path, so make sure we never use it.
2378   set dummy $ac_cv_prog_CC
2379   shift
2380   if test $# != 0; then
2381     # We chose a different compiler from the bogus one.
2382     # However, it has the same basename, so the bogon will be chosen
2383     # first if we set CC to just the basename; use the full file name.
2384     shift
2385     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2386   fi
2387 fi
2388 fi
2389 fi
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392   echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6
2394 else
2395   echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2397 fi
2398
2399 fi
2400 if test -z "$CC"; then
2401   if test -n "$ac_tool_prefix"; then
2402   for ac_prog in cl
2403   do
2404     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$CC"; then
2412   ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419   for ac_exec_ext in '' $ac_executable_extensions; do
2420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423     break 2
2424   fi
2425 done
2426 done
2427
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432   echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6
2434 else
2435   echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437 fi
2438
2439     test -n "$CC" && break
2440   done
2441 fi
2442 if test -z "$CC"; then
2443   ac_ct_CC=$CC
2444   for ac_prog in cl
2445 do
2446   # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -n "$ac_ct_CC"; then
2454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461   for ac_exec_ext in '' $ac_executable_extensions; do
2462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463     ac_cv_prog_ac_ct_CC="$ac_prog"
2464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465     break 2
2466   fi
2467 done
2468 done
2469
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6
2476 else
2477   echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2479 fi
2480
2481   test -n "$ac_ct_CC" && break
2482 done
2483
2484   CC=$ac_ct_CC
2485 fi
2486
2487 fi
2488
2489
2490 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&2;}
2494    { (exit 1); exit 1; }; }
2495
2496 # Provide some information about the compiler.
2497 echo "$as_me:$LINENO:" \
2498      "checking for C compiler version" >&5
2499 ac_compiler=`set X $ac_compile; echo $2`
2500 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2501   (eval $ac_compiler --version </dev/null >&5) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2506   (eval $ac_compiler -v </dev/null >&5) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2511   (eval $ac_compiler -V </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2522
2523 int
2524 main ()
2525 {
2526
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 ac_clean_files_save=$ac_clean_files
2532 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2533 # Try to create an executable without -o first, disregard a.out.
2534 # It will help us diagnose broken compilers, and finding out an intuition
2535 # of exeext.
2536 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2537 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2540   (eval $ac_link_default) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; then
2544   # Find the output, starting from the most likely.  This scheme is
2545 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2546 # resort.
2547
2548 # Be careful to initialize this variable, since it used to be cached.
2549 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2550 ac_cv_exeext=
2551 # b.out is created by i960 compilers.
2552 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2553 do
2554   test -f "$ac_file" || continue
2555   case $ac_file in
2556     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2557         ;;
2558     conftest.$ac_ext )
2559         # This is the source file.
2560         ;;
2561     [ab].out )
2562         # We found the default executable, but exeext='' is most
2563         # certainly right.
2564         break;;
2565     *.* )
2566         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2567         # FIXME: I believe we export ac_cv_exeext for Libtool,
2568         # but it would be cool to find out if it's true.  Does anybody
2569         # maintain Libtool? --akim.
2570         export ac_cv_exeext
2571         break;;
2572     * )
2573         break;;
2574   esac
2575 done
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584    { (exit 77); exit 77; }; }
2585 fi
2586
2587 ac_exeext=$ac_cv_exeext
2588 echo "$as_me:$LINENO: result: $ac_file" >&5
2589 echo "${ECHO_T}$ac_file" >&6
2590
2591 # Check the compiler produces executables we can run.  If not, either
2592 # the compiler is broken, or we cross compile.
2593 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2596 # If not cross compiling, check that we can run a simple program.
2597 if test "$cross_compiling" != yes; then
2598   if { ac_try='./$ac_file'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604     cross_compiling=no
2605   else
2606     if test "$cross_compiling" = maybe; then
2607         cross_compiling=yes
2608     else
2609         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot run C compiled programs.
2613 If you meant to cross compile, use \`--host'.
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }
2616     fi
2617   fi
2618 fi
2619 echo "$as_me:$LINENO: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6
2621
2622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 # Check the compiler produces executables we can run.  If not, either
2625 # the compiler is broken, or we cross compile.
2626 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2628 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2629 echo "${ECHO_T}$cross_compiling" >&6
2630
2631 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634   (eval $ac_link) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; then
2638   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2641 # `rm'.
2642 for ac_file in conftest.exe conftest conftest.*; do
2643   test -f "$ac_file" || continue
2644   case $ac_file in
2645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2646     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647           export ac_cv_exeext
2648           break;;
2649     * ) break;;
2650   esac
2651 done
2652 else
2653   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658 fi
2659
2660 rm -f conftest$ac_cv_exeext
2661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6
2663
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2669 if test "${ac_cv_objext+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678
2679 int
2680 main ()
2681 {
2682
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.o conftest.obj
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689   (eval $ac_compile) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; then
2693   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2694   case $ac_file in
2695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2696     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2697        break;;
2698   esac
2699 done
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2707 See \`config.log' for more details." >&2;}
2708    { (exit 1); exit 1; }; }
2709 fi
2710
2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2712 fi
2713 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2714 echo "${ECHO_T}$ac_cv_objext" >&6
2715 OBJEXT=$ac_cv_objext
2716 ac_objext=$OBJEXT
2717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728
2729 int
2730 main ()
2731 {
2732 #ifndef __GNUC__
2733        choke me
2734 #endif
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742   (eval $ac_compile) 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } &&
2749          { ac_try='test -z "$ac_c_werror_flag"
2750                          || test ! -s conftest.err'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; } &&
2756          { ac_try='test -s conftest.$ac_objext'
2757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758   (eval $ac_try) 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762   ac_compiler_gnu=yes
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 ac_compiler_gnu=no
2768 fi
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2771
2772 fi
2773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2778 CFLAGS="-g"
2779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>conftest.er1
2802   ac_status=$?
2803   grep -v '^ *+' conftest.er1 >conftest.err
2804   rm -f conftest.er1
2805   cat conftest.err >&5
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          { ac_try='test -z "$ac_c_werror_flag"
2809                          || test ! -s conftest.err'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; } &&
2815          { ac_try='test -s conftest.$ac_objext'
2816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817   (eval $ac_try) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; }; then
2821   ac_cv_prog_cc_g=yes
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 ac_cv_prog_cc_g=no
2827 fi
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829 fi
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2832 if test "$ac_test_CFLAGS" = set; then
2833   CFLAGS=$ac_save_CFLAGS
2834 elif test $ac_cv_prog_cc_g = yes; then
2835   if test "$GCC" = yes; then
2836     CFLAGS="-g -O2"
2837   else
2838     CFLAGS="-g"
2839   fi
2840 else
2841   if test "$GCC" = yes; then
2842     CFLAGS="-O2"
2843   else
2844     CFLAGS=
2845   fi
2846 fi
2847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   ac_cv_prog_cc_stdc=no
2853 ac_save_CC=$CC
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860 #include <stdarg.h>
2861 #include <stdio.h>
2862 #include <sys/types.h>
2863 #include <sys/stat.h>
2864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2865 struct buf { int x; };
2866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2867 static char *e (p, i)
2868      char **p;
2869      int i;
2870 {
2871   return p[i];
2872 }
2873 static char *f (char * (*g) (char **, int), char **p, ...)
2874 {
2875   char *s;
2876   va_list v;
2877   va_start (v,p);
2878   s = g (p, va_arg (v,int));
2879   va_end (v);
2880   return s;
2881 }
2882
2883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2884    function prototypes and stuff, but not '\xHH' hex character constants.
2885    These don't provoke an error unfortunately, instead are silently treated
2886    as 'x'.  The following induces an error, until -std1 is added to get
2887    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2888    array size at least.  It's necessary to write '\x00'==0 to get something
2889    that's true only with -std1.  */
2890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2891
2892 int test (int i, double x);
2893 struct s1 {int (*f) (int a);};
2894 struct s2 {int (*f) (double a);};
2895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2896 int argc;
2897 char **argv;
2898 int
2899 main ()
2900 {
2901 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 # Don't try gcc -ansi; that turns off useful extensions and
2907 # breaks some systems' header files.
2908 # AIX                   -qlanglvl=ansi
2909 # Ultrix and OSF/1      -std1
2910 # HP-UX 10.20 and later -Ae
2911 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2912 # SVR4                  -Xc -D__EXTENSIONS__
2913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2914 do
2915   CC="$ac_save_CC $ac_arg"
2916   rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -z "$ac_c_werror_flag"
2926                          || test ! -s conftest.err'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; } &&
2932          { ac_try='test -s conftest.$ac_objext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   ac_cv_prog_cc_stdc=$ac_arg
2939 break
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 fi
2945 rm -f conftest.err conftest.$ac_objext
2946 done
2947 rm -f conftest.$ac_ext conftest.$ac_objext
2948 CC=$ac_save_CC
2949
2950 fi
2951
2952 case "x$ac_cv_prog_cc_stdc" in
2953   x|xno)
2954     echo "$as_me:$LINENO: result: none needed" >&5
2955 echo "${ECHO_T}none needed" >&6 ;;
2956   *)
2957     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2959     CC="$CC $ac_cv_prog_cc_stdc" ;;
2960 esac
2961
2962 # Some people use a C++ compiler to compile C.  Since we use `exit',
2963 # in C++ we need to declare it.  In case someone uses the same compiler
2964 # for both compiling C and C++ we need to have the C++ compiler decide
2965 # the declaration of exit, since it's the most demanding environment.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #ifndef __cplusplus
2968   choke me
2969 #endif
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -z "$ac_c_werror_flag"
2981                          || test ! -s conftest.err'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest.$ac_objext'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   for ac_declaration in \
2994    '' \
2995    'extern "C" void std::exit (int) throw (); using std::exit;' \
2996    'extern "C" void std::exit (int); using std::exit;' \
2997    'extern "C" void exit (int) throw ();' \
2998    'extern "C" void exit (int);' \
2999    'void exit (int);'
3000 do
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 $ac_declaration
3008 #include <stdlib.h>
3009 int
3010 main ()
3011 {
3012 exit (42);
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019   (eval $ac_compile) 2>conftest.er1
3020   ac_status=$?
3021   grep -v '^ *+' conftest.er1 >conftest.err
3022   rm -f conftest.er1
3023   cat conftest.err >&5
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } &&
3026          { ac_try='test -z "$ac_c_werror_flag"
3027                          || test ! -s conftest.err'
3028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; } &&
3033          { ac_try='test -s conftest.$ac_objext'
3034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035   (eval $ac_try) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   :
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 continue
3045 fi
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 $ac_declaration
3054 int
3055 main ()
3056 {
3057 exit (42);
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064   (eval $ac_compile) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_c_werror_flag"
3072                          || test ! -s conftest.err'
3073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; } &&
3078          { ac_try='test -s conftest.$ac_objext'
3079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080   (eval $ac_try) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; }; then
3084   break
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 fi
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 done
3092 rm -f conftest*
3093 if test -n "$ac_declaration"; then
3094   echo '#ifdef __cplusplus' >>confdefs.h
3095   echo $ac_declaration      >>confdefs.h
3096   echo '#endif'             >>confdefs.h
3097 fi
3098
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 DEPDIR="${am__leading_dot}deps"
3111
3112           ac_config_commands="$ac_config_commands depfiles"
3113
3114
3115 am_make=${MAKE-make}
3116 cat > confinc << 'END'
3117 am__doit:
3118         @echo done
3119 .PHONY: am__doit
3120 END
3121 # If we don't find an include directive, just comment out the code.
3122 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3123 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3124 am__include="#"
3125 am__quote=
3126 _am_result=none
3127 # First try GNU make style include.
3128 echo "include confinc" > confmf
3129 # We grep out `Entering directory' and `Leaving directory'
3130 # messages which can occur if `w' ends up in MAKEFLAGS.
3131 # In particular we don't look at `^make:' because GNU make might
3132 # be invoked under some other name (usually "gmake"), in which
3133 # case it prints its new name instead of `make'.
3134 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3135    am__include=include
3136    am__quote=
3137    _am_result=GNU
3138 fi
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141    echo '.include "confinc"' > confmf
3142    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3143       am__include=.include
3144       am__quote="\""
3145       _am_result=BSD
3146    fi
3147 fi
3148
3149
3150 echo "$as_me:$LINENO: result: $_am_result" >&5
3151 echo "${ECHO_T}$_am_result" >&6
3152 rm -f confinc confmf
3153
3154 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3155 if test "${enable_dependency_tracking+set}" = set; then
3156   enableval="$enable_dependency_tracking"
3157
3158 fi;
3159 if test "x$enable_dependency_tracking" != xno; then
3160   am_depcomp="$ac_aux_dir/depcomp"
3161   AMDEPBACKSLASH='\'
3162 fi
3163
3164
3165 if test "x$enable_dependency_tracking" != xno; then
3166   AMDEP_TRUE=
3167   AMDEP_FALSE='#'
3168 else
3169   AMDEP_TRUE='#'
3170   AMDEP_FALSE=
3171 fi
3172
3173
3174
3175
3176 depcc="$CC"   am_compiler_list=
3177
3178 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3179 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3180 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3184   # We make a subdir and do the tests there.  Otherwise we can end up
3185   # making bogus files that we don't know about and never remove.  For
3186   # instance it was reported that on HP-UX the gcc test will end up
3187   # making a dummy file named `D' -- because `-MD' means `put the output
3188   # in D'.
3189   mkdir conftest.dir
3190   # Copy depcomp to subdir because otherwise we won't find it if we're
3191   # using a relative directory.
3192   cp "$am_depcomp" conftest.dir
3193   cd conftest.dir
3194   # We will build objects and dependencies in a subdirectory because
3195   # it helps to detect inapplicable dependency modes.  For instance
3196   # both Tru64's cc and ICC support -MD to output dependencies as a
3197   # side effect of compilation, but ICC will put the dependencies in
3198   # the current directory while Tru64 will put them in the object
3199   # directory.
3200   mkdir sub
3201
3202   am_cv_CC_dependencies_compiler_type=none
3203   if test "$am_compiler_list" = ""; then
3204      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3205   fi
3206   for depmode in $am_compiler_list; do
3207     # Setup a source with many dependencies, because some compilers
3208     # like to wrap large dependency lists on column 80 (with \), and
3209     # we should not choose a depcomp mode which is confused by this.
3210     #
3211     # We need to recreate these files for each test, as the compiler may
3212     # overwrite some of them when testing with obscure command lines.
3213     # This happens at least with the AIX C compiler.
3214     : > sub/conftest.c
3215     for i in 1 2 3 4 5 6; do
3216       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3217       : > sub/conftst$i.h
3218     done
3219     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3220
3221     case $depmode in
3222     nosideeffect)
3223       # after this tag, mechanisms are not by side-effect, so they'll
3224       # only be used when explicitly requested
3225       if test "x$enable_dependency_tracking" = xyes; then
3226         continue
3227       else
3228         break
3229       fi
3230       ;;
3231     none) break ;;
3232     esac
3233     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3234     # mode.  It turns out that the SunPro C++ compiler does not properly
3235     # handle `-M -o', and we need to detect this.
3236     if depmode=$depmode \
3237        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3238        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3239        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3240          >/dev/null 2>conftest.err &&
3241        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3242        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3243        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3244       # icc doesn't choke on unknown options, it will just issue warnings
3245       # (even with -Werror).  So we grep stderr for any message
3246       # that says an option was ignored.
3247       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3248         am_cv_CC_dependencies_compiler_type=$depmode
3249         break
3250       fi
3251     fi
3252   done
3253
3254   cd ..
3255   rm -rf conftest.dir
3256 else
3257   am_cv_CC_dependencies_compiler_type=none
3258 fi
3259
3260 fi
3261 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3262 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3263 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3264
3265
3266
3267 if
3268   test "x$enable_dependency_tracking" != xno \
3269   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3270   am__fastdepCC_TRUE=
3271   am__fastdepCC_FALSE='#'
3272 else
3273   am__fastdepCC_TRUE='#'
3274   am__fastdepCC_FALSE=
3275 fi
3276
3277
3278
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3285 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3286 # On Suns, sometimes $CPP names a directory.
3287 if test -n "$CPP" && test -d "$CPP"; then
3288   CPP=
3289 fi
3290 if test -z "$CPP"; then
3291   if test "${ac_cv_prog_CPP+set}" = set; then
3292   echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294       # Double quotes because CPP needs to be expanded
3295     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3296     do
3297       ac_preproc_ok=false
3298 for ac_c_preproc_warn_flag in '' yes
3299 do
3300   # Use a header file that comes with gcc, so configuring glibc
3301   # with a fresh cross-compiler works.
3302   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3303   # <limits.h> exists even on freestanding compilers.
3304   # On the NeXT, cc -E runs the code through the compiler's parser,
3305   # not just through cpp. "Syntax error" is here to catch this case.
3306   cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312 #ifdef __STDC__
3313 # include <limits.h>
3314 #else
3315 # include <assert.h>
3316 #endif
3317                      Syntax error
3318 _ACEOF
3319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3321   ac_status=$?
3322   grep -v '^ *+' conftest.er1 >conftest.err
3323   rm -f conftest.er1
3324   cat conftest.err >&5
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); } >/dev/null; then
3327   if test -s conftest.err; then
3328     ac_cpp_err=$ac_c_preproc_warn_flag
3329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330   else
3331     ac_cpp_err=
3332   fi
3333 else
3334   ac_cpp_err=yes
3335 fi
3336 if test -z "$ac_cpp_err"; then
3337   :
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Broken: fails on valid input.
3343 continue
3344 fi
3345 rm -f conftest.err conftest.$ac_ext
3346
3347   # OK, works on sane cases.  Now check whether non-existent headers
3348   # can be detected and how.
3349   cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355 #include <ac_nonexistent.h>
3356 _ACEOF
3357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3359   ac_status=$?
3360   grep -v '^ *+' conftest.er1 >conftest.err
3361   rm -f conftest.er1
3362   cat conftest.err >&5
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); } >/dev/null; then
3365   if test -s conftest.err; then
3366     ac_cpp_err=$ac_c_preproc_warn_flag
3367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368   else
3369     ac_cpp_err=
3370   fi
3371 else
3372   ac_cpp_err=yes
3373 fi
3374 if test -z "$ac_cpp_err"; then
3375   # Broken: success on invalid input.
3376 continue
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381   # Passes both tests.
3382 ac_preproc_ok=:
3383 break
3384 fi
3385 rm -f conftest.err conftest.$ac_ext
3386
3387 done
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then
3391   break
3392 fi
3393
3394     done
3395     ac_cv_prog_CPP=$CPP
3396
3397 fi
3398   CPP=$ac_cv_prog_CPP
3399 else
3400   ac_cv_prog_CPP=$CPP
3401 fi
3402 echo "$as_me:$LINENO: result: $CPP" >&5
3403 echo "${ECHO_T}$CPP" >&6
3404 ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3406 do
3407   # Use a header file that comes with gcc, so configuring glibc
3408   # with a fresh cross-compiler works.
3409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410   # <limits.h> exists even on freestanding compilers.
3411   # On the NeXT, cc -E runs the code through the compiler's parser,
3412   # not just through cpp. "Syntax error" is here to catch this case.
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #ifdef __STDC__
3420 # include <limits.h>
3421 #else
3422 # include <assert.h>
3423 #endif
3424                      Syntax error
3425 _ACEOF
3426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3428   ac_status=$?
3429   grep -v '^ *+' conftest.er1 >conftest.err
3430   rm -f conftest.er1
3431   cat conftest.err >&5
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } >/dev/null; then
3434   if test -s conftest.err; then
3435     ac_cpp_err=$ac_c_preproc_warn_flag
3436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437   else
3438     ac_cpp_err=
3439   fi
3440 else
3441   ac_cpp_err=yes
3442 fi
3443 if test -z "$ac_cpp_err"; then
3444   :
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449   # Broken: fails on valid input.
3450 continue
3451 fi
3452 rm -f conftest.err conftest.$ac_ext
3453
3454   # OK, works on sane cases.  Now check whether non-existent headers
3455   # can be detected and how.
3456   cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h.  */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h.  */
3462 #include <ac_nonexistent.h>
3463 _ACEOF
3464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3466   ac_status=$?
3467   grep -v '^ *+' conftest.er1 >conftest.err
3468   rm -f conftest.er1
3469   cat conftest.err >&5
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); } >/dev/null; then
3472   if test -s conftest.err; then
3473     ac_cpp_err=$ac_c_preproc_warn_flag
3474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3475   else
3476     ac_cpp_err=
3477   fi
3478 else
3479   ac_cpp_err=yes
3480 fi
3481 if test -z "$ac_cpp_err"; then
3482   # Broken: success on invalid input.
3483 continue
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488   # Passes both tests.
3489 ac_preproc_ok=:
3490 break
3491 fi
3492 rm -f conftest.err conftest.$ac_ext
3493
3494 done
3495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496 rm -f conftest.err conftest.$ac_ext
3497 if $ac_preproc_ok; then
3498   :
3499 else
3500   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3501 See \`config.log' for more details." >&5
3502 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3503 See \`config.log' for more details." >&2;}
3504    { (exit 1); exit 1; }; }
3505 fi
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512
3513
3514 echo "$as_me:$LINENO: checking for egrep" >&5
3515 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3516 if test "${ac_cv_prog_egrep+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3520     then ac_cv_prog_egrep='grep -E'
3521     else ac_cv_prog_egrep='egrep'
3522     fi
3523 fi
3524 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3525 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3526  EGREP=$ac_cv_prog_egrep
3527
3528
3529 if test $ac_cv_c_compiler_gnu = yes; then
3530     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3531 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3532 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3533   echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535     ac_pattern="Autoconf.*'x'"
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #include <sgtty.h>
3543 Autoconf TIOCGETP
3544 _ACEOF
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3547   ac_cv_prog_gcc_traditional=yes
3548 else
3549   ac_cv_prog_gcc_traditional=no
3550 fi
3551 rm -f conftest*
3552
3553
3554   if test $ac_cv_prog_gcc_traditional = no; then
3555     cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561 #include <termio.h>
3562 Autoconf TCGETA
3563 _ACEOF
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3566   ac_cv_prog_gcc_traditional=yes
3567 fi
3568 rm -f conftest*
3569
3570   fi
3571 fi
3572 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3573 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3574   if test $ac_cv_prog_gcc_traditional = yes; then
3575     CC="$CC -traditional"
3576   fi
3577 fi
3578
3579 # Find a good install program.  We prefer a C program (faster),
3580 # so one script is as good as another.  But avoid the broken or
3581 # incompatible versions:
3582 # SysV /etc/install, /usr/sbin/install
3583 # SunOS /usr/etc/install
3584 # IRIX /sbin/install
3585 # AIX /bin/install
3586 # AmigaOS /C/install, which installs bootblocks on floppy discs
3587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3590 # OS/2's system install, which has a completely different semantic
3591 # ./install, which can be erroneously created by make from ./install.sh.
3592 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3594 if test -z "$INSTALL"; then
3595 if test "${ac_cv_path_install+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603   # Account for people who put trailing slashes in PATH elements.
3604 case $as_dir/ in
3605   ./ | .// | /cC/* | \
3606   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3607   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3608   /usr/ucb/* ) ;;
3609   *)
3610     # OSF1 and SCO ODT 3.0 have their own names for install.
3611     # Don't use installbsd from OSF since it installs stuff as root
3612     # by default.
3613     for ac_prog in ginstall scoinst install; do
3614       for ac_exec_ext in '' $ac_executable_extensions; do
3615         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3616           if test $ac_prog = install &&
3617             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3618             # AIX install.  It has an incompatible calling convention.
3619             :
3620           elif test $ac_prog = install &&
3621             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3622             # program-specific install script used by HP pwplus--don't use.
3623             :
3624           else
3625             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626             break 3
3627           fi
3628         fi
3629       done
3630     done
3631     ;;
3632 esac
3633 done
3634
3635
3636 fi
3637   if test "${ac_cv_path_install+set}" = set; then
3638     INSTALL=$ac_cv_path_install
3639   else
3640     # As a last resort, use the slow shell script.  We don't cache a
3641     # path for INSTALL within a source directory, because that will
3642     # break other packages using the cache if that directory is
3643     # removed, or if the path is relative.
3644     INSTALL=$ac_install_sh
3645   fi
3646 fi
3647 echo "$as_me:$LINENO: result: $INSTALL" >&5
3648 echo "${ECHO_T}$INSTALL" >&6
3649
3650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3651 # It thinks the first close brace ends the variable substitution.
3652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3653
3654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3655
3656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3657
3658 for ac_prog in gawk mawk nawk awk
3659 do
3660   # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_prog_AWK+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   if test -n "$AWK"; then
3668   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_prog_AWK="$ac_prog"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684 fi
3685 fi
3686 AWK=$ac_cv_prog_AWK
3687 if test -n "$AWK"; then
3688   echo "$as_me:$LINENO: result: $AWK" >&5
3689 echo "${ECHO_T}$AWK" >&6
3690 else
3691   echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3693 fi
3694
3695   test -n "$AWK" && break
3696 done
3697
3698 if test -n "$ac_tool_prefix"; then
3699   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_prog_RANLIB+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   if test -n "$RANLIB"; then
3707   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714   for ac_exec_ext in '' $ac_executable_extensions; do
3715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718     break 2
3719   fi
3720 done
3721 done
3722
3723 fi
3724 fi
3725 RANLIB=$ac_cv_prog_RANLIB
3726 if test -n "$RANLIB"; then
3727   echo "$as_me:$LINENO: result: $RANLIB" >&5
3728 echo "${ECHO_T}$RANLIB" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734 fi
3735 if test -z "$ac_cv_prog_RANLIB"; then
3736   ac_ct_RANLIB=$RANLIB
3737   # Extract the first word of "ranlib", so it can be a program name with args.
3738 set dummy ranlib; ac_word=$2
3739 echo "$as_me:$LINENO: checking for $ac_word" >&5
3740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   if test -n "$ac_ct_RANLIB"; then
3745   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752   for ac_exec_ext in '' $ac_executable_extensions; do
3753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754     ac_cv_prog_ac_ct_RANLIB="ranlib"
3755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759 done
3760
3761   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3762 fi
3763 fi
3764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3765 if test -n "$ac_ct_RANLIB"; then
3766   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3767 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3768 else
3769   echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3771 fi
3772
3773   RANLIB=$ac_ct_RANLIB
3774 else
3775   RANLIB="$ac_cv_prog_RANLIB"
3776 fi
3777
3778 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3779 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3780 LN_S=$as_ln_s
3781 if test "$LN_S" = "ln -s"; then
3782   echo "$as_me:$LINENO: result: yes" >&5
3783 echo "${ECHO_T}yes" >&6
3784 else
3785   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3786 echo "${ECHO_T}no, using $LN_S" >&6
3787 fi
3788
3789 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3790 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3791 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3792 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   cat > conftest.$ac_ext <<EOF
3796 int main() {return 0;}
3797 EOF
3798 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3799     if test -s conftest.out; then
3800         eval "timidity_cv_ccoption_$ac_ccoption=no"
3801     else
3802         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3803     fi
3804 else
3805     eval "timidity_cv_ccoption_$ac_ccoption=no"
3806 fi
3807
3808 fi
3809
3810 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3811   echo "$as_me:$LINENO: result: yes" >&5
3812 echo "${ECHO_T}yes" >&6
3813
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817
3818 fi
3819
3820
3821 # Checks for target dependencies
3822
3823
3824 # Check whether --with-elf or --without-elf was given.
3825 if test "${with_elf+set}" = set; then
3826   withval="$with_elf"
3827    ELFFORMAT=$withval
3828 else
3829    ELFFORMAT="yes"
3830 fi;
3831
3832 # AC_ARG_WITH(simd,
3833 #  [  --with-simd             create SIMD friendly binary (default is no) ],
3834 #  [ SIMD=$withval ], [ SIMD="no" ])
3835
3836 case "$target" in
3837   *-*-hpux*)
3838     EXTRADEFS="-DHPUX"
3839     test -n "$SHLD" || SHLD="ld -b"
3840     so="sl"
3841     ;;
3842   *-sgi-irix*)
3843         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3844     test -n "$SHLD" || SHLD="cc -shared -all"
3845     so="so"
3846     ;;
3847   *-*-netbsd*)
3848     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3849     so="so"
3850     ;;
3851
3852   *-*-freebsd2*)
3853         test -n "$SHLD" || SHLD="ld -Bshareable"
3854     so="so"
3855     ;;
3856   *-*-freebsd*)
3857     if test "$ELFFORMAT" = yes; then
3858         test -n "$SHLD" || SHLD="ld -Bshareable"
3859     else
3860         SHCFLAGS=-aou
3861         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3862         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3863     fi
3864         so="so"
3865     ;;
3866
3867 #  *-*-freebsd*)
3868 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3869 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3870 #    so="so"
3871 #  ;;
3872
3873   *-*-cygwin*)
3874     EXTRADEFS="-D__W32__"
3875     # ??
3876     case "x${CC} " in
3877       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3878       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3879       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3880       *) test -n "$SHLD" || SHLD="unknown" ;;
3881     esac
3882     so="dll"
3883     CYGNUS=yes
3884     lib_user32_test=-luser32
3885     ;;
3886   *-*-mingw*)
3887     EXTRADEFS="-D__W32__"
3888     # ??
3889     case "x${CC} " in
3890       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3891       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3892       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3893       *) test -n "$SHLD" || SHLD="unknown" ;;
3894     esac
3895     so="dll"
3896     MINGW=yes
3897     lib_user32_test=-luser32
3898     ;;
3899   *-dec-*)
3900     EXTRADEFS="-DDEC"
3901     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3902     so="so"
3903     ;;
3904   *-*-solaris*)
3905     EXTRADEFS="-DSOLARIS"
3906     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3907     so="so"
3908     ;;
3909   *-*-nextstep*)
3910     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3911     so="so"
3912     ;;
3913   *-*-darwin*)
3914     if test "x$SIMD" = "xyes"; then
3915
3916 cat >>confdefs.h <<\_ACEOF
3917 #define USE_ALTIVEC 1
3918 _ACEOF
3919
3920        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3921        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3922     else
3923
3924 cat >>confdefs.h <<\_ACEOF
3925 #define USE_ALTIVEC 0
3926 _ACEOF
3927
3928     fi
3929     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3930     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3931     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3932     so="bundle"
3933     ;;
3934   *)
3935     test -n "$SHLD" || \
3936       if test "x$GCC" = xyes; then
3937         SHLD="$CC -shared"
3938       else
3939         SHLD="ld -Bdynamic -G"
3940       fi
3941     so="so"
3942     ;;
3943 esac
3944
3945
3946 # Checks for libraries.
3947
3948 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3949 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3950 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   ac_check_lib_save_LIBS=$LIBS
3954 LIBS="-lm  $LIBS"
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h.  */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h.  */
3961
3962 /* Override any gcc2 internal prototype to avoid an error.  */
3963 #ifdef __cplusplus
3964 extern "C"
3965 #endif
3966 /* We use char because int might match the return type of a gcc2
3967    builtin and then its argument prototype would still apply.  */
3968 char sqrt ();
3969 int
3970 main ()
3971 {
3972 sqrt ();
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979   (eval $ac_link) 2>conftest.er1
3980   ac_status=$?
3981   grep -v '^ *+' conftest.er1 >conftest.err
3982   rm -f conftest.er1
3983   cat conftest.err >&5
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } &&
3986          { ac_try='test -z "$ac_c_werror_flag"
3987                          || test ! -s conftest.err'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; } &&
3993          { ac_try='test -s conftest$ac_exeext'
3994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995   (eval $ac_try) 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); }; }; then
3999   ac_cv_lib_m_sqrt=yes
4000 else
4001   echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 ac_cv_lib_m_sqrt=no
4005 fi
4006 rm -f conftest.err conftest.$ac_objext \
4007       conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_check_lib_save_LIBS
4009 fi
4010 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4011 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4012 if test $ac_cv_lib_m_sqrt = yes; then
4013   cat >>confdefs.h <<_ACEOF
4014 #define HAVE_LIBM 1
4015 _ACEOF
4016
4017   LIBS="-lm $LIBS"
4018
4019 fi
4020
4021
4022 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4023 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4024 if test "${ac_cv_lib_socket_socket+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   ac_check_lib_save_LIBS=$LIBS
4028 LIBS="-lsocket  $LIBS"
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035
4036 /* Override any gcc2 internal prototype to avoid an error.  */
4037 #ifdef __cplusplus
4038 extern "C"
4039 #endif
4040 /* We use char because int might match the return type of a gcc2
4041    builtin and then its argument prototype would still apply.  */
4042 char socket ();
4043 int
4044 main ()
4045 {
4046 socket ();
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext conftest$ac_exeext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053   (eval $ac_link) 2>conftest.er1
4054   ac_status=$?
4055   grep -v '^ *+' conftest.er1 >conftest.err
4056   rm -f conftest.er1
4057   cat conftest.err >&5
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); } &&
4060          { ac_try='test -z "$ac_c_werror_flag"
4061                          || test ! -s conftest.err'
4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063   (eval $ac_try) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; } &&
4067          { ac_try='test -s conftest$ac_exeext'
4068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069   (eval $ac_try) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; }; then
4073   ac_cv_lib_socket_socket=yes
4074 else
4075   echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 ac_cv_lib_socket_socket=no
4079 fi
4080 rm -f conftest.err conftest.$ac_objext \
4081       conftest$ac_exeext conftest.$ac_ext
4082 LIBS=$ac_check_lib_save_LIBS
4083 fi
4084 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4085 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4086 if test $ac_cv_lib_socket_socket = yes; then
4087   cat >>confdefs.h <<_ACEOF
4088 #define HAVE_LIBSOCKET 1
4089 _ACEOF
4090
4091   LIBS="-lsocket $LIBS"
4092
4093 fi
4094
4095 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4096 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   ac_check_lib_save_LIBS=$LIBS
4101 LIBS="-ldl  $LIBS"
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108
4109 /* Override any gcc2 internal prototype to avoid an error.  */
4110 #ifdef __cplusplus
4111 extern "C"
4112 #endif
4113 /* We use char because int might match the return type of a gcc2
4114    builtin and then its argument prototype would still apply.  */
4115 char dlopen ();
4116 int
4117 main ()
4118 {
4119 dlopen ();
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext conftest$ac_exeext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4126   (eval $ac_link) 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } &&
4133          { ac_try='test -z "$ac_c_werror_flag"
4134                          || test ! -s conftest.err'
4135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136   (eval $ac_try) 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; } &&
4140          { ac_try='test -s conftest$ac_exeext'
4141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142   (eval $ac_try) 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; }; then
4146   ac_cv_lib_dl_dlopen=yes
4147 else
4148   echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 ac_cv_lib_dl_dlopen=no
4152 fi
4153 rm -f conftest.err conftest.$ac_objext \
4154       conftest$ac_exeext conftest.$ac_ext
4155 LIBS=$ac_check_lib_save_LIBS
4156 fi
4157 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4158 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4159 if test $ac_cv_lib_dl_dlopen = yes; then
4160   lib_dl_opt=-ldl
4161 fi
4162
4163 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4164 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4165 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   ac_check_lib_save_LIBS=$LIBS
4169 LIBS="-lobjc  $LIBS"
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h.  */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h.  */
4176
4177 /* Override any gcc2 internal prototype to avoid an error.  */
4178 #ifdef __cplusplus
4179 extern "C"
4180 #endif
4181 /* We use char because int might match the return type of a gcc2
4182    builtin and then its argument prototype would still apply.  */
4183 char NSLinkModule ();
4184 int
4185 main ()
4186 {
4187 NSLinkModule ();
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194   (eval $ac_link) 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } &&
4201          { ac_try='test -z "$ac_c_werror_flag"
4202                          || test ! -s conftest.err'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; } &&
4208          { ac_try='test -s conftest$ac_exeext'
4209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210   (eval $ac_try) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; }; then
4214   ac_cv_lib_objc_NSLinkModule=yes
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ac_cv_lib_objc_NSLinkModule=no
4220 fi
4221 rm -f conftest.err conftest.$ac_objext \
4222       conftest$ac_exeext conftest.$ac_ext
4223 LIBS=$ac_check_lib_save_LIBS
4224 fi
4225 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4226 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4227 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4228   lib_dl_opt=-lobjc
4229 fi
4230  # Mac OS X need this.
4231
4232 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4233 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4234 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   ac_check_lib_save_LIBS=$LIBS
4238 LIBS="-lxpg4  $LIBS"
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245
4246 /* Override any gcc2 internal prototype to avoid an error.  */
4247 #ifdef __cplusplus
4248 extern "C"
4249 #endif
4250 /* We use char because int might match the return type of a gcc2
4251    builtin and then its argument prototype would still apply.  */
4252 char setlocale ();
4253 int
4254 main ()
4255 {
4256 setlocale ();
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 rm -f conftest.$ac_objext conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263   (eval $ac_link) 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } &&
4270          { ac_try='test -z "$ac_c_werror_flag"
4271                          || test ! -s conftest.err'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; } &&
4277          { ac_try='test -s conftest$ac_exeext'
4278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279   (eval $ac_try) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283   ac_cv_lib_xpg4_setlocale=yes
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 ac_cv_lib_xpg4_setlocale=no
4289 fi
4290 rm -f conftest.err conftest.$ac_objext \
4291       conftest$ac_exeext conftest.$ac_ext
4292 LIBS=$ac_check_lib_save_LIBS
4293 fi
4294 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4295 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4296 if test $ac_cv_lib_xpg4_setlocale = yes; then
4297   cat >>confdefs.h <<_ACEOF
4298 #define HAVE_LIBXPG4 1
4299 _ACEOF
4300
4301   LIBS="-lxpg4 $LIBS"
4302
4303 fi
4304  # Mac OS X (and maybe NetBSD) need this.
4305
4306 for ac_func in gethostbyname
4307 do
4308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4309 echo "$as_me:$LINENO: checking for $ac_func" >&5
4310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4311 if eval "test \"\${$as_ac_var+set}\" = set"; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4322 #define $ac_func innocuous_$ac_func
4323
4324 /* System header to define __stub macros and hopefully few prototypes,
4325     which can conflict with char $ac_func (); below.
4326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327     <limits.h> exists even on freestanding compilers.  */
4328
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334
4335 #undef $ac_func
4336
4337 /* Override any gcc2 internal prototype to avoid an error.  */
4338 #ifdef __cplusplus
4339 extern "C"
4340 {
4341 #endif
4342 /* We use char because int might match the return type of a gcc2
4343    builtin and then its argument prototype would still apply.  */
4344 char $ac_func ();
4345 /* The GNU C library defines this for functions which it implements
4346     to always fail with ENOSYS.  Some functions are actually named
4347     something starting with __ and the normal name is an alias.  */
4348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4349 choke me
4350 #else
4351 char (*f) () = $ac_func;
4352 #endif
4353 #ifdef __cplusplus
4354 }
4355 #endif
4356
4357 int
4358 main ()
4359 {
4360 return f != $ac_func;
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 rm -f conftest.$ac_objext conftest$ac_exeext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367   (eval $ac_link) 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } &&
4374          { ac_try='test -z "$ac_c_werror_flag"
4375                          || test ! -s conftest.err'
4376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377   (eval $ac_try) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; } &&
4381          { ac_try='test -s conftest$ac_exeext'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   eval "$as_ac_var=yes"
4388 else
4389   echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 eval "$as_ac_var=no"
4393 fi
4394 rm -f conftest.err conftest.$ac_objext \
4395       conftest$ac_exeext conftest.$ac_ext
4396 fi
4397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4399 if test `eval echo '${'$as_ac_var'}'` = yes; then
4400   cat >>confdefs.h <<_ACEOF
4401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4402 _ACEOF
4403
4404 else
4405
4406 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4407 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4408 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   ac_check_lib_save_LIBS=$LIBS
4412 LIBS="-lnsl  $LIBS"
4413 cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h.  */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h.  */
4419
4420 /* Override any gcc2 internal prototype to avoid an error.  */
4421 #ifdef __cplusplus
4422 extern "C"
4423 #endif
4424 /* We use char because int might match the return type of a gcc2
4425    builtin and then its argument prototype would still apply.  */
4426 char gethostbyname ();
4427 int
4428 main ()
4429 {
4430 gethostbyname ();
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437   (eval $ac_link) 2>conftest.er1
4438   ac_status=$?
4439   grep -v '^ *+' conftest.er1 >conftest.err
4440   rm -f conftest.er1
4441   cat conftest.err >&5
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } &&
4444          { ac_try='test -z "$ac_c_werror_flag"
4445                          || test ! -s conftest.err'
4446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447   (eval $ac_try) 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; } &&
4451          { ac_try='test -s conftest$ac_exeext'
4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; }; then
4457   ac_cv_lib_nsl_gethostbyname=yes
4458 else
4459   echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ac_cv_lib_nsl_gethostbyname=no
4463 fi
4464 rm -f conftest.err conftest.$ac_objext \
4465       conftest$ac_exeext conftest.$ac_ext
4466 LIBS=$ac_check_lib_save_LIBS
4467 fi
4468 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4469 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4470 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4471   cat >>confdefs.h <<_ACEOF
4472 #define HAVE_LIBNSL 1
4473 _ACEOF
4474
4475   LIBS="-lnsl $LIBS"
4476
4477 fi
4478
4479 fi
4480 done
4481
4482 echo "$as_me:$LINENO: checking for X" >&5
4483 echo $ECHO_N "checking for X... $ECHO_C" >&6
4484
4485
4486 # Check whether --with-x or --without-x was given.
4487 if test "${with_x+set}" = set; then
4488   withval="$with_x"
4489
4490 fi;
4491 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4492 if test "x$with_x" = xno; then
4493   # The user explicitly disabled X.
4494   have_x=disabled
4495 else
4496   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4497     # Both variables are already set.
4498     have_x=yes
4499   else
4500     if test "${ac_cv_have_x+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   # One or both of the vars are not set, and there is no cached value.
4504 ac_x_includes=no ac_x_libraries=no
4505 rm -fr conftest.dir
4506 if mkdir conftest.dir; then
4507   cd conftest.dir
4508   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4509   cat >Imakefile <<'_ACEOF'
4510 acfindx:
4511         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4512 _ACEOF
4513   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4514     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4515     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4516     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4517     for ac_extension in a so sl; do
4518       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4519          test -f $ac_im_libdir/libX11.$ac_extension; then
4520         ac_im_usrlibdir=$ac_im_libdir; break
4521       fi
4522     done
4523     # Screen out bogus values from the imake configuration.  They are
4524     # bogus both because they are the default anyway, and because
4525     # using them would break gcc on systems where it needs fixed includes.
4526     case $ac_im_incroot in
4527         /usr/include) ;;
4528         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4529     esac
4530     case $ac_im_usrlibdir in
4531         /usr/lib | /lib) ;;
4532         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4533     esac
4534   fi
4535   cd ..
4536   rm -fr conftest.dir
4537 fi
4538
4539 # Standard set of common directories for X headers.
4540 # Check X11 before X11Rn because it is often a symlink to the current release.
4541 ac_x_header_dirs='
4542 /usr/X11/include
4543 /usr/X11R6/include
4544 /usr/X11R5/include
4545 /usr/X11R4/include
4546
4547 /usr/include/X11
4548 /usr/include/X11R6
4549 /usr/include/X11R5
4550 /usr/include/X11R4
4551
4552 /usr/local/X11/include
4553 /usr/local/X11R6/include
4554 /usr/local/X11R5/include
4555 /usr/local/X11R4/include
4556
4557 /usr/local/include/X11
4558 /usr/local/include/X11R6
4559 /usr/local/include/X11R5
4560 /usr/local/include/X11R4
4561
4562 /usr/X386/include
4563 /usr/x386/include
4564 /usr/XFree86/include/X11
4565
4566 /usr/include
4567 /usr/local/include
4568 /usr/unsupported/include
4569 /usr/athena/include
4570 /usr/local/x11r5/include
4571 /usr/lpp/Xamples/include
4572
4573 /usr/openwin/include
4574 /usr/openwin/share/include'
4575
4576 if test "$ac_x_includes" = no; then
4577   # Guess where to find include files, by looking for Intrinsic.h.
4578   # First, try using that file with no special directory specified.
4579   cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585 #include <X11/Intrinsic.h>
4586 _ACEOF
4587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } >/dev/null; then
4595   if test -s conftest.err; then
4596     ac_cpp_err=$ac_c_preproc_warn_flag
4597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4598   else
4599     ac_cpp_err=
4600   fi
4601 else
4602   ac_cpp_err=yes
4603 fi
4604 if test -z "$ac_cpp_err"; then
4605   # We can compile using X headers with no special include directory.
4606 ac_x_includes=
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611   for ac_dir in $ac_x_header_dirs; do
4612   if test -r "$ac_dir/X11/Intrinsic.h"; then
4613     ac_x_includes=$ac_dir
4614     break
4615   fi
4616 done
4617 fi
4618 rm -f conftest.err conftest.$ac_ext
4619 fi # $ac_x_includes = no
4620
4621 if test "$ac_x_libraries" = no; then
4622   # Check for the libraries.
4623   # See if we find them without any special options.
4624   # Don't add to $LIBS permanently.
4625   ac_save_LIBS=$LIBS
4626   LIBS="-lXt $LIBS"
4627   cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 #include <X11/Intrinsic.h>
4634 int
4635 main ()
4636 {
4637 XtMalloc (0)
4638   ;
4639   return 0;
4640 }
4641 _ACEOF
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644   (eval $ac_link) 2>conftest.er1
4645   ac_status=$?
4646   grep -v '^ *+' conftest.er1 >conftest.err
4647   rm -f conftest.er1
4648   cat conftest.err >&5
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); } &&
4651          { ac_try='test -z "$ac_c_werror_flag"
4652                          || test ! -s conftest.err'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; } &&
4658          { ac_try='test -s conftest$ac_exeext'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; }; then
4664   LIBS=$ac_save_LIBS
4665 # We can link X programs with no special library path.
4666 ac_x_libraries=
4667 else
4668   echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671 LIBS=$ac_save_LIBS
4672 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4673 do
4674   # Don't even attempt the hair of trying to link an X program!
4675   for ac_extension in a so sl; do
4676     if test -r $ac_dir/libXt.$ac_extension; then
4677       ac_x_libraries=$ac_dir
4678       break 2
4679     fi
4680   done
4681 done
4682 fi
4683 rm -f conftest.err conftest.$ac_objext \
4684       conftest$ac_exeext conftest.$ac_ext
4685 fi # $ac_x_libraries = no
4686
4687 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4688   # Didn't find X anywhere.  Cache the known absence of X.
4689   ac_cv_have_x="have_x=no"
4690 else
4691   # Record where we found X for the cache.
4692   ac_cv_have_x="have_x=yes \
4693                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4694 fi
4695 fi
4696
4697   fi
4698   eval "$ac_cv_have_x"
4699 fi # $with_x != no
4700
4701 if test "$have_x" != yes; then
4702   echo "$as_me:$LINENO: result: $have_x" >&5
4703 echo "${ECHO_T}$have_x" >&6
4704   no_x=yes
4705 else
4706   # If each of the values was on the command line, it overrides each guess.
4707   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4708   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4709   # Update the cache value to reflect the command line values.
4710   ac_cv_have_x="have_x=yes \
4711                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4712   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4713 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4714 fi
4715
4716 if test "$no_x" = yes; then
4717   # Not all programs may use this symbol, but it does not hurt to define it.
4718
4719 cat >>confdefs.h <<\_ACEOF
4720 #define X_DISPLAY_MISSING 1
4721 _ACEOF
4722
4723   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4724 else
4725   if test -n "$x_includes"; then
4726     X_CFLAGS="$X_CFLAGS -I$x_includes"
4727   fi
4728
4729   # It would also be nice to do this for all -L options, not just this one.
4730   if test -n "$x_libraries"; then
4731     X_LIBS="$X_LIBS -L$x_libraries"
4732     # For Solaris; some versions of Sun CC require a space after -R and
4733     # others require no space.  Words are not sufficient . . . .
4734     case `(uname -sr) 2>/dev/null` in
4735     "SunOS 5"*)
4736       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4737 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4738       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4739       cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745
4746 int
4747 main ()
4748 {
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756   (eval $ac_link) 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } &&
4763          { ac_try='test -z "$ac_c_werror_flag"
4764                          || test ! -s conftest.err'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; } &&
4770          { ac_try='test -s conftest$ac_exeext'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   ac_R_nospace=yes
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 ac_R_nospace=no
4782 fi
4783 rm -f conftest.err conftest.$ac_objext \
4784       conftest$ac_exeext conftest.$ac_ext
4785       if test $ac_R_nospace = yes; then
4786         echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788         X_LIBS="$X_LIBS -R$x_libraries"
4789       else
4790         LIBS="$ac_xsave_LIBS -R $x_libraries"
4791         cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 rm -f conftest.$ac_objext conftest$ac_exeext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4808   (eval $ac_link) 2>conftest.er1
4809   ac_status=$?
4810   grep -v '^ *+' conftest.er1 >conftest.err
4811   rm -f conftest.er1
4812   cat conftest.err >&5
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } &&
4815          { ac_try='test -z "$ac_c_werror_flag"
4816                          || test ! -s conftest.err'
4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; } &&
4822          { ac_try='test -s conftest$ac_exeext'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; }; then
4828   ac_R_space=yes
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_R_space=no
4834 fi
4835 rm -f conftest.err conftest.$ac_objext \
4836       conftest$ac_exeext conftest.$ac_ext
4837         if test $ac_R_space = yes; then
4838           echo "$as_me:$LINENO: result: yes" >&5
4839 echo "${ECHO_T}yes" >&6
4840           X_LIBS="$X_LIBS -R $x_libraries"
4841         else
4842           echo "$as_me:$LINENO: result: neither works" >&5
4843 echo "${ECHO_T}neither works" >&6
4844         fi
4845       fi
4846       LIBS=$ac_xsave_LIBS
4847     esac
4848   fi
4849
4850   # Check for system-dependent libraries X programs must link with.
4851   # Do this before checking for the system-independent R6 libraries
4852   # (-lICE), since we may need -lsocket or whatever for X linking.
4853
4854   if test "$ISC" = yes; then
4855     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4856   else
4857     # Martyn Johnson says this is needed for Ultrix, if the X
4858     # libraries were built with DECnet support.  And Karl Berry says
4859     # the Alpha needs dnet_stub (dnet does not exist).
4860     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4861     cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867
4868 /* Override any gcc2 internal prototype to avoid an error.  */
4869 #ifdef __cplusplus
4870 extern "C"
4871 #endif
4872 /* We use char because int might match the return type of a gcc2
4873    builtin and then its argument prototype would still apply.  */
4874 char XOpenDisplay ();
4875 int
4876 main ()
4877 {
4878 XOpenDisplay ();
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext conftest$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885   (eval $ac_link) 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } &&
4892          { ac_try='test -z "$ac_c_werror_flag"
4893                          || test ! -s conftest.err'
4894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895   (eval $ac_try) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; } &&
4899          { ac_try='test -s conftest$ac_exeext'
4900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901   (eval $ac_try) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); }; }; then
4905   :
4906 else
4907   echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4911 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4912 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915   ac_check_lib_save_LIBS=$LIBS
4916 LIBS="-ldnet  $LIBS"
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923
4924 /* Override any gcc2 internal prototype to avoid an error.  */
4925 #ifdef __cplusplus
4926 extern "C"
4927 #endif
4928 /* We use char because int might match the return type of a gcc2
4929    builtin and then its argument prototype would still apply.  */
4930 char dnet_ntoa ();
4931 int
4932 main ()
4933 {
4934 dnet_ntoa ();
4935   ;
4936   return 0;
4937 }
4938 _ACEOF
4939 rm -f conftest.$ac_objext conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941   (eval $ac_link) 2>conftest.er1
4942   ac_status=$?
4943   grep -v '^ *+' conftest.er1 >conftest.err
4944   rm -f conftest.er1
4945   cat conftest.err >&5
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); } &&
4948          { ac_try='test -z "$ac_c_werror_flag"
4949                          || test ! -s conftest.err'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; } &&
4955          { ac_try='test -s conftest$ac_exeext'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; }; then
4961   ac_cv_lib_dnet_dnet_ntoa=yes
4962 else
4963   echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_cv_lib_dnet_dnet_ntoa=no
4967 fi
4968 rm -f conftest.err conftest.$ac_objext \
4969       conftest$ac_exeext conftest.$ac_ext
4970 LIBS=$ac_check_lib_save_LIBS
4971 fi
4972 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4973 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4974 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4975   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4976 fi
4977
4978     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4979       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4980 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4981 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   ac_check_lib_save_LIBS=$LIBS
4985 LIBS="-ldnet_stub  $LIBS"
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992
4993 /* Override any gcc2 internal prototype to avoid an error.  */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 /* We use char because int might match the return type of a gcc2
4998    builtin and then its argument prototype would still apply.  */
4999 char dnet_ntoa ();
5000 int
5001 main ()
5002 {
5003 dnet_ntoa ();
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010   (eval $ac_link) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -z "$ac_c_werror_flag"
5018                          || test ! -s conftest.err'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; } &&
5024          { ac_try='test -s conftest$ac_exeext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 ac_cv_lib_dnet_stub_dnet_ntoa=no
5036 fi
5037 rm -f conftest.err conftest.$ac_objext \
5038       conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5040 fi
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5042 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5043 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5044   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5045 fi
5046
5047     fi
5048 fi
5049 rm -f conftest.err conftest.$ac_objext \
5050       conftest$ac_exeext conftest.$ac_ext
5051     LIBS="$ac_xsave_LIBS"
5052
5053     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5054     # to get the SysV transport functions.
5055     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5056     # needs -lnsl.
5057     # The nsl library prevents programs from opening the X display
5058     # on Irix 5.2, according to T.E. Dickey.
5059     # The functions gethostbyname, getservbyname, and inet_addr are
5060     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5061     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5062 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5063 if test "${ac_cv_func_gethostbyname+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5074 #define gethostbyname innocuous_gethostbyname
5075
5076 /* System header to define __stub macros and hopefully few prototypes,
5077     which can conflict with char gethostbyname (); below.
5078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079     <limits.h> exists even on freestanding compilers.  */
5080
5081 #ifdef __STDC__
5082 # include <limits.h>
5083 #else
5084 # include <assert.h>
5085 #endif
5086
5087 #undef gethostbyname
5088
5089 /* Override any gcc2 internal prototype to avoid an error.  */
5090 #ifdef __cplusplus
5091 extern "C"
5092 {
5093 #endif
5094 /* We use char because int might match the return type of a gcc2
5095    builtin and then its argument prototype would still apply.  */
5096 char gethostbyname ();
5097 /* The GNU C library defines this for functions which it implements
5098     to always fail with ENOSYS.  Some functions are actually named
5099     something starting with __ and the normal name is an alias.  */
5100 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5101 choke me
5102 #else
5103 char (*f) () = gethostbyname;
5104 #endif
5105 #ifdef __cplusplus
5106 }
5107 #endif
5108
5109 int
5110 main ()
5111 {
5112 return f != gethostbyname;
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119   (eval $ac_link) 2>conftest.er1
5120   ac_status=$?
5121   grep -v '^ *+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } &&
5126          { ac_try='test -z "$ac_c_werror_flag"
5127                          || test ! -s conftest.err'
5128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129   (eval $ac_try) 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); }; } &&
5133          { ac_try='test -s conftest$ac_exeext'
5134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135   (eval $ac_try) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; }; then
5139   ac_cv_func_gethostbyname=yes
5140 else
5141   echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144 ac_cv_func_gethostbyname=no
5145 fi
5146 rm -f conftest.err conftest.$ac_objext \
5147       conftest$ac_exeext conftest.$ac_ext
5148 fi
5149 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5150 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5151
5152     if test $ac_cv_func_gethostbyname = no; then
5153       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5154 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5155 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158   ac_check_lib_save_LIBS=$LIBS
5159 LIBS="-lnsl  $LIBS"
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166
5167 /* Override any gcc2 internal prototype to avoid an error.  */
5168 #ifdef __cplusplus
5169 extern "C"
5170 #endif
5171 /* We use char because int might match the return type of a gcc2
5172    builtin and then its argument prototype would still apply.  */
5173 char gethostbyname ();
5174 int
5175 main ()
5176 {
5177 gethostbyname ();
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184   (eval $ac_link) 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -z "$ac_c_werror_flag"
5192                          || test ! -s conftest.err'
5193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194   (eval $ac_try) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; } &&
5198          { ac_try='test -s conftest$ac_exeext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   ac_cv_lib_nsl_gethostbyname=yes
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_cv_lib_nsl_gethostbyname=no
5210 fi
5211 rm -f conftest.err conftest.$ac_objext \
5212       conftest$ac_exeext conftest.$ac_ext
5213 LIBS=$ac_check_lib_save_LIBS
5214 fi
5215 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5216 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5217 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5218   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5219 fi
5220
5221       if test $ac_cv_lib_nsl_gethostbyname = no; then
5222         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5223 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5224 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lbsd  $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h.  */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h.  */
5235
5236 /* Override any gcc2 internal prototype to avoid an error.  */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 /* We use char because int might match the return type of a gcc2
5241    builtin and then its argument prototype would still apply.  */
5242 char gethostbyname ();
5243 int
5244 main ()
5245 {
5246 gethostbyname ();
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253   (eval $ac_link) 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } &&
5260          { ac_try='test -z "$ac_c_werror_flag"
5261                          || test ! -s conftest.err'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; } &&
5267          { ac_try='test -s conftest$ac_exeext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   ac_cv_lib_bsd_gethostbyname=yes
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278 ac_cv_lib_bsd_gethostbyname=no
5279 fi
5280 rm -f conftest.err conftest.$ac_objext \
5281       conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5283 fi
5284 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5285 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5286 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5287   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5288 fi
5289
5290       fi
5291     fi
5292
5293     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5294     # socket/setsockopt and other routines are undefined under SCO ODT
5295     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5296     # on later versions), says Simon Leinen: it contains gethostby*
5297     # variants that don't use the name server (or something).  -lsocket
5298     # must be given before -lnsl if both are needed.  We assume that
5299     # if connect needs -lnsl, so does gethostbyname.
5300     echo "$as_me:$LINENO: checking for connect" >&5
5301 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5302 if test "${ac_cv_func_connect+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5313 #define connect innocuous_connect
5314
5315 /* System header to define __stub macros and hopefully few prototypes,
5316     which can conflict with char connect (); below.
5317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5318     <limits.h> exists even on freestanding compilers.  */
5319
5320 #ifdef __STDC__
5321 # include <limits.h>
5322 #else
5323 # include <assert.h>
5324 #endif
5325
5326 #undef connect
5327
5328 /* Override any gcc2 internal prototype to avoid an error.  */
5329 #ifdef __cplusplus
5330 extern "C"
5331 {
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334    builtin and then its argument prototype would still apply.  */
5335 char connect ();
5336 /* The GNU C library defines this for functions which it implements
5337     to always fail with ENOSYS.  Some functions are actually named
5338     something starting with __ and the normal name is an alias.  */
5339 #if defined (__stub_connect) || defined (__stub___connect)
5340 choke me
5341 #else
5342 char (*f) () = connect;
5343 #endif
5344 #ifdef __cplusplus
5345 }
5346 #endif
5347
5348 int
5349 main ()
5350 {
5351 return f != connect;
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.$ac_objext conftest$ac_exeext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5358   (eval $ac_link) 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } &&
5365          { ac_try='test -z "$ac_c_werror_flag"
5366                          || test ! -s conftest.err'
5367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368   (eval $ac_try) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); }; } &&
5372          { ac_try='test -s conftest$ac_exeext'
5373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374   (eval $ac_try) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; }; then
5378   ac_cv_func_connect=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ac_cv_func_connect=no
5384 fi
5385 rm -f conftest.err conftest.$ac_objext \
5386       conftest$ac_exeext conftest.$ac_ext
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5389 echo "${ECHO_T}$ac_cv_func_connect" >&6
5390
5391     if test $ac_cv_func_connect = no; then
5392       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5393 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5394 if test "${ac_cv_lib_socket_connect+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405
5406 /* Override any gcc2 internal prototype to avoid an error.  */
5407 #ifdef __cplusplus
5408 extern "C"
5409 #endif
5410 /* We use char because int might match the return type of a gcc2
5411    builtin and then its argument prototype would still apply.  */
5412 char connect ();
5413 int
5414 main ()
5415 {
5416 connect ();
5417   ;
5418   return 0;
5419 }
5420 _ACEOF
5421 rm -f conftest.$ac_objext conftest$ac_exeext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5423   (eval $ac_link) 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } &&
5430          { ac_try='test -z "$ac_c_werror_flag"
5431                          || test ! -s conftest.err'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; } &&
5437          { ac_try='test -s conftest$ac_exeext'
5438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439   (eval $ac_try) 2>&5
5440   ac_status=$?
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); }; }; then
5443   ac_cv_lib_socket_connect=yes
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448 ac_cv_lib_socket_connect=no
5449 fi
5450 rm -f conftest.err conftest.$ac_objext \
5451       conftest$ac_exeext conftest.$ac_ext
5452 LIBS=$ac_check_lib_save_LIBS
5453 fi
5454 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5455 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5456 if test $ac_cv_lib_socket_connect = yes; then
5457   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5458 fi
5459
5460     fi
5461
5462     # Guillermo Gomez says -lposix is necessary on A/UX.
5463     echo "$as_me:$LINENO: checking for remove" >&5
5464 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5465 if test "${ac_cv_func_remove+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5476 #define remove innocuous_remove
5477
5478 /* System header to define __stub macros and hopefully few prototypes,
5479     which can conflict with char remove (); below.
5480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5481     <limits.h> exists even on freestanding compilers.  */
5482
5483 #ifdef __STDC__
5484 # include <limits.h>
5485 #else
5486 # include <assert.h>
5487 #endif
5488
5489 #undef remove
5490
5491 /* Override any gcc2 internal prototype to avoid an error.  */
5492 #ifdef __cplusplus
5493 extern "C"
5494 {
5495 #endif
5496 /* We use char because int might match the return type of a gcc2
5497    builtin and then its argument prototype would still apply.  */
5498 char remove ();
5499 /* The GNU C library defines this for functions which it implements
5500     to always fail with ENOSYS.  Some functions are actually named
5501     something starting with __ and the normal name is an alias.  */
5502 #if defined (__stub_remove) || defined (__stub___remove)
5503 choke me
5504 #else
5505 char (*f) () = remove;
5506 #endif
5507 #ifdef __cplusplus
5508 }
5509 #endif
5510
5511 int
5512 main ()
5513 {
5514 return f != remove;
5515   ;
5516   return 0;
5517 }
5518 _ACEOF
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521   (eval $ac_link) 2>conftest.er1
5522   ac_status=$?
5523   grep -v '^ *+' conftest.er1 >conftest.err
5524   rm -f conftest.er1
5525   cat conftest.err >&5
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } &&
5528          { ac_try='test -z "$ac_c_werror_flag"
5529                          || test ! -s conftest.err'
5530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531   (eval $ac_try) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; } &&
5535          { ac_try='test -s conftest$ac_exeext'
5536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }; }; then
5541   ac_cv_func_remove=yes
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546 ac_cv_func_remove=no
5547 fi
5548 rm -f conftest.err conftest.$ac_objext \
5549       conftest$ac_exeext conftest.$ac_ext
5550 fi
5551 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5552 echo "${ECHO_T}$ac_cv_func_remove" >&6
5553
5554     if test $ac_cv_func_remove = no; then
5555       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5556 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5557 if test "${ac_cv_lib_posix_remove+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lposix  $LIBS"
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568
5569 /* Override any gcc2 internal prototype to avoid an error.  */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 /* We use char because int might match the return type of a gcc2
5574    builtin and then its argument prototype would still apply.  */
5575 char remove ();
5576 int
5577 main ()
5578 {
5579 remove ();
5580   ;
5581   return 0;
5582 }
5583 _ACEOF
5584 rm -f conftest.$ac_objext conftest$ac_exeext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586   (eval $ac_link) 2>conftest.er1
5587   ac_status=$?
5588   grep -v '^ *+' conftest.er1 >conftest.err
5589   rm -f conftest.er1
5590   cat conftest.err >&5
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } &&
5593          { ac_try='test -z "$ac_c_werror_flag"
5594                          || test ! -s conftest.err'
5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; } &&
5600          { ac_try='test -s conftest$ac_exeext'
5601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602   (eval $ac_try) 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }; }; then
5606   ac_cv_lib_posix_remove=yes
5607 else
5608   echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ac_cv_lib_posix_remove=no
5612 fi
5613 rm -f conftest.err conftest.$ac_objext \
5614       conftest$ac_exeext conftest.$ac_ext
5615 LIBS=$ac_check_lib_save_LIBS
5616 fi
5617 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5618 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5619 if test $ac_cv_lib_posix_remove = yes; then
5620   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5621 fi
5622
5623     fi
5624
5625     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5626     echo "$as_me:$LINENO: checking for shmat" >&5
5627 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5628 if test "${ac_cv_func_shmat+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5639 #define shmat innocuous_shmat
5640
5641 /* System header to define __stub macros and hopefully few prototypes,
5642     which can conflict with char shmat (); below.
5643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5644     <limits.h> exists even on freestanding compilers.  */
5645
5646 #ifdef __STDC__
5647 # include <limits.h>
5648 #else
5649 # include <assert.h>
5650 #endif
5651
5652 #undef shmat
5653
5654 /* Override any gcc2 internal prototype to avoid an error.  */
5655 #ifdef __cplusplus
5656 extern "C"
5657 {
5658 #endif
5659 /* We use char because int might match the return type of a gcc2
5660    builtin and then its argument prototype would still apply.  */
5661 char shmat ();
5662 /* The GNU C library defines this for functions which it implements
5663     to always fail with ENOSYS.  Some functions are actually named
5664     something starting with __ and the normal name is an alias.  */
5665 #if defined (__stub_shmat) || defined (__stub___shmat)
5666 choke me
5667 #else
5668 char (*f) () = shmat;
5669 #endif
5670 #ifdef __cplusplus
5671 }
5672 #endif
5673
5674 int
5675 main ()
5676 {
5677 return f != shmat;
5678   ;
5679   return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext conftest$ac_exeext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5684   (eval $ac_link) 2>conftest.er1
5685   ac_status=$?
5686   grep -v '^ *+' conftest.er1 >conftest.err
5687   rm -f conftest.er1
5688   cat conftest.err >&5
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); } &&
5691          { ac_try='test -z "$ac_c_werror_flag"
5692                          || test ! -s conftest.err'
5693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694   (eval $ac_try) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; } &&
5698          { ac_try='test -s conftest$ac_exeext'
5699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700   (eval $ac_try) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; }; then
5704   ac_cv_func_shmat=yes
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_cv_func_shmat=no
5710 fi
5711 rm -f conftest.err conftest.$ac_objext \
5712       conftest$ac_exeext conftest.$ac_ext
5713 fi
5714 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5715 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5716
5717     if test $ac_cv_func_shmat = no; then
5718       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5719 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5720 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723   ac_check_lib_save_LIBS=$LIBS
5724 LIBS="-lipc  $LIBS"
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731
5732 /* Override any gcc2 internal prototype to avoid an error.  */
5733 #ifdef __cplusplus
5734 extern "C"
5735 #endif
5736 /* We use char because int might match the return type of a gcc2
5737    builtin and then its argument prototype would still apply.  */
5738 char shmat ();
5739 int
5740 main ()
5741 {
5742 shmat ();
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext conftest$ac_exeext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749   (eval $ac_link) 2>conftest.er1
5750   ac_status=$?
5751   grep -v '^ *+' conftest.er1 >conftest.err
5752   rm -f conftest.er1
5753   cat conftest.err >&5
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); } &&
5756          { ac_try='test -z "$ac_c_werror_flag"
5757                          || test ! -s conftest.err'
5758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759   (eval $ac_try) 2>&5
5760   ac_status=$?
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); }; } &&
5763          { ac_try='test -s conftest$ac_exeext'
5764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765   (eval $ac_try) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; }; then
5769   ac_cv_lib_ipc_shmat=yes
5770 else
5771   echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 ac_cv_lib_ipc_shmat=no
5775 fi
5776 rm -f conftest.err conftest.$ac_objext \
5777       conftest$ac_exeext conftest.$ac_ext
5778 LIBS=$ac_check_lib_save_LIBS
5779 fi
5780 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5781 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5782 if test $ac_cv_lib_ipc_shmat = yes; then
5783   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5784 fi
5785
5786     fi
5787   fi
5788
5789   # Check for libraries that X11R6 Xt/Xaw programs need.
5790   ac_save_LDFLAGS=$LDFLAGS
5791   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5792   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5793   # check for ICE first), but we must link in the order -lSM -lICE or
5794   # we get undefined symbols.  So assume we have SM if we have ICE.
5795   # These have to be linked with before -lX11, unlike the other
5796   # libraries we check for below, so use a different variable.
5797   # John Interrante, Karl Berry
5798   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5799 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5800 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   ac_check_lib_save_LIBS=$LIBS
5804 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811
5812 /* Override any gcc2 internal prototype to avoid an error.  */
5813 #ifdef __cplusplus
5814 extern "C"
5815 #endif
5816 /* We use char because int might match the return type of a gcc2
5817    builtin and then its argument prototype would still apply.  */
5818 char IceConnectionNumber ();
5819 int
5820 main ()
5821 {
5822 IceConnectionNumber ();
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829   (eval $ac_link) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_c_werror_flag"
5837                          || test ! -s conftest.err'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; } &&
5843          { ac_try='test -s conftest$ac_exeext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   ac_cv_lib_ICE_IceConnectionNumber=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_cv_lib_ICE_IceConnectionNumber=no
5855 fi
5856 rm -f conftest.err conftest.$ac_objext \
5857       conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5859 fi
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5861 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5862 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5863   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5864 fi
5865
5866   LDFLAGS=$ac_save_LDFLAGS
5867
5868 fi
5869
5870
5871 # Checks for X
5872 if test "x$with_x" = xyes; then
5873   if test "x$have_x" = xno; then
5874     if test "x$x_config_flag" = xyes; then
5875       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5876 echo "$as_me: error: Could not configure X" >&2;}
5877    { (exit 1); exit 1; }; }
5878     else
5879       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5880 echo "$as_me: WARNING: Could not configure X" >&2;}
5881     fi
5882   fi
5883 fi
5884 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5885   if test "x$x_libraries" != x; then
5886     ldflags_x_opt="-L$x_libraries"
5887     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5888     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5889   else
5890     ldflags_x_opt=
5891   fi
5892   if test "x$x_includes" != x; then
5893     CPPFLAGS="$CPPFLAGS -I$x_includes"
5894   fi
5895
5896
5897 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5898 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5899 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   ac_check_lib_save_LIBS=$LIBS
5903 LIBS="-lX11  $LIBS"
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910
5911 /* Override any gcc2 internal prototype to avoid an error.  */
5912 #ifdef __cplusplus
5913 extern "C"
5914 #endif
5915 /* We use char because int might match the return type of a gcc2
5916    builtin and then its argument prototype would still apply.  */
5917 char XOpenDisplay ();
5918 int
5919 main ()
5920 {
5921 XOpenDisplay ();
5922   ;
5923   return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928   (eval $ac_link) 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -z "$ac_c_werror_flag"
5936                          || test ! -s conftest.err'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; } &&
5942          { ac_try='test -s conftest$ac_exeext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_cv_lib_X11_XOpenDisplay=yes
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_cv_lib_X11_XOpenDisplay=no
5954 fi
5955 rm -f conftest.err conftest.$ac_objext \
5956       conftest$ac_exeext conftest.$ac_ext
5957 LIBS=$ac_check_lib_save_LIBS
5958 fi
5959 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5960 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5961 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5962   cat >>confdefs.h <<_ACEOF
5963 #define HAVE_LIBX11 1
5964 _ACEOF
5965
5966   LIBS="-lX11 $LIBS"
5967
5968 fi
5969
5970   echo "$as_me:$LINENO: checking X11 version 6" >&5
5971 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5972   if test "${timidity_cv_x11_version_6+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981 #include <X11/Xlib.h>
5982 int
5983 main ()
5984 {
5985
5986 #if XlibSpecificationRelease < 6
5987 fail;
5988 #endif
5989
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996   (eval $ac_link) 2>conftest.er1
5997   ac_status=$?
5998   grep -v '^ *+' conftest.er1 >conftest.err
5999   rm -f conftest.er1
6000   cat conftest.err >&5
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -z "$ac_c_werror_flag"
6004                          || test ! -s conftest.err'
6005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006   (eval $ac_try) 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }; } &&
6010          { ac_try='test -s conftest$ac_exeext'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; }; then
6016   timidity_cv_x11_version_6=yes
6017 else
6018   echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 timidity_cv_x11_version_6=no
6022 fi
6023 rm -f conftest.err conftest.$ac_objext \
6024       conftest$ac_exeext conftest.$ac_ext
6025 fi
6026
6027   if test "$timidity_cv_x11_version_6" = "yes"; then
6028     echo "$as_me:$LINENO: result: 6 or newer" >&5
6029 echo "${ECHO_T}6 or newer" >&6
6030       else
6031     echo "$as_me:$LINENO: result: before 6" >&5
6032 echo "${ECHO_T}before 6" >&6
6033   fi
6034
6035     KEEPLIBS=$LIBS
6036   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6037 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6038 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   ac_check_lib_save_LIBS=$LIBS
6042 LIBS="-lXext  $LIBS"
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h.  */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h.  */
6049
6050 /* Override any gcc2 internal prototype to avoid an error.  */
6051 #ifdef __cplusplus
6052 extern "C"
6053 #endif
6054 /* We use char because int might match the return type of a gcc2
6055    builtin and then its argument prototype would still apply.  */
6056 char XShapeCombineMask ();
6057 int
6058 main ()
6059 {
6060 XShapeCombineMask ();
6061   ;
6062   return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067   (eval $ac_link) 2>conftest.er1
6068   ac_status=$?
6069   grep -v '^ *+' conftest.er1 >conftest.err
6070   rm -f conftest.er1
6071   cat conftest.err >&5
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); } &&
6074          { ac_try='test -z "$ac_c_werror_flag"
6075                          || test ! -s conftest.err'
6076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077   (eval $ac_try) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; } &&
6081          { ac_try='test -s conftest$ac_exeext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_cv_lib_Xext_XShapeCombineMask=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_cv_lib_Xext_XShapeCombineMask=no
6093 fi
6094 rm -f conftest.err conftest.$ac_objext \
6095       conftest$ac_exeext conftest.$ac_ext
6096 LIBS=$ac_check_lib_save_LIBS
6097 fi
6098 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6099 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6100 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6101   have_xext=yes; LIBS="-lXext $LIBS"
6102 else
6103   have_xext=no
6104 fi
6105
6106
6107 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6108 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6109 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   ac_check_lib_save_LIBS=$LIBS
6113 LIBS="-lICE  $LIBS"
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120
6121 /* Override any gcc2 internal prototype to avoid an error.  */
6122 #ifdef __cplusplus
6123 extern "C"
6124 #endif
6125 /* We use char because int might match the return type of a gcc2
6126    builtin and then its argument prototype would still apply.  */
6127 char IceConnectionNumber ();
6128 int
6129 main ()
6130 {
6131 IceConnectionNumber ();
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138   (eval $ac_link) 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } &&
6145          { ac_try='test -z "$ac_c_werror_flag"
6146                          || test ! -s conftest.err'
6147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148   (eval $ac_try) 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); }; } &&
6152          { ac_try='test -s conftest$ac_exeext'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; }; then
6158   ac_cv_lib_ICE_IceConnectionNumber=yes
6159 else
6160   echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_cv_lib_ICE_IceConnectionNumber=no
6164 fi
6165 rm -f conftest.err conftest.$ac_objext \
6166       conftest$ac_exeext conftest.$ac_ext
6167 LIBS=$ac_check_lib_save_LIBS
6168 fi
6169 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6170 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6171 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6172   cat >>confdefs.h <<_ACEOF
6173 #define HAVE_LIBICE 1
6174 _ACEOF
6175
6176   LIBS="-lICE $LIBS"
6177
6178 fi
6179
6180   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6181 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6182 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   ac_check_lib_save_LIBS=$LIBS
6186 LIBS="-lSM  $LIBS"
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193
6194 /* Override any gcc2 internal prototype to avoid an error.  */
6195 #ifdef __cplusplus
6196 extern "C"
6197 #endif
6198 /* We use char because int might match the return type of a gcc2
6199    builtin and then its argument prototype would still apply.  */
6200 char SmcOpenConnection ();
6201 int
6202 main ()
6203 {
6204 SmcOpenConnection ();
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211   (eval $ac_link) 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } &&
6218          { ac_try='test -z "$ac_c_werror_flag"
6219                          || test ! -s conftest.err'
6220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221   (eval $ac_try) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); }; } &&
6225          { ac_try='test -s conftest$ac_exeext'
6226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227   (eval $ac_try) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; }; then
6231   ac_cv_lib_SM_SmcOpenConnection=yes
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_cv_lib_SM_SmcOpenConnection=no
6237 fi
6238 rm -f conftest.err conftest.$ac_objext \
6239       conftest$ac_exeext conftest.$ac_ext
6240 LIBS=$ac_check_lib_save_LIBS
6241 fi
6242 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6243 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6244 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6245   have_xprelibs=yes; LIBS="-lSM $LIBS"
6246 else
6247   have_xprelibs=no
6248 fi
6249
6250   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6251 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6252 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   ac_check_lib_save_LIBS=$LIBS
6256 LIBS="-lXt  $LIBS"
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263
6264 /* Override any gcc2 internal prototype to avoid an error.  */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 /* We use char because int might match the return type of a gcc2
6269    builtin and then its argument prototype would still apply.  */
6270 char XtVaAppInitialize ();
6271 int
6272 main ()
6273 {
6274 XtVaAppInitialize ();
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281   (eval $ac_link) 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_c_werror_flag"
6289                          || test ! -s conftest.err'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; } &&
6295          { ac_try='test -s conftest$ac_exeext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   ac_cv_lib_Xt_XtVaAppInitialize=yes
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 ac_cv_lib_Xt_XtVaAppInitialize=no
6307 fi
6308 rm -f conftest.err conftest.$ac_objext \
6309       conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6311 fi
6312 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6313 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6314 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6315   have_xt=yes; LIBS="-lXt $LIBS"
6316 else
6317   have_xt=no
6318 fi
6319
6320   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6321 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6322 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   ac_check_lib_save_LIBS=$LIBS
6326 LIBS="-lXmu  $LIBS"
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333
6334 /* Override any gcc2 internal prototype to avoid an error.  */
6335 #ifdef __cplusplus
6336 extern "C"
6337 #endif
6338 /* We use char because int might match the return type of a gcc2
6339    builtin and then its argument prototype would still apply.  */
6340 char XmuInternAtom ();
6341 int
6342 main ()
6343 {
6344 XmuInternAtom ();
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351   (eval $ac_link) 2>conftest.er1
6352   ac_status=$?
6353   grep -v '^ *+' conftest.er1 >conftest.err
6354   rm -f conftest.er1
6355   cat conftest.err >&5
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); } &&
6358          { ac_try='test -z "$ac_c_werror_flag"
6359                          || test ! -s conftest.err'
6360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361   (eval $ac_try) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); }; } &&
6365          { ac_try='test -s conftest$ac_exeext'
6366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; }; then
6371   ac_cv_lib_Xmu_XmuInternAtom=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 ac_cv_lib_Xmu_XmuInternAtom=no
6377 fi
6378 rm -f conftest.err conftest.$ac_objext \
6379       conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6381 fi
6382 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6383 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6384 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6385   LIBS="-lXmu $LIBS"
6386 fi
6387
6388
6389 for ac_func in XmuRegisterExternalAgent
6390 do
6391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6392 echo "$as_me:$LINENO: checking for $ac_func" >&5
6393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_var+set}\" = set"; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h.  */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h.  */
6403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6405 #define $ac_func innocuous_$ac_func
6406
6407 /* System header to define __stub macros and hopefully few prototypes,
6408     which can conflict with char $ac_func (); below.
6409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6410     <limits.h> exists even on freestanding compilers.  */
6411
6412 #ifdef __STDC__
6413 # include <limits.h>
6414 #else
6415 # include <assert.h>
6416 #endif
6417
6418 #undef $ac_func
6419
6420 /* Override any gcc2 internal prototype to avoid an error.  */
6421 #ifdef __cplusplus
6422 extern "C"
6423 {
6424 #endif
6425 /* We use char because int might match the return type of a gcc2
6426    builtin and then its argument prototype would still apply.  */
6427 char $ac_func ();
6428 /* The GNU C library defines this for functions which it implements
6429     to always fail with ENOSYS.  Some functions are actually named
6430     something starting with __ and the normal name is an alias.  */
6431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6432 choke me
6433 #else
6434 char (*f) () = $ac_func;
6435 #endif
6436 #ifdef __cplusplus
6437 }
6438 #endif
6439
6440 int
6441 main ()
6442 {
6443 return f != $ac_func;
6444   ;
6445   return 0;
6446 }
6447 _ACEOF
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450   (eval $ac_link) 2>conftest.er1
6451   ac_status=$?
6452   grep -v '^ *+' conftest.er1 >conftest.err
6453   rm -f conftest.er1
6454   cat conftest.err >&5
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } &&
6457          { ac_try='test -z "$ac_c_werror_flag"
6458                          || test ! -s conftest.err'
6459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460   (eval $ac_try) 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; } &&
6464          { ac_try='test -s conftest$ac_exeext'
6465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466   (eval $ac_try) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; }; then
6470   eval "$as_ac_var=yes"
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475 eval "$as_ac_var=no"
6476 fi
6477 rm -f conftest.err conftest.$ac_objext \
6478       conftest$ac_exeext conftest.$ac_ext
6479 fi
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6482 if test `eval echo '${'$as_ac_var'}'` = yes; then
6483   cat >>confdefs.h <<_ACEOF
6484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6485 _ACEOF
6486
6487 fi
6488 done
6489
6490   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6491 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6492 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lXaw3d  $LIBS"
6497 cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h.  */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h.  */
6503
6504 /* Override any gcc2 internal prototype to avoid an error.  */
6505 #ifdef __cplusplus
6506 extern "C"
6507 #endif
6508 /* We use char because int might match the return type of a gcc2
6509    builtin and then its argument prototype would still apply.  */
6510 char XawInitializeWidgetSet ();
6511 int
6512 main ()
6513 {
6514 XawInitializeWidgetSet ();
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521   (eval $ac_link) 2>conftest.er1
6522   ac_status=$?
6523   grep -v '^ *+' conftest.er1 >conftest.err
6524   rm -f conftest.er1
6525   cat conftest.err >&5
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); } &&
6528          { ac_try='test -z "$ac_c_werror_flag"
6529                          || test ! -s conftest.err'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; } &&
6535          { ac_try='test -s conftest$ac_exeext'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; }; then
6541   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6547 fi
6548 rm -f conftest.err conftest.$ac_objext \
6549       conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6551 fi
6552 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6553 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6554 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6555   have_xaw=3d
6556 else
6557    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6558 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6559 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   ac_check_lib_save_LIBS=$LIBS
6563 LIBS="-lXaw  $LIBS"
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570
6571 /* Override any gcc2 internal prototype to avoid an error.  */
6572 #ifdef __cplusplus
6573 extern "C"
6574 #endif
6575 /* We use char because int might match the return type of a gcc2
6576    builtin and then its argument prototype would still apply.  */
6577 char XawInitializeWidgetSet ();
6578 int
6579 main ()
6580 {
6581 XawInitializeWidgetSet ();
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588   (eval $ac_link) 2>conftest.er1
6589   ac_status=$?
6590   grep -v '^ *+' conftest.er1 >conftest.err
6591   rm -f conftest.er1
6592   cat conftest.err >&5
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); } &&
6595          { ac_try='test -z "$ac_c_werror_flag"
6596                          || test ! -s conftest.err'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; } &&
6602          { ac_try='test -s conftest$ac_exeext'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6614 fi
6615 rm -f conftest.err conftest.$ac_objext \
6616       conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6618 fi
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6620 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6621 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6622   have_xaw=yes
6623 else
6624   have_xaw=no
6625 fi
6626
6627 fi
6628
6629   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6630 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6631 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634   ac_check_lib_save_LIBS=$LIBS
6635 LIBS="-lXm  $LIBS"
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642
6643 /* Override any gcc2 internal prototype to avoid an error.  */
6644 #ifdef __cplusplus
6645 extern "C"
6646 #endif
6647 /* We use char because int might match the return type of a gcc2
6648    builtin and then its argument prototype would still apply.  */
6649 char XmCreateForm ();
6650 int
6651 main ()
6652 {
6653 XmCreateForm ();
6654   ;
6655   return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660   (eval $ac_link) 2>conftest.er1
6661   ac_status=$?
6662   grep -v '^ *+' conftest.er1 >conftest.err
6663   rm -f conftest.er1
6664   cat conftest.err >&5
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); } &&
6667          { ac_try='test -z "$ac_c_werror_flag"
6668                          || test ! -s conftest.err'
6669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670   (eval $ac_try) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); }; } &&
6674          { ac_try='test -s conftest$ac_exeext'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; }; then
6680   ac_cv_lib_Xm_XmCreateForm=yes
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 ac_cv_lib_Xm_XmCreateForm=no
6686 fi
6687 rm -f conftest.err conftest.$ac_objext \
6688       conftest$ac_exeext conftest.$ac_ext
6689 LIBS=$ac_check_lib_save_LIBS
6690 fi
6691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6692 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6693 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6694   have_xm=yes
6695 else
6696   have_xm=no
6697 fi
6698
6699
6700 for ac_func in XShmCreatePixmap
6701 do
6702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 echo "$as_me:$LINENO: checking for $ac_func" >&5
6704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6705 if eval "test \"\${$as_ac_var+set}\" = set"; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6716 #define $ac_func innocuous_$ac_func
6717
6718 /* System header to define __stub macros and hopefully few prototypes,
6719     which can conflict with char $ac_func (); below.
6720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721     <limits.h> exists even on freestanding compilers.  */
6722
6723 #ifdef __STDC__
6724 # include <limits.h>
6725 #else
6726 # include <assert.h>
6727 #endif
6728
6729 #undef $ac_func
6730
6731 /* Override any gcc2 internal prototype to avoid an error.  */
6732 #ifdef __cplusplus
6733 extern "C"
6734 {
6735 #endif
6736 /* We use char because int might match the return type of a gcc2
6737    builtin and then its argument prototype would still apply.  */
6738 char $ac_func ();
6739 /* The GNU C library defines this for functions which it implements
6740     to always fail with ENOSYS.  Some functions are actually named
6741     something starting with __ and the normal name is an alias.  */
6742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743 choke me
6744 #else
6745 char (*f) () = $ac_func;
6746 #endif
6747 #ifdef __cplusplus
6748 }
6749 #endif
6750
6751 int
6752 main ()
6753 {
6754 return f != $ac_func;
6755   ;
6756   return 0;
6757 }
6758 _ACEOF
6759 rm -f conftest.$ac_objext conftest$ac_exeext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761   (eval $ac_link) 2>conftest.er1
6762   ac_status=$?
6763   grep -v '^ *+' conftest.er1 >conftest.err
6764   rm -f conftest.er1
6765   cat conftest.err >&5
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); } &&
6768          { ac_try='test -z "$ac_c_werror_flag"
6769                          || test ! -s conftest.err'
6770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771   (eval $ac_try) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; } &&
6775          { ac_try='test -s conftest$ac_exeext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   eval "$as_ac_var=yes"
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 eval "$as_ac_var=no"
6787 fi
6788 rm -f conftest.err conftest.$ac_objext \
6789       conftest$ac_exeext conftest.$ac_ext
6790 fi
6791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6793 if test `eval echo '${'$as_ac_var'}'` = yes; then
6794   cat >>confdefs.h <<_ACEOF
6795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6796 _ACEOF
6797
6798 fi
6799 done
6800
6801   LIBS=$KEEPLIBS
6802 fi
6803
6804 # Checks for header files.
6805 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6807 if test "${ac_cv_header_stdc+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h.  */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h.  */
6816 #include <stdlib.h>
6817 #include <stdarg.h>
6818 #include <string.h>
6819 #include <float.h>
6820
6821 int
6822 main ()
6823 {
6824
6825   ;
6826   return 0;
6827 }
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831   (eval $ac_compile) 2>conftest.er1
6832   ac_status=$?
6833   grep -v '^ *+' conftest.er1 >conftest.err
6834   rm -f conftest.er1
6835   cat conftest.err >&5
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); } &&
6838          { ac_try='test -z "$ac_c_werror_flag"
6839                          || test ! -s conftest.err'
6840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841   (eval $ac_try) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; } &&
6845          { ac_try='test -s conftest.$ac_objext'
6846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847   (eval $ac_try) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; }; then
6851   ac_cv_header_stdc=yes
6852 else
6853   echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 ac_cv_header_stdc=no
6857 fi
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859
6860 if test $ac_cv_header_stdc = yes; then
6861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6862   cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868 #include <string.h>
6869
6870 _ACEOF
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872   $EGREP "memchr" >/dev/null 2>&1; then
6873   :
6874 else
6875   ac_cv_header_stdc=no
6876 fi
6877 rm -f conftest*
6878
6879 fi
6880
6881 if test $ac_cv_header_stdc = yes; then
6882   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #include <stdlib.h>
6890
6891 _ACEOF
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893   $EGREP "free" >/dev/null 2>&1; then
6894   :
6895 else
6896   ac_cv_header_stdc=no
6897 fi
6898 rm -f conftest*
6899
6900 fi
6901
6902 if test $ac_cv_header_stdc = yes; then
6903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6904   if test "$cross_compiling" = yes; then
6905   :
6906 else
6907   cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h.  */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h.  */
6913 #include <ctype.h>
6914 #if ((' ' & 0x0FF) == 0x020)
6915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6917 #else
6918 # define ISLOWER(c) \
6919                    (('a' <= (c) && (c) <= 'i') \
6920                      || ('j' <= (c) && (c) <= 'r') \
6921                      || ('s' <= (c) && (c) <= 'z'))
6922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6923 #endif
6924
6925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6926 int
6927 main ()
6928 {
6929   int i;
6930   for (i = 0; i < 256; i++)
6931     if (XOR (islower (i), ISLOWER (i))
6932         || toupper (i) != TOUPPER (i))
6933       exit(2);
6934   exit (0);
6935 }
6936 _ACEOF
6937 rm -f conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939   (eval $ac_link) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944   (eval $ac_try) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); }; }; then
6948   :
6949 else
6950   echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ( exit $ac_status )
6955 ac_cv_header_stdc=no
6956 fi
6957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6958 fi
6959 fi
6960 fi
6961 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6962 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6963 if test $ac_cv_header_stdc = yes; then
6964
6965 cat >>confdefs.h <<\_ACEOF
6966 #define STDC_HEADERS 1
6967 _ACEOF
6968
6969 fi
6970
6971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6982                   inttypes.h stdint.h unistd.h
6983 do
6984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 echo "$as_me:$LINENO: checking for $ac_header" >&5
6986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h.  */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h.  */
6996 $ac_includes_default
6997
6998 #include <$ac_header>
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002   (eval $ac_compile) 2>conftest.er1
7003   ac_status=$?
7004   grep -v '^ *+' conftest.er1 >conftest.err
7005   rm -f conftest.er1
7006   cat conftest.err >&5
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } &&
7009          { ac_try='test -z "$ac_c_werror_flag"
7010                          || test ! -s conftest.err'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; } &&
7016          { ac_try='test -s conftest.$ac_objext'
7017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018   (eval $ac_try) 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); }; }; then
7022   eval "$as_ac_Header=yes"
7023 else
7024   echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 eval "$as_ac_Header=no"
7028 fi
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7034   cat >>confdefs.h <<_ACEOF
7035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7036 _ACEOF
7037
7038 fi
7039
7040 done
7041
7042
7043 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7044 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7045 if test "${ac_cv_header_stdbool_h+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054
7055 #include <stdbool.h>
7056 #ifndef bool
7057 # error bool is not defined
7058 #endif
7059 #ifndef false
7060 # error false is not defined
7061 #endif
7062 #if false
7063 # error false is not 0
7064 #endif
7065 #ifndef true
7066 # error true is not defined
7067 #endif
7068 #if true != 1
7069 # error true is not 1
7070 #endif
7071 #ifndef __bool_true_false_are_defined
7072 # error __bool_true_false_are_defined is not defined
7073 #endif
7074
7075         struct s { _Bool s: 1; _Bool t; } s;
7076
7077         char a[true == 1 ? 1 : -1];
7078         char b[false == 0 ? 1 : -1];
7079         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7080         char d[(bool) -0.5 == true ? 1 : -1];
7081         bool e = &s;
7082         char f[(_Bool) -0.0 == false ? 1 : -1];
7083         char g[true];
7084         char h[sizeof (_Bool)];
7085         char i[sizeof s.t];
7086
7087 int
7088 main ()
7089 {
7090  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7091   ;
7092   return 0;
7093 }
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097   (eval $ac_compile) 2>conftest.er1
7098   ac_status=$?
7099   grep -v '^ *+' conftest.er1 >conftest.err
7100   rm -f conftest.er1
7101   cat conftest.err >&5
7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103   (exit $ac_status); } &&
7104          { ac_try='test -z "$ac_c_werror_flag"
7105                          || test ! -s conftest.err'
7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107   (eval $ac_try) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }; } &&
7111          { ac_try='test -s conftest.$ac_objext'
7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113   (eval $ac_try) 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); }; }; then
7117   ac_cv_header_stdbool_h=yes
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 ac_cv_header_stdbool_h=no
7123 fi
7124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7125 fi
7126 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7127 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7128 echo "$as_me:$LINENO: checking for _Bool" >&5
7129 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7130 if test "${ac_cv_type__Bool+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h.  */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h.  */
7139 $ac_includes_default
7140 int
7141 main ()
7142 {
7143 if ((_Bool *) 0)
7144   return 0;
7145 if (sizeof (_Bool))
7146   return 0;
7147   ;
7148   return 0;
7149 }
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153   (eval $ac_compile) 2>conftest.er1
7154   ac_status=$?
7155   grep -v '^ *+' conftest.er1 >conftest.err
7156   rm -f conftest.er1
7157   cat conftest.err >&5
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); } &&
7160          { ac_try='test -z "$ac_c_werror_flag"
7161                          || test ! -s conftest.err'
7162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163   (eval $ac_try) 2>&5
7164   ac_status=$?
7165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166   (exit $ac_status); }; } &&
7167          { ac_try='test -s conftest.$ac_objext'
7168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169   (eval $ac_try) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }; }; then
7173   ac_cv_type__Bool=yes
7174 else
7175   echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 ac_cv_type__Bool=no
7179 fi
7180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7181 fi
7182 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7183 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7184 if test $ac_cv_type__Bool = yes; then
7185
7186 cat >>confdefs.h <<_ACEOF
7187 #define HAVE__BOOL 1
7188 _ACEOF
7189
7190
7191 fi
7192
7193 if test $ac_cv_header_stdbool_h = yes; then
7194
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_STDBOOL_H 1
7197 _ACEOF
7198
7199 fi
7200
7201 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7202 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7203 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h.  */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h.  */
7212 #include <sys/types.h>
7213 #include <sys/wait.h>
7214 #ifndef WEXITSTATUS
7215 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7216 #endif
7217 #ifndef WIFEXITED
7218 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7219 #endif
7220
7221 int
7222 main ()
7223 {
7224   int s;
7225   wait (&s);
7226   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7227   ;
7228   return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233   (eval $ac_compile) 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } &&
7240          { ac_try='test -z "$ac_c_werror_flag"
7241                          || test ! -s conftest.err'
7242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243   (eval $ac_try) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); }; } &&
7247          { ac_try='test -s conftest.$ac_objext'
7248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249   (eval $ac_try) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; }; then
7253   ac_cv_header_sys_wait_h=yes
7254 else
7255   echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7257
7258 ac_cv_header_sys_wait_h=no
7259 fi
7260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7261 fi
7262 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7264 if test $ac_cv_header_sys_wait_h = yes; then
7265
7266 cat >>confdefs.h <<\_ACEOF
7267 #define HAVE_SYS_WAIT_H 1
7268 _ACEOF
7269
7270 fi
7271
7272 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7273 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7274 if test "${ac_cv_header_time+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h.  */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h.  */
7283 #include <sys/types.h>
7284 #include <sys/time.h>
7285 #include <time.h>
7286
7287 int
7288 main ()
7289 {
7290 if ((struct tm *) 0)
7291 return 0;
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7298   (eval $ac_compile) 2>conftest.er1
7299   ac_status=$?
7300   grep -v '^ *+' conftest.er1 >conftest.err
7301   rm -f conftest.er1
7302   cat conftest.err >&5
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); } &&
7305          { ac_try='test -z "$ac_c_werror_flag"
7306                          || test ! -s conftest.err'
7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308   (eval $ac_try) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }; } &&
7312          { ac_try='test -s conftest.$ac_objext'
7313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314   (eval $ac_try) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; }; then
7318   ac_cv_header_time=yes
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323 ac_cv_header_time=no
7324 fi
7325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7326 fi
7327 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7328 echo "${ECHO_T}$ac_cv_header_time" >&6
7329 if test $ac_cv_header_time = yes; then
7330
7331 cat >>confdefs.h <<\_ACEOF
7332 #define TIME_WITH_SYS_TIME 1
7333 _ACEOF
7334
7335 fi
7336
7337
7338
7339
7340
7341
7342 ac_header_dirent=no
7343 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7344   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7345 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7346 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h.  */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h.  */
7356 #include <sys/types.h>
7357 #include <$ac_hdr>
7358
7359 int
7360 main ()
7361 {
7362 if ((DIR *) 0)
7363 return 0;
7364   ;
7365   return 0;
7366 }
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370   (eval $ac_compile) 2>conftest.er1
7371   ac_status=$?
7372   grep -v '^ *+' conftest.er1 >conftest.err
7373   rm -f conftest.er1
7374   cat conftest.err >&5
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } &&
7377          { ac_try='test -z "$ac_c_werror_flag"
7378                          || test ! -s conftest.err'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; } &&
7384          { ac_try='test -s conftest.$ac_objext'
7385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; }; then
7390   eval "$as_ac_Header=yes"
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7394
7395 eval "$as_ac_Header=no"
7396 fi
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 fi
7399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402   cat >>confdefs.h <<_ACEOF
7403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7404 _ACEOF
7405
7406 ac_header_dirent=$ac_hdr; break
7407 fi
7408
7409 done
7410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7411 if test $ac_header_dirent = dirent.h; then
7412   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7413 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7414 if test "${ac_cv_search_opendir+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   ac_func_search_save_LIBS=$LIBS
7418 ac_cv_search_opendir=no
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h.  */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h.  */
7425
7426 /* Override any gcc2 internal prototype to avoid an error.  */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 /* We use char because int might match the return type of a gcc2
7431    builtin and then its argument prototype would still apply.  */
7432 char opendir ();
7433 int
7434 main ()
7435 {
7436 opendir ();
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443   (eval $ac_link) 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag"
7451                          || test ! -s conftest.err'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; } &&
7457          { ac_try='test -s conftest$ac_exeext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   ac_cv_search_opendir="none required"
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 fi
7469 rm -f conftest.err conftest.$ac_objext \
7470       conftest$ac_exeext conftest.$ac_ext
7471 if test "$ac_cv_search_opendir" = no; then
7472   for ac_lib in dir; do
7473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7474     cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480
7481 /* Override any gcc2 internal prototype to avoid an error.  */
7482 #ifdef __cplusplus
7483 extern "C"
7484 #endif
7485 /* We use char because int might match the return type of a gcc2
7486    builtin and then its argument prototype would still apply.  */
7487 char opendir ();
7488 int
7489 main ()
7490 {
7491 opendir ();
7492   ;
7493   return 0;
7494 }
7495 _ACEOF
7496 rm -f conftest.$ac_objext conftest$ac_exeext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7498   (eval $ac_link) 2>conftest.er1
7499   ac_status=$?
7500   grep -v '^ *+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } &&
7505          { ac_try='test -z "$ac_c_werror_flag"
7506                          || test ! -s conftest.err'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; } &&
7512          { ac_try='test -s conftest$ac_exeext'
7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514   (eval $ac_try) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }; }; then
7518   ac_cv_search_opendir="-l$ac_lib"
7519 break
7520 else
7521   echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 fi
7525 rm -f conftest.err conftest.$ac_objext \
7526       conftest$ac_exeext conftest.$ac_ext
7527   done
7528 fi
7529 LIBS=$ac_func_search_save_LIBS
7530 fi
7531 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7532 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7533 if test "$ac_cv_search_opendir" != no; then
7534   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7535
7536 fi
7537
7538 else
7539   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7540 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7541 if test "${ac_cv_search_opendir+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   ac_func_search_save_LIBS=$LIBS
7545 ac_cv_search_opendir=no
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h.  */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h.  */
7552
7553 /* Override any gcc2 internal prototype to avoid an error.  */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 /* We use char because int might match the return type of a gcc2
7558    builtin and then its argument prototype would still apply.  */
7559 char opendir ();
7560 int
7561 main ()
7562 {
7563 opendir ();
7564   ;
7565   return 0;
7566 }
7567 _ACEOF
7568 rm -f conftest.$ac_objext conftest$ac_exeext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570   (eval $ac_link) 2>conftest.er1
7571   ac_status=$?
7572   grep -v '^ *+' conftest.er1 >conftest.err
7573   rm -f conftest.er1
7574   cat conftest.err >&5
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } &&
7577          { ac_try='test -z "$ac_c_werror_flag"
7578                          || test ! -s conftest.err'
7579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580   (eval $ac_try) 2>&5
7581   ac_status=$?
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); }; } &&
7584          { ac_try='test -s conftest$ac_exeext'
7585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586   (eval $ac_try) 2>&5
7587   ac_status=$?
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); }; }; then
7590   ac_cv_search_opendir="none required"
7591 else
7592   echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 fi
7596 rm -f conftest.err conftest.$ac_objext \
7597       conftest$ac_exeext conftest.$ac_ext
7598 if test "$ac_cv_search_opendir" = no; then
7599   for ac_lib in x; do
7600     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7601     cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h.  */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h.  */
7607
7608 /* Override any gcc2 internal prototype to avoid an error.  */
7609 #ifdef __cplusplus
7610 extern "C"
7611 #endif
7612 /* We use char because int might match the return type of a gcc2
7613    builtin and then its argument prototype would still apply.  */
7614 char opendir ();
7615 int
7616 main ()
7617 {
7618 opendir ();
7619   ;
7620   return 0;
7621 }
7622 _ACEOF
7623 rm -f conftest.$ac_objext conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625   (eval $ac_link) 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -z "$ac_c_werror_flag"
7633                          || test ! -s conftest.err'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; } &&
7639          { ac_try='test -s conftest$ac_exeext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_cv_search_opendir="-l$ac_lib"
7646 break
7647 else
7648   echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 fi
7652 rm -f conftest.err conftest.$ac_objext \
7653       conftest$ac_exeext conftest.$ac_ext
7654   done
7655 fi
7656 LIBS=$ac_func_search_save_LIBS
7657 fi
7658 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7659 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7660 if test "$ac_cv_search_opendir" != no; then
7661   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7662
7663 fi
7664
7665 fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705 for ac_header in \
7706   arpa/inet.h \
7707   errno.h \
7708   getopt.h \
7709   glob.h \
7710   dlfcn.h \
7711   fcntl.h \
7712   inttypes.h \
7713   limits.h \
7714   machine/endian.h \
7715   malloc.h \
7716   memory.h \
7717   netdb.h \
7718   netinet/in.h \
7719   nlist.h \
7720   stddef.h \
7721   stdlib.h \
7722   stdint.h \
7723   string.h \
7724   strings.h \
7725   stropts.h \
7726   soundcard.h \
7727   alsa/asoundlib.h \
7728   sys/asoundlib.h \
7729   sys/audioio.h \
7730   sys/awe_voice.h\
7731   sys/ioctl.h \
7732   sys/ipc.h \
7733   sys/param.h \
7734   sys/shm.h \
7735   sys/socket.h \
7736   sys/soundcard.h \
7737   sys/param.h \
7738   sys/time.h \
7739   sys/types.h \
7740   sys/sysctl.h \
7741   termios.h \
7742   unistd.h \
7743   X11/Xlib.h
7744 do
7745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747   echo "$as_me:$LINENO: checking for $ac_header" >&5
7748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 fi
7752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7754 else
7755   # Is the header compilable?
7756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h.  */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h.  */
7764 $ac_includes_default
7765 #include <$ac_header>
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769   (eval $ac_compile) 2>conftest.er1
7770   ac_status=$?
7771   grep -v '^ *+' conftest.er1 >conftest.err
7772   rm -f conftest.er1
7773   cat conftest.err >&5
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); } &&
7776          { ac_try='test -z "$ac_c_werror_flag"
7777                          || test ! -s conftest.err'
7778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779   (eval $ac_try) 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; } &&
7783          { ac_try='test -s conftest.$ac_objext'
7784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785   (eval $ac_try) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   ac_header_compiler=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 ac_header_compiler=no
7795 fi
7796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7798 echo "${ECHO_T}$ac_header_compiler" >&6
7799
7800 # Is the header present?
7801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809 #include <$ac_header>
7810 _ACEOF
7811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } >/dev/null; then
7819   if test -s conftest.err; then
7820     ac_cpp_err=$ac_c_preproc_warn_flag
7821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7822   else
7823     ac_cpp_err=
7824   fi
7825 else
7826   ac_cpp_err=yes
7827 fi
7828 if test -z "$ac_cpp_err"; then
7829   ac_header_preproc=yes
7830 else
7831   echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834   ac_header_preproc=no
7835 fi
7836 rm -f conftest.err conftest.$ac_ext
7837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7838 echo "${ECHO_T}$ac_header_preproc" >&6
7839
7840 # So?  What about this header?
7841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7842   yes:no: )
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7847     ac_header_preproc=yes
7848     ;;
7849   no:yes:* )
7850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7862     (
7863       cat <<\_ASBOX
7864 ## ------------------------------- ##
7865 ## Report this to root@mput.dip.jp ##
7866 ## ------------------------------- ##
7867 _ASBOX
7868     ) |
7869       sed "s/^/$as_me: WARNING:     /" >&2
7870     ;;
7871 esac
7872 echo "$as_me:$LINENO: checking for $ac_header" >&5
7873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   eval "$as_ac_Header=\$ac_header_preproc"
7878 fi
7879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7881
7882 fi
7883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7884   cat >>confdefs.h <<_ACEOF
7885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7886 _ACEOF
7887
7888 fi
7889
7890 done
7891
7892
7893
7894 for ac_header in \
7895   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7896 do
7897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7898 echo "$as_me:$LINENO: checking for $ac_header" >&5
7899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909
7910 #ifdef HAVE_X11_XLIB_H
7911 #include <X11/Xlib.h>
7912 #endif
7913
7914
7915 #include <$ac_header>
7916 _ACEOF
7917 rm -f conftest.$ac_objext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919   (eval $ac_compile) 2>conftest.er1
7920   ac_status=$?
7921   grep -v '^ *+' conftest.er1 >conftest.err
7922   rm -f conftest.er1
7923   cat conftest.err >&5
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } &&
7926          { ac_try='test -z "$ac_c_werror_flag"
7927                          || test ! -s conftest.err'
7928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929   (eval $ac_try) 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); }; } &&
7933          { ac_try='test -s conftest.$ac_objext'
7934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935   (eval $ac_try) 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; }; then
7939   eval "$as_ac_Header=yes"
7940 else
7941   echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7943
7944 eval "$as_ac_Header=no"
7945 fi
7946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7947 fi
7948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951   cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7953 _ACEOF
7954
7955 fi
7956
7957 done
7958
7959 if test "${ac_cv_header_string_h+set}" = set; then
7960   echo "$as_me:$LINENO: checking for string.h" >&5
7961 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7962 if test "${ac_cv_header_string_h+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 fi
7965 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7966 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7967 else
7968   # Is the header compilable?
7969 echo "$as_me:$LINENO: checking string.h usability" >&5
7970 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h.  */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h.  */
7977 $ac_includes_default
7978 #include <string.h>
7979 _ACEOF
7980 rm -f conftest.$ac_objext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982   (eval $ac_compile) 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } &&
7989          { ac_try='test -z "$ac_c_werror_flag"
7990                          || test ! -s conftest.err'
7991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992   (eval $ac_try) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; } &&
7996          { ac_try='test -s conftest.$ac_objext'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   ac_header_compiler=yes
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 ac_header_compiler=no
8008 fi
8009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8011 echo "${ECHO_T}$ac_header_compiler" >&6
8012
8013 # Is the header present?
8014 echo "$as_me:$LINENO: checking string.h presence" >&5
8015 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022 #include <string.h>
8023 _ACEOF
8024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8026   ac_status=$?
8027   grep -v '^ *+' conftest.er1 >conftest.err
8028   rm -f conftest.er1
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } >/dev/null; then
8032   if test -s conftest.err; then
8033     ac_cpp_err=$ac_c_preproc_warn_flag
8034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8035   else
8036     ac_cpp_err=
8037   fi
8038 else
8039   ac_cpp_err=yes
8040 fi
8041 if test -z "$ac_cpp_err"; then
8042   ac_header_preproc=yes
8043 else
8044   echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047   ac_header_preproc=no
8048 fi
8049 rm -f conftest.err conftest.$ac_ext
8050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8051 echo "${ECHO_T}$ac_header_preproc" >&6
8052
8053 # So?  What about this header?
8054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8055   yes:no: )
8056     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8057 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8058     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8059 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8060     ac_header_preproc=yes
8061     ;;
8062   no:yes:* )
8063     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8064 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8065     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8066 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8067     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8068 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8069     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8070 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8071     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8072 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8073     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8074 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8075     (
8076       cat <<\_ASBOX
8077 ## ------------------------------- ##
8078 ## Report this to root@mput.dip.jp ##
8079 ## ------------------------------- ##
8080 _ASBOX
8081     ) |
8082       sed "s/^/$as_me: WARNING:     /" >&2
8083     ;;
8084 esac
8085 echo "$as_me:$LINENO: checking for string.h" >&5
8086 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8087 if test "${ac_cv_header_string_h+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   ac_cv_header_string_h=$ac_header_preproc
8091 fi
8092 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8093 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8094
8095 fi
8096 if test $ac_cv_header_string_h = yes; then
8097   :
8098 else
8099
8100 cat >>confdefs.h <<\_ACEOF
8101 #define NO_STRING_H 1
8102 _ACEOF
8103
8104 fi
8105
8106
8107
8108 # Checks for typedefs, structures, and compiler characteristics.
8109 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8110 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8111 if test "${ac_cv_c_bigendian+set}" = set; then
8112   echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114   # See if sys/param.h defines the BYTE_ORDER macro.
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 #include <sys/types.h>
8122 #include <sys/param.h>
8123
8124 int
8125 main ()
8126 {
8127 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8128  bogus endian macros
8129 #endif
8130
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137   (eval $ac_compile) 2>conftest.er1
8138   ac_status=$?
8139   grep -v '^ *+' conftest.er1 >conftest.err
8140   rm -f conftest.er1
8141   cat conftest.err >&5
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -z "$ac_c_werror_flag"
8145                          || test ! -s conftest.err'
8146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147   (eval $ac_try) 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; } &&
8151          { ac_try='test -s conftest.$ac_objext'
8152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153   (eval $ac_try) 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; }; then
8157   # It does; now see whether it defined to BIG_ENDIAN or not.
8158 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h.  */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h.  */
8164 #include <sys/types.h>
8165 #include <sys/param.h>
8166
8167 int
8168 main ()
8169 {
8170 #if BYTE_ORDER != BIG_ENDIAN
8171  not big endian
8172 #endif
8173
8174   ;
8175   return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180   (eval $ac_compile) 2>conftest.er1
8181   ac_status=$?
8182   grep -v '^ *+' conftest.er1 >conftest.err
8183   rm -f conftest.er1
8184   cat conftest.err >&5
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } &&
8187          { ac_try='test -z "$ac_c_werror_flag"
8188                          || test ! -s conftest.err'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; } &&
8194          { ac_try='test -s conftest.$ac_objext'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; }; then
8200   ac_cv_c_bigendian=yes
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 ac_cv_c_bigendian=no
8206 fi
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8208 else
8209   echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 # It does not; compile a test program.
8213 if test "$cross_compiling" = yes; then
8214   # try to guess the endianness by grepping values into an object file
8215   ac_cv_c_bigendian=unknown
8216   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8223 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8224 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8225 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8226 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8227 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8228 int
8229 main ()
8230 {
8231  _ascii (); _ebcdic ();
8232   ;
8233   return 0;
8234 }
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238   (eval $ac_compile) 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag"
8246                          || test ! -s conftest.err'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; } &&
8252          { ac_try='test -s conftest.$ac_objext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8259   ac_cv_c_bigendian=yes
8260 fi
8261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8262   if test "$ac_cv_c_bigendian" = unknown; then
8263     ac_cv_c_bigendian=no
8264   else
8265     # finding both strings is unlikely to happen, but who knows?
8266     ac_cv_c_bigendian=unknown
8267   fi
8268 fi
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 fi
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275 else
8276   cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282 int
8283 main ()
8284 {
8285   /* Are we little or big endian?  From Harbison&Steele.  */
8286   union
8287   {
8288     long l;
8289     char c[sizeof (long)];
8290   } u;
8291   u.l = 1;
8292   exit (u.c[sizeof (long) - 1] == 1);
8293 }
8294 _ACEOF
8295 rm -f conftest$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297   (eval $ac_link) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; }; then
8306   ac_cv_c_bigendian=no
8307 else
8308   echo "$as_me: program exited with status $ac_status" >&5
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312 ( exit $ac_status )
8313 ac_cv_c_bigendian=yes
8314 fi
8315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8316 fi
8317 fi
8318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8321 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8322 case $ac_cv_c_bigendian in
8323   yes)
8324
8325 cat >>confdefs.h <<\_ACEOF
8326 #define WORDS_BIGENDIAN 1
8327 _ACEOF
8328  ;;
8329   no)
8330      ;;
8331   *)
8332     { { echo "$as_me:$LINENO: error: unknown endianness
8333 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8334 echo "$as_me: error: unknown endianness
8335 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8336    { (exit 1); exit 1; }; } ;;
8337 esac
8338
8339
8340 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8341 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8342 if test "${ac_cv_c_char_unsigned+set}" = set; then
8343   echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345   cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351 $ac_includes_default
8352 int
8353 main ()
8354 {
8355 static int test_array [1 - 2 * !(((char) -1) < 0)];
8356 test_array [0] = 0
8357
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364   (eval $ac_compile) 2>conftest.er1
8365   ac_status=$?
8366   grep -v '^ *+' conftest.er1 >conftest.err
8367   rm -f conftest.er1
8368   cat conftest.err >&5
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -z "$ac_c_werror_flag"
8372                          || test ! -s conftest.err'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; } &&
8378          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8384   ac_cv_c_char_unsigned=no
8385 else
8386   echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389 ac_cv_c_char_unsigned=yes
8390 fi
8391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8394 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8395 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8396   cat >>confdefs.h <<\_ACEOF
8397 #define __CHAR_UNSIGNED__ 1
8398 _ACEOF
8399
8400 fi
8401
8402 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8403 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8404 if test "${ac_cv_c_const+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h.  */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h.  */
8413
8414 int
8415 main ()
8416 {
8417 /* FIXME: Include the comments suggested by Paul. */
8418 #ifndef __cplusplus
8419   /* Ultrix mips cc rejects this.  */
8420   typedef int charset[2];
8421   const charset x;
8422   /* SunOS 4.1.1 cc rejects this.  */
8423   char const *const *ccp;
8424   char **p;
8425   /* NEC SVR4.0.2 mips cc rejects this.  */
8426   struct point {int x, y;};
8427   static struct point const zero = {0,0};
8428   /* AIX XL C 1.02.0.0 rejects this.
8429      It does not let you subtract one const X* pointer from another in
8430      an arm of an if-expression whose if-part is not a constant
8431      expression */
8432   const char *g = "string";
8433   ccp = &g + (g ? g-g : 0);
8434   /* HPUX 7.0 cc rejects these. */
8435   ++ccp;
8436   p = (char**) ccp;
8437   ccp = (char const *const *) p;
8438   { /* SCO 3.2v4 cc rejects this.  */
8439     char *t;
8440     char const *s = 0 ? (char *) 0 : (char const *) 0;
8441
8442     *t++ = 0;
8443   }
8444   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8445     int x[] = {25, 17};
8446     const int *foo = &x[0];
8447     ++foo;
8448   }
8449   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8450     typedef const int *iptr;
8451     iptr p = 0;
8452     ++p;
8453   }
8454   { /* AIX XL C 1.02.0.0 rejects this saying
8455        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8456     struct s { int j; const int *ap[3]; };
8457     struct s *b; b->j = 5;
8458   }
8459   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8460     const int foo = 10;
8461   }
8462 #endif
8463
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470   (eval $ac_compile) 2>conftest.er1
8471   ac_status=$?
8472   grep -v '^ *+' conftest.er1 >conftest.err
8473   rm -f conftest.er1
8474   cat conftest.err >&5
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -z "$ac_c_werror_flag"
8478                          || test ! -s conftest.err'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; } &&
8484          { ac_try='test -s conftest.$ac_objext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_cv_c_const=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 ac_cv_c_const=no
8496 fi
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8500 echo "${ECHO_T}$ac_cv_c_const" >&6
8501 if test $ac_cv_c_const = no; then
8502
8503 cat >>confdefs.h <<\_ACEOF
8504 #define const
8505 _ACEOF
8506
8507 fi
8508
8509 echo "$as_me:$LINENO: checking for inline" >&5
8510 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8511 if test "${ac_cv_c_inline+set}" = set; then
8512   echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514   ac_cv_c_inline=no
8515 for ac_kw in inline __inline__ __inline; do
8516   cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h.  */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h.  */
8522 #ifndef __cplusplus
8523 typedef int foo_t;
8524 static $ac_kw foo_t static_foo () {return 0; }
8525 $ac_kw foo_t foo () {return 0; }
8526 #endif
8527
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531   (eval $ac_compile) 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_c_werror_flag"
8539                          || test ! -s conftest.err'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; } &&
8545          { ac_try='test -s conftest.$ac_objext'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; }; then
8551   ac_cv_c_inline=$ac_kw; break
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 fi
8557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 done
8559
8560 fi
8561 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8562 echo "${ECHO_T}$ac_cv_c_inline" >&6
8563
8564
8565 case $ac_cv_c_inline in
8566   inline | yes) ;;
8567   *)
8568     case $ac_cv_c_inline in
8569       no) ac_val=;;
8570       *) ac_val=$ac_cv_c_inline;;
8571     esac
8572     cat >>confdefs.h <<_ACEOF
8573 #ifndef __cplusplus
8574 #define inline $ac_val
8575 #endif
8576 _ACEOF
8577     ;;
8578 esac
8579
8580 echo "$as_me:$LINENO: checking for working volatile" >&5
8581 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8582 if test "${ac_cv_c_volatile+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585   cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591
8592 int
8593 main ()
8594 {
8595
8596 volatile int x;
8597 int * volatile y;
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604   (eval $ac_compile) 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -z "$ac_c_werror_flag"
8612                          || test ! -s conftest.err'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; } &&
8618          { ac_try='test -s conftest.$ac_objext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   ac_cv_c_volatile=yes
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 ac_cv_c_volatile=no
8630 fi
8631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8634 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8635 if test $ac_cv_c_volatile = no; then
8636
8637 cat >>confdefs.h <<\_ACEOF
8638 #define volatile
8639 _ACEOF
8640
8641 fi
8642
8643 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8644 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8645 if test "${ac_cv_c_stringize+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h.  */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h.  */
8654 #define x(y) #y
8655
8656 char *s = x(teststring);
8657 _ACEOF
8658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8659   $EGREP "#teststring" >/dev/null 2>&1; then
8660   ac_cv_c_stringize=no
8661 else
8662   ac_cv_c_stringize=yes
8663 fi
8664 rm -f conftest*
8665
8666 fi
8667 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8668 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8669 if test $ac_cv_c_stringize = yes; then
8670
8671 cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_STRINGIZE 1
8673 _ACEOF
8674
8675 fi
8676
8677 echo "$as_me:$LINENO: checking for function prototypes" >&5
8678 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8679 if test "$ac_cv_prog_cc_stdc" != no; then
8680   echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8682
8683 cat >>confdefs.h <<\_ACEOF
8684 #define PROTOTYPES 1
8685 _ACEOF
8686
8687
8688 cat >>confdefs.h <<\_ACEOF
8689 #define __PROTOTYPES 1
8690 _ACEOF
8691
8692 else
8693   echo "$as_me:$LINENO: result: no" >&5
8694 echo "${ECHO_T}no" >&6
8695 fi
8696
8697 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8698 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8699 if test "${ac_cv_struct_tm+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708 #include <sys/types.h>
8709 #include <time.h>
8710
8711 int
8712 main ()
8713 {
8714 struct tm *tp; tp->tm_sec;
8715   ;
8716   return 0;
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_struct_tm=time.h
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 ac_cv_struct_tm=sys/time.h
8747 fi
8748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8749 fi
8750 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8751 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8752 if test $ac_cv_struct_tm = sys/time.h; then
8753
8754 cat >>confdefs.h <<\_ACEOF
8755 #define TM_IN_SYS_TIME 1
8756 _ACEOF
8757
8758 fi
8759
8760 echo "$as_me:$LINENO: checking for size_t" >&5
8761 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8762 if test "${ac_cv_type_size_t+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 $ac_includes_default
8772 int
8773 main ()
8774 {
8775 if ((size_t *) 0)
8776   return 0;
8777 if (sizeof (size_t))
8778   return 0;
8779   ;
8780   return 0;
8781 }
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785   (eval $ac_compile) 2>conftest.er1
8786   ac_status=$?
8787   grep -v '^ *+' conftest.er1 >conftest.err
8788   rm -f conftest.er1
8789   cat conftest.err >&5
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); } &&
8792          { ac_try='test -z "$ac_c_werror_flag"
8793                          || test ! -s conftest.err'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; } &&
8799          { ac_try='test -s conftest.$ac_objext'
8800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801   (eval $ac_try) 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; }; then
8805   ac_cv_type_size_t=yes
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 ac_cv_type_size_t=no
8811 fi
8812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8813 fi
8814 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8815 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8816 if test $ac_cv_type_size_t = yes; then
8817   :
8818 else
8819
8820 cat >>confdefs.h <<_ACEOF
8821 #define size_t unsigned
8822 _ACEOF
8823
8824 fi
8825
8826 echo "$as_me:$LINENO: checking for off_t" >&5
8827 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8828 if test "${ac_cv_type_off_t+set}" = set; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831   cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 $ac_includes_default
8838 int
8839 main ()
8840 {
8841 if ((off_t *) 0)
8842   return 0;
8843 if (sizeof (off_t))
8844   return 0;
8845   ;
8846   return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest.$ac_objext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851   (eval $ac_compile) 2>conftest.er1
8852   ac_status=$?
8853   grep -v '^ *+' conftest.er1 >conftest.err
8854   rm -f conftest.er1
8855   cat conftest.err >&5
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } &&
8858          { ac_try='test -z "$ac_c_werror_flag"
8859                          || test ! -s conftest.err'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest.$ac_objext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_cv_type_off_t=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ac_cv_type_off_t=no
8877 fi
8878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8879 fi
8880 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8881 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8882 if test $ac_cv_type_off_t = yes; then
8883   :
8884 else
8885
8886 cat >>confdefs.h <<_ACEOF
8887 #define off_t long
8888 _ACEOF
8889
8890 fi
8891
8892 echo "$as_me:$LINENO: checking for pid_t" >&5
8893 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8894 if test "${ac_cv_type_pid_t+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903 $ac_includes_default
8904 int
8905 main ()
8906 {
8907 if ((pid_t *) 0)
8908   return 0;
8909 if (sizeof (pid_t))
8910   return 0;
8911   ;
8912   return 0;
8913 }
8914 _ACEOF
8915 rm -f conftest.$ac_objext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917   (eval $ac_compile) 2>conftest.er1
8918   ac_status=$?
8919   grep -v '^ *+' conftest.er1 >conftest.err
8920   rm -f conftest.er1
8921   cat conftest.err >&5
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); } &&
8924          { ac_try='test -z "$ac_c_werror_flag"
8925                          || test ! -s conftest.err'
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); }; } &&
8931          { ac_try='test -s conftest.$ac_objext'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; }; then
8937   ac_cv_type_pid_t=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942 ac_cv_type_pid_t=no
8943 fi
8944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8947 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8948 if test $ac_cv_type_pid_t = yes; then
8949   :
8950 else
8951
8952 cat >>confdefs.h <<_ACEOF
8953 #define pid_t int
8954 _ACEOF
8955
8956 fi
8957
8958
8959 echo "$as_me:$LINENO: checking volatile declaration" >&5
8960 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8961 if test "${timidity_cv_type_volatile+set}" = set; then
8962   echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964   cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970
8971 int
8972 main ()
8973 {
8974 volatile int x
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981   (eval $ac_compile) 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -z "$ac_c_werror_flag"
8989                          || test ! -s conftest.err'
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); }; } &&
8995          { ac_try='test -s conftest.$ac_objext'
8996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997   (eval $ac_try) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; }; then
9001   timidity_cv_type_volatile=yes
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 timidity_cv_type_volatile=no
9007 fi
9008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9009 fi
9010 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9011 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9012 if test $timidity_cv_type_volatile = no; then
9013
9014 cat >>confdefs.h <<\_ACEOF
9015 #define NO_VOLATILE 1
9016 _ACEOF
9017
9018 fi
9019
9020 echo "$as_me:$LINENO: checking union semun declaration" >&5
9021 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9022 if test "${timidity_cv_type_union_semun+set}" = set; then
9023   echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025   cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h.  */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h.  */
9031
9032 #include <sys/types.h>
9033 #include <sys/ipc.h>
9034 #include <sys/sem.h>
9035
9036 int
9037 main ()
9038 {
9039 union semun x
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046   (eval $ac_compile) 2>conftest.er1
9047   ac_status=$?
9048   grep -v '^ *+' conftest.er1 >conftest.err
9049   rm -f conftest.er1
9050   cat conftest.err >&5
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } &&
9053          { ac_try='test -z "$ac_c_werror_flag"
9054                          || test ! -s conftest.err'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; } &&
9060          { ac_try='test -s conftest.$ac_objext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   timidity_cv_type_union_semun=yes
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 timidity_cv_type_union_semun=no
9072 fi
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9074 fi
9075 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9076 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9077 if test $timidity_cv_type_union_semun = yes; then
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNION_SEMUN 1
9081 _ACEOF
9082
9083 fi
9084
9085 if test "x$CYGNUS" = xyes; then
9086   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9087 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9088 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097
9098 #include <windows.h>
9099 #include <mmsystem.h>
9100
9101 int
9102 main ()
9103 {
9104 return WOM_OPEN != 0x3BB
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 rm -f conftest.$ac_objext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111   (eval $ac_compile) 2>conftest.er1
9112   ac_status=$?
9113   grep -v '^ *+' conftest.er1 >conftest.err
9114   rm -f conftest.er1
9115   cat conftest.err >&5
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } &&
9118          { ac_try='test -z "$ac_c_werror_flag"
9119                          || test ! -s conftest.err'
9120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121   (eval $ac_try) 2>&5
9122   ac_status=$?
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); }; } &&
9125          { ac_try='test -s conftest.$ac_objext'
9126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127   (eval $ac_try) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; }; then
9131   timidity_cv_header_new_mmsystem=yes
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 timidity_cv_header_new_mmsystem=no
9137 fi
9138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9139 fi
9140 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9141 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9142   if test $timidity_cv_header_new_mmsystem = yes; then
9143
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_NEW_MMSYSTEM 1
9146 _ACEOF
9147
9148   fi
9149 fi
9150
9151 if test "x$MINGW" = xyes; then
9152   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9153 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9154 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157   cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163
9164 #include <windows.h>
9165 #include <mmsystem.h>
9166
9167 int
9168 main ()
9169 {
9170 return WOM_OPEN != 0x3BB
9171   ;
9172   return 0;
9173 }
9174 _ACEOF
9175 rm -f conftest.$ac_objext
9176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177   (eval $ac_compile) 2>conftest.er1
9178   ac_status=$?
9179   grep -v '^ *+' conftest.er1 >conftest.err
9180   rm -f conftest.er1
9181   cat conftest.err >&5
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); } &&
9184          { ac_try='test -z "$ac_c_werror_flag"
9185                          || test ! -s conftest.err'
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); }; } &&
9191          { ac_try='test -s conftest.$ac_objext'
9192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193   (eval $ac_try) 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); }; }; then
9197   timidity_cv_header_new_mmsystem=yes
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202 timidity_cv_header_new_mmsystem=no
9203 fi
9204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9205 fi
9206 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9207 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9208   if test $timidity_cv_header_new_mmsystem = yes; then
9209
9210 cat >>confdefs.h <<\_ACEOF
9211 #define HAVE_NEW_MMSYSTEM 1
9212 _ACEOF
9213
9214   fi
9215 fi
9216
9217 # Checks for library functions.
9218 echo "$as_me:$LINENO: checking for error_at_line" >&5
9219 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9220 if test "${ac_cv_lib_error_at_line+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229 $ac_includes_default
9230 int
9231 main ()
9232 {
9233 error_at_line (0, 0, "", 0, "");
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240   (eval $ac_link) 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -z "$ac_c_werror_flag"
9248                          || test ! -s conftest.err'
9249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250   (eval $ac_try) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); }; } &&
9254          { ac_try='test -s conftest$ac_exeext'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; }; then
9260   ac_cv_lib_error_at_line=yes
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_cv_lib_error_at_line=no
9266 fi
9267 rm -f conftest.err conftest.$ac_objext \
9268       conftest$ac_exeext conftest.$ac_ext
9269 fi
9270 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9271 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9272 if test $ac_cv_lib_error_at_line = no; then
9273   case $LIBOBJS in
9274     "error.$ac_objext"   | \
9275   *" error.$ac_objext"   | \
9276     "error.$ac_objext "* | \
9277   *" error.$ac_objext "* ) ;;
9278   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9279 esac
9280
9281 fi
9282
9283
9284
9285 for ac_header in unistd.h vfork.h
9286 do
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289   echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 fi
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9296 else
9297   # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306 $ac_includes_default
9307 #include <$ac_header>
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311   (eval $ac_compile) 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } &&
9318          { ac_try='test -z "$ac_c_werror_flag"
9319                          || test ! -s conftest.err'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; } &&
9325          { ac_try='test -s conftest.$ac_objext'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; }; then
9331   ac_header_compiler=yes
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336 ac_header_compiler=no
9337 fi
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9341
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h.  */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h.  */
9351 #include <$ac_header>
9352 _ACEOF
9353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9355   ac_status=$?
9356   grep -v '^ *+' conftest.er1 >conftest.err
9357   rm -f conftest.er1
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } >/dev/null; then
9361   if test -s conftest.err; then
9362     ac_cpp_err=$ac_c_preproc_warn_flag
9363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9364   else
9365     ac_cpp_err=
9366   fi
9367 else
9368   ac_cpp_err=yes
9369 fi
9370 if test -z "$ac_cpp_err"; then
9371   ac_header_preproc=yes
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376   ac_header_preproc=no
9377 fi
9378 rm -f conftest.err conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6
9381
9382 # So?  What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9384   yes:no: )
9385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9389     ac_header_preproc=yes
9390     ;;
9391   no:yes:* )
9392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9404     (
9405       cat <<\_ASBOX
9406 ## ------------------------------- ##
9407 ## Report this to root@mput.dip.jp ##
9408 ## ------------------------------- ##
9409 _ASBOX
9410     ) |
9411       sed "s/^/$as_me: WARNING:     /" >&2
9412     ;;
9413 esac
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   eval "$as_ac_Header=\$ac_header_preproc"
9420 fi
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9423
9424 fi
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426   cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9428 _ACEOF
9429
9430 fi
9431
9432 done
9433
9434
9435
9436 for ac_func in fork vfork
9437 do
9438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439 echo "$as_me:$LINENO: checking for $ac_func" >&5
9440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9441 if eval "test \"\${$as_ac_var+set}\" = set"; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9452 #define $ac_func innocuous_$ac_func
9453
9454 /* System header to define __stub macros and hopefully few prototypes,
9455     which can conflict with char $ac_func (); below.
9456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457     <limits.h> exists even on freestanding compilers.  */
9458
9459 #ifdef __STDC__
9460 # include <limits.h>
9461 #else
9462 # include <assert.h>
9463 #endif
9464
9465 #undef $ac_func
9466
9467 /* Override any gcc2 internal prototype to avoid an error.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 {
9471 #endif
9472 /* We use char because int might match the return type of a gcc2
9473    builtin and then its argument prototype would still apply.  */
9474 char $ac_func ();
9475 /* The GNU C library defines this for functions which it implements
9476     to always fail with ENOSYS.  Some functions are actually named
9477     something starting with __ and the normal name is an alias.  */
9478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9479 choke me
9480 #else
9481 char (*f) () = $ac_func;
9482 #endif
9483 #ifdef __cplusplus
9484 }
9485 #endif
9486
9487 int
9488 main ()
9489 {
9490 return f != $ac_func;
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497   (eval $ac_link) 2>conftest.er1
9498   ac_status=$?
9499   grep -v '^ *+' conftest.er1 >conftest.err
9500   rm -f conftest.er1
9501   cat conftest.err >&5
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } &&
9504          { ac_try='test -z "$ac_c_werror_flag"
9505                          || test ! -s conftest.err'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; } &&
9511          { ac_try='test -s conftest$ac_exeext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   eval "$as_ac_var=yes"
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 eval "$as_ac_var=no"
9523 fi
9524 rm -f conftest.err conftest.$ac_objext \
9525       conftest$ac_exeext conftest.$ac_ext
9526 fi
9527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9529 if test `eval echo '${'$as_ac_var'}'` = yes; then
9530   cat >>confdefs.h <<_ACEOF
9531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9532 _ACEOF
9533
9534 fi
9535 done
9536
9537 if test "x$ac_cv_func_fork" = xyes; then
9538   echo "$as_me:$LINENO: checking for working fork" >&5
9539 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9540 if test "${ac_cv_func_fork_works+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   if test "$cross_compiling" = yes; then
9544   ac_cv_func_fork_works=cross
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* By Ruediger Kuhlmann. */
9548       #include <sys/types.h>
9549       #if HAVE_UNISTD_H
9550       # include <unistd.h>
9551       #endif
9552       /* Some systems only have a dummy stub for fork() */
9553       int main ()
9554       {
9555         if (fork() < 0)
9556           exit (1);
9557         exit (0);
9558       }
9559 _ACEOF
9560 rm -f conftest$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562   (eval $ac_link) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   ac_cv_func_fork_works=yes
9572 else
9573   echo "$as_me: program exited with status $ac_status" >&5
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 ( exit $ac_status )
9578 ac_cv_func_fork_works=no
9579 fi
9580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9581 fi
9582 fi
9583 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9584 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9585
9586 else
9587   ac_cv_func_fork_works=$ac_cv_func_fork
9588 fi
9589 if test "x$ac_cv_func_fork_works" = xcross; then
9590   case $host in
9591     *-*-amigaos* | *-*-msdosdjgpp*)
9592       # Override, as these systems have only a dummy fork() stub
9593       ac_cv_func_fork_works=no
9594       ;;
9595     *)
9596       ac_cv_func_fork_works=yes
9597       ;;
9598   esac
9599   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9600 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9601 fi
9602 ac_cv_func_vfork_works=$ac_cv_func_vfork
9603 if test "x$ac_cv_func_vfork" = xyes; then
9604   echo "$as_me:$LINENO: checking for working vfork" >&5
9605 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9606 if test "${ac_cv_func_vfork_works+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   if test "$cross_compiling" = yes; then
9610   ac_cv_func_vfork_works=cross
9611 else
9612   cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618 /* Thanks to Paul Eggert for this test.  */
9619 #include <stdio.h>
9620 #include <stdlib.h>
9621 #include <sys/types.h>
9622 #include <sys/stat.h>
9623 #include <sys/wait.h>
9624 #if HAVE_UNISTD_H
9625 # include <unistd.h>
9626 #endif
9627 #if HAVE_VFORK_H
9628 # include <vfork.h>
9629 #endif
9630 /* On some sparc systems, changes by the child to local and incoming
9631    argument registers are propagated back to the parent.  The compiler
9632    is told about this with #include <vfork.h>, but some compilers
9633    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9634    static variable whose address is put into a register that is
9635    clobbered by the vfork.  */
9636 static void
9637 #ifdef __cplusplus
9638 sparc_address_test (int arg)
9639 # else
9640 sparc_address_test (arg) int arg;
9641 #endif
9642 {
9643   static pid_t child;
9644   if (!child) {
9645     child = vfork ();
9646     if (child < 0) {
9647       perror ("vfork");
9648       _exit(2);
9649     }
9650     if (!child) {
9651       arg = getpid();
9652       write(-1, "", 0);
9653       _exit (arg);
9654     }
9655   }
9656 }
9657
9658 int
9659 main ()
9660 {
9661   pid_t parent = getpid ();
9662   pid_t child;
9663
9664   sparc_address_test (0);
9665
9666   child = vfork ();
9667
9668   if (child == 0) {
9669     /* Here is another test for sparc vfork register problems.  This
9670        test uses lots of local variables, at least as many local
9671        variables as main has allocated so far including compiler
9672        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9673        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9674        reuse the register of parent for one of the local variables,
9675        since it will think that parent can't possibly be used any more
9676        in this routine.  Assigning to the local variable will thus
9677        munge parent in the parent process.  */
9678     pid_t
9679       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9680       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9681     /* Convince the compiler that p..p7 are live; otherwise, it might
9682        use the same hardware register for all 8 local variables.  */
9683     if (p != p1 || p != p2 || p != p3 || p != p4
9684         || p != p5 || p != p6 || p != p7)
9685       _exit(1);
9686
9687     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9688        from child file descriptors.  If the child closes a descriptor
9689        before it execs or exits, this munges the parent's descriptor
9690        as well.  Test for this by closing stdout in the child.  */
9691     _exit(close(fileno(stdout)) != 0);
9692   } else {
9693     int status;
9694     struct stat st;
9695
9696     while (wait(&status) != child)
9697       ;
9698     exit(
9699          /* Was there some problem with vforking?  */
9700          child < 0
9701
9702          /* Did the child fail?  (This shouldn't happen.)  */
9703          || status
9704
9705          /* Did the vfork/compiler bug occur?  */
9706          || parent != getpid()
9707
9708          /* Did the file descriptor bug occur?  */
9709          || fstat(fileno(stdout), &st) != 0
9710          );
9711   }
9712 }
9713 _ACEOF
9714 rm -f conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716   (eval $ac_link) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721   (eval $ac_try) 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; }; then
9725   ac_cv_func_vfork_works=yes
9726 else
9727   echo "$as_me: program exited with status $ac_status" >&5
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ( exit $ac_status )
9732 ac_cv_func_vfork_works=no
9733 fi
9734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9735 fi
9736 fi
9737 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9738 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9739
9740 fi;
9741 if test "x$ac_cv_func_fork_works" = xcross; then
9742   ac_cv_func_vfork_works=$ac_cv_func_vfork
9743   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9744 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9745 fi
9746
9747 if test "x$ac_cv_func_vfork_works" = xyes; then
9748
9749 cat >>confdefs.h <<\_ACEOF
9750 #define HAVE_WORKING_VFORK 1
9751 _ACEOF
9752
9753 else
9754
9755 cat >>confdefs.h <<\_ACEOF
9756 #define vfork fork
9757 _ACEOF
9758
9759 fi
9760 if test "x$ac_cv_func_fork_works" = xyes; then
9761
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_WORKING_FORK 1
9764 _ACEOF
9765
9766 fi
9767
9768 echo "$as_me:$LINENO: checking for working memcmp" >&5
9769 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9770 if test "${ac_cv_func_memcmp_working+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   if test "$cross_compiling" = yes; then
9774   ac_cv_func_memcmp_working=no
9775 else
9776   cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782 $ac_includes_default
9783 int
9784 main ()
9785 {
9786
9787   /* Some versions of memcmp are not 8-bit clean.  */
9788   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9789   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9790     exit (1);
9791
9792   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9793      or more and with at least one buffer not starting on a 4-byte boundary.
9794      William Lewis provided this test program.   */
9795   {
9796     char foo[21];
9797     char bar[21];
9798     int i;
9799     for (i = 0; i < 4; i++)
9800       {
9801         char *a = foo + i;
9802         char *b = bar + i;
9803         strcpy (a, "--------01111111");
9804         strcpy (b, "--------10000000");
9805         if (memcmp (a, b, 16) >= 0)
9806           exit (1);
9807       }
9808     exit (0);
9809   }
9810
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest$ac_exeext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817   (eval $ac_link) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; }; then
9826   ac_cv_func_memcmp_working=yes
9827 else
9828   echo "$as_me: program exited with status $ac_status" >&5
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9831
9832 ( exit $ac_status )
9833 ac_cv_func_memcmp_working=no
9834 fi
9835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9836 fi
9837 fi
9838 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9839 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9840 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9841     "memcmp.$ac_objext"   | \
9842   *" memcmp.$ac_objext"   | \
9843     "memcmp.$ac_objext "* | \
9844   *" memcmp.$ac_objext "* ) ;;
9845   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9846 esac
9847
9848
9849
9850
9851 for ac_header in stdlib.h unistd.h
9852 do
9853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855   echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 fi
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 else
9863   # Is the header compilable?
9864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872 $ac_includes_default
9873 #include <$ac_header>
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877   (eval $ac_compile) 2>conftest.er1
9878   ac_status=$?
9879   grep -v '^ *+' conftest.er1 >conftest.err
9880   rm -f conftest.er1
9881   cat conftest.err >&5
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); } &&
9884          { ac_try='test -z "$ac_c_werror_flag"
9885                          || test ! -s conftest.err'
9886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887   (eval $ac_try) 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; } &&
9891          { ac_try='test -s conftest.$ac_objext'
9892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893   (eval $ac_try) 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897   ac_header_compiler=yes
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 ac_header_compiler=no
9903 fi
9904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9906 echo "${ECHO_T}$ac_header_compiler" >&6
9907
9908 # Is the header present?
9909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917 #include <$ac_header>
9918 _ACEOF
9919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } >/dev/null; then
9927   if test -s conftest.err; then
9928     ac_cpp_err=$ac_c_preproc_warn_flag
9929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9930   else
9931     ac_cpp_err=
9932   fi
9933 else
9934   ac_cpp_err=yes
9935 fi
9936 if test -z "$ac_cpp_err"; then
9937   ac_header_preproc=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942   ac_header_preproc=no
9943 fi
9944 rm -f conftest.err conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9946 echo "${ECHO_T}$ac_header_preproc" >&6
9947
9948 # So?  What about this header?
9949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9950   yes:no: )
9951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9955     ac_header_preproc=yes
9956     ;;
9957   no:yes:* )
9958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9970     (
9971       cat <<\_ASBOX
9972 ## ------------------------------- ##
9973 ## Report this to root@mput.dip.jp ##
9974 ## ------------------------------- ##
9975 _ASBOX
9976     ) |
9977       sed "s/^/$as_me: WARNING:     /" >&2
9978     ;;
9979 esac
9980 echo "$as_me:$LINENO: checking for $ac_header" >&5
9981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   eval "$as_ac_Header=\$ac_header_preproc"
9986 fi
9987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9989
9990 fi
9991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9992   cat >>confdefs.h <<_ACEOF
9993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9994 _ACEOF
9995
9996 fi
9997
9998 done
9999
10000
10001 for ac_func in getpagesize
10002 do
10003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10004 echo "$as_me:$LINENO: checking for $ac_func" >&5
10005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10006 if eval "test \"\${$as_ac_var+set}\" = set"; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10017 #define $ac_func innocuous_$ac_func
10018
10019 /* System header to define __stub macros and hopefully few prototypes,
10020     which can conflict with char $ac_func (); below.
10021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10022     <limits.h> exists even on freestanding compilers.  */
10023
10024 #ifdef __STDC__
10025 # include <limits.h>
10026 #else
10027 # include <assert.h>
10028 #endif
10029
10030 #undef $ac_func
10031
10032 /* Override any gcc2 internal prototype to avoid an error.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 {
10036 #endif
10037 /* We use char because int might match the return type of a gcc2
10038    builtin and then its argument prototype would still apply.  */
10039 char $ac_func ();
10040 /* The GNU C library defines this for functions which it implements
10041     to always fail with ENOSYS.  Some functions are actually named
10042     something starting with __ and the normal name is an alias.  */
10043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10044 choke me
10045 #else
10046 char (*f) () = $ac_func;
10047 #endif
10048 #ifdef __cplusplus
10049 }
10050 #endif
10051
10052 int
10053 main ()
10054 {
10055 return f != $ac_func;
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062   (eval $ac_link) 2>conftest.er1
10063   ac_status=$?
10064   grep -v '^ *+' conftest.er1 >conftest.err
10065   rm -f conftest.er1
10066   cat conftest.err >&5
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } &&
10069          { ac_try='test -z "$ac_c_werror_flag"
10070                          || test ! -s conftest.err'
10071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072   (eval $ac_try) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; } &&
10076          { ac_try='test -s conftest$ac_exeext'
10077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078   (eval $ac_try) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; }; then
10082   eval "$as_ac_var=yes"
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 eval "$as_ac_var=no"
10088 fi
10089 rm -f conftest.err conftest.$ac_objext \
10090       conftest$ac_exeext conftest.$ac_ext
10091 fi
10092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10094 if test `eval echo '${'$as_ac_var'}'` = yes; then
10095   cat >>confdefs.h <<_ACEOF
10096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10097 _ACEOF
10098
10099 fi
10100 done
10101
10102 echo "$as_me:$LINENO: checking for working mmap" >&5
10103 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10104 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   if test "$cross_compiling" = yes; then
10108   ac_cv_func_mmap_fixed_mapped=no
10109 else
10110   cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 $ac_includes_default
10117 /* malloc might have been renamed as rpl_malloc. */
10118 #undef malloc
10119
10120 /* Thanks to Mike Haertel and Jim Avera for this test.
10121    Here is a matrix of mmap possibilities:
10122         mmap private not fixed
10123         mmap private fixed at somewhere currently unmapped
10124         mmap private fixed at somewhere already mapped
10125         mmap shared not fixed
10126         mmap shared fixed at somewhere currently unmapped
10127         mmap shared fixed at somewhere already mapped
10128    For private mappings, we should verify that changes cannot be read()
10129    back from the file, nor mmap's back from the file at a different
10130    address.  (There have been systems where private was not correctly
10131    implemented like the infamous i386 svr4.0, and systems where the
10132    VM page cache was not coherent with the file system buffer cache
10133    like early versions of FreeBSD and possibly contemporary NetBSD.)
10134    For shared mappings, we should conversely verify that changes get
10135    propagated back to all the places they're supposed to be.
10136
10137    Grep wants private fixed already mapped.
10138    The main things grep needs to know about mmap are:
10139    * does it exist and is it safe to write into the mmap'd area
10140    * how to use it (BSD variants)  */
10141
10142 #include <fcntl.h>
10143 #include <sys/mman.h>
10144
10145 #if !STDC_HEADERS && !HAVE_STDLIB_H
10146 char *malloc ();
10147 #endif
10148
10149 /* This mess was copied from the GNU getpagesize.h.  */
10150 #if !HAVE_GETPAGESIZE
10151 /* Assume that all systems that can run configure have sys/param.h.  */
10152 # if !HAVE_SYS_PARAM_H
10153 #  define HAVE_SYS_PARAM_H 1
10154 # endif
10155
10156 # ifdef _SC_PAGESIZE
10157 #  define getpagesize() sysconf(_SC_PAGESIZE)
10158 # else /* no _SC_PAGESIZE */
10159 #  if HAVE_SYS_PARAM_H
10160 #   include <sys/param.h>
10161 #   ifdef EXEC_PAGESIZE
10162 #    define getpagesize() EXEC_PAGESIZE
10163 #   else /* no EXEC_PAGESIZE */
10164 #    ifdef NBPG
10165 #     define getpagesize() NBPG * CLSIZE
10166 #     ifndef CLSIZE
10167 #      define CLSIZE 1
10168 #     endif /* no CLSIZE */
10169 #    else /* no NBPG */
10170 #     ifdef NBPC
10171 #      define getpagesize() NBPC
10172 #     else /* no NBPC */
10173 #      ifdef PAGESIZE
10174 #       define getpagesize() PAGESIZE
10175 #      endif /* PAGESIZE */
10176 #     endif /* no NBPC */
10177 #    endif /* no NBPG */
10178 #   endif /* no EXEC_PAGESIZE */
10179 #  else /* no HAVE_SYS_PARAM_H */
10180 #   define getpagesize() 8192   /* punt totally */
10181 #  endif /* no HAVE_SYS_PARAM_H */
10182 # endif /* no _SC_PAGESIZE */
10183
10184 #endif /* no HAVE_GETPAGESIZE */
10185
10186 int
10187 main ()
10188 {
10189   char *data, *data2, *data3;
10190   int i, pagesize;
10191   int fd;
10192
10193   pagesize = getpagesize ();
10194
10195   /* First, make a file with some known garbage in it. */
10196   data = (char *) malloc (pagesize);
10197   if (!data)
10198     exit (1);
10199   for (i = 0; i < pagesize; ++i)
10200     *(data + i) = rand ();
10201   umask (0);
10202   fd = creat ("conftest.mmap", 0600);
10203   if (fd < 0)
10204     exit (1);
10205   if (write (fd, data, pagesize) != pagesize)
10206     exit (1);
10207   close (fd);
10208
10209   /* Next, try to mmap the file at a fixed address which already has
10210      something else allocated at it.  If we can, also make sure that
10211      we see the same garbage.  */
10212   fd = open ("conftest.mmap", O_RDWR);
10213   if (fd < 0)
10214     exit (1);
10215   data2 = (char *) malloc (2 * pagesize);
10216   if (!data2)
10217     exit (1);
10218   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10219   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10220                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10221     exit (1);
10222   for (i = 0; i < pagesize; ++i)
10223     if (*(data + i) != *(data2 + i))
10224       exit (1);
10225
10226   /* Finally, make sure that changes to the mapped area do not
10227      percolate back to the file as seen by read().  (This is a bug on
10228      some variants of i386 svr4.0.)  */
10229   for (i = 0; i < pagesize; ++i)
10230     *(data2 + i) = *(data2 + i) + 1;
10231   data3 = (char *) malloc (pagesize);
10232   if (!data3)
10233     exit (1);
10234   if (read (fd, data3, pagesize) != pagesize)
10235     exit (1);
10236   for (i = 0; i < pagesize; ++i)
10237     if (*(data + i) != *(data3 + i))
10238       exit (1);
10239   close (fd);
10240   exit (0);
10241 }
10242 _ACEOF
10243 rm -f conftest$ac_exeext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245   (eval $ac_link) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_cv_func_mmap_fixed_mapped=yes
10255 else
10256   echo "$as_me: program exited with status $ac_status" >&5
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ( exit $ac_status )
10261 ac_cv_func_mmap_fixed_mapped=no
10262 fi
10263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10264 fi
10265 fi
10266 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10267 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10269
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_MMAP 1
10272 _ACEOF
10273
10274 fi
10275 rm -f conftest.mmap
10276
10277 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10278 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10279 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_cv_func_setvbuf_reversed=no
10283    cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h.  */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h.  */
10289 #include <stdio.h>
10290 #         if PROTOTYPES
10291            int (setvbuf) (FILE *, int, char *, size_t);
10292 #         endif
10293 int
10294 main ()
10295 {
10296 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } &&
10310          { ac_try='test -z "$ac_c_werror_flag"
10311                          || test ! -s conftest.err'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; } &&
10317          { ac_try='test -s conftest$ac_exeext'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h.  */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h.  */
10329 #include <stdio.h>
10330 #            if PROTOTYPES
10331               int (setvbuf) (FILE *, int, char *, size_t);
10332 #            endif
10333 int
10334 main ()
10335 {
10336 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343   (eval $ac_link) 2>conftest.er1
10344   ac_status=$?
10345   grep -v '^ *+' conftest.er1 >conftest.err
10346   rm -f conftest.er1
10347   cat conftest.err >&5
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } &&
10350          { ac_try='test -z "$ac_c_werror_flag"
10351                          || test ! -s conftest.err'
10352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353   (eval $ac_try) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); }; } &&
10357          { ac_try='test -s conftest$ac_exeext'
10358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; }; then
10363   # It compiles and links either way, so it must not be declared
10364          # with a prototype and most likely this is a K&R C compiler.
10365          # Try running it.
10366          if test "$cross_compiling" = yes; then
10367   : # Assume setvbuf is not reversed when cross-compiling.
10368 else
10369   cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375 #include <stdio.h>
10376 int
10377 main ()
10378 {
10379 /* This call has the arguments reversed.
10380                    A reversed system may check and see that the address of buf
10381                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10382                 char buf;
10383                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10384                   exit (1);
10385                 putchar ('\r');
10386                 exit (0); /* Non-reversed systems SEGV here.  */
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393   (eval $ac_link) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398   (eval $ac_try) 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); }; }; then
10402   ac_cv_func_setvbuf_reversed=yes
10403 else
10404   echo "$as_me: program exited with status $ac_status" >&5
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 ( exit $ac_status )
10409 rm -f core *.core
10410 fi
10411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10412 fi
10413         ac_cv_func_setvbuf_reversed=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 fi
10419 rm -f conftest.err conftest.$ac_objext \
10420       conftest$ac_exeext conftest.$ac_ext
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 fi
10426 rm -f conftest.err conftest.$ac_objext \
10427       conftest$ac_exeext conftest.$ac_ext
10428 fi
10429 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10430 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10431 if test $ac_cv_func_setvbuf_reversed = yes; then
10432
10433 cat >>confdefs.h <<\_ACEOF
10434 #define SETVBUF_REVERSED 1
10435 _ACEOF
10436
10437 fi
10438
10439 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10440 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10441 if test "${ac_cv_type_signal+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 #include <sys/types.h>
10451 #include <signal.h>
10452 #ifdef signal
10453 # undef signal
10454 #endif
10455 #ifdef __cplusplus
10456 extern "C" void (*signal (int, void (*)(int)))(int);
10457 #else
10458 void (*signal ()) ();
10459 #endif
10460
10461 int
10462 main ()
10463 {
10464 int i;
10465   ;
10466   return 0;
10467 }
10468 _ACEOF
10469 rm -f conftest.$ac_objext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471   (eval $ac_compile) 2>conftest.er1
10472   ac_status=$?
10473   grep -v '^ *+' conftest.er1 >conftest.err
10474   rm -f conftest.er1
10475   cat conftest.err >&5
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } &&
10478          { ac_try='test -z "$ac_c_werror_flag"
10479                          || test ! -s conftest.err'
10480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481   (eval $ac_try) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; } &&
10485          { ac_try='test -s conftest.$ac_objext'
10486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487   (eval $ac_try) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; }; then
10491   ac_cv_type_signal=void
10492 else
10493   echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 ac_cv_type_signal=int
10497 fi
10498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10499 fi
10500 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10501 echo "${ECHO_T}$ac_cv_type_signal" >&6
10502
10503 cat >>confdefs.h <<_ACEOF
10504 #define RETSIGTYPE $ac_cv_type_signal
10505 _ACEOF
10506
10507
10508
10509 for ac_func in vprintf
10510 do
10511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10512 echo "$as_me:$LINENO: checking for $ac_func" >&5
10513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10514 if eval "test \"\${$as_ac_var+set}\" = set"; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10525 #define $ac_func innocuous_$ac_func
10526
10527 /* System header to define __stub macros and hopefully few prototypes,
10528     which can conflict with char $ac_func (); below.
10529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530     <limits.h> exists even on freestanding compilers.  */
10531
10532 #ifdef __STDC__
10533 # include <limits.h>
10534 #else
10535 # include <assert.h>
10536 #endif
10537
10538 #undef $ac_func
10539
10540 /* Override any gcc2 internal prototype to avoid an error.  */
10541 #ifdef __cplusplus
10542 extern "C"
10543 {
10544 #endif
10545 /* We use char because int might match the return type of a gcc2
10546    builtin and then its argument prototype would still apply.  */
10547 char $ac_func ();
10548 /* The GNU C library defines this for functions which it implements
10549     to always fail with ENOSYS.  Some functions are actually named
10550     something starting with __ and the normal name is an alias.  */
10551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10552 choke me
10553 #else
10554 char (*f) () = $ac_func;
10555 #endif
10556 #ifdef __cplusplus
10557 }
10558 #endif
10559
10560 int
10561 main ()
10562 {
10563 return f != $ac_func;
10564   ;
10565   return 0;
10566 }
10567 _ACEOF
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570   (eval $ac_link) 2>conftest.er1
10571   ac_status=$?
10572   grep -v '^ *+' conftest.er1 >conftest.err
10573   rm -f conftest.er1
10574   cat conftest.err >&5
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } &&
10577          { ac_try='test -z "$ac_c_werror_flag"
10578                          || test ! -s conftest.err'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; } &&
10584          { ac_try='test -s conftest$ac_exeext'
10585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586   (eval $ac_try) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; }; then
10590   eval "$as_ac_var=yes"
10591 else
10592   echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 eval "$as_ac_var=no"
10596 fi
10597 rm -f conftest.err conftest.$ac_objext \
10598       conftest$ac_exeext conftest.$ac_ext
10599 fi
10600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10602 if test `eval echo '${'$as_ac_var'}'` = yes; then
10603   cat >>confdefs.h <<_ACEOF
10604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10605 _ACEOF
10606
10607 echo "$as_me:$LINENO: checking for _doprnt" >&5
10608 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10609 if test "${ac_cv_func__doprnt+set}" = set; then
10610   echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612   cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10620 #define _doprnt innocuous__doprnt
10621
10622 /* System header to define __stub macros and hopefully few prototypes,
10623     which can conflict with char _doprnt (); below.
10624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10625     <limits.h> exists even on freestanding compilers.  */
10626
10627 #ifdef __STDC__
10628 # include <limits.h>
10629 #else
10630 # include <assert.h>
10631 #endif
10632
10633 #undef _doprnt
10634
10635 /* Override any gcc2 internal prototype to avoid an error.  */
10636 #ifdef __cplusplus
10637 extern "C"
10638 {
10639 #endif
10640 /* We use char because int might match the return type of a gcc2
10641    builtin and then its argument prototype would still apply.  */
10642 char _doprnt ();
10643 /* The GNU C library defines this for functions which it implements
10644     to always fail with ENOSYS.  Some functions are actually named
10645     something starting with __ and the normal name is an alias.  */
10646 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10647 choke me
10648 #else
10649 char (*f) () = _doprnt;
10650 #endif
10651 #ifdef __cplusplus
10652 }
10653 #endif
10654
10655 int
10656 main ()
10657 {
10658 return f != _doprnt;
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665   (eval $ac_link) 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } &&
10672          { ac_try='test -z "$ac_c_werror_flag"
10673                          || test ! -s conftest.err'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; } &&
10679          { ac_try='test -s conftest$ac_exeext'
10680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681   (eval $ac_try) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; }; then
10685   ac_cv_func__doprnt=yes
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690 ac_cv_func__doprnt=no
10691 fi
10692 rm -f conftest.err conftest.$ac_objext \
10693       conftest$ac_exeext conftest.$ac_ext
10694 fi
10695 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10696 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10697 if test $ac_cv_func__doprnt = yes; then
10698
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_DOPRNT 1
10701 _ACEOF
10702
10703 fi
10704
10705 fi
10706 done
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742 for ac_func in \
10743   alarm \
10744   dup2 \
10745   floor \
10746   getcwd \
10747   getopt \
10748   gethostbyname \
10749   gettimeofday \
10750   getwd \
10751   isatty \
10752   memchr \
10753   memmove \
10754   memset \
10755   modf \
10756   munmap \
10757   popen \
10758   pow \
10759   select \
10760   signal \
10761   socket \
10762   sleep \
10763   vsnprintf \
10764   snprintf \
10765   sqrt \
10766   strchr \
10767   strdup \
10768   strstr \
10769   strerror \
10770   strcasecmp \
10771   strncasecmp \
10772   strrchr \
10773   strstr \
10774   strtol \
10775   usleep
10776 do
10777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10778 echo "$as_me:$LINENO: checking for $ac_func" >&5
10779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10780 if eval "test \"\${$as_ac_var+set}\" = set"; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783   cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h.  */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h.  */
10789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10791 #define $ac_func innocuous_$ac_func
10792
10793 /* System header to define __stub macros and hopefully few prototypes,
10794     which can conflict with char $ac_func (); below.
10795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10796     <limits.h> exists even on freestanding compilers.  */
10797
10798 #ifdef __STDC__
10799 # include <limits.h>
10800 #else
10801 # include <assert.h>
10802 #endif
10803
10804 #undef $ac_func
10805
10806 /* Override any gcc2 internal prototype to avoid an error.  */
10807 #ifdef __cplusplus
10808 extern "C"
10809 {
10810 #endif
10811 /* We use char because int might match the return type of a gcc2
10812    builtin and then its argument prototype would still apply.  */
10813 char $ac_func ();
10814 /* The GNU C library defines this for functions which it implements
10815     to always fail with ENOSYS.  Some functions are actually named
10816     something starting with __ and the normal name is an alias.  */
10817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10818 choke me
10819 #else
10820 char (*f) () = $ac_func;
10821 #endif
10822 #ifdef __cplusplus
10823 }
10824 #endif
10825
10826 int
10827 main ()
10828 {
10829 return f != $ac_func;
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836   (eval $ac_link) 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } &&
10843          { ac_try='test -z "$ac_c_werror_flag"
10844                          || test ! -s conftest.err'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; } &&
10850          { ac_try='test -s conftest$ac_exeext'
10851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852   (eval $ac_try) 2>&5
10853   ac_status=$?
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); }; }; then
10856   eval "$as_ac_var=yes"
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861 eval "$as_ac_var=no"
10862 fi
10863 rm -f conftest.err conftest.$ac_objext \
10864       conftest$ac_exeext conftest.$ac_ext
10865 fi
10866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10868 if test `eval echo '${'$as_ac_var'}'` = yes; then
10869   cat >>confdefs.h <<_ACEOF
10870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10871 _ACEOF
10872
10873 fi
10874 done
10875
10876 echo "$as_me:$LINENO: checking for getopt_long" >&5
10877 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10878 if test "${ac_cv_func_getopt_long+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10889 #define getopt_long innocuous_getopt_long
10890
10891 /* System header to define __stub macros and hopefully few prototypes,
10892     which can conflict with char getopt_long (); below.
10893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10894     <limits.h> exists even on freestanding compilers.  */
10895
10896 #ifdef __STDC__
10897 # include <limits.h>
10898 #else
10899 # include <assert.h>
10900 #endif
10901
10902 #undef getopt_long
10903
10904 /* Override any gcc2 internal prototype to avoid an error.  */
10905 #ifdef __cplusplus
10906 extern "C"
10907 {
10908 #endif
10909 /* We use char because int might match the return type of a gcc2
10910    builtin and then its argument prototype would still apply.  */
10911 char getopt_long ();
10912 /* The GNU C library defines this for functions which it implements
10913     to always fail with ENOSYS.  Some functions are actually named
10914     something starting with __ and the normal name is an alias.  */
10915 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10916 choke me
10917 #else
10918 char (*f) () = getopt_long;
10919 #endif
10920 #ifdef __cplusplus
10921 }
10922 #endif
10923
10924 int
10925 main ()
10926 {
10927 return f != getopt_long;
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934   (eval $ac_link) 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag"
10942                          || test ! -s conftest.err'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest$ac_exeext'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   ac_cv_func_getopt_long=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_cv_func_getopt_long=no
10960 fi
10961 rm -f conftest.err conftest.$ac_objext \
10962       conftest$ac_exeext conftest.$ac_ext
10963 fi
10964 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10965 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10966 if test $ac_cv_func_getopt_long = yes; then
10967
10968 cat >>confdefs.h <<\_ACEOF
10969 #define HAVE_GETOPT_LONG 1
10970 _ACEOF
10971
10972          tm_cv_needgetopt="no"
10973 else
10974   tm_cv_needgetopt="yes"
10975 fi
10976
10977
10978
10979 if test "x$tm_cv_needgetopt" = "xyes"; then
10980   NEEDGETOPT_TRUE=
10981   NEEDGETOPT_FALSE='#'
10982 else
10983   NEEDGETOPT_TRUE='#'
10984   NEEDGETOPT_FALSE=
10985 fi
10986
10987
10988 # Checks on cygnus
10989 if test "x$CYGNUS" = xyes; then
10990   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
10991   *yes*)
10992     echo "$as_me:$LINENO: checking for opendir" >&5
10993 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10994 if test "${ac_cv_func_opendir+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11005 #define opendir innocuous_opendir
11006
11007 /* System header to define __stub macros and hopefully few prototypes,
11008     which can conflict with char opendir (); below.
11009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010     <limits.h> exists even on freestanding compilers.  */
11011
11012 #ifdef __STDC__
11013 # include <limits.h>
11014 #else
11015 # include <assert.h>
11016 #endif
11017
11018 #undef opendir
11019
11020 /* Override any gcc2 internal prototype to avoid an error.  */
11021 #ifdef __cplusplus
11022 extern "C"
11023 {
11024 #endif
11025 /* We use char because int might match the return type of a gcc2
11026    builtin and then its argument prototype would still apply.  */
11027 char opendir ();
11028 /* The GNU C library defines this for functions which it implements
11029     to always fail with ENOSYS.  Some functions are actually named
11030     something starting with __ and the normal name is an alias.  */
11031 #if defined (__stub_opendir) || defined (__stub___opendir)
11032 choke me
11033 #else
11034 char (*f) () = opendir;
11035 #endif
11036 #ifdef __cplusplus
11037 }
11038 #endif
11039
11040 int
11041 main ()
11042 {
11043 return f != opendir;
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050   (eval $ac_link) 2>conftest.er1
11051   ac_status=$?
11052   grep -v '^ *+' conftest.er1 >conftest.err
11053   rm -f conftest.er1
11054   cat conftest.err >&5
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); } &&
11057          { ac_try='test -z "$ac_c_werror_flag"
11058                          || test ! -s conftest.err'
11059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060   (eval $ac_try) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); }; } &&
11064          { ac_try='test -s conftest$ac_exeext'
11065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066   (eval $ac_try) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   ac_cv_func_opendir=yes
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 ac_cv_func_opendir=no
11076 fi
11077 rm -f conftest.err conftest.$ac_objext \
11078       conftest$ac_exeext conftest.$ac_ext
11079 fi
11080 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11081 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11082 if test $ac_cv_func_opendir = yes; then
11083   :
11084 else
11085    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11086     W32READDIR=yes
11087 fi
11088
11089     ;;
11090   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11091     W32READDIR=yes
11092     ;;
11093   esac
11094   if test "x$enable_network" = "xyes"; then
11095     echo "$as_me:$LINENO: checking for socket" >&5
11096 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11097 if test "${ac_cv_func_socket+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h.  */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h.  */
11106 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11108 #define socket innocuous_socket
11109
11110 /* System header to define __stub macros and hopefully few prototypes,
11111     which can conflict with char socket (); below.
11112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11113     <limits.h> exists even on freestanding compilers.  */
11114
11115 #ifdef __STDC__
11116 # include <limits.h>
11117 #else
11118 # include <assert.h>
11119 #endif
11120
11121 #undef socket
11122
11123 /* Override any gcc2 internal prototype to avoid an error.  */
11124 #ifdef __cplusplus
11125 extern "C"
11126 {
11127 #endif
11128 /* We use char because int might match the return type of a gcc2
11129    builtin and then its argument prototype would still apply.  */
11130 char socket ();
11131 /* The GNU C library defines this for functions which it implements
11132     to always fail with ENOSYS.  Some functions are actually named
11133     something starting with __ and the normal name is an alias.  */
11134 #if defined (__stub_socket) || defined (__stub___socket)
11135 choke me
11136 #else
11137 char (*f) () = socket;
11138 #endif
11139 #ifdef __cplusplus
11140 }
11141 #endif
11142
11143 int
11144 main ()
11145 {
11146 return f != socket;
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153   (eval $ac_link) 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag"
11161                          || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest$ac_exeext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   ac_cv_func_socket=yes
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_cv_func_socket=no
11179 fi
11180 rm -f conftest.err conftest.$ac_objext \
11181       conftest$ac_exeext conftest.$ac_ext
11182 fi
11183 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11184 echo "${ECHO_T}$ac_cv_func_socket" >&6
11185 if test $ac_cv_func_socket = yes; then
11186   :
11187 else
11188   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11189 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11190 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11191 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194   ac_save_LIBS="$LIBS"
11195 LIBS="-lwsock32  $LIBS"
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 #include <windows.h>
11203 #include <winsock.h>
11204
11205 int
11206 main ()
11207 {
11208 WSAStartup(0,0);
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215   (eval $ac_link) 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } &&
11222          { ac_try='test -z "$ac_c_werror_flag"
11223                          || test ! -s conftest.err'
11224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225   (eval $ac_try) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; } &&
11229          { ac_try='test -s conftest$ac_exeext'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   eval "wapi_cv_lib_$ac_lib_var=yes"
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 eval "wapi_cv_lib_$ac_lib_var=no"
11241 fi
11242 rm -f conftest.err conftest.$ac_objext \
11243       conftest$ac_exeext conftest.$ac_ext
11244 LIBS="$ac_save_LIBS"
11245
11246 fi
11247 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11248   echo "$as_me:$LINENO: result: yes" >&5
11249 echo "${ECHO_T}yes" >&6
11250    EXTRALIBS="$EXTRALIBS -lwsock32"
11251     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11252 else
11253   echo "$as_me:$LINENO: result: no" >&5
11254 echo "${ECHO_T}no" >&6
11255 fi
11256
11257 fi
11258
11259   fi
11260 fi
11261
11262 # Checks on Mingw
11263 if test "x$CYGWIN" = xyes; then
11264   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
11265   *yes*)
11266     echo "$as_me:$LINENO: checking for opendir" >&5
11267 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11268 if test "${ac_cv_func_opendir+set}" = set; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271   cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11279 #define opendir innocuous_opendir
11280
11281 /* System header to define __stub macros and hopefully few prototypes,
11282     which can conflict with char opendir (); below.
11283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11284     <limits.h> exists even on freestanding compilers.  */
11285
11286 #ifdef __STDC__
11287 # include <limits.h>
11288 #else
11289 # include <assert.h>
11290 #endif
11291
11292 #undef opendir
11293
11294 /* Override any gcc2 internal prototype to avoid an error.  */
11295 #ifdef __cplusplus
11296 extern "C"
11297 {
11298 #endif
11299 /* We use char because int might match the return type of a gcc2
11300    builtin and then its argument prototype would still apply.  */
11301 char opendir ();
11302 /* The GNU C library defines this for functions which it implements
11303     to always fail with ENOSYS.  Some functions are actually named
11304     something starting with __ and the normal name is an alias.  */
11305 #if defined (__stub_opendir) || defined (__stub___opendir)
11306 choke me
11307 #else
11308 char (*f) () = opendir;
11309 #endif
11310 #ifdef __cplusplus
11311 }
11312 #endif
11313
11314 int
11315 main ()
11316 {
11317 return f != opendir;
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324   (eval $ac_link) 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag"
11332                          || test ! -s conftest.err'
11333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334   (eval $ac_try) 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; } &&
11338          { ac_try='test -s conftest$ac_exeext'
11339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340   (eval $ac_try) 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); }; }; then
11344   ac_cv_func_opendir=yes
11345 else
11346   echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11348
11349 ac_cv_func_opendir=no
11350 fi
11351 rm -f conftest.err conftest.$ac_objext \
11352       conftest$ac_exeext conftest.$ac_ext
11353 fi
11354 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11355 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11356 if test $ac_cv_func_opendir = yes; then
11357   :
11358 else
11359    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11360     W32READDIR=yes
11361 fi
11362
11363     ;;
11364   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11365     W32READDIR=yes
11366     ;;
11367   esac
11368   if test "x$enable_network" = "xyes"; then
11369     echo "$as_me:$LINENO: checking for socket" >&5
11370 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11371 if test "${ac_cv_func_socket+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11382 #define socket innocuous_socket
11383
11384 /* System header to define __stub macros and hopefully few prototypes,
11385     which can conflict with char socket (); below.
11386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11387     <limits.h> exists even on freestanding compilers.  */
11388
11389 #ifdef __STDC__
11390 # include <limits.h>
11391 #else
11392 # include <assert.h>
11393 #endif
11394
11395 #undef socket
11396
11397 /* Override any gcc2 internal prototype to avoid an error.  */
11398 #ifdef __cplusplus
11399 extern "C"
11400 {
11401 #endif
11402 /* We use char because int might match the return type of a gcc2
11403    builtin and then its argument prototype would still apply.  */
11404 char socket ();
11405 /* The GNU C library defines this for functions which it implements
11406     to always fail with ENOSYS.  Some functions are actually named
11407     something starting with __ and the normal name is an alias.  */
11408 #if defined (__stub_socket) || defined (__stub___socket)
11409 choke me
11410 #else
11411 char (*f) () = socket;
11412 #endif
11413 #ifdef __cplusplus
11414 }
11415 #endif
11416
11417 int
11418 main ()
11419 {
11420 return f != socket;
11421   ;
11422   return 0;
11423 }
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427   (eval $ac_link) 2>conftest.er1
11428   ac_status=$?
11429   grep -v '^ *+' conftest.er1 >conftest.err
11430   rm -f conftest.er1
11431   cat conftest.err >&5
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -z "$ac_c_werror_flag"
11435                          || test ! -s conftest.err'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; } &&
11441          { ac_try='test -s conftest$ac_exeext'
11442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443   (eval $ac_try) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; }; then
11447   ac_cv_func_socket=yes
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_cv_func_socket=no
11453 fi
11454 rm -f conftest.err conftest.$ac_objext \
11455       conftest$ac_exeext conftest.$ac_ext
11456 fi
11457 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11458 echo "${ECHO_T}$ac_cv_func_socket" >&6
11459 if test $ac_cv_func_socket = yes; then
11460   :
11461 else
11462   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11463 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11464 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11465 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   ac_save_LIBS="$LIBS"
11469 LIBS="-lwsock32  $LIBS"
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476 #include <windows.h>
11477 #include <winsock.h>
11478
11479 int
11480 main ()
11481 {
11482 WSAStartup(0,0);
11483   ;
11484   return 0;
11485 }
11486 _ACEOF
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11489   (eval $ac_link) 2>conftest.er1
11490   ac_status=$?
11491   grep -v '^ *+' conftest.er1 >conftest.err
11492   rm -f conftest.er1
11493   cat conftest.err >&5
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } &&
11496          { ac_try='test -z "$ac_c_werror_flag"
11497                          || test ! -s conftest.err'
11498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499   (eval $ac_try) 2>&5
11500   ac_status=$?
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); }; } &&
11503          { ac_try='test -s conftest$ac_exeext'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; }; then
11509   eval "wapi_cv_lib_$ac_lib_var=yes"
11510 else
11511   echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 eval "wapi_cv_lib_$ac_lib_var=no"
11515 fi
11516 rm -f conftest.err conftest.$ac_objext \
11517       conftest$ac_exeext conftest.$ac_ext
11518 LIBS="$ac_save_LIBS"
11519
11520 fi
11521 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11522   echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6
11524    EXTRALIBS="$EXTRALIBS -lwsock32"
11525     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11526 else
11527   echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11529 fi
11530
11531 fi
11532
11533   fi
11534 fi
11535
11536 # Checks on extra paths
11537
11538
11539 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11540 if test "${with_tcl_includes+set}" = set; then
11541   withval="$with_tcl_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     tcl_include_dir="-I$withval"
11547
11548 fi;
11549
11550 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11551 if test "${with_tcl_libs+set}" = set; then
11552   withval="$with_tcl_libs"
11553    if test ! -d $withval; then
11554       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11555 echo "$as_me: WARNING: $withval is not found." >&2;}
11556     fi
11557     tcl_libdir="-L$withval"
11558 fi;
11559
11560 # Check whether --with-tk-includes or --without-tk-includes was given.
11561 if test "${with_tk_includes+set}" = set; then
11562   withval="$with_tk_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     tk_includes="-I$withval"
11568 fi;
11569
11570 # Check whether --with-tk-libs or --without-tk-libs was given.
11571 if test "${with_tk_libs+set}" = set; then
11572   withval="$with_tk_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     tk_libdir="-L$withval"
11578 fi;
11579
11580
11581 # Check whether --with-offix-includes or --without-offix-includes was given.
11582 if test "${with_offix_includes+set}" = set; then
11583   withval="$with_offix_includes"
11584    if test ! -d $withval; then
11585       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11586 echo "$as_me: WARNING: $withval is not found." >&2;}
11587     fi
11588     offix_include_dir="-I$withval"
11589 fi;
11590
11591 # Check whether --with-offix-libs or --without-offix-libs was given.
11592 if test "${with_offix_libs+set}" = set; then
11593   withval="$with_offix_libs"
11594    if test ! -d $withval; then
11595       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11596 echo "$as_me: WARNING: $withval is not found." >&2;}
11597     fi
11598     offix_lib_dir="-L$withval"
11599 fi;
11600
11601
11602 #
11603 # audio section
11604 #
11605
11606 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack ao'
11607
11608
11609 # Check whether --with-nas-library or --without-nas-library was given.
11610 if test "${with_nas_library+set}" = set; then
11611   withval="$with_nas_library"
11612
11613 fi;
11614
11615 # Check whether --with-nas-includes or --without-nas-includes was given.
11616 if test "${with_nas_includes+set}" = set; then
11617   withval="$with_nas_includes"
11618
11619 fi;
11620
11621
11622 # Check whether --enable-audio or --disable-audio was given.
11623 if test "${enable_audio+set}" = set; then
11624   enableval="$enable_audio"
11625    enable_audio=$enableval
11626     have_audio_opt=yes
11627 else
11628    enable_audio=yes
11629     have_audio_opt=no
11630 fi;
11631
11632 test "x$enable_audio" = xyes && enable_audio=default
11633
11634 if test "x$enable_audio" != xno; then
11635   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11636     eval "au_enable_$i=yes"
11637   done
11638 fi
11639
11640 DEFAULT_PLAYMODE=
11641
11642 # Check whether --with-default-output or --without-default-output was given.
11643 if test "${with_default_output+set}" = set; then
11644   withval="$with_default_output"
11645    if test "$enable_audio" != no; then
11646     DEFAULT_PLAYMODE=$withval
11647     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11648   else
11649     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11650 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11651   fi
11652 fi;
11653
11654
11655 if test "x$au_enable_default" = xyes; then
11656   case "$target" in
11657   *-*-linux*|*-*-freebsd*)
11658     au_enable_oss=yes
11659     ;;
11660   *-*-bsdi2.0)
11661     au_enable_sb_dsp=yes
11662     ;;
11663   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11664     au_enable_oss=yes
11665     ;;
11666   *-*-hpux*)
11667     au_enable_hpux=yes
11668     ;;
11669   *-dec-*)
11670     au_enable_mme=yes
11671     ;;
11672   *irix*)
11673     au_enable_irix=yes
11674     ;;
11675   *-*-sunos4*)
11676     au_enable_sun=yes
11677     ;;
11678   *-*-solaris*)
11679     au_enable_sun=yes
11680     ;;
11681   *-*-netbsd*)
11682     au_enable_sun=yes
11683     ;;
11684   *-*-cygwin*)
11685     au_enable_w32=yes
11686     ;;
11687   *-*-mingw*)
11688     au_enable_w32=yes
11689     ;;
11690   *-*-darwin*)
11691     au_enable_darwin=yes
11692     ;;
11693   *)
11694     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11695 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11696     ;;
11697   esac
11698 fi
11699
11700
11701 # Each audio mode's configurations
11702 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11703 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11704 if test "x$au_enable_oss" = xyes; then
11705   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11706   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11707   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11708     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11709 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11710   else
11711     case "$target" in
11712       *linux*|*freebsd*)
11713                 echo "$as_me:$LINENO: result: yes" >&5
11714 echo "${ECHO_T}yes" >&6
11715         ;;
11716       *)
11717         if test "x$ac_cv_header_soundcard_h" = xyes; then
11718           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11719 echo "${ECHO_T}yes - <soundcard.h>" >&6
11720         else
11721           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11722 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11723         fi
11724         ;;
11725     esac
11726   fi
11727
11728 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11729 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11730 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11731   echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733   ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-lossaudio  $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741
11742 /* Override any gcc2 internal prototype to avoid an error.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 /* We use char because int might match the return type of a gcc2
11747    builtin and then its argument prototype would still apply.  */
11748 char open ();
11749 int
11750 main ()
11751 {
11752 open ();
11753   ;
11754   return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759   (eval $ac_link) 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } &&
11766          { ac_try='test -z "$ac_c_werror_flag"
11767                          || test ! -s conftest.err'
11768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769   (eval $ac_try) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; } &&
11773          { ac_try='test -s conftest$ac_exeext'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; }; then
11779   ac_cv_lib_ossaudio_open=yes
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_cv_lib_ossaudio_open=no
11785 fi
11786 rm -f conftest.err conftest.$ac_objext \
11787       conftest$ac_exeext conftest.$ac_ext
11788 LIBS=$ac_check_lib_save_LIBS
11789 fi
11790 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11791 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11792 if test $ac_cv_lib_ossaudio_open = yes; then
11793   cat >>confdefs.h <<_ACEOF
11794 #define HAVE_LIBOSSAUDIO 1
11795 _ACEOF
11796
11797   LIBS="-lossaudio $LIBS"
11798
11799 fi
11800
11801
11802     case "$target" in
11803     *openbsd*)
11804       if test ! -e "/dev/dsp"; then
11805         oss_device=/dev/audio
11806       fi
11807       ;;
11808   esac
11809 else
11810   echo "$as_me:$LINENO: result: no" >&5
11811 echo "${ECHO_T}no" >&6
11812 fi
11813
11814 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11815 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11816 if test "x$au_enable_sun" = xyes; then
11817   case "$target" in
11818     *-*-sunos4*)
11819       if test -f /usr/demo/SOUND/libaudio.a; then
11820         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11821         echo "$as_me:$LINENO: result: yes" >&5
11822 echo "${ECHO_T}yes" >&6
11823       else
11824         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11825 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11826       fi
11827       ;;
11828     *-*-solaris*)
11829       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11830         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11831         echo "$as_me:$LINENO: result: yes" >&5
11832 echo "${ECHO_T}yes" >&6
11833       else
11834         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11835 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11836       fi
11837       ;;
11838     *)   echo "$as_me:$LINENO: result: yes" >&5
11839 echo "${ECHO_T}yes" >&6
11840       ;;
11841   esac
11842   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11843   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11844 else
11845   echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11847 fi
11848
11849 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11850 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11851 if test "x$au_enable_hpux" = xyes; then
11852   case "$target" in
11853     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11854 echo "${ECHO_T}yes" >&6 ;;
11855     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11856 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11857   esac
11858   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11859   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11860 else
11861   echo "$as_me:$LINENO: result: no" >&5
11862 echo "${ECHO_T}no" >&6
11863 fi
11864
11865 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11866 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11867 if test "x$au_enable_irix" = xyes; then
11868   case "$target" in
11869     *-sgi-irix5*|*-sgi-irix6.2)
11870       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11871       echo "$as_me:$LINENO: result: yes" >&5
11872 echo "${ECHO_T}yes" >&6
11873       ;;
11874     *-sgi-irix6*)
11875       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11876       echo "$as_me:$LINENO: result: yes" >&5
11877 echo "${ECHO_T}yes" >&6
11878       ;;
11879     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11880 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11881   esac
11882   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11883   EXTRALIBS="$EXTRASLIBS -laudio"
11884 else
11885   echo "$as_me:$LINENO: result: no" >&5
11886 echo "${ECHO_T}no" >&6
11887 fi
11888
11889 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11890 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11891 if test "x$au_enable_mme" = xyes; then
11892   case "$target" in
11893     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11894 echo "${ECHO_T}yes" >&6 ;;
11895     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11896 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11897   esac
11898   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11899   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11900   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11901   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11902 else
11903   echo "$as_me:$LINENO: result: no" >&5
11904 echo "${ECHO_T}no" >&6
11905 fi
11906
11907 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11908 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11909 if test "x$au_enable_sb_dsp" = xyes; then
11910   case "$target" in
11911     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11912 echo "${ECHO_T}yes" >&6 ;;
11913     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11914 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11915   esac
11916   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11917   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11918 else
11919   echo "$as_me:$LINENO: result: no" >&5
11920 echo "${ECHO_T}no" >&6
11921 fi
11922
11923 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11924 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11925 if test "x$au_enable_w32" = xyes; then
11926   case "$target" in
11927     *-*-cygwin*)
11928      echo "$as_me:$LINENO: result: yes" >&5
11929 echo "${ECHO_T}yes" >&6
11930      ;;
11931     *-*-mingw32)
11932      echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11934      ;;
11935     *)
11936      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11937 echo "$as_me: WARNING: may not work on $target" >&2;}
11938      ;;
11939   esac
11940   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11941   EXTRALIBS="$EXTRALIBS -lwinmm"
11942   EXTRADEFS="$EXTRADEFS -DAU_W32"
11943 else
11944   echo "$as_me:$LINENO: result: no" >&5
11945 echo "${ECHO_T}no" >&6
11946 fi
11947
11948 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11949 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11950 if test "x$au_enable_darwin" = xyes; then
11951   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11952   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11953   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11954     case "$target" in
11955     *-*-darwin*)
11956      echo "$as_me:$LINENO: result: yes" >&5
11957 echo "${ECHO_T}yes" >&6;;
11958    *)
11959      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11960 echo "$as_me: WARNING: may not work on $target" >&2;}
11961      ;;
11962   esac
11963 else
11964   echo "$as_me:$LINENO: result: no" >&5
11965 echo "${ECHO_T}no" >&6
11966 fi
11967
11968
11969 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11970 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11971 if test "x$au_enable_alsa" = xyes; then
11972   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11973 echo "${ECHO_T}yes, configuring alsa" >&6
11974   KEEPCFLAGS=$CFLAGS
11975   KEEPLIBS=$LIBS
11976   KEEPLDFLAGS=$LDFLAGS
11977   alsa_save_CFLAGS="$CFLAGS"
11978 alsa_save_LDFLAGS="$LDFLAGS"
11979 alsa_save_LIBS="$LIBS"
11980 alsa_found=yes
11981
11982
11983 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11984 if test "${with_alsa_prefix+set}" = set; then
11985   withval="$with_alsa_prefix"
11986   alsa_prefix="$withval"
11987 else
11988   alsa_prefix=""
11989 fi;
11990
11991
11992 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11993 if test "${with_alsa_inc_prefix+set}" = set; then
11994   withval="$with_alsa_inc_prefix"
11995   alsa_inc_prefix="$withval"
11996 else
11997   alsa_inc_prefix=""
11998 fi;
11999
12000 # Check whether --enable-alsatest or --disable-alsatest was given.
12001 if test "${enable_alsatest+set}" = set; then
12002   enableval="$enable_alsatest"
12003   enable_alsatest=no
12004 else
12005   enable_alsatest=yes
12006 fi;
12007
12008 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12009 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12010 if test "$alsa_inc_prefix" != "" ; then
12011         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12012         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12013 fi
12014 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12015 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12016
12017 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12018 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12019 if test "$alsa_prefix" != "" ; then
12020         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12021         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12022 fi
12023
12024 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12025 LIBS=`echo $LIBS | sed 's/-lm//'`
12026 LIBS=`echo $LIBS | sed 's/-ldl//'`
12027 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12028 LIBS=`echo $LIBS | sed 's/  //'`
12029 LIBS="$ALSA_LIBS $LIBS"
12030 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12031 echo "${ECHO_T}$ALSA_LIBS" >&6
12032
12033 min_alsa_version=0.1.1
12034 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12035 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12036 no_alsa=""
12037     alsa_min_major_version=`echo $min_alsa_version | \
12038            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12039     alsa_min_minor_version=`echo $min_alsa_version | \
12040            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12041     alsa_min_micro_version=`echo $min_alsa_version | \
12042            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12043
12044
12045
12046
12047 ac_ext=c
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12052
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059
12060 #include <alsa/asoundlib.h>
12061
12062 int
12063 main ()
12064 {
12065
12066 /* ensure backward compatibility */
12067 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12068 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12069 #endif
12070 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12071 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12072 #endif
12073 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12074 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12075 #endif
12076
12077 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12078   exit(0);
12079 #  else
12080 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12081 #       error not present
12082 #    endif
12083
12084 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12085   exit(0);
12086 #   else
12087 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12088 #          error not present
12089 #      endif
12090
12091 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12092 #        error not present
12093 #      endif
12094 #    endif
12095 #  endif
12096 exit(0);
12097
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104   (eval $ac_compile) 2>conftest.er1
12105   ac_status=$?
12106   grep -v '^ *+' conftest.er1 >conftest.err
12107   rm -f conftest.er1
12108   cat conftest.err >&5
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); } &&
12111          { ac_try='test -z "$ac_c_werror_flag"
12112                          || test ! -s conftest.err'
12113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114   (eval $ac_try) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest.$ac_objext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   echo "$as_me:$LINENO: result: found." >&5
12125 echo "${ECHO_T}found." >&6
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136
12137 #include <sys/asoundlib.h>
12138
12139 int
12140 main ()
12141 {
12142
12143 /* ensure backward compatibility */
12144 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12145 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12146 #endif
12147 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12148 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12149 #endif
12150 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12151 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12152 #endif
12153
12154 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12155   exit(0);
12156 #  else
12157 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12158 #       error not present
12159 #    endif
12160
12161 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12162   exit(0);
12163 #   else
12164 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12165 #          error not present
12166 #      endif
12167
12168 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12169 #        error not present
12170 #      endif
12171 #    endif
12172 #  endif
12173 exit(0);
12174
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181   (eval $ac_compile) 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -z "$ac_c_werror_flag"
12189                          || test ! -s conftest.err'
12190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191   (eval $ac_try) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; } &&
12195          { ac_try='test -s conftest.$ac_objext'
12196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197   (eval $ac_try) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; }; then
12201   echo "$as_me:$LINENO: result: found." >&5
12202 echo "${ECHO_T}found." >&6
12203 else
12204   echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 echo "$as_me:$LINENO: result: not present." >&5
12208 echo "${ECHO_T}not present." >&6
12209    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12210 echo "${ECHO_T}libasound was not found anywhere." >&6
12211    alsa_found=no
12212 fi
12213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12214    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12215 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12216
12217 fi
12218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12219 ac_ext=c
12220 ac_cpp='$CPP $CPPFLAGS'
12221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12224
12225
12226
12227 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12228 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12229 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lasound  $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240
12241 /* Override any gcc2 internal prototype to avoid an error.  */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 /* We use char because int might match the return type of a gcc2
12246    builtin and then its argument prototype would still apply.  */
12247 char snd_ctl_open ();
12248 int
12249 main ()
12250 {
12251 snd_ctl_open ();
12252   ;
12253   return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258   (eval $ac_link) 2>conftest.er1
12259   ac_status=$?
12260   grep -v '^ *+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } &&
12265          { ac_try='test -z "$ac_c_werror_flag"
12266                          || test ! -s conftest.err'
12267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268   (eval $ac_try) 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; } &&
12272          { ac_try='test -s conftest$ac_exeext'
12273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274   (eval $ac_try) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   ac_cv_lib_asound_snd_ctl_open=yes
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 ac_cv_lib_asound_snd_ctl_open=no
12284 fi
12285 rm -f conftest.err conftest.$ac_objext \
12286       conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12288 fi
12289 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12290 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12291 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12292   cat >>confdefs.h <<_ACEOF
12293 #define HAVE_LIBASOUND 1
12294 _ACEOF
12295
12296   LIBS="-lasound $LIBS"
12297
12298 else
12299   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12300 echo "${ECHO_T}No linkable libasound was found." >&6
12301    alsa_found=no
12302
12303 fi
12304
12305
12306 if test "x$alsa_found" = "xyes" ; then
12307    :
12308    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12309    LIBS=`echo $LIBS | sed 's/  //'`
12310    LIBS="-lasound $LIBS"
12311 else
12312    :
12313    CFLAGS="$alsa_save_CFLAGS"
12314    LDFLAGS="$alsa_save_LDFLAGS"
12315    LIBS="$alsa_save_LIBS"
12316    ALSA_CFLAGS=""
12317    ALSA_LIBS=""
12318 fi
12319
12320
12321
12322
12323   if test "x$alsa_found" = "xyes" ; then
12324         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12325     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12326     for f in $ALSA_CFLAGS; do
12327     case ".$f" in
12328         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12329         *)              CFLAGS="$CPPFLAGS $f" ;;
12330     esac
12331 done
12332
12333     LIBS="$KEEPLIBS $ALSA_LIBS"
12334
12335 for ac_func in snd_seq_port_info_set_timestamping
12336 do
12337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12338 echo "$as_me:$LINENO: checking for $ac_func" >&5
12339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12340 if eval "test \"\${$as_ac_var+set}\" = set"; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12351 #define $ac_func innocuous_$ac_func
12352
12353 /* System header to define __stub macros and hopefully few prototypes,
12354     which can conflict with char $ac_func (); below.
12355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12356     <limits.h> exists even on freestanding compilers.  */
12357
12358 #ifdef __STDC__
12359 # include <limits.h>
12360 #else
12361 # include <assert.h>
12362 #endif
12363
12364 #undef $ac_func
12365
12366 /* Override any gcc2 internal prototype to avoid an error.  */
12367 #ifdef __cplusplus
12368 extern "C"
12369 {
12370 #endif
12371 /* We use char because int might match the return type of a gcc2
12372    builtin and then its argument prototype would still apply.  */
12373 char $ac_func ();
12374 /* The GNU C library defines this for functions which it implements
12375     to always fail with ENOSYS.  Some functions are actually named
12376     something starting with __ and the normal name is an alias.  */
12377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12378 choke me
12379 #else
12380 char (*f) () = $ac_func;
12381 #endif
12382 #ifdef __cplusplus
12383 }
12384 #endif
12385
12386 int
12387 main ()
12388 {
12389 return f != $ac_func;
12390   ;
12391   return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396   (eval $ac_link) 2>conftest.er1
12397   ac_status=$?
12398   grep -v '^ *+' conftest.er1 >conftest.err
12399   rm -f conftest.er1
12400   cat conftest.err >&5
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); } &&
12403          { ac_try='test -z "$ac_c_werror_flag"
12404                          || test ! -s conftest.err'
12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406   (eval $ac_try) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; } &&
12410          { ac_try='test -s conftest$ac_exeext'
12411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412   (eval $ac_try) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; }; then
12416   eval "$as_ac_var=yes"
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 eval "$as_ac_var=no"
12422 fi
12423 rm -f conftest.err conftest.$ac_objext \
12424       conftest$ac_exeext conftest.$ac_ext
12425 fi
12426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12428 if test `eval echo '${'$as_ac_var'}'` = yes; then
12429   cat >>confdefs.h <<_ACEOF
12430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12431 _ACEOF
12432
12433 fi
12434 done
12435
12436   else
12437     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12438 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12439     CFLAGS=$KEEPCFLAGS
12440     LIBS=$KEEPLIBS
12441     LDFLAGS=$KEEPLDFLAGS
12442   fi
12443 else
12444   echo "$as_me:$LINENO: result: no" >&5
12445 echo "${ECHO_T}no" >&6
12446 fi
12447
12448 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12449 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12450 if test "x$au_enable_alib" = xyes; then
12451   case "$target" in
12452     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12453 echo "${ECHO_T}yes" >&6 ;;
12454     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12455 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12456   esac
12457   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12458   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12459   if test -d /opt/audio/include; then
12460     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12461   fi
12462   if test -d /opt/audio/lib; then
12463     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12464   fi
12465   EXTRALIBS="$EXTRALIBS -lAlib"
12466 else
12467   echo "$as_me:$LINENO: result: no" >&5
12468 echo "${ECHO_T}no" >&6
12469 fi
12470
12471 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12472 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12473 if test "x$au_enable_nas" = xyes; then
12474   if test "x$with_x" != xyes; then
12475     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12476 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12477    { (exit 1); exit 1; }; }
12478   fi
12479   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12480   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12481
12482
12483   if test "x$with_nas_library" != x; then
12484     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12485 echo "${ECHO_T}$with_nas_library" >&6;
12486     EXTRALIBS="$EXTRALIBS $with_nas_library"
12487   else
12488     echo "$as_me:$LINENO: result: " >&5
12489 echo "${ECHO_T}" >&6
12490     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12491 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12492 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   ac_func_search_save_LIBS="$LIBS"
12496 timidity_cv_search_AuOpenServer="no"
12497 for i in $x_libraries/libaudio.a \
12498          /usr/lib/libaudio.so \
12499          /usr/lib/libaudio.a ; do
12500   LIBS="$i  $ac_func_search_save_LIBS"
12501   cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h.  */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h.  */
12507
12508 /* Override any gcc2 internal prototype to avoid an error.  */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 /* We use char because int might match the return type of a gcc2
12513    builtin and then its argument prototype would still apply.  */
12514 char AuOpenServer ();
12515 int
12516 main ()
12517 {
12518 AuOpenServer ();
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525   (eval $ac_link) 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -z "$ac_c_werror_flag"
12533                          || test ! -s conftest.err'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; } &&
12539          { ac_try='test -s conftest$ac_exeext'
12540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541   (eval $ac_try) 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; }; then
12545   timidity_cv_search_AuOpenServer="$i"; break
12546 else
12547   echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 fi
12551 rm -f conftest.err conftest.$ac_objext \
12552       conftest$ac_exeext conftest.$ac_ext
12553 done
12554 LIBS="$ac_func_search_save_LIBS"
12555 fi
12556 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12557 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12558 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12559    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12560 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12561           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12562 else :
12563   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12564 echo "$as_me: WARNING: NAS library is not found." >&2;}
12565 fi
12566   fi
12567   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12568   lib_xt_opt=-lXt
12569   if test "x$have_xext" = xyes; then
12570     lib_xext_opt=-lXext
12571   fi
12572   if test "x$have_xprelibs" = xyes; then
12573     lib_xprelibs_opt='-lSM -lICE'
12574   fi
12575 else
12576   echo "$as_me:$LINENO: result: no" >&5
12577 echo "${ECHO_T}no" >&6
12578 fi
12579
12580 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12581 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12582 if test "x$au_enable_arts" = xyes; then
12583   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12584 echo "${ECHO_T}yes, configuring aRts" >&6
12585   KEEPCFLAGS=$CFLAGS
12586   KEEPLIBS=$LIBS
12587   KEEPLDFLAGS=$LDFLAGS
12588
12589 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12590 if test "${with_arts_prefix+set}" = set; then
12591   withval="$with_arts_prefix"
12592   arts_prefix="$withval"
12593 else
12594   arts_prefix=""
12595 fi;
12596 # Check whether --enable-artstest or --disable-artstest was given.
12597 if test "${enable_artstest+set}" = set; then
12598   enableval="$enable_artstest"
12599
12600 else
12601   enable_artstest=yes
12602 fi;
12603
12604   if test x$arts_prefix != x ; then
12605      arts_args="$arts_args --prefix=$arts_prefix"
12606      if test x${ARTS_CONFIG+set} != xset ; then
12607         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12608      fi
12609   fi
12610
12611   # Extract the first word of "artsc-config", so it can be a program name with args.
12612 set dummy artsc-config; ac_word=$2
12613 echo "$as_me:$LINENO: checking for $ac_word" >&5
12614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12615 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12616   echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618   case $ARTS_CONFIG in
12619   [\\/]* | ?:[\\/]*)
12620   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12621   ;;
12622   *)
12623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12625 do
12626   IFS=$as_save_IFS
12627   test -z "$as_dir" && as_dir=.
12628   for ac_exec_ext in '' $ac_executable_extensions; do
12629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12632     break 2
12633   fi
12634 done
12635 done
12636
12637   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12638   ;;
12639 esac
12640 fi
12641 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12642
12643 if test -n "$ARTS_CONFIG"; then
12644   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12645 echo "${ECHO_T}$ARTS_CONFIG" >&6
12646 else
12647   echo "$as_me:$LINENO: result: no" >&5
12648 echo "${ECHO_T}no" >&6
12649 fi
12650
12651   min_arts_version=0.9.5
12652   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12653 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12654   no_arts=""
12655   if test "$ARTS_CONFIG" = "no" ; then
12656     no_arts=yes
12657   else
12658     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12659     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12660
12661     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12662            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12663     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12664            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12665     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12666            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12667     if test "x$enable_artstest" = "xyes" ; then
12668       ac_save_CFLAGS="$CFLAGS"
12669       ac_save_LIBS="$LIBS"
12670       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12671       LIBS="$LIBS $ARTS_LIBS"
12672       rm -f conf.artstest
12673       if test "$cross_compiling" = yes; then
12674   echo $ac_n "cross compiling; assumed OK... $ac_c"
12675 else
12676   cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h.  */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h.  */
12682
12683 #include <stdio.h>
12684 #include <stdlib.h>
12685 #include <string.h>
12686 #include <artsc.h>
12687
12688 char*
12689 my_strdup (char *str)
12690 {
12691   char *new_str;
12692
12693   if (str)
12694     {
12695       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12696       strcpy (new_str, str);
12697     }
12698   else
12699     new_str = NULL;
12700
12701   return new_str;
12702 }
12703
12704 int main ()
12705 {
12706   int major, minor, micro;
12707   char *tmp_version;
12708
12709   system ("touch conf.artstest");
12710
12711   /* HP/UX 9 (%@#!) writes to sscanf strings */
12712   tmp_version = my_strdup("$min_arts_version");
12713   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12714      printf("%s, bad version string\n", "$min_arts_version");
12715      exit(1);
12716    }
12717
12718    if (($arts_major_version > major) ||
12719       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12720       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12721     {
12722       return 0;
12723     }
12724   else
12725     {
12726       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12727       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12728       printf("*** best to upgrade to the required version.\n");
12729       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12730       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12731       printf("*** config.cache before re-running configure\n");
12732       return 1;
12733     }
12734 }
12735
12736
12737 _ACEOF
12738 rm -f conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740   (eval $ac_link) 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; }; then
12749   :
12750 else
12751   echo "$as_me: program exited with status $ac_status" >&5
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 ( exit $ac_status )
12756 no_arts=yes
12757 fi
12758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12759 fi
12760        CFLAGS="$ac_save_CFLAGS"
12761        LIBS="$ac_save_LIBS"
12762      fi
12763   fi
12764   if test "x$no_arts" = x ; then
12765      echo "$as_me:$LINENO: result: yes" >&5
12766 echo "${ECHO_T}yes" >&6
12767      :
12768   else
12769      echo "$as_me:$LINENO: result: no" >&5
12770 echo "${ECHO_T}no" >&6
12771      if test "$ARTS_CONFIG" = "no" ; then
12772        echo "*** The artsc-config script installed by ARTS could not be found"
12773        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12774        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12775        echo "*** full path to artsc-config."
12776      else
12777        if test -f conf.artstest ; then
12778         :
12779        else
12780           echo "*** Could not run ARTS test program, checking why..."
12781           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12782           LIBS="$LIBS $ARTS_LIBS"
12783           cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789
12790 #include <stdio.h>
12791 #include <artsc.h>
12792
12793 int
12794 main ()
12795 {
12796  return 0;
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803   (eval $ac_link) 2>conftest.er1
12804   ac_status=$?
12805   grep -v '^ *+' conftest.er1 >conftest.err
12806   rm -f conftest.er1
12807   cat conftest.err >&5
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); } &&
12810          { ac_try='test -z "$ac_c_werror_flag"
12811                          || test ! -s conftest.err'
12812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813   (eval $ac_try) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); }; } &&
12817          { ac_try='test -s conftest$ac_exeext'
12818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819   (eval $ac_try) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823    echo "*** The test program compiled, but did not run. This usually means"
12824           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12825           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12826           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12827           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12828           echo "*** is required on your system"
12829           echo "***"
12830           echo "*** If you have an old version installed, it is best to remove it, although"
12831           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836  echo "*** The test program failed to compile or link. See the file config.log for the"
12837           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12838           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12839           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12840 fi
12841 rm -f conftest.err conftest.$ac_objext \
12842       conftest$ac_exeext conftest.$ac_ext
12843           CFLAGS="$ac_save_CFLAGS"
12844           LIBS="$ac_save_LIBS"
12845        fi
12846      fi
12847      ARTS_CFLAGS=""
12848      ARTS_LIBS=""
12849      :
12850   fi
12851
12852
12853   rm -f conf.artstest
12854
12855   CFLAGS=$KEEPCFLAGS
12856   LIBS=$KEEPLIBS
12857   LDFLAGS=$KEEPLDFLAGS
12858   if test "x$no_arts" = x; then
12859         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12860     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12861     for f in $ARTS_CFLAGS; do
12862     case ".$f" in
12863         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12864         *)              CFLAGS="$CPPFLAGS $f" ;;
12865     esac
12866 done
12867
12868     LIBS="$LIBS $ARTS_LIBS"
12869   else
12870     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12871 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12872   fi
12873 else
12874   echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6
12876 fi
12877
12878 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12879 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12880 if test "x$au_enable_esd" = xyes; then
12881   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12882 echo "${ECHO_T}yes, configuring esd" >&6
12883   KEEPCFLAGS=$CFLAGS
12884   KEEPLIBS=$LIBS
12885   KEEPLDFLAGS=$LDFLAGS
12886
12887 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12888 if test "${with_esd_prefix+set}" = set; then
12889   withval="$with_esd_prefix"
12890   esd_prefix="$withval"
12891 else
12892   esd_prefix=""
12893 fi;
12894
12895 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12896 if test "${with_esd_exec_prefix+set}" = set; then
12897   withval="$with_esd_exec_prefix"
12898   esd_exec_prefix="$withval"
12899 else
12900   esd_exec_prefix=""
12901 fi;
12902 # Check whether --enable-esdtest or --disable-esdtest was given.
12903 if test "${enable_esdtest+set}" = set; then
12904   enableval="$enable_esdtest"
12905
12906 else
12907   enable_esdtest=yes
12908 fi;
12909
12910   if test x$esd_exec_prefix != x ; then
12911      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12912      if test x${ESD_CONFIG+set} != xset ; then
12913         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12914      fi
12915   fi
12916   if test x$esd_prefix != x ; then
12917      esd_args="$esd_args --prefix=$esd_prefix"
12918      if test x${ESD_CONFIG+set} != xset ; then
12919         ESD_CONFIG=$esd_prefix/bin/esd-config
12920      fi
12921   fi
12922
12923   # Extract the first word of "esd-config", so it can be a program name with args.
12924 set dummy esd-config; ac_word=$2
12925 echo "$as_me:$LINENO: checking for $ac_word" >&5
12926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12927 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12928   echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930   case $ESD_CONFIG in
12931   [\\/]* | ?:[\\/]*)
12932   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12933   ;;
12934   *)
12935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12937 do
12938   IFS=$as_save_IFS
12939   test -z "$as_dir" && as_dir=.
12940   for ac_exec_ext in '' $ac_executable_extensions; do
12941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12942     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12944     break 2
12945   fi
12946 done
12947 done
12948
12949   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12950   ;;
12951 esac
12952 fi
12953 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12954
12955 if test -n "$ESD_CONFIG"; then
12956   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12957 echo "${ECHO_T}$ESD_CONFIG" >&6
12958 else
12959   echo "$as_me:$LINENO: result: no" >&5
12960 echo "${ECHO_T}no" >&6
12961 fi
12962
12963   min_esd_version=0.2.7
12964   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12965 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12966   no_esd=""
12967   if test "$ESD_CONFIG" = "no" ; then
12968     no_esd=yes
12969   else
12970
12971
12972     ac_ext=c
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12979     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12980
12981     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12982            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12983     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12984            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12985     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12986            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12987     if test "x$enable_esdtest" = "xyes" ; then
12988       ac_save_CFLAGS="$CFLAGS"
12989       ac_save_LIBS="$LIBS"
12990       CFLAGS="$CFLAGS $ESD_CFLAGS"
12991       LIBS="$LIBS $ESD_LIBS"
12992       rm -f conf.esdtest
12993       if test "$cross_compiling" = yes; then
12994   echo $ac_n "cross compiling; assumed OK... $ac_c"
12995 else
12996   cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002
13003 #include <stdio.h>
13004 #include <stdlib.h>
13005 #include <string.h>
13006 #include <esd.h>
13007
13008 char*
13009 my_strdup (char *str)
13010 {
13011   char *new_str;
13012
13013   if (str)
13014     {
13015       new_str = malloc ((strlen (str) + 1) * sizeof(char));
13016       strcpy (new_str, str);
13017     }
13018   else
13019     new_str = NULL;
13020
13021   return new_str;
13022 }
13023
13024 int main ()
13025 {
13026   int major, minor, micro;
13027   char *tmp_version;
13028
13029   system ("touch conf.esdtest");
13030
13031   /* HP/UX 9 (%@#!) writes to sscanf strings */
13032   tmp_version = my_strdup("$min_esd_version");
13033   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13034      printf("%s, bad version string\n", "$min_esd_version");
13035      exit(1);
13036    }
13037
13038    if (($esd_major_version > major) ||
13039       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13040       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13041     {
13042       return 0;
13043     }
13044   else
13045     {
13046       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13047       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13048       printf("*** best to upgrade to the required version.\n");
13049       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13050       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13051       printf("*** config.cache before re-running configure\n");
13052       return 1;
13053     }
13054 }
13055
13056
13057 _ACEOF
13058 rm -f conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060   (eval $ac_link) 2>&5
13061   ac_status=$?
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065   (eval $ac_try) 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; }; then
13069   :
13070 else
13071   echo "$as_me: program exited with status $ac_status" >&5
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 ( exit $ac_status )
13076 no_esd=yes
13077 fi
13078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13079 fi
13080        CFLAGS="$ac_save_CFLAGS"
13081        LIBS="$ac_save_LIBS"
13082        ac_ext=c
13083 ac_cpp='$CPP $CPPFLAGS'
13084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13087
13088      fi
13089   fi
13090   if test "x$no_esd" = x ; then
13091      echo "$as_me:$LINENO: result: yes" >&5
13092 echo "${ECHO_T}yes" >&6
13093      :
13094   else
13095      echo "$as_me:$LINENO: result: no" >&5
13096 echo "${ECHO_T}no" >&6
13097      if test "$ESD_CONFIG" = "no" ; then
13098        echo "*** The esd-config script installed by ESD could not be found"
13099        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13100        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13101        echo "*** full path to esd-config."
13102      else
13103        if test -f conf.esdtest ; then
13104         :
13105        else
13106           echo "*** Could not run ESD test program, checking why..."
13107           CFLAGS="$CFLAGS $ESD_CFLAGS"
13108           LIBS="$LIBS $ESD_LIBS"
13109
13110
13111           ac_ext=c
13112 ac_cpp='$CPP $CPPFLAGS'
13113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13116
13117           cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h.  */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h.  */
13123
13124 #include <stdio.h>
13125 #include <esd.h>
13126
13127 int
13128 main ()
13129 {
13130  return 0;
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137   (eval $ac_link) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } &&
13144          { ac_try='test -z "$ac_c_werror_flag"
13145                          || test ! -s conftest.err'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest$ac_exeext'
13152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153   (eval $ac_try) 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157    echo "*** The test program compiled, but did not run. This usually means"
13158           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13159           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13160           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13161           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13162           echo "*** is required on your system"
13163           echo "***"
13164           echo "*** If you have an old version installed, it is best to remove it, although"
13165           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170  echo "*** The test program failed to compile or link. See the file config.log for the"
13171           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13172           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13173           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13174 fi
13175 rm -f conftest.err conftest.$ac_objext \
13176       conftest$ac_exeext conftest.$ac_ext
13177           CFLAGS="$ac_save_CFLAGS"
13178           LIBS="$ac_save_LIBS"
13179           ac_ext=c
13180 ac_cpp='$CPP $CPPFLAGS'
13181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13184
13185        fi
13186      fi
13187      ESD_CFLAGS=""
13188      ESD_LIBS=""
13189      :
13190   fi
13191
13192
13193   rm -f conf.esdtest
13194
13195   CFLAGS=$KEEPCFLAGS
13196   LIBS=$KEEPLIBS
13197   LDFLAGS=$KEEPLDFLAGS
13198   if test "x$no_esd" = x; then
13199         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13200     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13201     for f in $ESD_CFLAGS; do
13202     case ".$f" in
13203         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13204         *)              CFLAGS="$CPPFLAGS $f" ;;
13205     esac
13206 done
13207
13208     LIBS="$LIBS $ESD_LIBS"
13209   else
13210     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13211 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13212   fi
13213 else
13214   echo "$as_me:$LINENO: result: no" >&5
13215 echo "${ECHO_T}no" >&6
13216 fi
13217
13218 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13219 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13220 if test "x$au_enable_portaudio" = xyes; then
13221   echo "$as_me:$LINENO: result: yes" >&5
13222 echo "${ECHO_T}yes" >&6
13223   SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13224   EXTRALIBS="$EXTRALIBS -lportaudio"
13225   EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13226 else
13227   echo "$as_me:$LINENO: result: no" >&5
13228 echo "${ECHO_T}no" >&6
13229 fi
13230
13231 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13232 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13233 if test "x$au_enable_jack" = xyes; then
13234   echo "$as_me:$LINENO: result: yes" >&5
13235 echo "${ECHO_T}yes" >&6
13236   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13237   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13238   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13239 else
13240   echo "$as_me:$LINENO: result: no" >&5
13241 echo "${ECHO_T}no" >&6
13242 fi
13243
13244 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13245 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13246 if test "x$au_enable_ao" = xyes; then
13247   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
13248 echo "${ECHO_T}yes, configuring alsa" >&6
13249   KEEPCFLAGS=$CFLAGS
13250   KEEPLIBS=$LIBS
13251   KEEPLDFLAGS=$LDFLAGS
13252
13253 # Check whether --with-ao or --without-ao was given.
13254 if test "${with_ao+set}" = set; then
13255   withval="$with_ao"
13256   ao_prefix="$withval"
13257 else
13258   ao_prefix=""
13259 fi;
13260
13261 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13262 if test "${with_ao_libraries+set}" = set; then
13263   withval="$with_ao_libraries"
13264   ao_libraries="$withval"
13265 else
13266   ao_libraries=""
13267 fi;
13268
13269 # Check whether --with-ao-includes or --without-ao-includes was given.
13270 if test "${with_ao_includes+set}" = set; then
13271   withval="$with_ao_includes"
13272   ao_includes="$withval"
13273 else
13274   ao_includes=""
13275 fi;
13276 # Check whether --enable-aotest or --disable-aotest was given.
13277 if test "${enable_aotest+set}" = set; then
13278   enableval="$enable_aotest"
13279
13280 else
13281   enable_aotest=yes
13282 fi;
13283
13284
13285   if test "x$ao_libraries" != "x" ; then
13286     AO_LIBS="-L$ao_libraries"
13287   elif test "x$ao_prefix" != "x"; then
13288     AO_LIBS="-L$ao_prefix/lib"
13289   elif test "x$prefix" != "xNONE"; then
13290     AO_LIBS="-L$prefix/lib"
13291   fi
13292
13293   if test "x$ao_includes" != "x" ; then
13294     AO_CFLAGS="-I$ao_includes"
13295   elif test "x$ao_prefix" != "x"; then
13296     AO_CFLAGS="-I$ao_prefix/include"
13297   elif test "x$prefix" != "xNONE"; then
13298     AO_CFLAGS="-I$prefix/include"
13299   fi
13300
13301   # see where dl* and friends live
13302
13303 for ac_func in dlopen
13304 do
13305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13306 echo "$as_me:$LINENO: checking for $ac_func" >&5
13307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13308 if eval "test \"\${$as_ac_var+set}\" = set"; then
13309   echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311   cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h.  */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h.  */
13317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13319 #define $ac_func innocuous_$ac_func
13320
13321 /* System header to define __stub macros and hopefully few prototypes,
13322     which can conflict with char $ac_func (); below.
13323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13324     <limits.h> exists even on freestanding compilers.  */
13325
13326 #ifdef __STDC__
13327 # include <limits.h>
13328 #else
13329 # include <assert.h>
13330 #endif
13331
13332 #undef $ac_func
13333
13334 /* Override any gcc2 internal prototype to avoid an error.  */
13335 #ifdef __cplusplus
13336 extern "C"
13337 {
13338 #endif
13339 /* We use char because int might match the return type of a gcc2
13340    builtin and then its argument prototype would still apply.  */
13341 char $ac_func ();
13342 /* The GNU C library defines this for functions which it implements
13343     to always fail with ENOSYS.  Some functions are actually named
13344     something starting with __ and the normal name is an alias.  */
13345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13346 choke me
13347 #else
13348 char (*f) () = $ac_func;
13349 #endif
13350 #ifdef __cplusplus
13351 }
13352 #endif
13353
13354 int
13355 main ()
13356 {
13357 return f != $ac_func;
13358   ;
13359   return 0;
13360 }
13361 _ACEOF
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364   (eval $ac_link) 2>conftest.er1
13365   ac_status=$?
13366   grep -v '^ *+' conftest.er1 >conftest.err
13367   rm -f conftest.er1
13368   cat conftest.err >&5
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); } &&
13371          { ac_try='test -z "$ac_c_werror_flag"
13372                          || test ! -s conftest.err'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; } &&
13378          { ac_try='test -s conftest$ac_exeext'
13379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; }; then
13384   eval "$as_ac_var=yes"
13385 else
13386   echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 eval "$as_ac_var=no"
13390 fi
13391 rm -f conftest.err conftest.$ac_objext \
13392       conftest$ac_exeext conftest.$ac_ext
13393 fi
13394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13396 if test `eval echo '${'$as_ac_var'}'` = yes; then
13397   cat >>confdefs.h <<_ACEOF
13398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13399 _ACEOF
13400  AO_DL_LIBS=""
13401 else
13402
13403     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13404 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13405 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   ac_check_lib_save_LIBS=$LIBS
13409 LIBS="-ldl  $LIBS"
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416
13417 /* Override any gcc2 internal prototype to avoid an error.  */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 /* We use char because int might match the return type of a gcc2
13422    builtin and then its argument prototype would still apply.  */
13423 char dlopen ();
13424 int
13425 main ()
13426 {
13427 dlopen ();
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434   (eval $ac_link) 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -z "$ac_c_werror_flag"
13442                          || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   ac_cv_lib_dl_dlopen=yes
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 ac_cv_lib_dl_dlopen=no
13460 fi
13461 rm -f conftest.err conftest.$ac_objext \
13462       conftest$ac_exeext conftest.$ac_ext
13463 LIBS=$ac_check_lib_save_LIBS
13464 fi
13465 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13467 if test $ac_cv_lib_dl_dlopen = yes; then
13468   AO_DL_LIBS="-ldl"
13469 else
13470
13471       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13472       your system may not be supported." >&5
13473 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13474       your system may not be supported." >&2;}
13475
13476 fi
13477
13478
13479 fi
13480 done
13481
13482
13483   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13484
13485   echo "$as_me:$LINENO: checking for ao" >&5
13486 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13487   no_ao=""
13488
13489
13490   if test "x$enable_aotest" = "xyes" ; then
13491     ac_save_CFLAGS="$CFLAGS"
13492     ac_save_LIBS="$LIBS"
13493     CFLAGS="$CFLAGS $AO_CFLAGS"
13494     LIBS="$LIBS $AO_LIBS"
13495       rm -f conf.aotest
13496       if test "$cross_compiling" = yes; then
13497   echo $ac_n "cross compiling; assumed OK... $ac_c"
13498 else
13499   cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505
13506 #include <stdio.h>
13507 #include <stdlib.h>
13508 #include <string.h>
13509 #include <ao/ao.h>
13510
13511 int main ()
13512 {
13513   system("touch conf.aotest");
13514   return 0;
13515 }
13516
13517
13518 _ACEOF
13519 rm -f conftest$ac_exeext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13521   (eval $ac_link) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; }; then
13530   :
13531 else
13532   echo "$as_me: program exited with status $ac_status" >&5
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ( exit $ac_status )
13537 no_ao=yes
13538 fi
13539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13540 fi
13541        CFLAGS="$ac_save_CFLAGS"
13542        LIBS="$ac_save_LIBS"
13543   fi
13544
13545   if test "x$no_ao" = "x" ; then
13546      echo "$as_me:$LINENO: result: yes" >&5
13547 echo "${ECHO_T}yes" >&6
13548      :
13549   else
13550      echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6
13552      if test -f conf.aotest ; then
13553        :
13554      else
13555        echo "*** Could not run ao test program, checking why..."
13556        CFLAGS="$CFLAGS $AO_CFLAGS"
13557        LIBS="$LIBS $AO_LIBS"
13558        cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564
13565 #include <stdio.h>
13566 #include <ao/ao.h>
13567
13568 int
13569 main ()
13570 {
13571  return 0;
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578   (eval $ac_link) 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -z "$ac_c_werror_flag"
13586                          || test ! -s conftest.err'
13587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588   (eval $ac_try) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; } &&
13592          { ac_try='test -s conftest$ac_exeext'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598    echo "*** The test program compiled, but did not run. This usually means"
13599        echo "*** that the run-time linker is not finding ao or finding the wrong"
13600        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13601        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13602        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13603        echo "*** is required on your system"
13604        echo "***"
13605        echo "*** If you have an old version installed, it is best to remove it, although"
13606        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13607 else
13608   echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13610
13611  echo "*** The test program failed to compile or link. See the file config.log for the"
13612        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13613        echo "*** or that you have moved ao since it was installed."
13614 fi
13615 rm -f conftest.err conftest.$ac_objext \
13616       conftest$ac_exeext conftest.$ac_ext
13617        CFLAGS="$ac_save_CFLAGS"
13618        LIBS="$ac_save_LIBS"
13619      fi
13620      AO_CFLAGS=""
13621      AO_LIBS=""
13622      :
13623   fi
13624
13625
13626   rm -f conf.aotest
13627
13628   if test "x$no_ao" = "x" ; then
13629         EXTRADEFS="$EXTRADEFS -DAU_AO"
13630     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13631     for f in $AO_CFLAGS; do
13632     case ".$f" in
13633         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13634         *)              CFLAGS="$CPPFLAGS $f" ;;
13635     esac
13636 done
13637
13638     LIBS="$KEEPLIBS $AO_LIBS"
13639
13640 for ac_func in snd_seq_port_info_set_timestamping
13641 do
13642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13643 echo "$as_me:$LINENO: checking for $ac_func" >&5
13644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_var+set}\" = set"; then
13646   echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648   cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h.  */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h.  */
13654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13656 #define $ac_func innocuous_$ac_func
13657
13658 /* System header to define __stub macros and hopefully few prototypes,
13659     which can conflict with char $ac_func (); below.
13660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13661     <limits.h> exists even on freestanding compilers.  */
13662
13663 #ifdef __STDC__
13664 # include <limits.h>
13665 #else
13666 # include <assert.h>
13667 #endif
13668
13669 #undef $ac_func
13670
13671 /* Override any gcc2 internal prototype to avoid an error.  */
13672 #ifdef __cplusplus
13673 extern "C"
13674 {
13675 #endif
13676 /* We use char because int might match the return type of a gcc2
13677    builtin and then its argument prototype would still apply.  */
13678 char $ac_func ();
13679 /* The GNU C library defines this for functions which it implements
13680     to always fail with ENOSYS.  Some functions are actually named
13681     something starting with __ and the normal name is an alias.  */
13682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13683 choke me
13684 #else
13685 char (*f) () = $ac_func;
13686 #endif
13687 #ifdef __cplusplus
13688 }
13689 #endif
13690
13691 int
13692 main ()
13693 {
13694 return f != $ac_func;
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 rm -f conftest.$ac_objext conftest$ac_exeext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13701   (eval $ac_link) 2>conftest.er1
13702   ac_status=$?
13703   grep -v '^ *+' conftest.er1 >conftest.err
13704   rm -f conftest.er1
13705   cat conftest.err >&5
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } &&
13708          { ac_try='test -z "$ac_c_werror_flag"
13709                          || test ! -s conftest.err'
13710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711   (eval $ac_try) 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); }; } &&
13715          { ac_try='test -s conftest$ac_exeext'
13716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717   (eval $ac_try) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; }; then
13721   eval "$as_ac_var=yes"
13722 else
13723   echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 eval "$as_ac_var=no"
13727 fi
13728 rm -f conftest.err conftest.$ac_objext \
13729       conftest$ac_exeext conftest.$ac_ext
13730 fi
13731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13733 if test `eval echo '${'$as_ac_var'}'` = yes; then
13734   cat >>confdefs.h <<_ACEOF
13735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13736 _ACEOF
13737
13738 fi
13739 done
13740
13741   else
13742     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13743 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13744     CFLAGS=$KEEPCFLAGS
13745     LIBS=$KEEPLIBS
13746     LDFLAGS=$KEEPLDFLAGS
13747   fi
13748 else
13749   echo "$as_me:$LINENO: result: no" >&5
13750 echo "${ECHO_T}no" >&6
13751 fi
13752
13753 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13754 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13755 if test "x$au_enable_vorbis" = xyes; then
13756   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13757 echo "${ECHO_T}yes, configuring vorbis" >&6
13758
13759 # Check whether --with-ogg or --without-ogg was given.
13760 if test "${with_ogg+set}" = set; then
13761   withval="$with_ogg"
13762   ogg_prefix="$withval"
13763 else
13764   ogg_prefix=""
13765 fi;
13766
13767 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13768 if test "${with_ogg_libraries+set}" = set; then
13769   withval="$with_ogg_libraries"
13770   ogg_libraries="$withval"
13771 else
13772   ogg_libraries=""
13773 fi;
13774
13775 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13776 if test "${with_ogg_includes+set}" = set; then
13777   withval="$with_ogg_includes"
13778   ogg_includes="$withval"
13779 else
13780   ogg_includes=""
13781 fi;
13782 # Check whether --enable-oggtest or --disable-oggtest was given.
13783 if test "${enable_oggtest+set}" = set; then
13784   enableval="$enable_oggtest"
13785
13786 else
13787   enable_oggtest=yes
13788 fi;
13789
13790   if test "x$ogg_libraries" != "x" ; then
13791     OGG_LIBS="-L$ogg_libraries"
13792   elif test "x$ogg_prefix" != "x" ; then
13793     OGG_LIBS="-L$ogg_prefix/lib"
13794   elif test "x$prefix" != "xNONE" ; then
13795     OGG_LIBS="-L$prefix/lib"
13796   fi
13797
13798   OGG_LIBS="$OGG_LIBS -logg"
13799
13800   if test "x$ogg_includes" != "x" ; then
13801     OGG_CFLAGS="-I$ogg_includes"
13802   elif test "x$ogg_prefix" != "x" ; then
13803     OGG_CFLAGS="-I$ogg_prefix/include"
13804   elif test "x$prefix" != "xNONE"; then
13805     OGG_CFLAGS="-I$prefix/include"
13806   fi
13807
13808   echo "$as_me:$LINENO: checking for Ogg" >&5
13809 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13810   no_ogg=""
13811
13812
13813   if test "x$enable_oggtest" = "xyes" ; then
13814     ac_save_CFLAGS="$CFLAGS"
13815     ac_save_LIBS="$LIBS"
13816     CFLAGS="$CFLAGS $OGG_CFLAGS"
13817     LIBS="$LIBS $OGG_LIBS"
13818       rm -f conf.oggtest
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 <ogg/ogg.h>
13833
13834 int main ()
13835 {
13836   system("touch conf.oggtest");
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_ogg=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_ogg" = "x" ; then
13869      echo "$as_me:$LINENO: result: yes" >&5
13870 echo "${ECHO_T}yes" >&6
13871
13872
13873 # Check whether --with-vorbis or --without-vorbis was given.
13874 if test "${with_vorbis+set}" = set; then
13875   withval="$with_vorbis"
13876   vorbis_prefix="$withval"
13877 else
13878   vorbis_prefix=""
13879 fi;
13880
13881 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13882 if test "${with_vorbis_libraries+set}" = set; then
13883   withval="$with_vorbis_libraries"
13884   vorbis_libraries="$withval"
13885 else
13886   vorbis_libraries=""
13887 fi;
13888
13889 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13890 if test "${with_vorbis_includes+set}" = set; then
13891   withval="$with_vorbis_includes"
13892   vorbis_includes="$withval"
13893 else
13894   vorbis_includes=""
13895 fi;
13896 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13897 if test "${enable_vorbistest+set}" = set; then
13898   enableval="$enable_vorbistest"
13899
13900 else
13901   enable_vorbistest=yes
13902 fi;
13903
13904   if test "x$vorbis_libraries" != "x" ; then
13905     VORBIS_LIBS="-L$vorbis_libraries"
13906   elif test "x$vorbis_prefix" != "x" ; then
13907     VORBIS_LIBS="-L$vorbis_prefix/lib"
13908   elif test "x$prefix" != "xNONE"; then
13909     VORBIS_LIBS="-L$prefix/lib"
13910   fi
13911
13912   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13913   VORBISFILE_LIBS="-lvorbisfile"
13914   VORBISENC_LIBS="-lvorbisenc"
13915
13916   if test "x$vorbis_includes" != "x" ; then
13917     VORBIS_CFLAGS="-I$vorbis_includes"
13918   elif test "x$vorbis_prefix" != "x" ; then
13919     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13920   elif test "x$prefix" != "xNONE"; then
13921     VORBIS_CFLAGS="-I$prefix/include"
13922   fi
13923
13924
13925   echo "$as_me:$LINENO: checking for Vorbis" >&5
13926 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13927   no_vorbis=""
13928
13929
13930   if test "x$enable_vorbistest" = "xyes" ; then
13931     ac_save_CFLAGS="$CFLAGS"
13932     ac_save_LIBS="$LIBS"
13933     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13934     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13935       rm -f conf.vorbistest
13936       if test "$cross_compiling" = yes; then
13937   echo $ac_n "cross compiling; assumed OK... $ac_c"
13938 else
13939   cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h.  */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h.  */
13945
13946 #include <stdio.h>
13947 #include <stdlib.h>
13948 #include <string.h>
13949 #include <vorbis/codec.h>
13950
13951 int main ()
13952 {
13953   system("touch conf.vorbistest");
13954   return 0;
13955 }
13956
13957
13958 _ACEOF
13959 rm -f conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961   (eval $ac_link) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   :
13971 else
13972   echo "$as_me: program exited with status $ac_status" >&5
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ( exit $ac_status )
13977 no_vorbis=yes
13978 fi
13979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13980 fi
13981        CFLAGS="$ac_save_CFLAGS"
13982        LIBS="$ac_save_LIBS"
13983   fi
13984
13985   if test "x$no_vorbis" = "x" ; then
13986      echo "$as_me:$LINENO: result: yes" >&5
13987 echo "${ECHO_T}yes" >&6
13988
13989       have_vorbis=yes
13990       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13991       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13992       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13993       if test "x$CYGNUS" = "xyes"; then
13994       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13995           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13996       fi
13997       if test "x$MINGW" = "xyes"; then
13998       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13999           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14000       fi
14001
14002   else
14003      echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6
14005      if test -f conf.vorbistest ; then
14006        :
14007      else
14008        echo "*** Could not run Vorbis test program, checking why..."
14009        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14010        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14011        cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h.  */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h.  */
14017
14018 #include <stdio.h>
14019 #include <vorbis/codec.h>
14020
14021 int
14022 main ()
14023 {
14024  return 0;
14025   ;
14026   return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031   (eval $ac_link) 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } &&
14038          { ac_try='test -z "$ac_c_werror_flag"
14039                          || test ! -s conftest.err'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; } &&
14045          { ac_try='test -s conftest$ac_exeext'
14046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047   (eval $ac_try) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; }; then
14051    echo "*** The test program compiled, but did not run. This usually means"
14052        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14053        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14054        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14055        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14056        echo "*** is required on your system"
14057        echo "***"
14058        echo "*** If you have an old version installed, it is best to remove it, although"
14059        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064  echo "*** The test program failed to compile or link. See the file config.log for the"
14065        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14066        echo "*** or that you have moved Vorbis since it was installed."
14067 fi
14068 rm -f conftest.err conftest.$ac_objext \
14069       conftest$ac_exeext conftest.$ac_ext
14070        CFLAGS="$ac_save_CFLAGS"
14071        LIBS="$ac_save_LIBS"
14072      fi
14073      VORBIS_CFLAGS=""
14074      VORBIS_LIBS=""
14075      VORBISFILE_LIBS=""
14076      VORBISENC_LIBS=""
14077
14078       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14079 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14080
14081   fi
14082
14083
14084
14085
14086   rm -f conf.vorbistest
14087
14088
14089   else
14090      echo "$as_me:$LINENO: result: no" >&5
14091 echo "${ECHO_T}no" >&6
14092      if test -f conf.oggtest ; then
14093        :
14094      else
14095        echo "*** Could not run Ogg test program, checking why..."
14096        CFLAGS="$CFLAGS $OGG_CFLAGS"
14097        LIBS="$LIBS $OGG_LIBS"
14098        cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104
14105 #include <stdio.h>
14106 #include <ogg/ogg.h>
14107
14108 int
14109 main ()
14110 {
14111  return 0;
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 rm -f conftest.$ac_objext conftest$ac_exeext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118   (eval $ac_link) 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } &&
14125          { ac_try='test -z "$ac_c_werror_flag"
14126                          || test ! -s conftest.err'
14127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128   (eval $ac_try) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; } &&
14132          { ac_try='test -s conftest$ac_exeext'
14133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134   (eval $ac_try) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }; }; then
14138    echo "*** The test program compiled, but did not run. This usually means"
14139        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14140        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14141        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14142        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14143        echo "*** is required on your system"
14144        echo "***"
14145        echo "*** If you have an old version installed, it is best to remove it, although"
14146        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14147 else
14148   echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14150
14151  echo "*** The test program failed to compile or link. See the file config.log for the"
14152        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14153        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14154        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14155 fi
14156 rm -f conftest.err conftest.$ac_objext \
14157       conftest$ac_exeext conftest.$ac_ext
14158        CFLAGS="$ac_save_CFLAGS"
14159        LIBS="$ac_save_LIBS"
14160      fi
14161      OGG_CFLAGS=""
14162      OGG_LIBS=""
14163
14164     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14165 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14166     have_vorbis=no
14167
14168   fi
14169
14170
14171   rm -f conf.oggtest
14172
14173 else
14174   echo "$as_me:$LINENO: result: no" >&5
14175 echo "${ECHO_T}no" >&6
14176 fi
14177
14178 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14179 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14180 if test "x$au_enable_gogo" = xyes; then
14181   if test "x$CYGNUS" = "xyes"; then
14182     echo "$as_me:$LINENO: result: yes" >&5
14183 echo "${ECHO_T}yes" >&6
14184   else
14185     if test "x$MINGW" = "xyes"; then
14186     echo "$as_me:$LINENO: result: yes" >&5
14187 echo "${ECHO_T}yes" >&6
14188     else
14189       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14190 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14191     fi
14192   fi
14193   have_gogo=yes
14194   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14195   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14196   EXTRALIBS="$EXTRALIBS -lgogo"
14197 else
14198   echo "$as_me:$LINENO: result: no" >&5
14199 echo "${ECHO_T}no" >&6
14200 fi
14201
14202 if test "x$au_enable_none" = xyes; then
14203     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14204     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14205 fi
14206 echo "$as_me:$LINENO: checking default output mode" >&5
14207 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14208 if test "x$DEFAULT_PLAYMODE" = x; then
14209   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14210 fi
14211 case ".$DEFAULT_PLAYMODE" in
14212   .default)  TIMIDITY_OUTPUT_ID=d ;;
14213   .oss)      TIMIDITY_OUTPUT_ID=d ;;
14214   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
14215   .sun)      TIMIDITY_OUTPUT_ID=d ;;
14216   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
14217   .irix)     TIMIDITY_OUTPUT_ID=d ;;
14218   .mme)      TIMIDITY_OUTPUT_ID=d ;;
14219   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
14220   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
14221   .w32)      TIMIDITY_OUTPUT_ID=d ;;
14222   .alib)     TIMIDITY_OUTPUT_ID=A ;;
14223   .nas)      TIMIDITY_OUTPUT_ID=n ;;
14224   .arts)     TIMIDITY_OUTPUT_ID=R ;;
14225   .esd)      TIMIDITY_OUTPUT_ID=e ;;
14226   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
14227   .wav)      TIMIDITY_OUTPUT_ID=w ;;
14228   .au)       TIMIDITY_OUTPUT_ID=u ;;
14229   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
14230   .list)     TIMIDITY_OUTPUT_ID=l ;;
14231   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
14232   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
14233   .jack)     TIMIDITY_OUTPUT_ID=j ;;
14234   *)         TIMIDITY_OUTPUT_ID= ;;
14235 esac
14236 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14237 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14238
14239 #
14240 # Interface Section
14241 #
14242
14243 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14244
14245 # Check whether --enable-interface or --disable-interface was given.
14246 if test "${enable_interface+set}" = set; then
14247   enableval="$enable_interface"
14248    for i in `echo $enableval | sed 's/,/ /g'`; do
14249       eval "enable_$i=yes"
14250     done
14251 fi;
14252
14253 #  Dynamic link configuration
14254 # Check whether --enable-dynamic or --disable-dynamic was given.
14255 if test "${enable_dynamic+set}" = set; then
14256   enableval="$enable_dynamic"
14257        if test "x$enable_dynamic" = xyes; then
14258       enable_dynamic=dynamic
14259     elif test "x$enable_dynamic" != xno; then
14260       for i in `echo $enableval | sed 's/,/ /g'`; do
14261         eval "enable_$i=dynamic"
14262       done
14263     fi
14264 fi;
14265
14266 join_targets=
14267 for i in $interface_targets; do
14268   eval "join_targets=$join_targets\$enable_$i"
14269 done
14270
14271 case ".$join_targets" in
14272 .*dynamic*) NEEDDLOPEN=yes;;
14273 *)          NEEDDLOPEN=no;;
14274 esac
14275
14276 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14277 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14278
14279 if test "$NEEDDLOPEN" = "yes"; then
14280   have_dl=no
14281
14282   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14283 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14284 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 #include <windows.h>
14294
14295
14296 int
14297 main ()
14298 {
14299 LoadLibrary(0);
14300   ;
14301   return 0;
14302 }
14303 _ACEOF
14304 rm -f conftest.$ac_objext conftest$ac_exeext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306   (eval $ac_link) 2>conftest.er1
14307   ac_status=$?
14308   grep -v '^ *+' conftest.er1 >conftest.err
14309   rm -f conftest.er1
14310   cat conftest.err >&5
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); } &&
14313          { ac_try='test -z "$ac_c_werror_flag"
14314                          || test ! -s conftest.err'
14315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316   (eval $ac_try) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest$ac_exeext'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; }; then
14326   wapi_cv_func_LoadLibrary=yes
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 wapi_cv_func_LoadLibrary=no
14332 fi
14333 rm -f conftest.err conftest.$ac_objext \
14334       conftest$ac_exeext conftest.$ac_ext
14335 fi
14336
14337 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14338   echo "$as_me:$LINENO: result: yes" >&5
14339 echo "${ECHO_T}yes" >&6
14340   have_dl=w32
14341 else
14342   echo "$as_me:$LINENO: result: no" >&5
14343 echo "${ECHO_T}no" >&6
14344 fi
14345
14346   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14347
14348   if test "$have_dl" = "no"; then
14349     echo "$as_me:$LINENO: checking for shl_load" >&5
14350 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14351 if test "${ac_cv_func_shl_load+set}" = set; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14362 #define shl_load innocuous_shl_load
14363
14364 /* System header to define __stub macros and hopefully few prototypes,
14365     which can conflict with char shl_load (); below.
14366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14367     <limits.h> exists even on freestanding compilers.  */
14368
14369 #ifdef __STDC__
14370 # include <limits.h>
14371 #else
14372 # include <assert.h>
14373 #endif
14374
14375 #undef shl_load
14376
14377 /* Override any gcc2 internal prototype to avoid an error.  */
14378 #ifdef __cplusplus
14379 extern "C"
14380 {
14381 #endif
14382 /* We use char because int might match the return type of a gcc2
14383    builtin and then its argument prototype would still apply.  */
14384 char shl_load ();
14385 /* The GNU C library defines this for functions which it implements
14386     to always fail with ENOSYS.  Some functions are actually named
14387     something starting with __ and the normal name is an alias.  */
14388 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14389 choke me
14390 #else
14391 char (*f) () = shl_load;
14392 #endif
14393 #ifdef __cplusplus
14394 }
14395 #endif
14396
14397 int
14398 main ()
14399 {
14400 return f != shl_load;
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407   (eval $ac_link) 2>conftest.er1
14408   ac_status=$?
14409   grep -v '^ *+' conftest.er1 >conftest.err
14410   rm -f conftest.er1
14411   cat conftest.err >&5
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } &&
14414          { ac_try='test -z "$ac_c_werror_flag"
14415                          || test ! -s conftest.err'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; } &&
14421          { ac_try='test -s conftest$ac_exeext'
14422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423   (eval $ac_try) 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); }; }; then
14427   ac_cv_func_shl_load=yes
14428 else
14429   echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432 ac_cv_func_shl_load=no
14433 fi
14434 rm -f conftest.err conftest.$ac_objext \
14435       conftest$ac_exeext conftest.$ac_ext
14436 fi
14437 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14438 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14439 if test $ac_cv_func_shl_load = yes; then
14440   have_dl=hpux
14441 fi
14442
14443   fi
14444   if test "$have_dl" = "no"; then
14445             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14446 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14447 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14458 #define NSLinkModule innocuous_NSLinkModule
14459
14460 /* System header to define __stub macros and hopefully few prototypes,
14461     which can conflict with char NSLinkModule (); below.
14462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463     <limits.h> exists even on freestanding compilers.  */
14464
14465 #ifdef __STDC__
14466 # include <limits.h>
14467 #else
14468 # include <assert.h>
14469 #endif
14470
14471 #undef NSLinkModule
14472
14473 /* Override any gcc2 internal prototype to avoid an error.  */
14474 #ifdef __cplusplus
14475 extern "C"
14476 {
14477 #endif
14478 /* We use char because int might match the return type of a gcc2
14479    builtin and then its argument prototype would still apply.  */
14480 char NSLinkModule ();
14481 /* The GNU C library defines this for functions which it implements
14482     to always fail with ENOSYS.  Some functions are actually named
14483     something starting with __ and the normal name is an alias.  */
14484 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14485 choke me
14486 #else
14487 char (*f) () = NSLinkModule;
14488 #endif
14489 #ifdef __cplusplus
14490 }
14491 #endif
14492
14493 int
14494 main ()
14495 {
14496 return f != NSLinkModule;
14497   ;
14498   return 0;
14499 }
14500 _ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14503   (eval $ac_link) 2>conftest.er1
14504   ac_status=$?
14505   grep -v '^ *+' conftest.er1 >conftest.err
14506   rm -f conftest.er1
14507   cat conftest.err >&5
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); } &&
14510          { ac_try='test -z "$ac_c_werror_flag"
14511                          || test ! -s conftest.err'
14512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513   (eval $ac_try) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); }; } &&
14517          { ac_try='test -s conftest$ac_exeext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_cv_func_NSLinkModule=yes
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_cv_func_NSLinkModule=no
14529 fi
14530 rm -f conftest.err conftest.$ac_objext \
14531       conftest$ac_exeext conftest.$ac_ext
14532 fi
14533 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14534 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14535 if test $ac_cv_func_NSLinkModule = yes; then
14536   have_dl=dyld
14537 fi
14538
14539   fi
14540   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14541     have_dl=dlopen
14542   fi
14543   if test "$have_dl" = "no"; then
14544     echo "$as_me:$LINENO: checking for dlopen" >&5
14545 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14546 if test "${ac_cv_func_dlopen+set}" = set; then
14547   echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549   cat >conftest.$ac_ext <<_ACEOF
14550 /* confdefs.h.  */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h.  */
14555 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14557 #define dlopen innocuous_dlopen
14558
14559 /* System header to define __stub macros and hopefully few prototypes,
14560     which can conflict with char dlopen (); below.
14561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14562     <limits.h> exists even on freestanding compilers.  */
14563
14564 #ifdef __STDC__
14565 # include <limits.h>
14566 #else
14567 # include <assert.h>
14568 #endif
14569
14570 #undef dlopen
14571
14572 /* Override any gcc2 internal prototype to avoid an error.  */
14573 #ifdef __cplusplus
14574 extern "C"
14575 {
14576 #endif
14577 /* We use char because int might match the return type of a gcc2
14578    builtin and then its argument prototype would still apply.  */
14579 char dlopen ();
14580 /* The GNU C library defines this for functions which it implements
14581     to always fail with ENOSYS.  Some functions are actually named
14582     something starting with __ and the normal name is an alias.  */
14583 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14584 choke me
14585 #else
14586 char (*f) () = dlopen;
14587 #endif
14588 #ifdef __cplusplus
14589 }
14590 #endif
14591
14592 int
14593 main ()
14594 {
14595 return f != dlopen;
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602   (eval $ac_link) 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } &&
14609          { ac_try='test -z "$ac_c_werror_flag"
14610                          || test ! -s conftest.err'
14611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612   (eval $ac_try) 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; } &&
14616          { ac_try='test -s conftest$ac_exeext'
14617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618   (eval $ac_try) 2>&5
14619   ac_status=$?
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); }; }; then
14622   ac_cv_func_dlopen=yes
14623 else
14624   echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14626
14627 ac_cv_func_dlopen=no
14628 fi
14629 rm -f conftest.err conftest.$ac_objext \
14630       conftest$ac_exeext conftest.$ac_ext
14631 fi
14632 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14633 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14634 if test $ac_cv_func_dlopen = yes; then
14635   have_dl=dlopen
14636 fi
14637
14638   fi
14639   if test "$have_dl" = "no"; then
14640     echo "$as_me:$LINENO: checking for dld_init" >&5
14641 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
14642 if test "${ac_cv_func_dld_init+set}" = set; then
14643   echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645   cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
14652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14653 #define dld_init innocuous_dld_init
14654
14655 /* System header to define __stub macros and hopefully few prototypes,
14656     which can conflict with char dld_init (); below.
14657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658     <limits.h> exists even on freestanding compilers.  */
14659
14660 #ifdef __STDC__
14661 # include <limits.h>
14662 #else
14663 # include <assert.h>
14664 #endif
14665
14666 #undef dld_init
14667
14668 /* Override any gcc2 internal prototype to avoid an error.  */
14669 #ifdef __cplusplus
14670 extern "C"
14671 {
14672 #endif
14673 /* We use char because int might match the return type of a gcc2
14674    builtin and then its argument prototype would still apply.  */
14675 char dld_init ();
14676 /* The GNU C library defines this for functions which it implements
14677     to always fail with ENOSYS.  Some functions are actually named
14678     something starting with __ and the normal name is an alias.  */
14679 #if defined (__stub_dld_init) || defined (__stub___dld_init)
14680 choke me
14681 #else
14682 char (*f) () = dld_init;
14683 #endif
14684 #ifdef __cplusplus
14685 }
14686 #endif
14687
14688 int
14689 main ()
14690 {
14691 return f != dld_init;
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698   (eval $ac_link) 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -z "$ac_c_werror_flag"
14706                          || test ! -s conftest.err'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; } &&
14712          { ac_try='test -s conftest$ac_exeext'
14713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714   (eval $ac_try) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); }; }; then
14718   ac_cv_func_dld_init=yes
14719 else
14720   echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_cv_func_dld_init=no
14724 fi
14725 rm -f conftest.err conftest.$ac_objext \
14726       conftest$ac_exeext conftest.$ac_ext
14727 fi
14728 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
14729 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
14730 if test $ac_cv_func_dld_init = yes; then
14731   have_dl=dld
14732 fi
14733
14734   fi
14735   if test "$have_dl" = "no"; then
14736     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
14737 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
14738 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741   ac_check_lib_save_LIBS=$LIBS
14742 LIBS="-ldld  $LIBS"
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h.  */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h.  */
14749
14750 /* Override any gcc2 internal prototype to avoid an error.  */
14751 #ifdef __cplusplus
14752 extern "C"
14753 #endif
14754 /* We use char because int might match the return type of a gcc2
14755    builtin and then its argument prototype would still apply.  */
14756 char dld_init ();
14757 int
14758 main ()
14759 {
14760 dld_init ();
14761   ;
14762   return 0;
14763 }
14764 _ACEOF
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767   (eval $ac_link) 2>conftest.er1
14768   ac_status=$?
14769   grep -v '^ *+' conftest.er1 >conftest.err
14770   rm -f conftest.er1
14771   cat conftest.err >&5
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -z "$ac_c_werror_flag"
14775                          || test ! -s conftest.err'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; } &&
14781          { ac_try='test -s conftest$ac_exeext'
14782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783   (eval $ac_try) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; }; then
14787   ac_cv_lib_dld_dld_init=yes
14788 else
14789   echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14791
14792 ac_cv_lib_dld_dld_init=no
14793 fi
14794 rm -f conftest.err conftest.$ac_objext \
14795       conftest$ac_exeext conftest.$ac_ext
14796 LIBS=$ac_check_lib_save_LIBS
14797 fi
14798 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
14799 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
14800 if test $ac_cv_lib_dld_dld_init = yes; then
14801   have_dl=dld;lib_dl_opt=-ldld
14802 fi
14803
14804   fi
14805
14806   echo "$as_me:$LINENO: checking dynamic link method" >&5
14807 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
14808   case "$have_dl" in
14809     dlopen)
14810       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
14811 echo "${ECHO_T}use dl_dlopen.c" >&6
14812       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
14813       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
14814 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
14815 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818   case "$ac_cv_header_dlfcn_h" in
14819 yes) i_dlfcn=define;;
14820 *)   i_dlfcn=undef;;
14821 esac
14822 cat > dyna.c <<EOM
14823 fred () { }
14824 EOM
14825
14826 cat > fred.c <<EOM
14827 #include <stdio.h>
14828 #$i_dlfcn I_DLFCN
14829 #ifdef I_DLFCN
14830 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
14831 #else
14832 #include <sys/types.h>
14833 #include <nlist.h>
14834 #include <link.h>
14835 #endif
14836
14837 extern int fred() ;
14838
14839 main()
14840 {
14841     void * handle ;
14842     void * symbol ;
14843 #ifndef RTLD_LAZY
14844     int mode = 1 ;
14845 #else
14846     int mode = RTLD_LAZY ;
14847 #endif
14848     handle = dlopen("./dyna.$so", mode) ;
14849     if (handle == NULL) {
14850         printf ("1\n") ;
14851         fflush (stdout) ;
14852         exit(0);
14853     }
14854     symbol = dlsym(handle, "fred") ;
14855     if (symbol == NULL) {
14856         /* try putting a leading underscore */
14857         symbol = dlsym(handle, "_fred") ;
14858         if (symbol == NULL) {
14859             printf ("2\n") ;
14860             fflush (stdout) ;
14861             exit(0);
14862         }
14863         printf ("3\n") ;
14864     }
14865     else
14866         printf ("4\n") ;
14867     fflush (stdout) ;
14868     exit(0);
14869 }
14870 EOM
14871 : Call the object file tmp-dyna.o in case dlext=o.
14872 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
14873         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
14874         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
14875         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
14876         xxx=`./fred`
14877         case $xxx in
14878         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
14879 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
14880                 ;;
14881         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
14882 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
14883                 ;;
14884         3)      timidity_cv_func_dlsym_underscore=yes
14885                 ;;
14886         4)      timidity_cv_func_dlsym_underscore=no
14887                 ;;
14888         esac
14889 else
14890         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
14891 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
14892 fi
14893 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
14894
14895 fi
14896
14897 case "x$timidity_cv_func_dlsym_underscore" in
14898 xyes)
14899 cat >>confdefs.h <<\_ACEOF
14900 #define DLSYM_NEEDS_UNDERSCORE 1
14901 _ACEOF
14902
14903         echo "$as_me:$LINENO: result: yes" >&5
14904 echo "${ECHO_T}yes" >&6
14905         ;;
14906 xno)
14907         echo "$as_me:$LINENO: result: no" >&5
14908 echo "${ECHO_T}no" >&6
14909         ;;
14910 esac
14911
14912       ;;
14913     dld)
14914       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
14915 echo "${ECHO_T}use dl_dld.c" >&6
14916       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
14917       ;;
14918     hpux)
14919       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
14920 echo "${ECHO_T}use dl_hpux.c" >&6
14921       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
14922       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
14923       ;;
14924     w32)
14925       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
14926 echo "${ECHO_T}use dl_w32.c" >&6
14927       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
14928       ;;
14929     dyld)
14930       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
14931 echo "${ECHO_T}use dl_dyld.c" >&6
14932       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
14933       ;;
14934     *)
14935       NEEDDLOPEN="no"
14936       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
14937 echo "$as_me: WARNING: no method to open a shared object" >&2;}
14938       ;;
14939   esac
14940 fi
14941
14942 if test "$NEEDDLOPEN" = "yes"; then
14943   cat >> confdefs.h <<EOF
14944 #define IA_DYNAMIC 1
14945 EOF
14946
14947
14948 cat >>confdefs.h <<_ACEOF
14949 #define SHARED_LIB_EXT ".$so"
14950 _ACEOF
14951
14952       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
14953 fi
14954
14955
14956
14957 if test "$NEEDDLOPEN" = "yes"; then
14958   NEEDDLOPEN_TRUE=
14959   NEEDDLOPEN_FALSE='#'
14960 else
14961   NEEDDLOPEN_TRUE='#'
14962   NEEDDLOPEN_FALSE=
14963 fi
14964
14965
14966
14967
14968
14969 if false; then
14970   ENABLE_NCURSES_TRUE=
14971   ENABLE_NCURSES_FALSE='#'
14972 else
14973   ENABLE_NCURSES_TRUE='#'
14974   ENABLE_NCURSES_FALSE=
14975 fi
14976
14977 # Check whether --enable-ncurses or --disable-ncurses was given.
14978 if test "${enable_ncurses+set}" = set; then
14979   enableval="$enable_ncurses"
14980   case "x$enable_ncurses" in xyes|xdynamic)
14981
14982
14983 for ac_header in ncurses.h ncurses/curses.h curses.h
14984 do
14985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14987   echo "$as_me:$LINENO: checking for $ac_header" >&5
14988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14990   echo $ECHO_N "(cached) $ECHO_C" >&6
14991 fi
14992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14994 else
14995   # Is the header compilable?
14996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004 $ac_includes_default
15005 #include <$ac_header>
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009   (eval $ac_compile) 2>conftest.er1
15010   ac_status=$?
15011   grep -v '^ *+' conftest.er1 >conftest.err
15012   rm -f conftest.er1
15013   cat conftest.err >&5
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } &&
15016          { ac_try='test -z "$ac_c_werror_flag"
15017                          || test ! -s conftest.err'
15018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019   (eval $ac_try) 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; } &&
15023          { ac_try='test -s conftest.$ac_objext'
15024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025   (eval $ac_try) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); }; }; then
15029   ac_header_compiler=yes
15030 else
15031   echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15033
15034 ac_header_compiler=no
15035 fi
15036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15038 echo "${ECHO_T}$ac_header_compiler" >&6
15039
15040 # Is the header present?
15041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h.  */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h.  */
15049 #include <$ac_header>
15050 _ACEOF
15051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15053   ac_status=$?
15054   grep -v '^ *+' conftest.er1 >conftest.err
15055   rm -f conftest.er1
15056   cat conftest.err >&5
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } >/dev/null; then
15059   if test -s conftest.err; then
15060     ac_cpp_err=$ac_c_preproc_warn_flag
15061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15062   else
15063     ac_cpp_err=
15064   fi
15065 else
15066   ac_cpp_err=yes
15067 fi
15068 if test -z "$ac_cpp_err"; then
15069   ac_header_preproc=yes
15070 else
15071   echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15073
15074   ac_header_preproc=no
15075 fi
15076 rm -f conftest.err conftest.$ac_ext
15077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15078 echo "${ECHO_T}$ac_header_preproc" >&6
15079
15080 # So?  What about this header?
15081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15082   yes:no: )
15083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15087     ac_header_preproc=yes
15088     ;;
15089   no:yes:* )
15090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15102     (
15103       cat <<\_ASBOX
15104 ## ------------------------------- ##
15105 ## Report this to root@mput.dip.jp ##
15106 ## ------------------------------- ##
15107 _ASBOX
15108     ) |
15109       sed "s/^/$as_me: WARNING:     /" >&2
15110     ;;
15111 esac
15112 echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117   eval "$as_ac_Header=\$ac_header_preproc"
15118 fi
15119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15121
15122 fi
15123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15124   cat >>confdefs.h <<_ACEOF
15125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15126 _ACEOF
15127
15128 fi
15129
15130 done
15131
15132
15133
15134   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15135     *yes*);;
15136     *)  for i in /usr/include /usr/local/include; do
15137           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15138             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15139 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15140             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15141             break
15142           fi
15143         done
15144         ;;
15145     esac
15146
15147     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15148 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15149 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15150   echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152   ac_check_lib_save_LIBS=$LIBS
15153 LIBS="-lncurses  $LIBS"
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160
15161 /* Override any gcc2 internal prototype to avoid an error.  */
15162 #ifdef __cplusplus
15163 extern "C"
15164 #endif
15165 /* We use char because int might match the return type of a gcc2
15166    builtin and then its argument prototype would still apply.  */
15167 char initscr ();
15168 int
15169 main ()
15170 {
15171 initscr ();
15172   ;
15173   return 0;
15174 }
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178   (eval $ac_link) 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_c_werror_flag"
15186                          || test ! -s conftest.err'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; } &&
15192          { ac_try='test -s conftest$ac_exeext'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_cv_lib_ncurses_initscr=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 ac_cv_lib_ncurses_initscr=no
15204 fi
15205 rm -f conftest.err conftest.$ac_objext \
15206       conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15208 fi
15209 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15210 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15211 if test $ac_cv_lib_ncurses_initscr = yes; then
15212   lib_curses_opt=-lncurses
15213 else
15214         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15215 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15216 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   ac_check_lib_save_LIBS=$LIBS
15220 LIBS="-lcurses $lib_user32_test $LIBS"
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h.  */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h.  */
15227
15228 /* Override any gcc2 internal prototype to avoid an error.  */
15229 #ifdef __cplusplus
15230 extern "C"
15231 #endif
15232 /* We use char because int might match the return type of a gcc2
15233    builtin and then its argument prototype would still apply.  */
15234 char PDC_set_ctrl_break ();
15235 int
15236 main ()
15237 {
15238 PDC_set_ctrl_break ();
15239   ;
15240   return 0;
15241 }
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15245   (eval $ac_link) 2>conftest.er1
15246   ac_status=$?
15247   grep -v '^ *+' conftest.er1 >conftest.err
15248   rm -f conftest.er1
15249   cat conftest.err >&5
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); } &&
15252          { ac_try='test -z "$ac_c_werror_flag"
15253                          || test ! -s conftest.err'
15254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255   (eval $ac_try) 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; } &&
15259          { ac_try='test -s conftest$ac_exeext'
15260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261   (eval $ac_try) 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }; }; then
15265   ac_cv_lib_curses_PDC_set_ctrl_break=yes
15266 else
15267   echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15269
15270 ac_cv_lib_curses_PDC_set_ctrl_break=no
15271 fi
15272 rm -f conftest.err conftest.$ac_objext \
15273       conftest$ac_exeext conftest.$ac_ext
15274 LIBS=$ac_check_lib_save_LIBS
15275 fi
15276 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15277 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15278 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15279    lib_curses_opt=-lcurses
15280
15281 cat >>confdefs.h <<\_ACEOF
15282 #define USE_PDCURSES 1
15283 _ACEOF
15284
15285             lib_user32_opt="$lib_user32_test"
15286
15287 else
15288             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15289 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15290 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15291   echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293   ac_check_lib_save_LIBS=$LIBS
15294 LIBS="-lpdcurses  $LIBS"
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301
15302 /* Override any gcc2 internal prototype to avoid an error.  */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 /* We use char because int might match the return type of a gcc2
15307    builtin and then its argument prototype would still apply.  */
15308 char PDC_set_ctrl_break ();
15309 int
15310 main ()
15311 {
15312 PDC_set_ctrl_break ();
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319   (eval $ac_link) 2>conftest.er1
15320   ac_status=$?
15321   grep -v '^ *+' conftest.er1 >conftest.err
15322   rm -f conftest.er1
15323   cat conftest.err >&5
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); } &&
15326          { ac_try='test -z "$ac_c_werror_flag"
15327                          || test ! -s conftest.err'
15328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329   (eval $ac_try) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; } &&
15333          { ac_try='test -s conftest$ac_exeext'
15334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335   (eval $ac_try) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15345 fi
15346 rm -f conftest.err conftest.$ac_objext \
15347       conftest$ac_exeext conftest.$ac_ext
15348 LIBS=$ac_check_lib_save_LIBS
15349 fi
15350 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15351 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15352 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15353    lib_curses_opt=-lpdcurses
15354
15355 cat >>confdefs.h <<\_ACEOF
15356 #define USE_PDCURSES 1
15357 _ACEOF
15358
15359               lib_user32_opt="$lib_user32_test"
15360
15361 else
15362               case "$target" in
15363                 *openbsd*)
15364                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15365 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15366 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15367   echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369   ac_check_lib_save_LIBS=$LIBS
15370 LIBS="-lcurses  $LIBS"
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377
15378 /* Override any gcc2 internal prototype to avoid an error.  */
15379 #ifdef __cplusplus
15380 extern "C"
15381 #endif
15382 /* We use char because int might match the return type of a gcc2
15383    builtin and then its argument prototype would still apply.  */
15384 char initscr ();
15385 int
15386 main ()
15387 {
15388 initscr ();
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 rm -f conftest.$ac_objext conftest$ac_exeext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15395   (eval $ac_link) 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } &&
15402          { ac_try='test -z "$ac_c_werror_flag"
15403                          || test ! -s conftest.err'
15404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405   (eval $ac_try) 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; } &&
15409          { ac_try='test -s conftest$ac_exeext'
15410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411   (eval $ac_try) 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; }; then
15415   ac_cv_lib_curses_initscr=yes
15416 else
15417   echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_cv_lib_curses_initscr=no
15421 fi
15422 rm -f conftest.err conftest.$ac_objext \
15423       conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15425 fi
15426 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15427 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15428 if test $ac_cv_lib_curses_initscr = yes; then
15429   lib_curses_opt=-lcurses
15430 else
15431    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15432 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15433                       enable_ncurses=no
15434 fi
15435
15436                   ;;
15437                 *)
15438                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15439 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15440                   enable_ncurses=no
15441                   ;;
15442               esac
15443
15444 fi
15445
15446
15447 fi
15448
15449
15450 fi
15451
15452    ;; esac
15453 fi;
15454 case "x$enable_ncurses" in
15455 xyes)
15456   cat >> confdefs.h <<EOF
15457 #define IA_NCURSES 1
15458 EOF
15459
15460
15461
15462 if true; then
15463   ENABLE_NCURSES_TRUE=
15464   ENABLE_NCURSES_FALSE='#'
15465 else
15466   ENABLE_NCURSES_TRUE='#'
15467   ENABLE_NCURSES_FALSE=
15468 fi
15469
15470    LIBS="$LIBS $lib_curses_opt"
15471     case "$target" in
15472        *-*-freebsd123*)
15473          EXTRALIBS="$EXTRALIBS -lmytinfo"
15474          ;;
15475      esac
15476     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15477
15478   ;;
15479 xdynamic)
15480   dynamic_targets="$dynamic_targets interface_n.\$(so)"
15481    n_so_libs="$lib_curses_opt"
15482     case "$target" in
15483        *-*-freebsd123*)
15484          EXTRALIBS="$EXTRALIBS -lmytinfo"
15485          ;;
15486      esac
15487   ;;
15488 *)
15489
15490   ;;
15491 esac
15492
15493
15494
15495
15496
15497 if false; then
15498   ENABLE_SLANG_TRUE=
15499   ENABLE_SLANG_FALSE='#'
15500 else
15501   ENABLE_SLANG_TRUE='#'
15502   ENABLE_SLANG_FALSE=
15503 fi
15504
15505 # Check whether --enable-slang or --disable-slang was given.
15506 if test "${enable_slang+set}" = set; then
15507   enableval="$enable_slang"
15508   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15509 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15510 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15511   echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513   ac_check_lib_save_LIBS=$LIBS
15514 LIBS="-lslang  $LIBS"
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h.  */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h.  */
15521
15522 /* Override any gcc2 internal prototype to avoid an error.  */
15523 #ifdef __cplusplus
15524 extern "C"
15525 #endif
15526 /* We use char because int might match the return type of a gcc2
15527    builtin and then its argument prototype would still apply.  */
15528 char SLang_init_tty ();
15529 int
15530 main ()
15531 {
15532 SLang_init_tty ();
15533   ;
15534   return 0;
15535 }
15536 _ACEOF
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539   (eval $ac_link) 2>conftest.er1
15540   ac_status=$?
15541   grep -v '^ *+' conftest.er1 >conftest.err
15542   rm -f conftest.er1
15543   cat conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } &&
15546          { ac_try='test -z "$ac_c_werror_flag"
15547                          || test ! -s conftest.err'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; } &&
15553          { ac_try='test -s conftest$ac_exeext'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }; then
15559   ac_cv_lib_slang_SLang_init_tty=yes
15560 else
15561   echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564 ac_cv_lib_slang_SLang_init_tty=no
15565 fi
15566 rm -f conftest.err conftest.$ac_objext \
15567       conftest$ac_exeext conftest.$ac_ext
15568 LIBS=$ac_check_lib_save_LIBS
15569 fi
15570 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15571 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15572 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15573   :
15574 else
15575    enable_slang=no
15576       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15577 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15578
15579 fi
15580
15581
15582
15583 for ac_header in slang/slang.h slang.h
15584 do
15585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587   echo "$as_me:$LINENO: checking for $ac_header" >&5
15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15590   echo $ECHO_N "(cached) $ECHO_C" >&6
15591 fi
15592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15594 else
15595   # Is the header compilable?
15596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 $ac_includes_default
15605 #include <$ac_header>
15606 _ACEOF
15607 rm -f conftest.$ac_objext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15609   (eval $ac_compile) 2>conftest.er1
15610   ac_status=$?
15611   grep -v '^ *+' conftest.er1 >conftest.err
15612   rm -f conftest.er1
15613   cat conftest.err >&5
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } &&
15616          { ac_try='test -z "$ac_c_werror_flag"
15617                          || test ! -s conftest.err'
15618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619   (eval $ac_try) 2>&5
15620   ac_status=$?
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); }; } &&
15623          { ac_try='test -s conftest.$ac_objext'
15624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625   (eval $ac_try) 2>&5
15626   ac_status=$?
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); }; }; then
15629   ac_header_compiler=yes
15630 else
15631   echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634 ac_header_compiler=no
15635 fi
15636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15638 echo "${ECHO_T}$ac_header_compiler" >&6
15639
15640 # Is the header present?
15641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15643 cat >conftest.$ac_ext <<_ACEOF
15644 /* confdefs.h.  */
15645 _ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h.  */
15649 #include <$ac_header>
15650 _ACEOF
15651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15653   ac_status=$?
15654   grep -v '^ *+' conftest.er1 >conftest.err
15655   rm -f conftest.er1
15656   cat conftest.err >&5
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } >/dev/null; then
15659   if test -s conftest.err; then
15660     ac_cpp_err=$ac_c_preproc_warn_flag
15661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15662   else
15663     ac_cpp_err=
15664   fi
15665 else
15666   ac_cpp_err=yes
15667 fi
15668 if test -z "$ac_cpp_err"; then
15669   ac_header_preproc=yes
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674   ac_header_preproc=no
15675 fi
15676 rm -f conftest.err conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15678 echo "${ECHO_T}$ac_header_preproc" >&6
15679
15680 # So?  What about this header?
15681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15682   yes:no: )
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15687     ac_header_preproc=yes
15688     ;;
15689   no:yes:* )
15690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15702     (
15703       cat <<\_ASBOX
15704 ## ------------------------------- ##
15705 ## Report this to root@mput.dip.jp ##
15706 ## ------------------------------- ##
15707 _ASBOX
15708     ) |
15709       sed "s/^/$as_me: WARNING:     /" >&2
15710     ;;
15711 esac
15712 echo "$as_me:$LINENO: checking for $ac_header" >&5
15713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15715   echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717   eval "$as_ac_Header=\$ac_header_preproc"
15718 fi
15719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15721
15722 fi
15723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15724   cat >>confdefs.h <<_ACEOF
15725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15726 _ACEOF
15727
15728 fi
15729
15730 done
15731
15732    ;; esac
15733 fi;
15734 case "x$enable_slang" in
15735 xyes)
15736   cat >> confdefs.h <<EOF
15737 #define IA_SLANG 1
15738 EOF
15739
15740
15741
15742 if true; then
15743   ENABLE_SLANG_TRUE=
15744   ENABLE_SLANG_FALSE='#'
15745 else
15746   ENABLE_SLANG_TRUE='#'
15747   ENABLE_SLANG_FALSE=
15748 fi
15749
15750    LIBS="$LIBS -lslang"
15751     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
15752
15753   ;;
15754 xdynamic)
15755   dynamic_targets="$dynamic_targets interface_s.\$(so)"
15756    s_so_libs="-lslang"
15757     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
15758 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
15759 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   ac_check_lib_save_LIBS=$LIBS
15763 LIBS="-ltermcap  $LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h.  */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h.  */
15770
15771 /* Override any gcc2 internal prototype to avoid an error.  */
15772 #ifdef __cplusplus
15773 extern "C"
15774 #endif
15775 /* We use char because int might match the return type of a gcc2
15776    builtin and then its argument prototype would still apply.  */
15777 char initscr ();
15778 int
15779 main ()
15780 {
15781 initscr ();
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788   (eval $ac_link) 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag"
15796                          || test ! -s conftest.err'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; } &&
15802          { ac_try='test -s conftest$ac_exeext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808   ac_cv_lib_termcap_initscr=yes
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_cv_lib_termcap_initscr=no
15814 fi
15815 rm -f conftest.err conftest.$ac_objext \
15816       conftest$ac_exeext conftest.$ac_ext
15817 LIBS=$ac_check_lib_save_LIBS
15818 fi
15819 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
15820 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
15821 if test $ac_cv_lib_termcap_initscr = yes; then
15822   s_so_libs="$s_so_libs -ltermcap"
15823 fi
15824
15825
15826   ;;
15827 *)
15828
15829   ;;
15830 esac
15831
15832
15833
15834
15835
15836 if false; then
15837   ENABLE_MOTIF_TRUE=
15838   ENABLE_MOTIF_FALSE='#'
15839 else
15840   ENABLE_MOTIF_TRUE='#'
15841   ENABLE_MOTIF_FALSE=
15842 fi
15843
15844 # Check whether --enable-motif or --disable-motif was given.
15845 if test "${enable_motif+set}" = set; then
15846   enableval="$enable_motif"
15847   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15848         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
15849 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
15850    { (exit 1); exit 1; }; }
15851     fi
15852     if test "x$have_xm" != xyes; then
15853       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
15854 echo "$as_me: WARNING: Motif library is not found." >&2;}
15855       enable_motif=no
15856     fi
15857    ;; esac
15858 fi;
15859 case "x$enable_motif" in
15860 xyes)
15861   cat >> confdefs.h <<EOF
15862 #define IA_MOTIF 1
15863 EOF
15864
15865
15866
15867 if true; then
15868   ENABLE_MOTIF_TRUE=
15869   ENABLE_MOTIF_FALSE='#'
15870 else
15871   ENABLE_MOTIF_TRUE='#'
15872   ENABLE_MOTIF_FALSE=
15873 fi
15874
15875    lib_xm_opt=-lXm
15876     lib_xt_opt=-lXt
15877     lib_xext_opt=-lXext
15878     if test "x$have_xprelibs" = xyes; then
15879         lib_xprelibs_opt='-lSM -lICE'
15880     fi
15881     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
15882
15883   ;;
15884 xdynamic)
15885   dynamic_targets="$dynamic_targets interface_m.\$(so)"
15886    if test x$have_xprelibs = xyes; then
15887       m_so_libs="-lXext -lSM -lICE"
15888     fi
15889     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
15890
15891   ;;
15892 *)
15893
15894   ;;
15895 esac
15896
15897
15898
15899
15900
15901 if false; then
15902   ENABLE_TCLTK_TRUE=
15903   ENABLE_TCLTK_FALSE='#'
15904 else
15905   ENABLE_TCLTK_TRUE='#'
15906   ENABLE_TCLTK_FALSE=
15907 fi
15908
15909 # Check whether --enable-tcltk or --disable-tcltk was given.
15910 if test "${enable_tcltk+set}" = set; then
15911   enableval="$enable_tcltk"
15912   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15913         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
15914 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
15915    { (exit 1); exit 1; }; }
15916     fi
15917
15918         KEEPCPPFLAGS=$CPPFLAGS
15919     KEEPLDFLAGS=$LDFLAGS
15920     KEEPLIBS=$LIBS
15921
15922     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
15923     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
15924     LIBS="$LIBS $lib_dl_opt"
15925
15926     tcl_lib=
15927     tk_lib=
15928     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
15929       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
15930 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
15931 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
15932 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   ac_check_lib_save_LIBS=$LIBS
15936 LIBS="-l$l  $LIBS"
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943
15944 /* Override any gcc2 internal prototype to avoid an error.  */
15945 #ifdef __cplusplus
15946 extern "C"
15947 #endif
15948 /* We use char because int might match the return type of a gcc2
15949    builtin and then its argument prototype would still apply.  */
15950 char Tcl_Init ();
15951 int
15952 main ()
15953 {
15954 Tcl_Init ();
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15961   (eval $ac_link) 2>conftest.er1
15962   ac_status=$?
15963   grep -v '^ *+' conftest.er1 >conftest.err
15964   rm -f conftest.er1
15965   cat conftest.err >&5
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -z "$ac_c_werror_flag"
15969                          || test ! -s conftest.err'
15970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971   (eval $ac_try) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; } &&
15975          { ac_try='test -s conftest$ac_exeext'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981   eval "$as_ac_Lib=yes"
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 eval "$as_ac_Lib=no"
15987 fi
15988 rm -f conftest.err conftest.$ac_objext \
15989       conftest$ac_exeext conftest.$ac_ext
15990 LIBS=$ac_check_lib_save_LIBS
15991 fi
15992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15993 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15994 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15995   tcl_lib=-l$l
15996 fi
15997 ;; esac
15998     done
15999     LIBS="$LIBS $tcl_lib"
16000     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16001       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16002 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16003 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16004 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16005   echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007   ac_check_lib_save_LIBS=$LIBS
16008 LIBS="-l$l  $LIBS"
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015
16016 /* Override any gcc2 internal prototype to avoid an error.  */
16017 #ifdef __cplusplus
16018 extern "C"
16019 #endif
16020 /* We use char because int might match the return type of a gcc2
16021    builtin and then its argument prototype would still apply.  */
16022 char Tk_Init ();
16023 int
16024 main ()
16025 {
16026 Tk_Init ();
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 rm -f conftest.$ac_objext conftest$ac_exeext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16033   (eval $ac_link) 2>conftest.er1
16034   ac_status=$?
16035   grep -v '^ *+' conftest.er1 >conftest.err
16036   rm -f conftest.er1
16037   cat conftest.err >&5
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } &&
16040          { ac_try='test -z "$ac_c_werror_flag"
16041                          || test ! -s conftest.err'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; } &&
16047          { ac_try='test -s conftest$ac_exeext'
16048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049   (eval $ac_try) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); }; }; then
16053   eval "$as_ac_Lib=yes"
16054 else
16055   echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16057
16058 eval "$as_ac_Lib=no"
16059 fi
16060 rm -f conftest.err conftest.$ac_objext \
16061       conftest$ac_exeext conftest.$ac_ext
16062 LIBS=$ac_check_lib_save_LIBS
16063 fi
16064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16065 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16066 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16067   tk_lib=-l$l
16068 fi
16069 ;; esac
16070     done
16071
16072     LIBS=$KEEPLIBS
16073     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16074       CPPFLAGS=$KEEPCPPFLAGS
16075       LDFLAGS=$KEEPLDFLAGS
16076       enable_tcltk=no
16077       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16078 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16079     else
16080       tcltk_dep='tclIndex'
16081     fi
16082    ;; esac
16083 fi;
16084 case "x$enable_tcltk" in
16085 xyes)
16086   cat >> confdefs.h <<EOF
16087 #define IA_TCLTK 1
16088 EOF
16089
16090
16091
16092 if true; then
16093   ENABLE_TCLTK_TRUE=
16094   ENABLE_TCLTK_FALSE='#'
16095 else
16096   ENABLE_TCLTK_TRUE='#'
16097   ENABLE_TCLTK_FALSE=
16098 fi
16099
16100    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16101     case "$target" in
16102       *-*-bsdi*)
16103         EXTRALIBS="$EXTRALIBS -lipc"
16104         ;;
16105     esac
16106     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16107
16108   ;;
16109 xdynamic)
16110   dynamic_targets="$dynamic_targets interface_k.\$(so)"
16111    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16112     case "$target" in
16113       *-*-bsdi*)
16114         k_so_libs="$k_so_libs -lipc"
16115         ;;
16116     esac
16117     k_so_libs="$k_so_libs -lX11 -lm"
16118
16119   ;;
16120 *)
16121
16122   ;;
16123 esac
16124
16125
16126
16127
16128 if test "x$enable_tcltk" = "xdynamic"; then
16129   ENABLE_DYNAMIC_TCLTK_TRUE=
16130   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16131 else
16132   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16133   ENABLE_DYNAMIC_TCLTK_FALSE=
16134 fi
16135
16136
16137
16138
16139 if false; then
16140   ENABLE_EMACS_TRUE=
16141   ENABLE_EMACS_FALSE='#'
16142 else
16143   ENABLE_EMACS_TRUE='#'
16144   ENABLE_EMACS_FALSE=
16145 fi
16146
16147 # Check whether --enable-emacs or --disable-emacs was given.
16148 if test "${enable_emacs+set}" = set; then
16149   enableval="$enable_emacs"
16150   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16151 fi;
16152 case "x$enable_emacs" in
16153 xyes)
16154   cat >> confdefs.h <<EOF
16155 #define IA_EMACS 1
16156 EOF
16157
16158
16159
16160 if true; then
16161   ENABLE_EMACS_TRUE=
16162   ENABLE_EMACS_FALSE='#'
16163 else
16164   ENABLE_EMACS_TRUE='#'
16165   ENABLE_EMACS_FALSE=
16166 fi
16167
16168    ELFILES="$ELFILES timidity.el"
16169     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16170
16171   ;;
16172 xdynamic)
16173   dynamic_targets="$dynamic_targets interface_e.\$(so)"
16174    ELFILES="$ELFILES timidity.el"
16175   ;;
16176 *)
16177
16178   ;;
16179 esac
16180
16181
16182
16183
16184
16185 if false; then
16186   ENABLE_VT100_TRUE=
16187   ENABLE_VT100_FALSE='#'
16188 else
16189   ENABLE_VT100_TRUE='#'
16190   ENABLE_VT100_FALSE=
16191 fi
16192
16193 # Check whether --enable-vt100 or --disable-vt100 was given.
16194 if test "${enable_vt100+set}" = set; then
16195   enableval="$enable_vt100"
16196   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
16197 fi;
16198 case "x$enable_vt100" in
16199 xyes)
16200   cat >> confdefs.h <<EOF
16201 #define IA_VT100 1
16202 EOF
16203
16204
16205
16206 if true; then
16207   ENABLE_VT100_TRUE=
16208   ENABLE_VT100_FALSE='#'
16209 else
16210   ENABLE_VT100_TRUE='#'
16211   ENABLE_VT100_FALSE=
16212 fi
16213
16214    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16215   ;;
16216 xdynamic)
16217   dynamic_targets="$dynamic_targets interface_T.\$(so)"
16218
16219   ;;
16220 *)
16221
16222   ;;
16223 esac
16224
16225
16226
16227
16228
16229 if false; then
16230   ENABLE_XAW_TRUE=
16231   ENABLE_XAW_FALSE='#'
16232 else
16233   ENABLE_XAW_TRUE='#'
16234   ENABLE_XAW_FALSE=
16235 fi
16236
16237 # Check whether --enable-xaw or --disable-xaw was given.
16238 if test "${enable_xaw+set}" = set; then
16239   enableval="$enable_xaw"
16240   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16241         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16242 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16243    { (exit 1); exit 1; }; }
16244     fi
16245     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16246       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16247 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16248       enable_xaw=no
16249     fi  ;; esac
16250 fi;
16251 case "x$enable_xaw" in
16252 xyes)
16253   cat >> confdefs.h <<EOF
16254 #define IA_XAW 1
16255 EOF
16256
16257
16258
16259 if true; then
16260   ENABLE_XAW_TRUE=
16261   ENABLE_XAW_FALSE='#'
16262 else
16263   ENABLE_XAW_TRUE='#'
16264   ENABLE_XAW_FALSE=
16265 fi
16266
16267        if test "x$have_xext" = xyes; then
16268       lib_xext_opt=-lXext
16269     fi
16270     if test "x$have_xprelibs" = xyes; then
16271       lib_xprelibs_opt='-lSM -lICE'
16272     fi
16273     lib_xmu_opt=-lXmu
16274     lib_xt_opt=-lXt
16275     if test "x$have_xaw" = x3d; then
16276
16277 cat >>confdefs.h <<\_ACEOF
16278 #define XAW3D 1
16279 _ACEOF
16280
16281       lib_xaw_opt=-lXaw3d
16282     else
16283       lib_xaw_opt=-lXaw
16284     fi
16285     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16286
16287   ;;
16288 xdynamic)
16289   dynamic_targets="$dynamic_targets interface_a.\$(so)"
16290    if test "x$have_xext" = xyes; then
16291       a_so_libs="-lXext -lX11"
16292     else
16293       a_so_libs="-lX11"
16294     fi
16295     case "$target" in
16296       *darwin*)
16297         a_so_libs="$a_so_libs -lcc_dynamic"
16298         ;;
16299     esac
16300     if test "x$have_xprelibs" = xyes; then
16301       a_so_libs="-lSM -lICE $a_so_libs"
16302     fi
16303     if test "x$have_xaw" = xyes; then
16304       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16305     elif test "x$have_xaw" = x3d; then
16306
16307 cat >>confdefs.h <<\_ACEOF
16308 #define XAW3D 1
16309 _ACEOF
16310
16311       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16312     fi
16313     a_so_libs="$ldflags_x_opt $a_so_libs"
16314
16315   ;;
16316 *)
16317
16318   ;;
16319 esac
16320
16321
16322
16323
16324 if test "x$enable_xaw" = "xdynamic"; then
16325   ENABLE_DYNAMIC_XAW_TRUE=
16326   ENABLE_DYNAMIC_XAW_FALSE='#'
16327 else
16328   ENABLE_DYNAMIC_XAW_TRUE='#'
16329   ENABLE_DYNAMIC_XAW_FALSE=
16330 fi
16331
16332
16333
16334
16335 if false; then
16336   ENABLE_XSKIN_TRUE=
16337   ENABLE_XSKIN_FALSE='#'
16338 else
16339   ENABLE_XSKIN_TRUE='#'
16340   ENABLE_XSKIN_FALSE=
16341 fi
16342
16343 # Check whether --enable-xskin or --disable-xskin was given.
16344 if test "${enable_xskin+set}" = set; then
16345   enableval="$enable_xskin"
16346   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16347         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16348 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16349    { (exit 1); exit 1; }; }
16350     fi
16351    ;; esac
16352 fi;
16353 case "x$enable_xskin" in
16354 xyes)
16355   cat >> confdefs.h <<EOF
16356 #define IA_XSKIN 1
16357 EOF
16358
16359
16360
16361 if true; then
16362   ENABLE_XSKIN_TRUE=
16363   ENABLE_XSKIN_FALSE='#'
16364 else
16365   ENABLE_XSKIN_TRUE='#'
16366   ENABLE_XSKIN_FALSE=
16367 fi
16368
16369    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16370   ;;
16371 xdynamic)
16372   dynamic_targets="$dynamic_targets interface_i.\$(so)"
16373    i_so_libs="$ldflags_x_opt -lX11"
16374   ;;
16375 *)
16376
16377   ;;
16378 esac
16379
16380
16381
16382
16383
16384 if false; then
16385   ENABLE_GTK_TRUE=
16386   ENABLE_GTK_FALSE='#'
16387 else
16388   ENABLE_GTK_TRUE='#'
16389   ENABLE_GTK_FALSE=
16390 fi
16391
16392 # Check whether --enable-gtk or --disable-gtk was given.
16393 if test "${enable_gtk+set}" = set; then
16394   enableval="$enable_gtk"
16395   case "x$enable_gtk" in xyes|xdynamic)
16396 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16397 if test "${with_gtk_prefix+set}" = set; then
16398   withval="$with_gtk_prefix"
16399   gtk_config_prefix="$withval"
16400 else
16401   gtk_config_prefix=""
16402 fi;
16403
16404 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16405 if test "${with_gtk_exec_prefix+set}" = set; then
16406   withval="$with_gtk_exec_prefix"
16407   gtk_config_exec_prefix="$withval"
16408 else
16409   gtk_config_exec_prefix=""
16410 fi;
16411 # Check whether --enable-gtktest or --disable-gtktest was given.
16412 if test "${enable_gtktest+set}" = set; then
16413   enableval="$enable_gtktest"
16414
16415 else
16416   enable_gtktest=yes
16417 fi;
16418
16419   for module in .
16420   do
16421       case "$module" in
16422          gthread)
16423              gtk_config_args="$gtk_config_args gthread"
16424          ;;
16425       esac
16426   done
16427
16428   if test x$gtk_config_exec_prefix != x ; then
16429      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16430      if test x${GTK_CONFIG+set} != xset ; then
16431         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16432      fi
16433   fi
16434   if test x$gtk_config_prefix != x ; then
16435      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16436      if test x${GTK_CONFIG+set} != xset ; then
16437         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16438      fi
16439   fi
16440
16441   # Extract the first word of "gtk-config", so it can be a program name with args.
16442 set dummy gtk-config; ac_word=$2
16443 echo "$as_me:$LINENO: checking for $ac_word" >&5
16444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16445 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   case $GTK_CONFIG in
16449   [\\/]* | ?:[\\/]*)
16450   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16451   ;;
16452   *)
16453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16454 for as_dir in $PATH
16455 do
16456   IFS=$as_save_IFS
16457   test -z "$as_dir" && as_dir=.
16458   for ac_exec_ext in '' $ac_executable_extensions; do
16459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16460     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16462     break 2
16463   fi
16464 done
16465 done
16466
16467   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16468   ;;
16469 esac
16470 fi
16471 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16472
16473 if test -n "$GTK_CONFIG"; then
16474   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16475 echo "${ECHO_T}$GTK_CONFIG" >&6
16476 else
16477   echo "$as_me:$LINENO: result: no" >&5
16478 echo "${ECHO_T}no" >&6
16479 fi
16480
16481   min_gtk_version=1.1.3
16482   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16483 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16484   no_gtk=""
16485   if test "$GTK_CONFIG" = "no" ; then
16486     no_gtk=yes
16487   else
16488     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16489     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16490     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16491            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16492     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16493            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16494     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16495            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16496     if test "x$enable_gtktest" = "xyes" ; then
16497       ac_save_CFLAGS="$CFLAGS"
16498       ac_save_LIBS="$LIBS"
16499       CFLAGS="$CFLAGS $GTK_CFLAGS"
16500       LIBS="$GTK_LIBS $LIBS"
16501       rm -f conf.gtktest
16502       if test "$cross_compiling" = yes; then
16503   echo $ac_n "cross compiling; assumed OK... $ac_c"
16504 else
16505   cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h.  */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h.  */
16511
16512 #include <gtk/gtk.h>
16513 #include <stdio.h>
16514 #include <stdlib.h>
16515
16516 int
16517 main ()
16518 {
16519   int major, minor, micro;
16520   char *tmp_version;
16521
16522   system ("touch conf.gtktest");
16523
16524   /* HP/UX 9 (%@#!) writes to sscanf strings */
16525   tmp_version = g_strdup("$min_gtk_version");
16526   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16527      printf("%s, bad version string\n", "$min_gtk_version");
16528      exit(1);
16529    }
16530
16531   if ((gtk_major_version != $gtk_config_major_version) ||
16532       (gtk_minor_version != $gtk_config_minor_version) ||
16533       (gtk_micro_version != $gtk_config_micro_version))
16534     {
16535       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16536              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16537              gtk_major_version, gtk_minor_version, gtk_micro_version);
16538       printf ("*** was found! If gtk-config was correct, then it is best\n");
16539       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16540       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16541       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16542       printf("*** required on your system.\n");
16543       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16544       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16545       printf("*** before re-running configure\n");
16546     }
16547 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16548   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16549            (gtk_minor_version != GTK_MINOR_VERSION) ||
16550            (gtk_micro_version != GTK_MICRO_VERSION))
16551     {
16552       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16553              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16554       printf("*** library (version %d.%d.%d)\n",
16555              gtk_major_version, gtk_minor_version, gtk_micro_version);
16556     }
16557 #endif /* defined (GTK_MAJOR_VERSION) ... */
16558   else
16559     {
16560       if ((gtk_major_version > major) ||
16561         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16562         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16563       {
16564         return 0;
16565        }
16566      else
16567       {
16568         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16569                gtk_major_version, gtk_minor_version, gtk_micro_version);
16570         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16571                major, minor, micro);
16572         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16573         printf("***\n");
16574         printf("*** If you have already installed a sufficiently new version, this error\n");
16575         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16576         printf("*** being found. The easiest way to fix this is to remove the old version\n");
16577         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16578         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16579         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16580         printf("*** so that the correct libraries are found at run-time))\n");
16581       }
16582     }
16583   return 1;
16584 }
16585
16586 _ACEOF
16587 rm -f conftest$ac_exeext
16588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16589   (eval $ac_link) 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594   (eval $ac_try) 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); }; }; then
16598   :
16599 else
16600   echo "$as_me: program exited with status $ac_status" >&5
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16603
16604 ( exit $ac_status )
16605 no_gtk=yes
16606 fi
16607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16608 fi
16609        CFLAGS="$ac_save_CFLAGS"
16610        LIBS="$ac_save_LIBS"
16611      fi
16612   fi
16613   if test "x$no_gtk" = x ; then
16614      echo "$as_me:$LINENO: result: yes" >&5
16615 echo "${ECHO_T}yes" >&6
16616      :
16617   else
16618      echo "$as_me:$LINENO: result: no" >&5
16619 echo "${ECHO_T}no" >&6
16620      if test "$GTK_CONFIG" = "no" ; then
16621        echo "*** The gtk-config script installed by GTK could not be found"
16622        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16623        echo "*** your path, or set the GTK_CONFIG environment variable to the"
16624        echo "*** full path to gtk-config."
16625      else
16626        if test -f conf.gtktest ; then
16627         :
16628        else
16629           echo "*** Could not run GTK test program, checking why..."
16630           CFLAGS="$CFLAGS $GTK_CFLAGS"
16631           LIBS="$LIBS $GTK_LIBS"
16632           cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638
16639 #include <gtk/gtk.h>
16640 #include <stdio.h>
16641
16642 int
16643 main ()
16644 {
16645  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652   (eval $ac_link) 2>conftest.er1
16653   ac_status=$?
16654   grep -v '^ *+' conftest.er1 >conftest.err
16655   rm -f conftest.er1
16656   cat conftest.err >&5
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } &&
16659          { ac_try='test -z "$ac_c_werror_flag"
16660                          || test ! -s conftest.err'
16661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662   (eval $ac_try) 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }; } &&
16666          { ac_try='test -s conftest$ac_exeext'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; }; then
16672    echo "*** The test program compiled, but did not run. This usually means"
16673           echo "*** that the run-time linker is not finding GTK or finding the wrong"
16674           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
16675           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16676           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
16677           echo "*** is required on your system"
16678           echo "***"
16679           echo "*** If you have an old version installed, it is best to remove it, although"
16680           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16681           echo "***"
16682           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
16683           echo "*** came with the system with the command"
16684           echo "***"
16685           echo "***    rpm --erase --nodeps gtk gtk-devel"
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690  echo "*** The test program failed to compile or link. See the file config.log for the"
16691           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
16692           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
16693           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
16694 fi
16695 rm -f conftest.err conftest.$ac_objext \
16696       conftest$ac_exeext conftest.$ac_ext
16697           CFLAGS="$ac_save_CFLAGS"
16698           LIBS="$ac_save_LIBS"
16699        fi
16700      fi
16701      GTK_CFLAGS=""
16702      GTK_LIBS=""
16703      enable_gtk=no
16704   fi
16705
16706
16707   rm -f conf.gtktest
16708   ;; esac
16709 fi;
16710 case "x$enable_gtk" in
16711 xyes)
16712   cat >> confdefs.h <<EOF
16713 #define IA_GTK 1
16714 EOF
16715
16716
16717
16718 if true; then
16719   ENABLE_GTK_TRUE=
16720   ENABLE_GTK_FALSE='#'
16721 else
16722   ENABLE_GTK_TRUE='#'
16723   ENABLE_GTK_FALSE=
16724 fi
16725
16726    LIBS="$LIBS $GTK_LIBS"
16727     for f in $GTK_CFLAGS; do
16728     case ".$f" in
16729         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
16730         *)              CFLAGS="$CPPFLAGS $f" ;;
16731     esac
16732 done
16733
16734     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
16735
16736   ;;
16737 xdynamic)
16738   dynamic_targets="$dynamic_targets interface_g.\$(so)"
16739    if test "x$GCC" = xyes; then
16740                 for i in $GTK_LIBS; do
16741             case "x$i" in
16742                 x-rdynamic) ;;
16743                 *) g_so_libs="$g_so_libs $i" ;;
16744             esac
16745         done
16746     else
16747         g_so_libs="$GTK_LIBS"
16748     fi
16749     for f in $GTK_CFLAGS; do
16750     case ".$f" in
16751         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
16752         *)              CFLAGS="$CPPFLAGS $f" ;;
16753     esac
16754 done
16755
16756   ;;
16757 *)
16758
16759   ;;
16760 esac
16761
16762
16763
16764
16765
16766 if false; then
16767   ENABLE_SERVER_TRUE=
16768   ENABLE_SERVER_FALSE='#'
16769 else
16770   ENABLE_SERVER_TRUE='#'
16771   ENABLE_SERVER_FALSE=
16772 fi
16773
16774 # Check whether --enable-server or --disable-server was given.
16775 if test "${enable_server+set}" = set; then
16776   enableval="$enable_server"
16777   case "x$enable_server" in xyes|xdynamic)  ;; esac
16778 fi;
16779 case "x$enable_server" in
16780 xyes)
16781   cat >> confdefs.h <<EOF
16782 #define IA_SERVER 1
16783 EOF
16784
16785
16786
16787 if true; then
16788   ENABLE_SERVER_TRUE=
16789   ENABLE_SERVER_FALSE='#'
16790 else
16791   ENABLE_SERVER_TRUE='#'
16792   ENABLE_SERVER_FALSE=
16793 fi
16794
16795    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
16796
16797 for ac_header in sys/soundcard.h
16798 do
16799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16801   echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 fi
16806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16808 else
16809   # Is the header compilable?
16810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16812 cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818 $ac_includes_default
16819 #include <$ac_header>
16820 _ACEOF
16821 rm -f conftest.$ac_objext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823   (eval $ac_compile) 2>conftest.er1
16824   ac_status=$?
16825   grep -v '^ *+' conftest.er1 >conftest.err
16826   rm -f conftest.er1
16827   cat conftest.err >&5
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); } &&
16830          { ac_try='test -z "$ac_c_werror_flag"
16831                          || test ! -s conftest.err'
16832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833   (eval $ac_try) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; } &&
16837          { ac_try='test -s conftest.$ac_objext'
16838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839   (eval $ac_try) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   ac_header_compiler=yes
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_header_compiler=no
16849 fi
16850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16852 echo "${ECHO_T}$ac_header_compiler" >&6
16853
16854 # Is the header present?
16855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16857 cat >conftest.$ac_ext <<_ACEOF
16858 /* confdefs.h.  */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h.  */
16863 #include <$ac_header>
16864 _ACEOF
16865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16867   ac_status=$?
16868   grep -v '^ *+' conftest.er1 >conftest.err
16869   rm -f conftest.er1
16870   cat conftest.err >&5
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); } >/dev/null; then
16873   if test -s conftest.err; then
16874     ac_cpp_err=$ac_c_preproc_warn_flag
16875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16876   else
16877     ac_cpp_err=
16878   fi
16879 else
16880   ac_cpp_err=yes
16881 fi
16882 if test -z "$ac_cpp_err"; then
16883   ac_header_preproc=yes
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888   ac_header_preproc=no
16889 fi
16890 rm -f conftest.err conftest.$ac_ext
16891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16892 echo "${ECHO_T}$ac_header_preproc" >&6
16893
16894 # So?  What about this header?
16895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16896   yes:no: )
16897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16901     ac_header_preproc=yes
16902     ;;
16903   no:yes:* )
16904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16906     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16907 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16908     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16910     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16911 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16914     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16916     (
16917       cat <<\_ASBOX
16918 ## ------------------------------- ##
16919 ## Report this to root@mput.dip.jp ##
16920 ## ------------------------------- ##
16921 _ASBOX
16922     ) |
16923       sed "s/^/$as_me: WARNING:     /" >&2
16924     ;;
16925 esac
16926 echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   eval "$as_ac_Header=\$ac_header_preproc"
16932 fi
16933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16935
16936 fi
16937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938   cat >>confdefs.h <<_ACEOF
16939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16940 _ACEOF
16941
16942 fi
16943
16944 done
16945
16946
16947   ;;
16948 xdynamic)
16949   dynamic_targets="$dynamic_targets interface_r.\$(so)"
16950
16951   ;;
16952 *)
16953
16954   ;;
16955 esac
16956
16957
16958
16959
16960
16961 if false; then
16962   ENABLE_ALSASEQ_TRUE=
16963   ENABLE_ALSASEQ_FALSE='#'
16964 else
16965   ENABLE_ALSASEQ_TRUE='#'
16966   ENABLE_ALSASEQ_FALSE=
16967 fi
16968
16969 # Check whether --enable-alsaseq or --disable-alsaseq was given.
16970 if test "${enable_alsaseq+set}" = set; then
16971   enableval="$enable_alsaseq"
16972   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
16973 fi;
16974 case "x$enable_alsaseq" in
16975 xyes)
16976   cat >> confdefs.h <<EOF
16977 #define IA_ALSASEQ 1
16978 EOF
16979
16980
16981
16982 if true; then
16983   ENABLE_ALSASEQ_TRUE=
16984   ENABLE_ALSASEQ_FALSE='#'
16985 else
16986   ENABLE_ALSASEQ_TRUE='#'
16987   ENABLE_ALSASEQ_FALSE=
16988 fi
16989
16990    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
16991     alsa_save_CFLAGS="$CFLAGS"
16992 alsa_save_LDFLAGS="$LDFLAGS"
16993 alsa_save_LIBS="$LIBS"
16994 alsa_found=yes
16995
16996
16997 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
16998 if test "${with_alsa_prefix+set}" = set; then
16999   withval="$with_alsa_prefix"
17000   alsa_prefix="$withval"
17001 else
17002   alsa_prefix=""
17003 fi;
17004
17005
17006 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17007 if test "${with_alsa_inc_prefix+set}" = set; then
17008   withval="$with_alsa_inc_prefix"
17009   alsa_inc_prefix="$withval"
17010 else
17011   alsa_inc_prefix=""
17012 fi;
17013
17014 # Check whether --enable-alsatest or --disable-alsatest was given.
17015 if test "${enable_alsatest+set}" = set; then
17016   enableval="$enable_alsatest"
17017   enable_alsatest=no
17018 else
17019   enable_alsatest=yes
17020 fi;
17021
17022 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17023 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17024 if test "$alsa_inc_prefix" != "" ; then
17025         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17026         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17027 fi
17028 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17029 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17030
17031 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17032 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17033 if test "$alsa_prefix" != "" ; then
17034         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17035         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17036 fi
17037
17038 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17039 LIBS=`echo $LIBS | sed 's/-lm//'`
17040 LIBS=`echo $LIBS | sed 's/-ldl//'`
17041 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17042 LIBS=`echo $LIBS | sed 's/  //'`
17043 LIBS="$ALSA_LIBS $LIBS"
17044 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17045 echo "${ECHO_T}$ALSA_LIBS" >&6
17046
17047 min_alsa_version=0.1.1
17048 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17049 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17050 no_alsa=""
17051     alsa_min_major_version=`echo $min_alsa_version | \
17052            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17053     alsa_min_minor_version=`echo $min_alsa_version | \
17054            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17055     alsa_min_micro_version=`echo $min_alsa_version | \
17056            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17057
17058
17059
17060
17061 ac_ext=c
17062 ac_cpp='$CPP $CPPFLAGS'
17063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17066
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h.  */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h.  */
17073
17074 #include <alsa/asoundlib.h>
17075
17076 int
17077 main ()
17078 {
17079
17080 /* ensure backward compatibility */
17081 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17082 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17083 #endif
17084 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17085 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17086 #endif
17087 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17088 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17089 #endif
17090
17091 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17092   exit(0);
17093 #  else
17094 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17095 #       error not present
17096 #    endif
17097
17098 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17099   exit(0);
17100 #   else
17101 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17102 #          error not present
17103 #      endif
17104
17105 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17106 #        error not present
17107 #      endif
17108 #    endif
17109 #  endif
17110 exit(0);
17111
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118   (eval $ac_compile) 2>conftest.er1
17119   ac_status=$?
17120   grep -v '^ *+' conftest.er1 >conftest.err
17121   rm -f conftest.er1
17122   cat conftest.err >&5
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } &&
17125          { ac_try='test -z "$ac_c_werror_flag"
17126                          || test ! -s conftest.err'
17127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128   (eval $ac_try) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; } &&
17132          { ac_try='test -s conftest.$ac_objext'
17133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134   (eval $ac_try) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; }; then
17138   echo "$as_me:$LINENO: result: found." >&5
17139 echo "${ECHO_T}found." >&6
17140 else
17141   echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150
17151 #include <sys/asoundlib.h>
17152
17153 int
17154 main ()
17155 {
17156
17157 /* ensure backward compatibility */
17158 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17159 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17160 #endif
17161 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17162 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17163 #endif
17164 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17165 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17166 #endif
17167
17168 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17169   exit(0);
17170 #  else
17171 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17172 #       error not present
17173 #    endif
17174
17175 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17176   exit(0);
17177 #   else
17178 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17179 #          error not present
17180 #      endif
17181
17182 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17183 #        error not present
17184 #      endif
17185 #    endif
17186 #  endif
17187 exit(0);
17188
17189   ;
17190   return 0;
17191 }
17192 _ACEOF
17193 rm -f conftest.$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195   (eval $ac_compile) 2>conftest.er1
17196   ac_status=$?
17197   grep -v '^ *+' conftest.er1 >conftest.err
17198   rm -f conftest.er1
17199   cat conftest.err >&5
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -z "$ac_c_werror_flag"
17203                          || test ! -s conftest.err'
17204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205   (eval $ac_try) 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; } &&
17209          { ac_try='test -s conftest.$ac_objext'
17210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211   (eval $ac_try) 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; }; then
17215   echo "$as_me:$LINENO: result: found." >&5
17216 echo "${ECHO_T}found." >&6
17217 else
17218   echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 echo "$as_me:$LINENO: result: not present." >&5
17222 echo "${ECHO_T}not present." >&6
17223    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17224 echo "${ECHO_T}libasound was not found anywhere." >&6
17225    alsa_found=no
17226 fi
17227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17228    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17229 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17230
17231 fi
17232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17233 ac_ext=c
17234 ac_cpp='$CPP $CPPFLAGS'
17235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17238
17239
17240
17241 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17242 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17243 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246   ac_check_lib_save_LIBS=$LIBS
17247 LIBS="-lasound  $LIBS"
17248 cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254
17255 /* Override any gcc2 internal prototype to avoid an error.  */
17256 #ifdef __cplusplus
17257 extern "C"
17258 #endif
17259 /* We use char because int might match the return type of a gcc2
17260    builtin and then its argument prototype would still apply.  */
17261 char snd_ctl_open ();
17262 int
17263 main ()
17264 {
17265 snd_ctl_open ();
17266   ;
17267   return 0;
17268 }
17269 _ACEOF
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17272   (eval $ac_link) 2>conftest.er1
17273   ac_status=$?
17274   grep -v '^ *+' conftest.er1 >conftest.err
17275   rm -f conftest.er1
17276   cat conftest.err >&5
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); } &&
17279          { ac_try='test -z "$ac_c_werror_flag"
17280                          || test ! -s conftest.err'
17281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282   (eval $ac_try) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; } &&
17286          { ac_try='test -s conftest$ac_exeext'
17287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288   (eval $ac_try) 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   ac_cv_lib_asound_snd_ctl_open=yes
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ac_cv_lib_asound_snd_ctl_open=no
17298 fi
17299 rm -f conftest.err conftest.$ac_objext \
17300       conftest$ac_exeext conftest.$ac_ext
17301 LIBS=$ac_check_lib_save_LIBS
17302 fi
17303 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17304 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17305 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17306   cat >>confdefs.h <<_ACEOF
17307 #define HAVE_LIBASOUND 1
17308 _ACEOF
17309
17310   LIBS="-lasound $LIBS"
17311
17312 else
17313   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17314 echo "${ECHO_T}No linkable libasound was found." >&6
17315    alsa_found=no
17316
17317 fi
17318
17319
17320 if test "x$alsa_found" = "xyes" ; then
17321    :
17322    LIBS=`echo $LIBS | sed 's/-lasound//g'`
17323    LIBS=`echo $LIBS | sed 's/  //'`
17324    LIBS="-lasound $LIBS"
17325 else
17326    :
17327    CFLAGS="$alsa_save_CFLAGS"
17328    LDFLAGS="$alsa_save_LDFLAGS"
17329    LIBS="$alsa_save_LIBS"
17330    ALSA_CFLAGS=""
17331    ALSA_LIBS=""
17332 fi
17333
17334
17335
17336
17337
17338   ;;
17339 xdynamic)
17340   dynamic_targets="$dynamic_targets interface_A.\$(so)"
17341
17342   ;;
17343 *)
17344
17345   ;;
17346 esac
17347
17348
17349
17350
17351
17352 if false; then
17353   ENABLE_WINSYN_TRUE=
17354   ENABLE_WINSYN_FALSE='#'
17355 else
17356   ENABLE_WINSYN_TRUE='#'
17357   ENABLE_WINSYN_FALSE=
17358 fi
17359
17360 # Check whether --enable-winsyn or --disable-winsyn was given.
17361 if test "${enable_winsyn+set}" = set; then
17362   enableval="$enable_winsyn"
17363   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
17364 fi;
17365 case "x$enable_winsyn" in
17366 xyes)
17367   cat >> confdefs.h <<EOF
17368 #define IA_WINSYN 1
17369 EOF
17370
17371
17372
17373 if true; then
17374   ENABLE_WINSYN_TRUE=
17375   ENABLE_WINSYN_FALSE='#'
17376 else
17377   ENABLE_WINSYN_TRUE='#'
17378   ENABLE_WINSYN_FALSE=
17379 fi
17380
17381    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17382   ;;
17383 xdynamic)
17384   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17385
17386   ;;
17387 *)
17388
17389   ;;
17390 esac
17391
17392
17393
17394
17395
17396 if false; then
17397   ENABLE_PORTMIDISYN_TRUE=
17398   ENABLE_PORTMIDISYN_FALSE='#'
17399 else
17400   ENABLE_PORTMIDISYN_TRUE='#'
17401   ENABLE_PORTMIDISYN_FALSE=
17402 fi
17403
17404 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17405 if test "${enable_portmidisyn+set}" = set; then
17406   enableval="$enable_portmidisyn"
17407   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
17408 fi;
17409 case "x$enable_portmidisyn" in
17410 xyes)
17411   cat >> confdefs.h <<EOF
17412 #define IA_PORTMIDISYN 1
17413 EOF
17414
17415
17416
17417 if true; then
17418   ENABLE_PORTMIDISYN_TRUE=
17419   ENABLE_PORTMIDISYN_FALSE='#'
17420 else
17421   ENABLE_PORTMIDISYN_TRUE='#'
17422   ENABLE_PORTMIDISYN_FALSE=
17423 fi
17424
17425    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17426   ;;
17427 xdynamic)
17428   dynamic_targets="$dynamic_targets interface_P.\$(so)"
17429
17430   ;;
17431 *)
17432
17433   ;;
17434 esac
17435
17436
17437
17438
17439
17440 if false; then
17441   ENABLE_W32G_SYN_TRUE=
17442   ENABLE_W32G_SYN_FALSE='#'
17443 else
17444   ENABLE_W32G_SYN_TRUE='#'
17445   ENABLE_W32G_SYN_FALSE=
17446 fi
17447
17448 # Check whether --enable-winsyng or --disable-winsyng was given.
17449 if test "${enable_winsyng+set}" = set; then
17450   enableval="$enable_winsyng"
17451   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
17452 fi;
17453 case "x$enable_winsyng" in
17454 xyes)
17455   cat >> confdefs.h <<EOF
17456 #define IA_W32G_SYN 1
17457 EOF
17458
17459
17460
17461 if true; then
17462   ENABLE_W32G_SYN_TRUE=
17463   ENABLE_W32G_SYN_FALSE='#'
17464 else
17465   ENABLE_W32G_SYN_TRUE='#'
17466   ENABLE_W32G_SYN_FALSE=
17467 fi
17468
17469    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17470     lib_user32_opt='-luser32'
17471     LDFLAGS="-mwindows $LDFLAGS"
17472     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"
17473
17474   ;;
17475 xdynamic)
17476   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17477
17478   ;;
17479 *)
17480
17481   ;;
17482 esac
17483
17484
17485
17486
17487
17488
17489 if false; then
17490   ENABLE_W32GUI_TRUE=
17491   ENABLE_W32GUI_FALSE='#'
17492 else
17493   ENABLE_W32GUI_TRUE='#'
17494   ENABLE_W32GUI_FALSE=
17495 fi
17496
17497 # Check whether --enable-w32gui or --disable-w32gui was given.
17498 if test "${enable_w32gui+set}" = set; then
17499   enableval="$enable_w32gui"
17500   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
17501 fi;
17502 case "x$enable_w32gui" in
17503 xyes)
17504   cat >> confdefs.h <<EOF
17505 #define IA_W32GUI 1
17506 EOF
17507
17508
17509
17510 if true; then
17511   ENABLE_W32GUI_TRUE=
17512   ENABLE_W32GUI_FALSE='#'
17513 else
17514   ENABLE_W32GUI_TRUE='#'
17515   ENABLE_W32GUI_FALSE=
17516 fi
17517
17518    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17519     lib_user32_opt='-luser32'
17520     LDFLAGS="-mwindows $LDFLAGS"
17521     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"
17522
17523   ;;
17524 xdynamic)
17525   dynamic_targets="$dynamic_targets interface_w.\$(so)"
17526
17527   ;;
17528 *)
17529
17530   ;;
17531 esac
17532
17533
17534
17535
17536
17537 if false; then
17538   ENABLE_PLUGIN_TRUE=
17539   ENABLE_PLUGIN_FALSE='#'
17540 else
17541   ENABLE_PLUGIN_TRUE='#'
17542   ENABLE_PLUGIN_FALSE=
17543 fi
17544
17545 # Check whether --enable-ump or --disable-ump was given.
17546 if test "${enable_ump+set}" = set; then
17547   enableval="$enable_ump"
17548   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
17549         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
17550 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
17551    { (exit 1); exit 1; }; }
17552     fi
17553     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17554   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17555 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17556 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17557   echo $ECHO_N "(cached) $ECHO_C" >&6
17558 fi
17559 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17560 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17561 else
17562   # Is the header compilable?
17563 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17564 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571 $ac_includes_default
17572 #include <X11/xpm.h>
17573 _ACEOF
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576   (eval $ac_compile) 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } &&
17583          { ac_try='test -z "$ac_c_werror_flag"
17584                          || test ! -s conftest.err'
17585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586   (eval $ac_try) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; } &&
17590          { ac_try='test -s conftest.$ac_objext'
17591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592   (eval $ac_try) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; }; then
17596   ac_header_compiler=yes
17597 else
17598   echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17600
17601 ac_header_compiler=no
17602 fi
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17605 echo "${ECHO_T}$ac_header_compiler" >&6
17606
17607 # Is the header present?
17608 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17609 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17610 cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h.  */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h.  */
17616 #include <X11/xpm.h>
17617 _ACEOF
17618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } >/dev/null; then
17626   if test -s conftest.err; then
17627     ac_cpp_err=$ac_c_preproc_warn_flag
17628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17629   else
17630     ac_cpp_err=
17631   fi
17632 else
17633   ac_cpp_err=yes
17634 fi
17635 if test -z "$ac_cpp_err"; then
17636   ac_header_preproc=yes
17637 else
17638   echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641   ac_header_preproc=no
17642 fi
17643 rm -f conftest.err conftest.$ac_ext
17644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17645 echo "${ECHO_T}$ac_header_preproc" >&6
17646
17647 # So?  What about this header?
17648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17649   yes:no: )
17650     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17651 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17652     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
17653 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
17654     ac_header_preproc=yes
17655     ;;
17656   no:yes:* )
17657     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
17658 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
17659     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
17660 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
17661     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
17662 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
17663     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
17664 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17665     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
17666 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
17667     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
17668 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
17669     (
17670       cat <<\_ASBOX
17671 ## ------------------------------- ##
17672 ## Report this to root@mput.dip.jp ##
17673 ## ------------------------------- ##
17674 _ASBOX
17675     ) |
17676       sed "s/^/$as_me: WARNING:     /" >&2
17677     ;;
17678 esac
17679 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17680 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17681 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684   ac_cv_header_X11_xpm_h=$ac_header_preproc
17685 fi
17686 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17687 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17688
17689 fi
17690 if test $ac_cv_header_X11_xpm_h = yes; then
17691   :
17692 else
17693   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
17694 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
17695    { (exit 1); exit 1; }; }
17696 fi
17697
17698
17699     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17700 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
17701 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17702   echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704   ac_check_lib_save_LIBS=$LIBS
17705 LIBS="-lXpm  $LIBS"
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712
17713 /* Override any gcc2 internal prototype to avoid an error.  */
17714 #ifdef __cplusplus
17715 extern "C"
17716 #endif
17717 /* We use char because int might match the return type of a gcc2
17718    builtin and then its argument prototype would still apply.  */
17719 char XpmCreatePixmapFromData ();
17720 int
17721 main ()
17722 {
17723 XpmCreatePixmapFromData ();
17724   ;
17725   return 0;
17726 }
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730   (eval $ac_link) 2>conftest.er1
17731   ac_status=$?
17732   grep -v '^ *+' conftest.er1 >conftest.err
17733   rm -f conftest.er1
17734   cat conftest.err >&5
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -z "$ac_c_werror_flag"
17738                          || test ! -s conftest.err'
17739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740   (eval $ac_try) 2>&5
17741   ac_status=$?
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); }; } &&
17744          { ac_try='test -s conftest$ac_exeext'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; }; then
17750   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17751 else
17752   echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17756 fi
17757 rm -f conftest.err conftest.$ac_objext \
17758       conftest$ac_exeext conftest.$ac_ext
17759 LIBS=$ac_check_lib_save_LIBS
17760 fi
17761 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17762 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
17763 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17764   :
17765 else
17766   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
17767 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
17768    { (exit 1); exit 1; }; }
17769 fi
17770
17771     if test "x$have_xext" = xyes; then
17772       lib_xext_opt=-lXext
17773     fi
17774     if test "x$have_xprelibs" = xyes; then
17775       lib_xprelibs_opt='-lSM -lICE'
17776     fi
17777     lib_xmu_opt=-lXmu
17778     lib_xt_opt=-lXt
17779    ;; esac
17780 fi;
17781 case "x$enable_ump" in
17782 xyes)
17783   cat >> confdefs.h <<EOF
17784 #define IA_PLUGIN 1
17785 EOF
17786
17787
17788
17789 if true; then
17790   ENABLE_PLUGIN_TRUE=
17791   ENABLE_PLUGIN_FALSE='#'
17792 else
17793   ENABLE_PLUGIN_TRUE='#'
17794   ENABLE_PLUGIN_FALSE=
17795 fi
17796
17797
17798   ;;
17799 xdynamic)
17800   dynamic_targets="$dynamic_targets interface_p.\$(so)"
17801
17802   ;;
17803 *)
17804
17805   ;;
17806 esac
17807
17808
17809
17810
17811 # Check whether --enable-offix or --disable-offix was given.
17812 if test "${enable_offix+set}" = set; then
17813   enableval="$enable_offix"
17814    if test "$enableval" = "yes"; then
17815       KEEPCPPFLAGS=$CPPFLAGS
17816       KEEPLIBS=$LIBS
17817       KEEPLDFLAGS=$LDFLAGS
17818       CPPFLAGS="$CPPFLAGS $offix_include_dir"
17819       LDFLAGS="$LDFLAGS $offix_lib_dir"
17820       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
17821       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
17822 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
17823 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
17824   echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826   ac_check_lib_save_LIBS=$LIBS
17827 LIBS="-lDnd  $LIBS"
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834
17835 /* Override any gcc2 internal prototype to avoid an error.  */
17836 #ifdef __cplusplus
17837 extern "C"
17838 #endif
17839 /* We use char because int might match the return type of a gcc2
17840    builtin and then its argument prototype would still apply.  */
17841 char DndInitialize ();
17842 int
17843 main ()
17844 {
17845 DndInitialize ();
17846   ;
17847   return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852   (eval $ac_link) 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } &&
17859          { ac_try='test -z "$ac_c_werror_flag"
17860                          || test ! -s conftest.err'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; } &&
17866          { ac_try='test -s conftest$ac_exeext'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   ac_cv_lib_Dnd_DndInitialize=yes
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ac_cv_lib_Dnd_DndInitialize=no
17878 fi
17879 rm -f conftest.err conftest.$ac_objext \
17880       conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17882 fi
17883 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
17884 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
17885 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
17886
17887         LIBS=$KEEPLIBS
17888         lib_offix_opt="-lDnd"
17889
17890 cat >>confdefs.h <<\_ACEOF
17891 #define OFFIX 1
17892 _ACEOF
17893
17894
17895 else
17896    LDFLAGS=$KEEPLDFLAGS
17897         CPPFLAGS=$KEEPCPPFLAGS
17898         LIBS=$KEEPLIBS
17899
17900 fi
17901
17902     fi
17903
17904 fi;
17905
17906 # Check whether --enable-network or --disable-network was given.
17907 if test "${enable_network+set}" = set; then
17908   enableval="$enable_network"
17909    if test "$enableval" = "yes"; then
17910
17911 cat >>confdefs.h <<\_ACEOF
17912 #define SUPPORT_SOCKET 1
17913 _ACEOF
17914
17915     fi
17916 fi;
17917
17918
17919 if test "x$enable_network" = "xyes"; then
17920   ENABLE_NETWORK_TRUE=
17921   ENABLE_NETWORK_FALSE='#'
17922 else
17923   ENABLE_NETWORK_TRUE='#'
17924   ENABLE_NETWORK_FALSE=
17925 fi
17926
17927
17928 # Check whether --enable-spectrogram or --disable-spectrogram was given.
17929 if test "${enable_spectrogram+set}" = set; then
17930   enableval="$enable_spectrogram"
17931    if test "$enableval" = "yes"; then
17932       if test "x$with_x" != xyes; then
17933         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
17934 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
17935    { (exit 1); exit 1; }; }
17936       fi
17937
17938 cat >>confdefs.h <<\_ACEOF
17939 #define SUPPORT_SOUNDSPEC 1
17940 _ACEOF
17941
17942     fi
17943 fi;
17944
17945
17946 if test "x$enable_spectrogram" = "xyes"; then
17947   ENABLE_SOUND_SPEC_TRUE=
17948   ENABLE_SOUND_SPEC_FALSE='#'
17949 else
17950   ENABLE_SOUND_SPEC_TRUE='#'
17951   ENABLE_SOUND_SPEC_FALSE=
17952 fi
17953
17954
17955 # Check whether --enable-spline or --disable-spline was given.
17956 if test "${enable_spline+set}" = set; then
17957   enableval="$enable_spline"
17958    case "x$enableval" in
17959       xlinear)
17960
17961 cat >>confdefs.h <<\_ACEOF
17962 #define LINEAR_INTERPOLATION 1
17963 _ACEOF
17964
17965         ;;
17966       xcubic)
17967
17968 cat >>confdefs.h <<\_ACEOF
17969 #define CSPLINE_INTERPOLATION 1
17970 _ACEOF
17971
17972         ;;
17973       xlagrange)
17974
17975 cat >>confdefs.h <<\_ACEOF
17976 #define LAGRANGE_INTERPOLATION 1
17977 _ACEOF
17978
17979         ;;
17980       xnewton)
17981
17982 cat >>confdefs.h <<\_ACEOF
17983 #define NEWTON_INTERPOLATION 1
17984 _ACEOF
17985
17986         ;;
17987       xgauss)
17988
17989 cat >>confdefs.h <<\_ACEOF
17990 #define GAUSS_INTERPOLATION 1
17991 _ACEOF
17992
17993         ;;
17994       xno)
17995
17996 cat >>confdefs.h <<\_ACEOF
17997 #define NO_INTERPOLATION 1
17998 _ACEOF
17999
18000         ;;
18001       *)
18002         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18003 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18004    { (exit 1); exit 1; }; }
18005         ;;
18006     esac
18007 fi;
18008
18009 # Check whether --enable-wrd or --disable-wrd was given.
18010 if test "${enable_wrd+set}" = set; then
18011   enableval="$enable_wrd"
18012    if test "$enableval" = "yes"; then
18013       if test "x$with_x" != xyes; then
18014         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18015 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18016    { (exit 1); exit 1; }; }
18017       fi
18018
18019 cat >>confdefs.h <<\_ACEOF
18020 #define WRDT_X 1
18021 _ACEOF
18022
18023       enable_sherry_wrd=yes
18024       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18025 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18026 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18027   echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029   ac_check_lib_save_LIBS=$LIBS
18030 LIBS="-lz  $LIBS"
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h.  */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h.  */
18037
18038 /* Override any gcc2 internal prototype to avoid an error.  */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 /* We use char because int might match the return type of a gcc2
18043    builtin and then its argument prototype would still apply.  */
18044 char zlibVersion ();
18045 int
18046 main ()
18047 {
18048 zlibVersion ();
18049   ;
18050   return 0;
18051 }
18052 _ACEOF
18053 rm -f conftest.$ac_objext conftest$ac_exeext
18054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055   (eval $ac_link) 2>conftest.er1
18056   ac_status=$?
18057   grep -v '^ *+' conftest.er1 >conftest.err
18058   rm -f conftest.er1
18059   cat conftest.err >&5
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); } &&
18062          { ac_try='test -z "$ac_c_werror_flag"
18063                          || test ! -s conftest.err'
18064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065   (eval $ac_try) 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; } &&
18069          { ac_try='test -s conftest$ac_exeext'
18070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071   (eval $ac_try) 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; }; then
18075   ac_cv_lib_z_zlibVersion=yes
18076 else
18077   echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18079
18080 ac_cv_lib_z_zlibVersion=no
18081 fi
18082 rm -f conftest.err conftest.$ac_objext \
18083       conftest$ac_exeext conftest.$ac_ext
18084 LIBS=$ac_check_lib_save_LIBS
18085 fi
18086 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18087 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18088 if test $ac_cv_lib_z_zlibVersion = yes; then
18089   :
18090 else
18091   enable_sherry_wrd=no
18092 fi
18093
18094       if test "${ac_cv_header_png_h+set}" = set; then
18095   echo "$as_me:$LINENO: checking for png.h" >&5
18096 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18097 if test "${ac_cv_header_png_h+set}" = set; then
18098   echo $ECHO_N "(cached) $ECHO_C" >&6
18099 fi
18100 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18101 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18102 else
18103   # Is the header compilable?
18104 echo "$as_me:$LINENO: checking png.h usability" >&5
18105 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 $ac_includes_default
18113 #include <png.h>
18114 _ACEOF
18115 rm -f conftest.$ac_objext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117   (eval $ac_compile) 2>conftest.er1
18118   ac_status=$?
18119   grep -v '^ *+' conftest.er1 >conftest.err
18120   rm -f conftest.er1
18121   cat conftest.err >&5
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); } &&
18124          { ac_try='test -z "$ac_c_werror_flag"
18125                          || test ! -s conftest.err'
18126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127   (eval $ac_try) 2>&5
18128   ac_status=$?
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); }; } &&
18131          { ac_try='test -s conftest.$ac_objext'
18132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133   (eval $ac_try) 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; }; then
18137   ac_header_compiler=yes
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142 ac_header_compiler=no
18143 fi
18144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18146 echo "${ECHO_T}$ac_header_compiler" >&6
18147
18148 # Is the header present?
18149 echo "$as_me:$LINENO: checking png.h presence" >&5
18150 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157 #include <png.h>
18158 _ACEOF
18159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } >/dev/null; then
18167   if test -s conftest.err; then
18168     ac_cpp_err=$ac_c_preproc_warn_flag
18169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18170   else
18171     ac_cpp_err=
18172   fi
18173 else
18174   ac_cpp_err=yes
18175 fi
18176 if test -z "$ac_cpp_err"; then
18177   ac_header_preproc=yes
18178 else
18179   echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18181
18182   ac_header_preproc=no
18183 fi
18184 rm -f conftest.err conftest.$ac_ext
18185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18186 echo "${ECHO_T}$ac_header_preproc" >&6
18187
18188 # So?  What about this header?
18189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18190   yes:no: )
18191     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18192 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18193     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18194 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18195     ac_header_preproc=yes
18196     ;;
18197   no:yes:* )
18198     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18199 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18200     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
18201 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
18202     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18203 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18204     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
18205 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18206     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18207 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18208     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18209 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18210     (
18211       cat <<\_ASBOX
18212 ## ------------------------------- ##
18213 ## Report this to root@mput.dip.jp ##
18214 ## ------------------------------- ##
18215 _ASBOX
18216     ) |
18217       sed "s/^/$as_me: WARNING:     /" >&2
18218     ;;
18219 esac
18220 echo "$as_me:$LINENO: checking for png.h" >&5
18221 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18222 if test "${ac_cv_header_png_h+set}" = set; then
18223   echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225   ac_cv_header_png_h=$ac_header_preproc
18226 fi
18227 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18228 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18229
18230 fi
18231 if test $ac_cv_header_png_h = yes; then
18232   :
18233 else
18234   enable_sherry_wrd=no
18235 fi
18236
18237
18238       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18239 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18240 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18241   echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243   ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-lpng -lz $LIBS"
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251
18252 /* Override any gcc2 internal prototype to avoid an error.  */
18253 #ifdef __cplusplus
18254 extern "C"
18255 #endif
18256 /* We use char because int might match the return type of a gcc2
18257    builtin and then its argument prototype would still apply.  */
18258 char png_init_io ();
18259 int
18260 main ()
18261 {
18262 png_init_io ();
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269   (eval $ac_link) 2>conftest.er1
18270   ac_status=$?
18271   grep -v '^ *+' conftest.er1 >conftest.err
18272   rm -f conftest.er1
18273   cat conftest.err >&5
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); } &&
18276          { ac_try='test -z "$ac_c_werror_flag"
18277                          || test ! -s conftest.err'
18278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279   (eval $ac_try) 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; } &&
18283          { ac_try='test -s conftest$ac_exeext'
18284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285   (eval $ac_try) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; }; then
18289   ac_cv_lib_png_png_init_io=yes
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294 ac_cv_lib_png_png_init_io=no
18295 fi
18296 rm -f conftest.err conftest.$ac_objext \
18297       conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18299 fi
18300 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18301 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18302 if test $ac_cv_lib_png_png_init_io = yes; then
18303   :
18304 else
18305   enable_sherry_wrd=no
18306 fi
18307
18308       if test "$enable_sherry_wrd" = yes; then
18309
18310 cat >>confdefs.h <<\_ACEOF
18311 #define ENABLE_SHERRY 1
18312 _ACEOF
18313
18314         lib_zip_opt=-lz
18315         lib_png_opt=-lpng
18316       else
18317          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18318 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18319       fi
18320       if test "x$have_xext" = xyes; then
18321         lib_xext_opt=-lXext
18322       fi
18323     fi
18324 fi;
18325
18326
18327
18328 #
18329 # Finish up
18330 #
18331
18332
18333
18334 if test "x$enable_wrd" = "xyes"; then
18335   ENABLE_WRD_TRUE=
18336   ENABLE_WRD_FALSE='#'
18337 else
18338   ENABLE_WRD_TRUE='#'
18339   ENABLE_WRD_FALSE=
18340 fi
18341
18342
18343
18344
18345 if test "x$CYGNUS" = xyes; then
18346   CYGNUS_TRUE=
18347   CYGNUS_FALSE='#'
18348 else
18349   CYGNUS_TRUE='#'
18350   CYGNUS_FALSE=
18351 fi
18352
18353
18354
18355 if test "x$MINGW" = xyes; then
18356   MINGW_TRUE=
18357   MINGW_FALSE='#'
18358 else
18359   MINGW_TRUE='#'
18360   MINGW_FALSE=
18361 fi
18362
18363
18364
18365 if test "x$W32READDIR" = "xyes"; then
18366   W32READDIR_TRUE=
18367   W32READDIR_FALSE='#'
18368 else
18369   W32READDIR_TRUE='#'
18370   W32READDIR_FALSE=
18371 fi
18372
18373
18374 rm -f wordtmp >/dev/null 2>&1
18375 val=''
18376 for f in $LDFLAGS; do
18377   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18378   :
18379 else
18380   echo $f >>wordtmp; val="$val $f"
18381 fi
18382
18383 done
18384 LDFLAGS="$val"
18385 rm -f wordtmp >/dev/null 2>&1
18386
18387 rm -f wordtmp >/dev/null 2>&1
18388 val=''
18389 for f in $SHLDFLAGS; do
18390   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18391   :
18392 else
18393   echo $f >>wordtmp; val="$val $f"
18394 fi
18395
18396 done
18397 SHLDFLAGS="$val"
18398 rm -f wordtmp >/dev/null 2>&1
18399
18400 rm -f wordtmp >/dev/null 2>&1
18401 val=''
18402 for f in $EXTRACFLAGS $CFLAGS; do
18403   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18404   :
18405 else
18406   echo $f >>wordtmp; val="$val $f"
18407 fi
18408
18409 done
18410 CFLAGS="$val"
18411 rm -f wordtmp >/dev/null 2>&1
18412
18413 rm -f wordtmp >/dev/null 2>&1
18414 val=''
18415 for f in $CPPFLAGS $EXTRADEFS; do
18416   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18417   :
18418 else
18419   echo $f >>wordtmp; val="$val $f"
18420 fi
18421
18422 done
18423 CPPFLAGS="$val"
18424 rm -f wordtmp >/dev/null 2>&1
18425
18426
18427 if test "x$oss_device" != x; then
18428
18429 cat >>confdefs.h <<_ACEOF
18430 #define OSS_DEVICE "$oss_device"
18431 _ACEOF
18432
18433 fi
18434
18435 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18436
18437 cat >>confdefs.h <<_ACEOF
18438 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18439 _ACEOF
18440
18441 fi
18442
18443 if test "x$with_x" = xyes; then
18444     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/"`
18445 fi
18446 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18447 SHLD="$SHLD $SHLDFLAGS"
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467                                                                                                                                                                                     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"
18468
18469 cat >confcache <<\_ACEOF
18470 # This file is a shell script that caches the results of configure
18471 # tests run on this system so they can be shared between configure
18472 # scripts and configure runs, see configure's option --config-cache.
18473 # It is not useful on other systems.  If it contains results you don't
18474 # want to keep, you may remove or edit it.
18475 #
18476 # config.status only pays attention to the cache file if you give it
18477 # the --recheck option to rerun configure.
18478 #
18479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18481 # following values.
18482
18483 _ACEOF
18484
18485 # The following way of writing the cache mishandles newlines in values,
18486 # but we know of no workaround that is simple, portable, and efficient.
18487 # So, don't put newlines in cache variables' values.
18488 # Ultrix sh set writes to stderr and can't be redirected directly,
18489 # and sets the high bit in the cache file unless we assign to the vars.
18490 {
18491   (set) 2>&1 |
18492     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18493     *ac_space=\ *)
18494       # `set' does not quote correctly, so add quotes (double-quote
18495       # substitution turns \\\\ into \\, and sed turns \\ into \).
18496       sed -n \
18497         "s/'/'\\\\''/g;
18498           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18499       ;;
18500     *)
18501       # `set' quotes correctly as required by POSIX, so do not add quotes.
18502       sed -n \
18503         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18504       ;;
18505     esac;
18506 } |
18507   sed '
18508      t clear
18509      : clear
18510      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18511      t end
18512      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18513      : end' >>confcache
18514 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18515   if test -w $cache_file; then
18516     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18517     cat confcache >$cache_file
18518   else
18519     echo "not updating unwritable cache $cache_file"
18520   fi
18521 fi
18522 rm -f confcache
18523
18524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18525 # Let make expand exec_prefix.
18526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18527
18528 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18530 # trailing colons and then remove the whole line if VPATH becomes empty
18531 # (actually we leave an empty line to preserve line numbers).
18532 if test "x$srcdir" = x.; then
18533   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18534 s/:*\$(srcdir):*/:/;
18535 s/:*\${srcdir}:*/:/;
18536 s/:*@srcdir@:*/:/;
18537 s/^\([^=]*=[     ]*\):*/\1/;
18538 s/:*$//;
18539 s/^[^=]*=[       ]*$//;
18540 }'
18541 fi
18542
18543 DEFS=-DHAVE_CONFIG_H
18544
18545 ac_libobjs=
18546 ac_ltlibobjs=
18547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18548   # 1. Remove the extension, and $U if already installed.
18549   ac_i=`echo "$ac_i" |
18550          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18551   # 2. Add them.
18552   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18553   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18554 done
18555 LIBOBJS=$ac_libobjs
18556
18557 LTLIBOBJS=$ac_ltlibobjs
18558
18559
18560 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18561   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18562 Usually this means the macro was only invoked conditionally." >&5
18563 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18564 Usually this means the macro was only invoked conditionally." >&2;}
18565    { (exit 1); exit 1; }; }
18566 fi
18567 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18568   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18569 Usually this means the macro was only invoked conditionally." >&5
18570 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18571 Usually this means the macro was only invoked conditionally." >&2;}
18572    { (exit 1); exit 1; }; }
18573 fi
18574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18575   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18576 Usually this means the macro was only invoked conditionally." >&5
18577 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18578 Usually this means the macro was only invoked conditionally." >&2;}
18579    { (exit 1); exit 1; }; }
18580 fi
18581 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18582   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18583 Usually this means the macro was only invoked conditionally." >&5
18584 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18585 Usually this means the macro was only invoked conditionally." >&2;}
18586    { (exit 1); exit 1; }; }
18587 fi
18588 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18589   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18590 Usually this means the macro was only invoked conditionally." >&5
18591 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18592 Usually this means the macro was only invoked conditionally." >&2;}
18593    { (exit 1); exit 1; }; }
18594 fi
18595 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18596   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18597 Usually this means the macro was only invoked conditionally." >&5
18598 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18599 Usually this means the macro was only invoked conditionally." >&2;}
18600    { (exit 1); exit 1; }; }
18601 fi
18602 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18603   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18604 Usually this means the macro was only invoked conditionally." >&5
18605 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18606 Usually this means the macro was only invoked conditionally." >&2;}
18607    { (exit 1); exit 1; }; }
18608 fi
18609 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18610   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18611 Usually this means the macro was only invoked conditionally." >&5
18612 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18613 Usually this means the macro was only invoked conditionally." >&2;}
18614    { (exit 1); exit 1; }; }
18615 fi
18616 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18617   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18618 Usually this means the macro was only invoked conditionally." >&5
18619 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18620 Usually this means the macro was only invoked conditionally." >&2;}
18621    { (exit 1); exit 1; }; }
18622 fi
18623 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18624   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18625 Usually this means the macro was only invoked conditionally." >&5
18626 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18627 Usually this means the macro was only invoked conditionally." >&2;}
18628    { (exit 1); exit 1; }; }
18629 fi
18630 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18631   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18632 Usually this means the macro was only invoked conditionally." >&5
18633 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18634 Usually this means the macro was only invoked conditionally." >&2;}
18635    { (exit 1); exit 1; }; }
18636 fi
18637 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18638   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18639 Usually this means the macro was only invoked conditionally." >&5
18640 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18641 Usually this means the macro was only invoked conditionally." >&2;}
18642    { (exit 1); exit 1; }; }
18643 fi
18644 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18645   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18646 Usually this means the macro was only invoked conditionally." >&5
18647 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18648 Usually this means the macro was only invoked conditionally." >&2;}
18649    { (exit 1); exit 1; }; }
18650 fi
18651 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
18652   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18653 Usually this means the macro was only invoked conditionally." >&5
18654 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18655 Usually this means the macro was only invoked conditionally." >&2;}
18656    { (exit 1); exit 1; }; }
18657 fi
18658 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18659   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18660 Usually this means the macro was only invoked conditionally." >&5
18661 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18662 Usually this means the macro was only invoked conditionally." >&2;}
18663    { (exit 1); exit 1; }; }
18664 fi
18665 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18666   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18667 Usually this means the macro was only invoked conditionally." >&5
18668 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18669 Usually this means the macro was only invoked conditionally." >&2;}
18670    { (exit 1); exit 1; }; }
18671 fi
18672 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18673   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18674 Usually this means the macro was only invoked conditionally." >&5
18675 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18676 Usually this means the macro was only invoked conditionally." >&2;}
18677    { (exit 1); exit 1; }; }
18678 fi
18679 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18680   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18681 Usually this means the macro was only invoked conditionally." >&5
18682 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18683 Usually this means the macro was only invoked conditionally." >&2;}
18684    { (exit 1); exit 1; }; }
18685 fi
18686 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18687   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18688 Usually this means the macro was only invoked conditionally." >&5
18689 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18690 Usually this means the macro was only invoked conditionally." >&2;}
18691    { (exit 1); exit 1; }; }
18692 fi
18693 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18694   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18695 Usually this means the macro was only invoked conditionally." >&5
18696 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18697 Usually this means the macro was only invoked conditionally." >&2;}
18698    { (exit 1); exit 1; }; }
18699 fi
18700 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
18701   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18702 Usually this means the macro was only invoked conditionally." >&5
18703 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18704 Usually this means the macro was only invoked conditionally." >&2;}
18705    { (exit 1); exit 1; }; }
18706 fi
18707 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18708   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18709 Usually this means the macro was only invoked conditionally." >&5
18710 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18711 Usually this means the macro was only invoked conditionally." >&2;}
18712    { (exit 1); exit 1; }; }
18713 fi
18714 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18715   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18716 Usually this means the macro was only invoked conditionally." >&5
18717 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18718 Usually this means the macro was only invoked conditionally." >&2;}
18719    { (exit 1); exit 1; }; }
18720 fi
18721 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18722   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18723 Usually this means the macro was only invoked conditionally." >&5
18724 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18725 Usually this means the macro was only invoked conditionally." >&2;}
18726    { (exit 1); exit 1; }; }
18727 fi
18728 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18729   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18730 Usually this means the macro was only invoked conditionally." >&5
18731 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18732 Usually this means the macro was only invoked conditionally." >&2;}
18733    { (exit 1); exit 1; }; }
18734 fi
18735 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18736   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18737 Usually this means the macro was only invoked conditionally." >&5
18738 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18739 Usually this means the macro was only invoked conditionally." >&2;}
18740    { (exit 1); exit 1; }; }
18741 fi
18742 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18743   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18744 Usually this means the macro was only invoked conditionally." >&5
18745 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18746 Usually this means the macro was only invoked conditionally." >&2;}
18747    { (exit 1); exit 1; }; }
18748 fi
18749 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18750   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18751 Usually this means the macro was only invoked conditionally." >&5
18752 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18753 Usually this means the macro was only invoked conditionally." >&2;}
18754    { (exit 1); exit 1; }; }
18755 fi
18756 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18757   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18758 Usually this means the macro was only invoked conditionally." >&5
18759 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18760 Usually this means the macro was only invoked conditionally." >&2;}
18761    { (exit 1); exit 1; }; }
18762 fi
18763 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18764   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18765 Usually this means the macro was only invoked conditionally." >&5
18766 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18767 Usually this means the macro was only invoked conditionally." >&2;}
18768    { (exit 1); exit 1; }; }
18769 fi
18770 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18771   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18772 Usually this means the macro was only invoked conditionally." >&5
18773 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18774 Usually this means the macro was only invoked conditionally." >&2;}
18775    { (exit 1); exit 1; }; }
18776 fi
18777 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18778   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18779 Usually this means the macro was only invoked conditionally." >&5
18780 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18781 Usually this means the macro was only invoked conditionally." >&2;}
18782    { (exit 1); exit 1; }; }
18783 fi
18784 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18785   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18786 Usually this means the macro was only invoked conditionally." >&5
18787 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18788 Usually this means the macro was only invoked conditionally." >&2;}
18789    { (exit 1); exit 1; }; }
18790 fi
18791 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18792   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18793 Usually this means the macro was only invoked conditionally." >&5
18794 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18795 Usually this means the macro was only invoked conditionally." >&2;}
18796    { (exit 1); exit 1; }; }
18797 fi
18798 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18799   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18800 Usually this means the macro was only invoked conditionally." >&5
18801 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18802 Usually this means the macro was only invoked conditionally." >&2;}
18803    { (exit 1); exit 1; }; }
18804 fi
18805 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18806   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18807 Usually this means the macro was only invoked conditionally." >&5
18808 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18809 Usually this means the macro was only invoked conditionally." >&2;}
18810    { (exit 1); exit 1; }; }
18811 fi
18812 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18813   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18814 Usually this means the macro was only invoked conditionally." >&5
18815 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18816 Usually this means the macro was only invoked conditionally." >&2;}
18817    { (exit 1); exit 1; }; }
18818 fi
18819 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18820   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18821 Usually this means the macro was only invoked conditionally." >&5
18822 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18823 Usually this means the macro was only invoked conditionally." >&2;}
18824    { (exit 1); exit 1; }; }
18825 fi
18826 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18827   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18828 Usually this means the macro was only invoked conditionally." >&5
18829 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18830 Usually this means the macro was only invoked conditionally." >&2;}
18831    { (exit 1); exit 1; }; }
18832 fi
18833 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
18834   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
18835 Usually this means the macro was only invoked conditionally." >&5
18836 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
18837 Usually this means the macro was only invoked conditionally." >&2;}
18838    { (exit 1); exit 1; }; }
18839 fi
18840 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
18841   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18842 Usually this means the macro was only invoked conditionally." >&5
18843 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18844 Usually this means the macro was only invoked conditionally." >&2;}
18845    { (exit 1); exit 1; }; }
18846 fi
18847 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
18848   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
18849 Usually this means the macro was only invoked conditionally." >&5
18850 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
18851 Usually this means the macro was only invoked conditionally." >&2;}
18852    { (exit 1); exit 1; }; }
18853 fi
18854 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
18855   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
18856 Usually this means the macro was only invoked conditionally." >&5
18857 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
18858 Usually this means the macro was only invoked conditionally." >&2;}
18859    { (exit 1); exit 1; }; }
18860 fi
18861 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18862   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
18863 Usually this means the macro was only invoked conditionally." >&5
18864 echo "$as_me: error: conditional \"MINGW\" was never defined.
18865 Usually this means the macro was only invoked conditionally." >&2;}
18866    { (exit 1); exit 1; }; }
18867 fi
18868 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
18869   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
18870 Usually this means the macro was only invoked conditionally." >&5
18871 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
18872 Usually this means the macro was only invoked conditionally." >&2;}
18873    { (exit 1); exit 1; }; }
18874 fi
18875
18876 : ${CONFIG_STATUS=./config.status}
18877 ac_clean_files_save=$ac_clean_files
18878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18879 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18880 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18881 cat >$CONFIG_STATUS <<_ACEOF
18882 #! $SHELL
18883 # Generated by $as_me.
18884 # Run this file to recreate the current configuration.
18885 # Compiler output produced by configure, useful for debugging
18886 # configure, is in config.log if it exists.
18887
18888 debug=false
18889 ac_cs_recheck=false
18890 ac_cs_silent=false
18891 SHELL=\${CONFIG_SHELL-$SHELL}
18892 _ACEOF
18893
18894 cat >>$CONFIG_STATUS <<\_ACEOF
18895 ## --------------------- ##
18896 ## M4sh Initialization.  ##
18897 ## --------------------- ##
18898
18899 # Be Bourne compatible
18900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18901   emulate sh
18902   NULLCMD=:
18903   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18904   # is contrary to our usage.  Disable this feature.
18905   alias -g '${1+"$@"}'='"$@"'
18906 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18907   set -o posix
18908 fi
18909 DUALCASE=1; export DUALCASE # for MKS sh
18910
18911 # Support unset when possible.
18912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18913   as_unset=unset
18914 else
18915   as_unset=false
18916 fi
18917
18918
18919 # Work around bugs in pre-3.0 UWIN ksh.
18920 $as_unset ENV MAIL MAILPATH
18921 PS1='$ '
18922 PS2='> '
18923 PS4='+ '
18924
18925 # NLS nuisances.
18926 for as_var in \
18927   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18928   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18929   LC_TELEPHONE LC_TIME
18930 do
18931   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18932     eval $as_var=C; export $as_var
18933   else
18934     $as_unset $as_var
18935   fi
18936 done
18937
18938 # Required to use basename.
18939 if expr a : '\(a\)' >/dev/null 2>&1; then
18940   as_expr=expr
18941 else
18942   as_expr=false
18943 fi
18944
18945 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18946   as_basename=basename
18947 else
18948   as_basename=false
18949 fi
18950
18951
18952 # Name of the executable.
18953 as_me=`$as_basename "$0" ||
18954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18955          X"$0" : 'X\(//\)$' \| \
18956          X"$0" : 'X\(/\)$' \| \
18957          .     : '\(.\)' 2>/dev/null ||
18958 echo X/"$0" |
18959     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18960           /^X\/\(\/\/\)$/{ s//\1/; q; }
18961           /^X\/\(\/\).*/{ s//\1/; q; }
18962           s/.*/./; q'`
18963
18964
18965 # PATH needs CR, and LINENO needs CR and PATH.
18966 # Avoid depending upon Character Ranges.
18967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18970 as_cr_digits='0123456789'
18971 as_cr_alnum=$as_cr_Letters$as_cr_digits
18972
18973 # The user is always right.
18974 if test "${PATH_SEPARATOR+set}" != set; then
18975   echo "#! /bin/sh" >conf$$.sh
18976   echo  "exit 0"   >>conf$$.sh
18977   chmod +x conf$$.sh
18978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18979     PATH_SEPARATOR=';'
18980   else
18981     PATH_SEPARATOR=:
18982   fi
18983   rm -f conf$$.sh
18984 fi
18985
18986
18987   as_lineno_1=$LINENO
18988   as_lineno_2=$LINENO
18989   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18990   test "x$as_lineno_1" != "x$as_lineno_2" &&
18991   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18992   # Find who we are.  Look in the path if we contain no path at all
18993   # relative or not.
18994   case $0 in
18995     *[\\/]* ) as_myself=$0 ;;
18996     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18997 for as_dir in $PATH
18998 do
18999   IFS=$as_save_IFS
19000   test -z "$as_dir" && as_dir=.
19001   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19002 done
19003
19004        ;;
19005   esac
19006   # We did not find ourselves, most probably we were run as `sh COMMAND'
19007   # in which case we are not to be found in the path.
19008   if test "x$as_myself" = x; then
19009     as_myself=$0
19010   fi
19011   if test ! -f "$as_myself"; then
19012     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19013 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19014    { (exit 1); exit 1; }; }
19015   fi
19016   case $CONFIG_SHELL in
19017   '')
19018     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19019 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19020 do
19021   IFS=$as_save_IFS
19022   test -z "$as_dir" && as_dir=.
19023   for as_base in sh bash ksh sh5; do
19024          case $as_dir in
19025          /*)
19026            if ("$as_dir/$as_base" -c '
19027   as_lineno_1=$LINENO
19028   as_lineno_2=$LINENO
19029   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19030   test "x$as_lineno_1" != "x$as_lineno_2" &&
19031   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19032              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19033              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19034              CONFIG_SHELL=$as_dir/$as_base
19035              export CONFIG_SHELL
19036              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19037            fi;;
19038          esac
19039        done
19040 done
19041 ;;
19042   esac
19043
19044   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19045   # uniformly replaced by the line number.  The first 'sed' inserts a
19046   # line-number line before each line; the second 'sed' does the real
19047   # work.  The second script uses 'N' to pair each line-number line
19048   # with the numbered line, and appends trailing '-' during
19049   # substitution so that $LINENO is not a special case at line end.
19050   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19051   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19052   sed '=' <$as_myself |
19053     sed '
19054       N
19055       s,$,-,
19056       : loop
19057       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19058       t loop
19059       s,-$,,
19060       s,^['$as_cr_digits']*\n,,
19061     ' >$as_me.lineno &&
19062   chmod +x $as_me.lineno ||
19063     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19064 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19065    { (exit 1); exit 1; }; }
19066
19067   # Don't try to exec as it changes $[0], causing all sort of problems
19068   # (the dirname of $[0] is not the place where we might find the
19069   # original and so on.  Autoconf is especially sensible to this).
19070   . ./$as_me.lineno
19071   # Exit status is that of the last command.
19072   exit
19073 }
19074
19075
19076 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19077   *c*,-n*) ECHO_N= ECHO_C='
19078 ' ECHO_T='      ' ;;
19079   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19080   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19081 esac
19082
19083 if expr a : '\(a\)' >/dev/null 2>&1; then
19084   as_expr=expr
19085 else
19086   as_expr=false
19087 fi
19088
19089 rm -f conf$$ conf$$.exe conf$$.file
19090 echo >conf$$.file
19091 if ln -s conf$$.file conf$$ 2>/dev/null; then
19092   # We could just check for DJGPP; but this test a) works b) is more generic
19093   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19094   if test -f conf$$.exe; then
19095     # Don't use ln at all; we don't have any links
19096     as_ln_s='cp -p'
19097   else
19098     as_ln_s='ln -s'
19099   fi
19100 elif ln conf$$.file conf$$ 2>/dev/null; then
19101   as_ln_s=ln
19102 else
19103   as_ln_s='cp -p'
19104 fi
19105 rm -f conf$$ conf$$.exe conf$$.file
19106
19107 if mkdir -p . 2>/dev/null; then
19108   as_mkdir_p=:
19109 else
19110   test -d ./-p && rmdir ./-p
19111   as_mkdir_p=false
19112 fi
19113
19114 as_executable_p="test -f"
19115
19116 # Sed expression to map a string onto a valid CPP name.
19117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19118
19119 # Sed expression to map a string onto a valid variable name.
19120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19121
19122
19123 # IFS
19124 # We need space, tab and new line, in precisely that order.
19125 as_nl='
19126 '
19127 IFS="   $as_nl"
19128
19129 # CDPATH.
19130 $as_unset CDPATH
19131
19132 exec 6>&1
19133
19134 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19135 # report actual input values of CONFIG_FILES etc. instead of their
19136 # values after options handling.  Logging --version etc. is OK.
19137 exec 5>>config.log
19138 {
19139   echo
19140   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19141 ## Running $as_me. ##
19142 _ASBOX
19143 } >&5
19144 cat >&5 <<_CSEOF
19145
19146 This file was extended by TiMidity++ $as_me current, which was
19147 generated by GNU Autoconf 2.59.  Invocation command line was
19148
19149   CONFIG_FILES    = $CONFIG_FILES
19150   CONFIG_HEADERS  = $CONFIG_HEADERS
19151   CONFIG_LINKS    = $CONFIG_LINKS
19152   CONFIG_COMMANDS = $CONFIG_COMMANDS
19153   $ $0 $@
19154
19155 _CSEOF
19156 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19157 echo >&5
19158 _ACEOF
19159
19160 # Files that config.status was made for.
19161 if test -n "$ac_config_files"; then
19162   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19163 fi
19164
19165 if test -n "$ac_config_headers"; then
19166   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19167 fi
19168
19169 if test -n "$ac_config_links"; then
19170   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19171 fi
19172
19173 if test -n "$ac_config_commands"; then
19174   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19175 fi
19176
19177 cat >>$CONFIG_STATUS <<\_ACEOF
19178
19179 ac_cs_usage="\
19180 \`$as_me' instantiates files from templates according to the
19181 current configuration.
19182
19183 Usage: $0 [OPTIONS] [FILE]...
19184
19185   -h, --help       print this help, then exit
19186   -V, --version    print version number, then exit
19187   -q, --quiet      do not print progress messages
19188   -d, --debug      don't remove temporary files
19189       --recheck    update $as_me by reconfiguring in the same conditions
19190   --file=FILE[:TEMPLATE]
19191                    instantiate the configuration file FILE
19192   --header=FILE[:TEMPLATE]
19193                    instantiate the configuration header FILE
19194
19195 Configuration files:
19196 $config_files
19197
19198 Configuration headers:
19199 $config_headers
19200
19201 Configuration commands:
19202 $config_commands
19203
19204 Report bugs to <bug-autoconf@gnu.org>."
19205 _ACEOF
19206
19207 cat >>$CONFIG_STATUS <<_ACEOF
19208 ac_cs_version="\\
19209 TiMidity++ config.status current
19210 configured by $0, generated by GNU Autoconf 2.59,
19211   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19212
19213 Copyright (C) 2003 Free Software Foundation, Inc.
19214 This config.status script is free software; the Free Software Foundation
19215 gives unlimited permission to copy, distribute and modify it."
19216 srcdir=$srcdir
19217 INSTALL="$INSTALL"
19218 _ACEOF
19219
19220 cat >>$CONFIG_STATUS <<\_ACEOF
19221 # If no file are specified by the user, then we need to provide default
19222 # value.  By we need to know if files were specified by the user.
19223 ac_need_defaults=:
19224 while test $# != 0
19225 do
19226   case $1 in
19227   --*=*)
19228     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19229     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19230     ac_shift=:
19231     ;;
19232   -*)
19233     ac_option=$1
19234     ac_optarg=$2
19235     ac_shift=shift
19236     ;;
19237   *) # This is not an option, so the user has probably given explicit
19238      # arguments.
19239      ac_option=$1
19240      ac_need_defaults=false;;
19241   esac
19242
19243   case $ac_option in
19244   # Handling of the options.
19245 _ACEOF
19246 cat >>$CONFIG_STATUS <<\_ACEOF
19247   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19248     ac_cs_recheck=: ;;
19249   --version | --vers* | -V )
19250     echo "$ac_cs_version"; exit 0 ;;
19251   --he | --h)
19252     # Conflict between --help and --header
19253     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19254 Try \`$0 --help' for more information." >&5
19255 echo "$as_me: error: ambiguous option: $1
19256 Try \`$0 --help' for more information." >&2;}
19257    { (exit 1); exit 1; }; };;
19258   --help | --hel | -h )
19259     echo "$ac_cs_usage"; exit 0 ;;
19260   --debug | --d* | -d )
19261     debug=: ;;
19262   --file | --fil | --fi | --f )
19263     $ac_shift
19264     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19265     ac_need_defaults=false;;
19266   --header | --heade | --head | --hea )
19267     $ac_shift
19268     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19269     ac_need_defaults=false;;
19270   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19271   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19272     ac_cs_silent=: ;;
19273
19274   # This is an error.
19275   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19276 Try \`$0 --help' for more information." >&5
19277 echo "$as_me: error: unrecognized option: $1
19278 Try \`$0 --help' for more information." >&2;}
19279    { (exit 1); exit 1; }; } ;;
19280
19281   *) ac_config_targets="$ac_config_targets $1" ;;
19282
19283   esac
19284   shift
19285 done
19286
19287 ac_configure_extra_args=
19288
19289 if $ac_cs_silent; then
19290   exec 6>/dev/null
19291   ac_configure_extra_args="$ac_configure_extra_args --silent"
19292 fi
19293
19294 _ACEOF
19295 cat >>$CONFIG_STATUS <<_ACEOF
19296 if \$ac_cs_recheck; then
19297   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19298   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19299 fi
19300
19301 _ACEOF
19302
19303 cat >>$CONFIG_STATUS <<_ACEOF
19304 #
19305 # INIT-COMMANDS section.
19306 #
19307
19308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19309
19310 _ACEOF
19311
19312
19313
19314 cat >>$CONFIG_STATUS <<\_ACEOF
19315 for ac_config_target in $ac_config_targets
19316 do
19317   case "$ac_config_target" in
19318   # Handling of arguments.
19319   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19320   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19321   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19322   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19323   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19324   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19325   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19326   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19327   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19328   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19329   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19330   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19331   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19332   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19333   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19334   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19335   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19336   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19337   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19338   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19339   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19340   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19341 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19342    { (exit 1); exit 1; }; };;
19343   esac
19344 done
19345
19346 # If the user did not use the arguments to specify the items to instantiate,
19347 # then the envvar interface is used.  Set only those that are not.
19348 # We use the long form for the default assignment because of an extremely
19349 # bizarre bug on SunOS 4.1.3.
19350 if $ac_need_defaults; then
19351   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19352   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19353   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19354 fi
19355
19356 # Have a temporary directory for convenience.  Make it in the build tree
19357 # simply because there is no reason to put it here, and in addition,
19358 # creating and moving files from /tmp can sometimes cause problems.
19359 # Create a temporary directory, and hook for its removal unless debugging.
19360 $debug ||
19361 {
19362   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19363   trap '{ (exit 1); exit 1; }' 1 2 13 15
19364 }
19365
19366 # Create a (secure) tmp directory for tmp files.
19367
19368 {
19369   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19370   test -n "$tmp" && test -d "$tmp"
19371 }  ||
19372 {
19373   tmp=./confstat$$-$RANDOM
19374   (umask 077 && mkdir $tmp)
19375 } ||
19376 {
19377    echo "$me: cannot create a temporary directory in ." >&2
19378    { (exit 1); exit 1; }
19379 }
19380
19381 _ACEOF
19382
19383 cat >>$CONFIG_STATUS <<_ACEOF
19384
19385 #
19386 # CONFIG_FILES section.
19387 #
19388
19389 # No need to generate the scripts if there are no CONFIG_FILES.
19390 # This happens for instance when ./config.status config.h
19391 if test -n "\$CONFIG_FILES"; then
19392   # Protect against being on the right side of a sed subst in config.status.
19393   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19394    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19395 s,@SHELL@,$SHELL,;t t
19396 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19397 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19398 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19399 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19400 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19401 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19402 s,@exec_prefix@,$exec_prefix,;t t
19403 s,@prefix@,$prefix,;t t
19404 s,@program_transform_name@,$program_transform_name,;t t
19405 s,@bindir@,$bindir,;t t
19406 s,@sbindir@,$sbindir,;t t
19407 s,@libexecdir@,$libexecdir,;t t
19408 s,@datadir@,$datadir,;t t
19409 s,@sysconfdir@,$sysconfdir,;t t
19410 s,@sharedstatedir@,$sharedstatedir,;t t
19411 s,@localstatedir@,$localstatedir,;t t
19412 s,@libdir@,$libdir,;t t
19413 s,@includedir@,$includedir,;t t
19414 s,@oldincludedir@,$oldincludedir,;t t
19415 s,@infodir@,$infodir,;t t
19416 s,@mandir@,$mandir,;t t
19417 s,@build_alias@,$build_alias,;t t
19418 s,@host_alias@,$host_alias,;t t
19419 s,@target_alias@,$target_alias,;t t
19420 s,@DEFS@,$DEFS,;t t
19421 s,@ECHO_C@,$ECHO_C,;t t
19422 s,@ECHO_N@,$ECHO_N,;t t
19423 s,@ECHO_T@,$ECHO_T,;t t
19424 s,@LIBS@,$LIBS,;t t
19425 s,@build@,$build,;t t
19426 s,@build_cpu@,$build_cpu,;t t
19427 s,@build_vendor@,$build_vendor,;t t
19428 s,@build_os@,$build_os,;t t
19429 s,@host@,$host,;t t
19430 s,@host_cpu@,$host_cpu,;t t
19431 s,@host_vendor@,$host_vendor,;t t
19432 s,@host_os@,$host_os,;t t
19433 s,@target@,$target,;t t
19434 s,@target_cpu@,$target_cpu,;t t
19435 s,@target_vendor@,$target_vendor,;t t
19436 s,@target_os@,$target_os,;t t
19437 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19438 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19439 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19440 s,@CYGPATH_W@,$CYGPATH_W,;t t
19441 s,@PACKAGE@,$PACKAGE,;t t
19442 s,@VERSION@,$VERSION,;t t
19443 s,@ACLOCAL@,$ACLOCAL,;t t
19444 s,@AUTOCONF@,$AUTOCONF,;t t
19445 s,@AUTOMAKE@,$AUTOMAKE,;t t
19446 s,@AUTOHEADER@,$AUTOHEADER,;t t
19447 s,@MAKEINFO@,$MAKEINFO,;t t
19448 s,@AMTAR@,$AMTAR,;t t
19449 s,@install_sh@,$install_sh,;t t
19450 s,@STRIP@,$STRIP,;t t
19451 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19452 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19453 s,@AWK@,$AWK,;t t
19454 s,@SET_MAKE@,$SET_MAKE,;t t
19455 s,@am__leading_dot@,$am__leading_dot,;t t
19456 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19457 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19458 s,@MAINT@,$MAINT,;t t
19459 s,@EMACS@,$EMACS,;t t
19460 s,@lispdir@,$lispdir,;t t
19461 s,@CC@,$CC,;t t
19462 s,@CFLAGS@,$CFLAGS,;t t
19463 s,@LDFLAGS@,$LDFLAGS,;t t
19464 s,@CPPFLAGS@,$CPPFLAGS,;t t
19465 s,@ac_ct_CC@,$ac_ct_CC,;t t
19466 s,@EXEEXT@,$EXEEXT,;t t
19467 s,@OBJEXT@,$OBJEXT,;t t
19468 s,@DEPDIR@,$DEPDIR,;t t
19469 s,@am__include@,$am__include,;t t
19470 s,@am__quote@,$am__quote,;t t
19471 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19472 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19473 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19474 s,@CCDEPMODE@,$CCDEPMODE,;t t
19475 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19476 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19477 s,@CPP@,$CPP,;t t
19478 s,@EGREP@,$EGREP,;t t
19479 s,@RANLIB@,$RANLIB,;t t
19480 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19481 s,@LN_S@,$LN_S,;t t
19482 s,@X_CFLAGS@,$X_CFLAGS,;t t
19483 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19484 s,@X_LIBS@,$X_LIBS,;t t
19485 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19486 s,@LIBOBJS@,$LIBOBJS,;t t
19487 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19488 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19489 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19490 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19491 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19492 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19493 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19494 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19495 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19496 s,@ESD_LIBS@,$ESD_LIBS,;t t
19497 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19498 s,@AO_LIBS@,$AO_LIBS,;t t
19499 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19500 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19501 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19502 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19503 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19504 s,@OGG_LIBS@,$OGG_LIBS,;t t
19505 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19506 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19507 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19508 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19509 s,@n_so_libs@,$n_so_libs,;t t
19510 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19511 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19512 s,@s_so_libs@,$s_so_libs,;t t
19513 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19514 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19515 s,@m_so_libs@,$m_so_libs,;t t
19516 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19517 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19518 s,@k_so_libs@,$k_so_libs,;t t
19519 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19520 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19521 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19522 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19523 s,@e_so_libs@,$e_so_libs,;t t
19524 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19525 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19526 s,@T_so_libs@,$T_so_libs,;t t
19527 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19528 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19529 s,@a_so_libs@,$a_so_libs,;t t
19530 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19531 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19532 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19533 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19534 s,@i_so_libs@,$i_so_libs,;t t
19535 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19536 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19537 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19538 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19539 s,@GTK_LIBS@,$GTK_LIBS,;t t
19540 s,@g_so_libs@,$g_so_libs,;t t
19541 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19542 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19543 s,@r_so_libs@,$r_so_libs,;t t
19544 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19545 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19546 s,@A_so_libs@,$A_so_libs,;t t
19547 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19548 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19549 s,@W_so_libs@,$W_so_libs,;t t
19550 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19551 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19552 s,@P_so_libs@,$P_so_libs,;t t
19553 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19554 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19555 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19556 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19557 s,@w_so_libs@,$w_so_libs,;t t
19558 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19559 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19560 s,@p_so_libs@,$p_so_libs,;t t
19561 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19562 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19563 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19564 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19565 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19566 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19567 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19568 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19569 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19570 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19571 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19572 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19573 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19574 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19575 s,@EXTRALIBS@,$EXTRALIBS,;t t
19576 s,@NETSRCS@,$NETSRCS,;t t
19577 s,@ELFILES@,$ELFILES,;t t
19578 s,@SHLD@,$SHLD,;t t
19579 s,@SHCFLAGS@,$SHCFLAGS,;t t
19580 s,@dynamic_targets@,$dynamic_targets,;t t
19581 s,@so@,$so,;t t
19582 s,@WISH@,$WISH,;t t
19583 s,@tcltk_dep@,$tcltk_dep,;t t
19584 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19585 s,@pkgdatadir@,$pkgdatadir,;t t
19586 s,@pkglibdir@,$pkglibdir,;t t
19587 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19588 CEOF
19589
19590 _ACEOF
19591
19592   cat >>$CONFIG_STATUS <<\_ACEOF
19593   # Split the substitutions into bite-sized pieces for seds with
19594   # small command number limits, like on Digital OSF/1 and HP-UX.
19595   ac_max_sed_lines=48
19596   ac_sed_frag=1 # Number of current file.
19597   ac_beg=1 # First line for current file.
19598   ac_end=$ac_max_sed_lines # Line after last line for current file.
19599   ac_more_lines=:
19600   ac_sed_cmds=
19601   while $ac_more_lines; do
19602     if test $ac_beg -gt 1; then
19603       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19604     else
19605       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19606     fi
19607     if test ! -s $tmp/subs.frag; then
19608       ac_more_lines=false
19609     else
19610       # The purpose of the label and of the branching condition is to
19611       # speed up the sed processing (if there are no `@' at all, there
19612       # is no need to browse any of the substitutions).
19613       # These are the two extra sed commands mentioned above.
19614       (echo ':t
19615   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19616       if test -z "$ac_sed_cmds"; then
19617         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19618       else
19619         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19620       fi
19621       ac_sed_frag=`expr $ac_sed_frag + 1`
19622       ac_beg=$ac_end
19623       ac_end=`expr $ac_end + $ac_max_sed_lines`
19624     fi
19625   done
19626   if test -z "$ac_sed_cmds"; then
19627     ac_sed_cmds=cat
19628   fi
19629 fi # test -n "$CONFIG_FILES"
19630
19631 _ACEOF
19632 cat >>$CONFIG_STATUS <<\_ACEOF
19633 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19634   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19635   case $ac_file in
19636   - | *:- | *:-:* ) # input from stdin
19637         cat >$tmp/stdin
19638         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19639         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19640   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19641         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19642   * )   ac_file_in=$ac_file.in ;;
19643   esac
19644
19645   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19646   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19648          X"$ac_file" : 'X\(//\)[^/]' \| \
19649          X"$ac_file" : 'X\(//\)$' \| \
19650          X"$ac_file" : 'X\(/\)' \| \
19651          .     : '\(.\)' 2>/dev/null ||
19652 echo X"$ac_file" |
19653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19655           /^X\(\/\/\)$/{ s//\1/; q; }
19656           /^X\(\/\).*/{ s//\1/; q; }
19657           s/.*/./; q'`
19658   { if $as_mkdir_p; then
19659     mkdir -p "$ac_dir"
19660   else
19661     as_dir="$ac_dir"
19662     as_dirs=
19663     while test ! -d "$as_dir"; do
19664       as_dirs="$as_dir $as_dirs"
19665       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19667          X"$as_dir" : 'X\(//\)[^/]' \| \
19668          X"$as_dir" : 'X\(//\)$' \| \
19669          X"$as_dir" : 'X\(/\)' \| \
19670          .     : '\(.\)' 2>/dev/null ||
19671 echo X"$as_dir" |
19672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19673           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19674           /^X\(\/\/\)$/{ s//\1/; q; }
19675           /^X\(\/\).*/{ s//\1/; q; }
19676           s/.*/./; q'`
19677     done
19678     test ! -n "$as_dirs" || mkdir $as_dirs
19679   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19681    { (exit 1); exit 1; }; }; }
19682
19683   ac_builddir=.
19684
19685 if test "$ac_dir" != .; then
19686   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19687   # A "../" for each directory in $ac_dir_suffix.
19688   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19689 else
19690   ac_dir_suffix= ac_top_builddir=
19691 fi
19692
19693 case $srcdir in
19694   .)  # No --srcdir option.  We are building in place.
19695     ac_srcdir=.
19696     if test -z "$ac_top_builddir"; then
19697        ac_top_srcdir=.
19698     else
19699        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19700     fi ;;
19701   [\\/]* | ?:[\\/]* )  # Absolute path.
19702     ac_srcdir=$srcdir$ac_dir_suffix;
19703     ac_top_srcdir=$srcdir ;;
19704   *) # Relative path.
19705     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19706     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19707 esac
19708
19709 # Do not use `cd foo && pwd` to compute absolute paths, because
19710 # the directories may not exist.
19711 case `pwd` in
19712 .) ac_abs_builddir="$ac_dir";;
19713 *)
19714   case "$ac_dir" in
19715   .) ac_abs_builddir=`pwd`;;
19716   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19717   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19718   esac;;
19719 esac
19720 case $ac_abs_builddir in
19721 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19722 *)
19723   case ${ac_top_builddir}. in
19724   .) ac_abs_top_builddir=$ac_abs_builddir;;
19725   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19726   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19727   esac;;
19728 esac
19729 case $ac_abs_builddir in
19730 .) ac_abs_srcdir=$ac_srcdir;;
19731 *)
19732   case $ac_srcdir in
19733   .) ac_abs_srcdir=$ac_abs_builddir;;
19734   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19735   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19736   esac;;
19737 esac
19738 case $ac_abs_builddir in
19739 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19740 *)
19741   case $ac_top_srcdir in
19742   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19743   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19744   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19745   esac;;
19746 esac
19747
19748
19749   case $INSTALL in
19750   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19751   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19752   esac
19753
19754   if test x"$ac_file" != x-; then
19755     { echo "$as_me:$LINENO: creating $ac_file" >&5
19756 echo "$as_me: creating $ac_file" >&6;}
19757     rm -f "$ac_file"
19758   fi
19759   # Let's still pretend it is `configure' which instantiates (i.e., don't
19760   # use $as_me), people would be surprised to read:
19761   #    /* config.h.  Generated by config.status.  */
19762   if test x"$ac_file" = x-; then
19763     configure_input=
19764   else
19765     configure_input="$ac_file.  "
19766   fi
19767   configure_input=$configure_input"Generated from `echo $ac_file_in |
19768                                      sed 's,.*/,,'` by configure."
19769
19770   # First look for the input files in the build tree, otherwise in the
19771   # src tree.
19772   ac_file_inputs=`IFS=:
19773     for f in $ac_file_in; do
19774       case $f in
19775       -) echo $tmp/stdin ;;
19776       [\\/$]*)
19777          # Absolute (can't be DOS-style, as IFS=:)
19778          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19779 echo "$as_me: error: cannot find input file: $f" >&2;}
19780    { (exit 1); exit 1; }; }
19781          echo "$f";;
19782       *) # Relative
19783          if test -f "$f"; then
19784            # Build tree
19785            echo "$f"
19786          elif test -f "$srcdir/$f"; then
19787            # Source tree
19788            echo "$srcdir/$f"
19789          else
19790            # /dev/null tree
19791            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19792 echo "$as_me: error: cannot find input file: $f" >&2;}
19793    { (exit 1); exit 1; }; }
19794          fi;;
19795       esac
19796     done` || { (exit 1); exit 1; }
19797 _ACEOF
19798 cat >>$CONFIG_STATUS <<_ACEOF
19799   sed "$ac_vpsub
19800 $extrasub
19801 _ACEOF
19802 cat >>$CONFIG_STATUS <<\_ACEOF
19803 :t
19804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19805 s,@configure_input@,$configure_input,;t t
19806 s,@srcdir@,$ac_srcdir,;t t
19807 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19808 s,@top_srcdir@,$ac_top_srcdir,;t t
19809 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19810 s,@builddir@,$ac_builddir,;t t
19811 s,@abs_builddir@,$ac_abs_builddir,;t t
19812 s,@top_builddir@,$ac_top_builddir,;t t
19813 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19814 s,@INSTALL@,$ac_INSTALL,;t t
19815 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19816   rm -f $tmp/stdin
19817   if test x"$ac_file" != x-; then
19818     mv $tmp/out $ac_file
19819   else
19820     cat $tmp/out
19821     rm -f $tmp/out
19822   fi
19823
19824 done
19825 _ACEOF
19826 cat >>$CONFIG_STATUS <<\_ACEOF
19827
19828 #
19829 # CONFIG_HEADER section.
19830 #
19831
19832 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19833 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19834 #
19835 # ac_d sets the value in "#define NAME VALUE" lines.
19836 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
19837 ac_dB='[         ].*$,\1#\2'
19838 ac_dC=' '
19839 ac_dD=',;t'
19840 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19841 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19842 ac_uB='$,\1#\2define\3'
19843 ac_uC=' '
19844 ac_uD=',;t'
19845
19846 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19847   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19848   case $ac_file in
19849   - | *:- | *:-:* ) # input from stdin
19850         cat >$tmp/stdin
19851         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19852         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19853   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19854         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19855   * )   ac_file_in=$ac_file.in ;;
19856   esac
19857
19858   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19859 echo "$as_me: creating $ac_file" >&6;}
19860
19861   # First look for the input files in the build tree, otherwise in the
19862   # src tree.
19863   ac_file_inputs=`IFS=:
19864     for f in $ac_file_in; do
19865       case $f in
19866       -) echo $tmp/stdin ;;
19867       [\\/$]*)
19868          # Absolute (can't be DOS-style, as IFS=:)
19869          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19870 echo "$as_me: error: cannot find input file: $f" >&2;}
19871    { (exit 1); exit 1; }; }
19872          # Do quote $f, to prevent DOS paths from being IFS'd.
19873          echo "$f";;
19874       *) # Relative
19875          if test -f "$f"; then
19876            # Build tree
19877            echo "$f"
19878          elif test -f "$srcdir/$f"; then
19879            # Source tree
19880            echo "$srcdir/$f"
19881          else
19882            # /dev/null tree
19883            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19884 echo "$as_me: error: cannot find input file: $f" >&2;}
19885    { (exit 1); exit 1; }; }
19886          fi;;
19887       esac
19888     done` || { (exit 1); exit 1; }
19889   # Remove the trailing spaces.
19890   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
19891
19892 _ACEOF
19893
19894 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19895 # `conftest.undefs', that substitutes the proper values into
19896 # config.h.in to produce config.h.  The first handles `#define'
19897 # templates, and the second `#undef' templates.
19898 # And first: Protect against being on the right side of a sed subst in
19899 # config.status.  Protect against being in an unquoted here document
19900 # in config.status.
19901 rm -f conftest.defines conftest.undefs
19902 # Using a here document instead of a string reduces the quoting nightmare.
19903 # Putting comments in sed scripts is not portable.
19904 #
19905 # `end' is used to avoid that the second main sed command (meant for
19906 # 0-ary CPP macros) applies to n-ary macro definitions.
19907 # See the Autoconf documentation for `clear'.
19908 cat >confdef2sed.sed <<\_ACEOF
19909 s/[\\&,]/\\&/g
19910 s,[\\$`],\\&,g
19911 t clear
19912 : clear
19913 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19914 t end
19915 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19916 : end
19917 _ACEOF
19918 # If some macros were called several times there might be several times
19919 # the same #defines, which is useless.  Nevertheless, we may not want to
19920 # sort them, since we want the *last* AC-DEFINE to be honored.
19921 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19922 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19923 rm -f confdef2sed.sed
19924
19925 # This sed command replaces #undef with comments.  This is necessary, for
19926 # example, in the case of _POSIX_SOURCE, which is predefined and required
19927 # on some systems where configure will not decide to define it.
19928 cat >>conftest.undefs <<\_ACEOF
19929 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19930 _ACEOF
19931
19932 # Break up conftest.defines because some shells have a limit on the size
19933 # of here documents, and old seds have small limits too (100 cmds).
19934 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19935 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19936 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19937 echo '  :' >>$CONFIG_STATUS
19938 rm -f conftest.tail
19939 while grep . conftest.defines >/dev/null
19940 do
19941   # Write a limited-size here document to $tmp/defines.sed.
19942   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19943   # Speed up: don't consider the non `#define' lines.
19944   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
19945   # Work around the forget-to-reset-the-flag bug.
19946   echo 't clr' >>$CONFIG_STATUS
19947   echo ': clr' >>$CONFIG_STATUS
19948   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19949   echo 'CEOF
19950   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19951   rm -f $tmp/in
19952   mv $tmp/out $tmp/in
19953 ' >>$CONFIG_STATUS
19954   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19955   rm -f conftest.defines
19956   mv conftest.tail conftest.defines
19957 done
19958 rm -f conftest.defines
19959 echo '  fi # grep' >>$CONFIG_STATUS
19960 echo >>$CONFIG_STATUS
19961
19962 # Break up conftest.undefs because some shells have a limit on the size
19963 # of here documents, and old seds have small limits too (100 cmds).
19964 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19965 rm -f conftest.tail
19966 while grep . conftest.undefs >/dev/null
19967 do
19968   # Write a limited-size here document to $tmp/undefs.sed.
19969   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19970   # Speed up: don't consider the non `#undef'
19971   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19972   # Work around the forget-to-reset-the-flag bug.
19973   echo 't clr' >>$CONFIG_STATUS
19974   echo ': clr' >>$CONFIG_STATUS
19975   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19976   echo 'CEOF
19977   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19978   rm -f $tmp/in
19979   mv $tmp/out $tmp/in
19980 ' >>$CONFIG_STATUS
19981   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19982   rm -f conftest.undefs
19983   mv conftest.tail conftest.undefs
19984 done
19985 rm -f conftest.undefs
19986
19987 cat >>$CONFIG_STATUS <<\_ACEOF
19988   # Let's still pretend it is `configure' which instantiates (i.e., don't
19989   # use $as_me), people would be surprised to read:
19990   #    /* config.h.  Generated by config.status.  */
19991   if test x"$ac_file" = x-; then
19992     echo "/* Generated by configure.  */" >$tmp/config.h
19993   else
19994     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19995   fi
19996   cat $tmp/in >>$tmp/config.h
19997   rm -f $tmp/in
19998   if test x"$ac_file" != x-; then
19999     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20000       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20001 echo "$as_me: $ac_file is unchanged" >&6;}
20002     else
20003       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20005          X"$ac_file" : 'X\(//\)[^/]' \| \
20006          X"$ac_file" : 'X\(//\)$' \| \
20007          X"$ac_file" : 'X\(/\)' \| \
20008          .     : '\(.\)' 2>/dev/null ||
20009 echo X"$ac_file" |
20010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20011           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20012           /^X\(\/\/\)$/{ s//\1/; q; }
20013           /^X\(\/\).*/{ s//\1/; q; }
20014           s/.*/./; q'`
20015       { if $as_mkdir_p; then
20016     mkdir -p "$ac_dir"
20017   else
20018     as_dir="$ac_dir"
20019     as_dirs=
20020     while test ! -d "$as_dir"; do
20021       as_dirs="$as_dir $as_dirs"
20022       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20024          X"$as_dir" : 'X\(//\)[^/]' \| \
20025          X"$as_dir" : 'X\(//\)$' \| \
20026          X"$as_dir" : 'X\(/\)' \| \
20027          .     : '\(.\)' 2>/dev/null ||
20028 echo X"$as_dir" |
20029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20030           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20031           /^X\(\/\/\)$/{ s//\1/; q; }
20032           /^X\(\/\).*/{ s//\1/; q; }
20033           s/.*/./; q'`
20034     done
20035     test ! -n "$as_dirs" || mkdir $as_dirs
20036   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20037 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20038    { (exit 1); exit 1; }; }; }
20039
20040       rm -f $ac_file
20041       mv $tmp/config.h $ac_file
20042     fi
20043   else
20044     cat $tmp/config.h
20045     rm -f $tmp/config.h
20046   fi
20047 # Compute $ac_file's index in $config_headers.
20048 _am_stamp_count=1
20049 for _am_header in $config_headers :; do
20050   case $_am_header in
20051     $ac_file | $ac_file:* )
20052       break ;;
20053     * )
20054       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20055   esac
20056 done
20057 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20058 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20059          X$ac_file : 'X\(//\)[^/]' \| \
20060          X$ac_file : 'X\(//\)$' \| \
20061          X$ac_file : 'X\(/\)' \| \
20062          .     : '\(.\)' 2>/dev/null ||
20063 echo X$ac_file |
20064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20065           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20066           /^X\(\/\/\)$/{ s//\1/; q; }
20067           /^X\(\/\).*/{ s//\1/; q; }
20068           s/.*/./; q'`/stamp-h$_am_stamp_count
20069 done
20070 _ACEOF
20071 cat >>$CONFIG_STATUS <<\_ACEOF
20072
20073 #
20074 # CONFIG_COMMANDS section.
20075 #
20076 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20077   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20078   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20079   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20080 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20081          X"$ac_dest" : 'X\(//\)[^/]' \| \
20082          X"$ac_dest" : 'X\(//\)$' \| \
20083          X"$ac_dest" : 'X\(/\)' \| \
20084          .     : '\(.\)' 2>/dev/null ||
20085 echo X"$ac_dest" |
20086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20087           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20088           /^X\(\/\/\)$/{ s//\1/; q; }
20089           /^X\(\/\).*/{ s//\1/; q; }
20090           s/.*/./; q'`
20091   { if $as_mkdir_p; then
20092     mkdir -p "$ac_dir"
20093   else
20094     as_dir="$ac_dir"
20095     as_dirs=
20096     while test ! -d "$as_dir"; do
20097       as_dirs="$as_dir $as_dirs"
20098       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20100          X"$as_dir" : 'X\(//\)[^/]' \| \
20101          X"$as_dir" : 'X\(//\)$' \| \
20102          X"$as_dir" : 'X\(/\)' \| \
20103          .     : '\(.\)' 2>/dev/null ||
20104 echo X"$as_dir" |
20105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20106           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20107           /^X\(\/\/\)$/{ s//\1/; q; }
20108           /^X\(\/\).*/{ s//\1/; q; }
20109           s/.*/./; q'`
20110     done
20111     test ! -n "$as_dirs" || mkdir $as_dirs
20112   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20113 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20114    { (exit 1); exit 1; }; }; }
20115
20116   ac_builddir=.
20117
20118 if test "$ac_dir" != .; then
20119   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20120   # A "../" for each directory in $ac_dir_suffix.
20121   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20122 else
20123   ac_dir_suffix= ac_top_builddir=
20124 fi
20125
20126 case $srcdir in
20127   .)  # No --srcdir option.  We are building in place.
20128     ac_srcdir=.
20129     if test -z "$ac_top_builddir"; then
20130        ac_top_srcdir=.
20131     else
20132        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20133     fi ;;
20134   [\\/]* | ?:[\\/]* )  # Absolute path.
20135     ac_srcdir=$srcdir$ac_dir_suffix;
20136     ac_top_srcdir=$srcdir ;;
20137   *) # Relative path.
20138     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20139     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20140 esac
20141
20142 # Do not use `cd foo && pwd` to compute absolute paths, because
20143 # the directories may not exist.
20144 case `pwd` in
20145 .) ac_abs_builddir="$ac_dir";;
20146 *)
20147   case "$ac_dir" in
20148   .) ac_abs_builddir=`pwd`;;
20149   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20150   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20151   esac;;
20152 esac
20153 case $ac_abs_builddir in
20154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20155 *)
20156   case ${ac_top_builddir}. in
20157   .) ac_abs_top_builddir=$ac_abs_builddir;;
20158   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20159   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20160   esac;;
20161 esac
20162 case $ac_abs_builddir in
20163 .) ac_abs_srcdir=$ac_srcdir;;
20164 *)
20165   case $ac_srcdir in
20166   .) ac_abs_srcdir=$ac_abs_builddir;;
20167   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20168   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20169   esac;;
20170 esac
20171 case $ac_abs_builddir in
20172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20173 *)
20174   case $ac_top_srcdir in
20175   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20176   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20177   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20178   esac;;
20179 esac
20180
20181
20182   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20183 echo "$as_me: executing $ac_dest commands" >&6;}
20184   case $ac_dest in
20185     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20186   # Strip MF so we end up with the name of the file.
20187   mf=`echo "$mf" | sed -e 's/:.*$//'`
20188   # Check whether this is an Automake generated Makefile or not.
20189   # We used to match only the files named `Makefile.in', but
20190   # some people rename them; so instead we look at the file content.
20191   # Grep'ing the first line is not enough: some people post-process
20192   # each Makefile.in and add a new line on top of each file to say so.
20193   # So let's grep whole file.
20194   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20195     dirpart=`(dirname "$mf") 2>/dev/null ||
20196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20197          X"$mf" : 'X\(//\)[^/]' \| \
20198          X"$mf" : 'X\(//\)$' \| \
20199          X"$mf" : 'X\(/\)' \| \
20200          .     : '\(.\)' 2>/dev/null ||
20201 echo X"$mf" |
20202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20203           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20204           /^X\(\/\/\)$/{ s//\1/; q; }
20205           /^X\(\/\).*/{ s//\1/; q; }
20206           s/.*/./; q'`
20207   else
20208     continue
20209   fi
20210   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20211   # Extract the definition of DEP_FILES from the Makefile without
20212   # running `make'.
20213   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20214   test -z "$DEPDIR" && continue
20215   # When using ansi2knr, U may be empty or an underscore; expand it
20216   U=`sed -n -e '/^U = / s///p' < "$mf"`
20217   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20218   # We invoke sed twice because it is the simplest approach to
20219   # changing $(DEPDIR) to its actual value in the expansion.
20220   for file in `sed -n -e '
20221     /^DEP_FILES = .*\\\\$/ {
20222       s/^DEP_FILES = //
20223       :loop
20224         s/\\\\$//
20225         p
20226         n
20227         /\\\\$/ b loop
20228       p
20229     }
20230     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20231        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20232     # Make sure the directory exists.
20233     test -f "$dirpart/$file" && continue
20234     fdir=`(dirname "$file") 2>/dev/null ||
20235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20236          X"$file" : 'X\(//\)[^/]' \| \
20237          X"$file" : 'X\(//\)$' \| \
20238          X"$file" : 'X\(/\)' \| \
20239          .     : '\(.\)' 2>/dev/null ||
20240 echo X"$file" |
20241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20242           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20243           /^X\(\/\/\)$/{ s//\1/; q; }
20244           /^X\(\/\).*/{ s//\1/; q; }
20245           s/.*/./; q'`
20246     { if $as_mkdir_p; then
20247     mkdir -p $dirpart/$fdir
20248   else
20249     as_dir=$dirpart/$fdir
20250     as_dirs=
20251     while test ! -d "$as_dir"; do
20252       as_dirs="$as_dir $as_dirs"
20253       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20255          X"$as_dir" : 'X\(//\)[^/]' \| \
20256          X"$as_dir" : 'X\(//\)$' \| \
20257          X"$as_dir" : 'X\(/\)' \| \
20258          .     : '\(.\)' 2>/dev/null ||
20259 echo X"$as_dir" |
20260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20261           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20262           /^X\(\/\/\)$/{ s//\1/; q; }
20263           /^X\(\/\).*/{ s//\1/; q; }
20264           s/.*/./; q'`
20265     done
20266     test ! -n "$as_dirs" || mkdir $as_dirs
20267   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20268 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20269    { (exit 1); exit 1; }; }; }
20270
20271     # echo "creating $dirpart/$file"
20272     echo '# dummy' > "$dirpart/$file"
20273   done
20274 done
20275  ;;
20276   esac
20277 done
20278 _ACEOF
20279
20280 cat >>$CONFIG_STATUS <<\_ACEOF
20281
20282 { (exit 0); exit 0; }
20283 _ACEOF
20284 chmod +x $CONFIG_STATUS
20285 ac_clean_files=$ac_clean_files_save
20286
20287
20288 # configure is writing to config.log, and then calls config.status.
20289 # config.status does its own redirection, appending to config.log.
20290 # Unfortunately, on DOS this fails, as config.log is still kept open
20291 # by configure, so config.status won't be able to write to it; its
20292 # output is simply discarded.  So we exec the FD to /dev/null,
20293 # effectively closing config.log, so it can be properly (re)opened and
20294 # appended to by config.status.  When coming back to configure, we
20295 # need to make the FD available again.
20296 if test "$no_create" != yes; then
20297   ac_cs_success=:
20298   ac_config_status_args=
20299   test "$silent" = yes &&
20300     ac_config_status_args="$ac_config_status_args --quiet"
20301   exec 5>/dev/null
20302   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20303   exec 5>>config.log
20304   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20305   # would make configure fail if this is the last instruction.
20306   $ac_cs_success || { (exit 1); exit 1; }
20307 fi
20308