OSDN Git Service

autoreconf
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for TiMidity++ 2.12.0-pre1b.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME='TiMidity++'
270 PACKAGE_TARNAME='TiMidity++'
271 PACKAGE_VERSION='2.12.0-pre1b'
272 PACKAGE_STRING='TiMidity++ 2.12.0-pre1b'
273 PACKAGE_BUGREPORT='root@mput.dip.jp'
274
275 ac_unique_file="timidity/timidity.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 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'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures TiMidity++ 2.12.0-pre1b to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 Program names:
836   --program-prefix=PREFIX            prepend PREFIX to installed program names
837   --program-suffix=SUFFIX            append SUFFIX to installed program names
838   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
840 X features:
841   --x-includes=DIR    X include files are in DIR
842   --x-libraries=DIR   X library files are in DIR
843
844 System types:
845   --build=BUILD     configure for building on BUILD [guessed]
846   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
847   --target=TARGET   configure for building compilers for TARGET [HOST]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852   case $ac_init_help in
853      short | recursive ) echo "Configuration of TiMidity++ 2.12.0-pre1b:";;
854    esac
855   cat <<\_ACEOF
856
857 Optional Features:
858   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
859   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
860   --enable-maintainer-mode enable make rules and dependencies not useful
861                           (and sometimes confusing) to the casual installer
862   --enable-debug          Build a debugging version.
863   --disable-dependency-tracking Speeds up one-time builds
864   --enable-dependency-tracking  Do not reject slow dependency extractors
865   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
866                               default:   Automatically select audio device.
867                               oss:       OSS /dev/dsp
868                               sun:       SunOS /dev/audio
869                               hpux:      HPUX /dev/audio
870                               irix:      IRIX audio library
871                               mme:       OSF/1 MME
872                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
873                               w32:       Windows MMS
874                               darwin:    Darwin CoreAudio
875                               alsa:      ALSA pcm device
876                               alib:      HPUX network audio (Alib)
877                               nas:       NAS - Network Audio System
878                               arts:      aRts
879                               esd:       EsounD - Enlightened Sound Daemon
880                               portaudio: PortAudio
881                               jack:      JACK
882                               vorbis:    Ogg Vorbis
883                               gogo:      MP3 GOGO (Only Windows is supported)
884   --disable-alsatest      Do not try to compile and run a test Alsa program
885   --disable-artstest       Do not try to compile and run a test ARTS program
886   --disable-esdtest       Do not try to compile and run a test ESD program
887   --disable-oggtest       Do not try to compile and run a test Ogg program
888   --disable-vorbistest       Do not try to compile and run a test Vorbis program
889   --enable-interface=interface_list
890                           Comma separated interface list
891   --enable-dynamic        Enable dynamic link interface   (default is no)
892   --enable-dynamic=dynamic_list
893                           Comma separated dynamic interface list
894   --enable-ncurses        Enable ncurses interface        (default is no)
895   --enable-slang          Enable slang interface          (default is no)
896   --enable-motif          Enable motif interface          (default is no)
897   --enable-tcltk          Enable tcltk interface          (default is no)
898   --enable-emacs          Enable emacs interface          (default is no)
899   --enable-vt100          Enable VT100 interface          (default is no)
900   --enable-xaw            Enable athena interface         (default is no)
901   --enable-xskin          Enable X skin interface         (default is no)
902   --enable-gtk            Enable GTK+ interface           (default is no)
903   --disable-gtktest       Do not try to compile and run a test GTK program
904   --enable-server         Enable server interface         (default is no)
905   --enable-alsaseq        Enable ALSA sequencer server interface
906                                                           (default is no)
907   --enable-winsyn        Enable Windows Synthesizer interface
908                                                           (default is no)
909   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
910                                                           (default is no)
911   --enable-winsyng        Enable Windows GUI Synthesizer interface
912                                                           (default is no)
913   --enable-w32gui         Enable Windows GUI interface    (default is no)
914   --enable-ump            UMP configuration               (default is no)
915   --enable-offix          Enable offix support            (default is no)
916   --enable-network        Enable network support          (default is no)
917   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
918   --enable-spline=method  Specify spline method.
919                                   one of no,linear,cubic,lagrange,newton,gauss
920                                                           (default is linear)
921   --enable-wrd            Enable WRD interface for X      (default is no)
922
923 Optional Packages:
924   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
925   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
926   --with-includes=DIR     Specify include directories (colon separated)
927   --with-libraries=DIR    Specify library directories (colon separated)
928   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
929   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
930   --with-lispdir          Override the default lisp directory
931   --with-elf              create ELF shared object instead of AOUT
932   --with-simd             create SIMD friendly binary (default is no)
933   --with-x                use the X Window System
934   --with-tcl-includes=DIR Tcl include file path
935   --with-tcl-libs=DIR     Tcl library file path
936   --with-tk-includes=DIR  Tk include file path
937   --with-tk-libs=DIR      Tk library file path
938   --with-offix-includes=DIR Offix include file path
939   --with-offix-libs=DIR   Offix include file path
940   --with-nas-library=library NAS absolute library path(Don't use -laudio)
941   --with-nas-includes=DIR NAS include files are in dir
942   --with-default-output=<mode>  Specify default output mode (optional):
943                                 (default|alsa|alib|arts|nas|
944                                 esd|wav|au|aiff|list|vorbis|
945                                 gogo|portaudio|jack)
946   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
947   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
948   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
949   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
950   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
951   --with-ogg=PFX   Prefix where libogg is installed (optional)
952   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
953   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
954   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
955   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
956   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
957   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
958   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
959
960 Some influential environment variables:
961   CC          C compiler command
962   CFLAGS      C compiler flags
963   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
964               nonstandard directory <lib dir>
965   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
966               headers in a nonstandard directory <include dir>
967   CPP         C preprocessor
968
969 Use these variables to override the choices made by `configure' or to help
970 it to find libraries and programs with nonstandard names/locations.
971
972 Report bugs to <root@mput.dip.jp>.
973 _ACEOF
974 fi
975
976 if test "$ac_init_help" = "recursive"; then
977   # If there are subdirs, report their specific --help.
978   ac_popdir=`pwd`
979   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
980     test -d $ac_dir || continue
981     ac_builddir=.
982
983 if test "$ac_dir" != .; then
984   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
985   # A "../" for each directory in $ac_dir_suffix.
986   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
987 else
988   ac_dir_suffix= ac_top_builddir=
989 fi
990
991 case $srcdir in
992   .)  # No --srcdir option.  We are building in place.
993     ac_srcdir=.
994     if test -z "$ac_top_builddir"; then
995        ac_top_srcdir=.
996     else
997        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
998     fi ;;
999   [\\/]* | ?:[\\/]* )  # Absolute path.
1000     ac_srcdir=$srcdir$ac_dir_suffix;
1001     ac_top_srcdir=$srcdir ;;
1002   *) # Relative path.
1003     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1004     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1005 esac
1006 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1007 # absolute.
1008 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1009 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1010 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1011 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1012
1013     cd $ac_dir
1014     # Check for guested configure; otherwise get Cygnus style configure.
1015     if test -f $ac_srcdir/configure.gnu; then
1016       echo
1017       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1018     elif test -f $ac_srcdir/configure; then
1019       echo
1020       $SHELL $ac_srcdir/configure  --help=recursive
1021     elif test -f $ac_srcdir/configure.ac ||
1022            test -f $ac_srcdir/configure.in; then
1023       echo
1024       $ac_configure --help
1025     else
1026       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1027     fi
1028     cd $ac_popdir
1029   done
1030 fi
1031
1032 test -n "$ac_init_help" && exit 0
1033 if $ac_init_version; then
1034   cat <<\_ACEOF
1035 TiMidity++ configure 2.12.0-pre1b
1036 generated by GNU Autoconf 2.57
1037
1038 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1039 Free Software Foundation, Inc.
1040 This configure script is free software; the Free Software Foundation
1041 gives unlimited permission to copy, distribute and modify it.
1042 _ACEOF
1043   exit 0
1044 fi
1045 exec 5>config.log
1046 cat >&5 <<_ACEOF
1047 This file contains any messages produced by compilers while
1048 running configure, to aid debugging if configure makes a mistake.
1049
1050 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1051 generated by GNU Autoconf 2.57.  Invocation command line was
1052
1053   $ $0 $@
1054
1055 _ACEOF
1056 {
1057 cat <<_ASUNAME
1058 ## --------- ##
1059 ## Platform. ##
1060 ## --------- ##
1061
1062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1067
1068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1069 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1070
1071 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1072 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1074 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1075 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1076 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1077 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1078
1079 _ASUNAME
1080
1081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1082 for as_dir in $PATH
1083 do
1084   IFS=$as_save_IFS
1085   test -z "$as_dir" && as_dir=.
1086   echo "PATH: $as_dir"
1087 done
1088
1089 } >&5
1090
1091 cat >&5 <<_ACEOF
1092
1093
1094 ## ----------- ##
1095 ## Core tests. ##
1096 ## ----------- ##
1097
1098 _ACEOF
1099
1100
1101 # Keep a trace of the command line.
1102 # Strip out --no-create and --no-recursion so they do not pile up.
1103 # Strip out --silent because we don't want to record it for future runs.
1104 # Also quote any args containing shell meta-characters.
1105 # Make two passes to allow for proper duplicate-argument suppression.
1106 ac_configure_args=
1107 ac_configure_args0=
1108 ac_configure_args1=
1109 ac_sep=
1110 ac_must_keep_next=false
1111 for ac_pass in 1 2
1112 do
1113   for ac_arg
1114   do
1115     case $ac_arg in
1116     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1117     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118     | -silent | --silent | --silen | --sile | --sil)
1119       continue ;;
1120     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1121       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1122     esac
1123     case $ac_pass in
1124     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1125     2)
1126       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1127       if test $ac_must_keep_next = true; then
1128         ac_must_keep_next=false # Got value, back to normal.
1129       else
1130         case $ac_arg in
1131           *=* | --config-cache | -C | -disable-* | --disable-* \
1132           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1133           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1134           | -with-* | --with-* | -without-* | --without-* | --x)
1135             case "$ac_configure_args0 " in
1136               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1137             esac
1138             ;;
1139           -* ) ac_must_keep_next=true ;;
1140         esac
1141       fi
1142       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1143       # Get rid of the leading space.
1144       ac_sep=" "
1145       ;;
1146     esac
1147   done
1148 done
1149 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1150 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1151
1152 # When interrupted or exit'd, cleanup temporary files, and complete
1153 # config.log.  We remove comments because anyway the quotes in there
1154 # would cause problems or look ugly.
1155 # WARNING: Be sure not to use single quotes in there, as some shells,
1156 # such as our DU 5.0 friend, will then `close' the trap.
1157 trap 'exit_status=$?
1158   # Save into config.log some information that might help in debugging.
1159   {
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ---------------- ##
1164 ## Cache variables. ##
1165 ## ---------------- ##
1166 _ASBOX
1167     echo
1168     # The following way of writing the cache mishandles newlines in values,
1169 {
1170   (set) 2>&1 |
1171     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1172     *ac_space=\ *)
1173       sed -n \
1174         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1175           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1176       ;;
1177     *)
1178       sed -n \
1179         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1180       ;;
1181     esac;
1182 }
1183     echo
1184
1185     cat <<\_ASBOX
1186 ## ----------------- ##
1187 ## Output variables. ##
1188 ## ----------------- ##
1189 _ASBOX
1190     echo
1191     for ac_var in $ac_subst_vars
1192     do
1193       eval ac_val=$`echo $ac_var`
1194       echo "$ac_var='"'"'$ac_val'"'"'"
1195     done | sort
1196     echo
1197
1198     if test -n "$ac_subst_files"; then
1199       cat <<\_ASBOX
1200 ## ------------- ##
1201 ## Output files. ##
1202 ## ------------- ##
1203 _ASBOX
1204       echo
1205       for ac_var in $ac_subst_files
1206       do
1207         eval ac_val=$`echo $ac_var`
1208         echo "$ac_var='"'"'$ac_val'"'"'"
1209       done | sort
1210       echo
1211     fi
1212
1213     if test -s confdefs.h; then
1214       cat <<\_ASBOX
1215 ## ----------- ##
1216 ## confdefs.h. ##
1217 ## ----------- ##
1218 _ASBOX
1219       echo
1220       sed "/^$/d" confdefs.h | sort
1221       echo
1222     fi
1223     test "$ac_signal" != 0 &&
1224       echo "$as_me: caught signal $ac_signal"
1225     echo "$as_me: exit $exit_status"
1226   } >&5
1227   rm -f core core.* *.core &&
1228   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229     exit $exit_status
1230      ' 0
1231 for ac_signal in 1 2 13 15; do
1232   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1233 done
1234 ac_signal=0
1235
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1239 echo >confdefs.h
1240
1241 # Predefined preprocessor variables.
1242
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1245 _ACEOF
1246
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1265 _ACEOF
1266
1267
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271   if test "x$prefix" != xNONE; then
1272     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1273   else
1274     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1275   fi
1276 fi
1277 for ac_site_file in $CONFIG_SITE; do
1278   if test -r "$ac_site_file"; then
1279     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281     sed 's/^/| /' "$ac_site_file" >&5
1282     . "$ac_site_file"
1283   fi
1284 done
1285
1286 if test -r "$cache_file"; then
1287   # Some versions of bash will fail to source /dev/null (special
1288   # files actually), so we avoid doing that.
1289   if test -f "$cache_file"; then
1290     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1292     case $cache_file in
1293       [\\/]* | ?:[\\/]* ) . $cache_file;;
1294       *)                      . ./$cache_file;;
1295     esac
1296   fi
1297 else
1298   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1300   >$cache_file
1301 fi
1302
1303 # Check that the precious variables saved in the cache have kept the same
1304 # value.
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309   eval ac_new_set=\$ac_env_${ac_var}_set
1310   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311   eval ac_new_val="\$ac_env_${ac_var}_value"
1312   case $ac_old_set,$ac_new_set in
1313     set,)
1314       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316       ac_cache_corrupted=: ;;
1317     ,set)
1318       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320       ac_cache_corrupted=: ;;
1321     ,);;
1322     *)
1323       if test "x$ac_old_val" != "x$ac_new_val"; then
1324         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1327 echo "$as_me:   former value:  $ac_old_val" >&2;}
1328         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1329 echo "$as_me:   current value: $ac_new_val" >&2;}
1330         ac_cache_corrupted=:
1331       fi;;
1332   esac
1333   # Pass precious variables to config.status.
1334   if test "$ac_new_set" = set; then
1335     case $ac_new_val in
1336     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338     *) ac_arg=$ac_var=$ac_new_val ;;
1339     esac
1340     case " $ac_configure_args " in
1341       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1342       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1343     esac
1344   fi
1345 done
1346 if $ac_cache_corrupted; then
1347   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351    { (exit 1); exit 1; }; }
1352 fi
1353
1354 ac_ext=c
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 ac_aux_dir=
1387 for ac_dir in autoconf $srcdir/autoconf; do
1388   if test -f $ac_dir/install-sh; then
1389     ac_aux_dir=$ac_dir
1390     ac_install_sh="$ac_aux_dir/install-sh -c"
1391     break
1392   elif test -f $ac_dir/install.sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install.sh -c"
1395     break
1396   elif test -f $ac_dir/shtool; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/shtool install -c"
1399     break
1400   fi
1401 done
1402 if test -z "$ac_aux_dir"; then
1403   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1404 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1405    { (exit 1); exit 1; }; }
1406 fi
1407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1409 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410
1411 # Make sure we can run config.sub.
1412 $ac_config_sub sun4 >/dev/null 2>&1 ||
1413   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1414 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1415    { (exit 1); exit 1; }; }
1416
1417 echo "$as_me:$LINENO: checking build system type" >&5
1418 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1419 if test "${ac_cv_build+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   ac_cv_build_alias=$build_alias
1423 test -z "$ac_cv_build_alias" &&
1424   ac_cv_build_alias=`$ac_config_guess`
1425 test -z "$ac_cv_build_alias" &&
1426   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1427 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1428    { (exit 1); exit 1; }; }
1429 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1430   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1431 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1432    { (exit 1); exit 1; }; }
1433
1434 fi
1435 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1436 echo "${ECHO_T}$ac_cv_build" >&6
1437 build=$ac_cv_build
1438 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441
1442
1443 echo "$as_me:$LINENO: checking host system type" >&5
1444 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1445 if test "${ac_cv_host+set}" = set; then
1446   echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448   ac_cv_host_alias=$host_alias
1449 test -z "$ac_cv_host_alias" &&
1450   ac_cv_host_alias=$ac_cv_build_alias
1451 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1452   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1454    { (exit 1); exit 1; }; }
1455
1456 fi
1457 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1458 echo "${ECHO_T}$ac_cv_host" >&6
1459 host=$ac_cv_host
1460 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463
1464
1465 echo "$as_me:$LINENO: checking target system type" >&5
1466 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1467 if test "${ac_cv_target+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   ac_cv_target_alias=$target_alias
1471 test "x$ac_cv_target_alias" = "x" &&
1472   ac_cv_target_alias=$ac_cv_host_alias
1473 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1474   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1476    { (exit 1); exit 1; }; }
1477
1478 fi
1479 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1480 echo "${ECHO_T}$ac_cv_target" >&6
1481 target=$ac_cv_target
1482 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485
1486
1487 # The aliases save the names the user supplied, while $host etc.
1488 # will get canonicalized.
1489 test -n "$target_alias" &&
1490   test "$program_prefix$program_suffix$program_transform_name" = \
1491     NONENONEs,x,x, &&
1492   program_prefix=${target_alias}-
1493 am__api_version="1.7"
1494 # Find a good install program.  We prefer a C program (faster),
1495 # so one script is as good as another.  But avoid the broken or
1496 # incompatible versions:
1497 # SysV /etc/install, /usr/sbin/install
1498 # SunOS /usr/etc/install
1499 # IRIX /sbin/install
1500 # AIX /bin/install
1501 # AmigaOS /C/install, which installs bootblocks on floppy discs
1502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1505 # ./install, which can be erroneously created by make from ./install.sh.
1506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1508 if test -z "$INSTALL"; then
1509 if test "${ac_cv_path_install+set}" = set; then
1510   echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515   IFS=$as_save_IFS
1516   test -z "$as_dir" && as_dir=.
1517   # Account for people who put trailing slashes in PATH elements.
1518 case $as_dir/ in
1519   ./ | .// | /cC/* | \
1520   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1521   /usr/ucb/* ) ;;
1522   *)
1523     # OSF1 and SCO ODT 3.0 have their own names for install.
1524     # Don't use installbsd from OSF since it installs stuff as root
1525     # by default.
1526     for ac_prog in ginstall scoinst install; do
1527       for ac_exec_ext in '' $ac_executable_extensions; do
1528         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529           if test $ac_prog = install &&
1530             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531             # AIX install.  It has an incompatible calling convention.
1532             :
1533           elif test $ac_prog = install &&
1534             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535             # program-specific install script used by HP pwplus--don't use.
1536             :
1537           else
1538             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539             break 3
1540           fi
1541         fi
1542       done
1543     done
1544     ;;
1545 esac
1546 done
1547
1548
1549 fi
1550   if test "${ac_cv_path_install+set}" = set; then
1551     INSTALL=$ac_cv_path_install
1552   else
1553     # As a last resort, use the slow shell script.  We don't cache a
1554     # path for INSTALL within a source directory, because that will
1555     # break other packages using the cache if that directory is
1556     # removed, or if the path is relative.
1557     INSTALL=$ac_install_sh
1558   fi
1559 fi
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1562
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573 # Just in case
1574 sleep 1
1575 echo timestamp > conftest.file
1576 # Do `set' in a subshell so we don't clobber the current shell's
1577 # arguments.  Must try -L first in case configure is actually a
1578 # symlink; some systems play weird games with the mod time of symlinks
1579 # (eg FreeBSD returns the mod time of the symlink's containing
1580 # directory).
1581 if (
1582    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583    if test "$*" = "X"; then
1584       # -L didn't work.
1585       set X `ls -t $srcdir/configure conftest.file`
1586    fi
1587    rm -f conftest.file
1588    if test "$*" != "X $srcdir/configure conftest.file" \
1589       && test "$*" != "X conftest.file $srcdir/configure"; then
1590
1591       # If neither matched, then we have a broken ls.  This can happen
1592       # if, for instance, CONFIG_SHELL is bash and it inherits a
1593       # broken ls alias from the environment.  This has actually
1594       # happened.  Such a system could not be considered "sane".
1595       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1598 alias in your environment" >&2;}
1599    { (exit 1); exit 1; }; }
1600    fi
1601
1602    test "$2" = conftest.file
1603    )
1604 then
1605    # Ok.
1606    :
1607 else
1608    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$program_suffix" != NONE &&
1620   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621 # Double any \ or $.  echo might interpret backslashes.
1622 # By default was `s,x,x', remove it if useless.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1625 _ACEOF
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627 rm conftest.sed
1628
1629
1630 # expand $ac_aux_dir to an absolute path
1631 am_aux_dir=`cd $ac_aux_dir && pwd`
1632
1633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1634 # Use eval to expand $SHELL
1635 if eval "$MISSING --run true"; then
1636   am_missing_run="$MISSING --run "
1637 else
1638   am_missing_run=
1639   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1641 fi
1642
1643 for ac_prog in gawk mawk nawk awk
1644 do
1645   # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_AWK+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$AWK"; then
1653   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_AWK="$ac_prog"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 AWK=$ac_cv_prog_AWK
1672 if test -n "$AWK"; then
1673   echo "$as_me:$LINENO: result: $AWK" >&5
1674 echo "${ECHO_T}$AWK" >&6
1675 else
1676   echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680   test -n "$AWK" && break
1681 done
1682
1683 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1684 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1685 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1686 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1687   echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689   cat >conftest.make <<\_ACEOF
1690 all:
1691         @echo 'ac_maketemp="$(MAKE)"'
1692 _ACEOF
1693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1694 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1695 if test -n "$ac_maketemp"; then
1696   eval ac_cv_prog_make_${ac_make}_set=yes
1697 else
1698   eval ac_cv_prog_make_${ac_make}_set=no
1699 fi
1700 rm -f conftest.make
1701 fi
1702 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1703   echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705   SET_MAKE=
1706 else
1707   echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709   SET_MAKE="MAKE=${MAKE-make}"
1710 fi
1711
1712 rm -rf .tst 2>/dev/null
1713 mkdir .tst 2>/dev/null
1714 if test -d .tst; then
1715   am__leading_dot=.
1716 else
1717   am__leading_dot=_
1718 fi
1719 rmdir .tst 2>/dev/null
1720
1721  # test to see if srcdir already configured
1722 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1723    test -f $srcdir/config.status; then
1724   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1725 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1726    { (exit 1); exit 1; }; }
1727 fi
1728
1729 # test whether we have cygpath
1730 if test -z "$CYGPATH_W"; then
1731   if (cygpath --version) >/dev/null 2>/dev/null; then
1732     CYGPATH_W='cygpath -w'
1733   else
1734     CYGPATH_W=echo
1735   fi
1736 fi
1737
1738
1739 # Define the identity of the package.
1740  PACKAGE='TiMidity++'
1741  VERSION='2.12.0-pre1b'
1742
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE "$PACKAGE"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define VERSION "$VERSION"
1751 _ACEOF
1752
1753 # Some tools Automake needs.
1754
1755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1756
1757
1758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1759
1760
1761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1762
1763
1764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1765
1766
1767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1768
1769
1770 AMTAR=${AMTAR-"${am_missing_run}tar"}
1771
1772 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1773
1774 # Installed binaries are usually stripped using `strip' when the user
1775 # run `make install-strip'.  However `strip' might not be the right
1776 # tool to use in cross-compilation environments, therefore Automake
1777 # will honor the `STRIP' environment variable to overrule this program.
1778 if test "$cross_compiling" != no; then
1779   if test -n "$ac_tool_prefix"; then
1780   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1781 set dummy ${ac_tool_prefix}strip; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_STRIP+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   if test -n "$STRIP"; then
1788   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   for ac_exec_ext in '' $ac_executable_extensions; do
1796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 fi
1805 fi
1806 STRIP=$ac_cv_prog_STRIP
1807 if test -n "$STRIP"; then
1808   echo "$as_me:$LINENO: result: $STRIP" >&5
1809 echo "${ECHO_T}$STRIP" >&6
1810 else
1811   echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815 fi
1816 if test -z "$ac_cv_prog_STRIP"; then
1817   ac_ct_STRIP=$STRIP
1818   # Extract the first word of "strip", so it can be a program name with args.
1819 set dummy strip; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1823   echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825   if test -n "$ac_ct_STRIP"; then
1826   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1830 do
1831   IFS=$as_save_IFS
1832   test -z "$as_dir" && as_dir=.
1833   for ac_exec_ext in '' $ac_executable_extensions; do
1834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835     ac_cv_prog_ac_ct_STRIP="strip"
1836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837     break 2
1838   fi
1839 done
1840 done
1841
1842   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1843 fi
1844 fi
1845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1846 if test -n "$ac_ct_STRIP"; then
1847   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1848 echo "${ECHO_T}$ac_ct_STRIP" >&6
1849 else
1850   echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1852 fi
1853
1854   STRIP=$ac_ct_STRIP
1855 else
1856   STRIP="$ac_cv_prog_STRIP"
1857 fi
1858
1859 fi
1860 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1861
1862 # We need awk for the "check" target.  The system "awk" is bad on
1863 # some platforms.
1864
1865
1866
1867
1868                     ac_config_headers="$ac_config_headers config.h interface.h"
1869
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874   enableval="$enable_maintainer_mode"
1875   USE_MAINTAINER_MODE=$enableval
1876 else
1877   USE_MAINTAINER_MODE=no
1878 fi;
1879   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1881
1882
1883 if test $USE_MAINTAINER_MODE = yes; then
1884   MAINTAINER_MODE_TRUE=
1885   MAINTAINER_MODE_FALSE='#'
1886 else
1887   MAINTAINER_MODE_TRUE='#'
1888   MAINTAINER_MODE_FALSE=
1889 fi
1890
1891   MAINT=$MAINTAINER_MODE_TRUE
1892
1893
1894
1895 SHELL=${CONFIG_SHELL-"/bin/sh"}
1896 WISH=${WISH-"wish"}
1897
1898 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1899 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1900 echo "grimblepritz" >grimble
1901 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1902         contains="./contains"
1903 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1904         contains=grep
1905 else
1906         contains="./contains"
1907 fi
1908 rm -f grimble
1909 case "$contains" in
1910 grep)   echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1912         ;;
1913 ./contains)
1914         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1915 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1916         cat >./contains <<'EOSS'
1917 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1918 EOSS
1919         chmod +x "./contains"
1920         ;;
1921 esac
1922
1923
1924 # Check for compiler options -- such as debug flags.
1925
1926 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1927 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1928 # Check whether --enable-debug or --disable-debug was given.
1929 if test "${enable_debug+set}" = set; then
1930   enableval="$enable_debug"
1931   timidity_cv_debug="yes"
1932 else
1933   timidity_cv_debug="no"
1934 fi;
1935 if test "x$timidity_cv_debug" = "xyes"; then
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define DEBUG 1
1939 _ACEOF
1940
1941   CFLAGS=${CFLAGS-"-g"}
1942 fi
1943 if test "x$timidity_cv_debug" = "xno"; then
1944
1945 cat >>confdefs.h <<\_ACEOF
1946 #define NDEBUG 1
1947 _ACEOF
1948
1949 fi
1950 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1951 echo "${ECHO_T}$timidity_cv_debug" >&6
1952
1953 CFLAGS=${CFLAGS-"-O2"}
1954
1955 if test "x$with_x" = x; then
1956   with_x=yes
1957 else
1958   x_config_flag=yes
1959 fi
1960
1961 # Checking gcc environment
1962 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1963   LDFLAGS="$LDFLAGS -L${i}"
1964 done
1965 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1966   CPPFLAGS="$CPPFLAGS -I${i}"
1967 done
1968
1969 # add $prefix if specified.
1970 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1971   LDFLAGS="-L$prefix/lib $LDFLAGS"
1972   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1973   CPPFLAGS="-I$prefix/include $CPPFLAGS"
1974 fi
1975
1976
1977 # Check whether --with-includes or --without-includes was given.
1978 if test "${with_includes+set}" = set; then
1979   withval="$with_includes"
1980    j=' '
1981     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1982       j="${j}-I${i} "
1983     done
1984     CPPFLAGS="$j$CPPFLAGS"
1985
1986 fi;
1987
1988
1989 # Check whether --with-libraries or --without-libraries was given.
1990 if test "${with_libraries+set}" = set; then
1991   withval="$with_libraries"
1992    j=' '
1993     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1994       j="${j}-L${i} "
1995     done
1996     LDFLAGS="$j$LDFLAGS"
1997
1998 fi;
1999
2000
2001
2002 # Check whether --with-default-path or --without-default-path was given.
2003 if test "${with_default_path+set}" = set; then
2004   withval="$with_default_path"
2005   pkgdatadir=$withval
2006 else
2007
2008    if test "x$prefix" != "xNONE"; then
2009       pkgdatadir='${prefix}/share/timidity'
2010    else
2011       pkgdatadir='/usr/local/share/timidity'
2012    fi
2013
2014 fi;
2015 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define DEFAULT_PATH "$tmpdefpath"
2019 _ACEOF
2020
2021
2022 cat >>confdefs.h <<\_ACEOF
2023 #define PKGDATADIR DEFAULT_PATH
2024 _ACEOF
2025
2026
2027
2028 # Check whether --with-module-dir or --without-module-dir was given.
2029 if test "${with_module_dir+set}" = set; then
2030   withval="$with_module_dir"
2031   pkglibdir=$withval
2032 else
2033
2034    if test "x$prefix" != "xNONE"; then
2035       pkglibdir='${prefix}/lib/timidity'
2036    else
2037       pkglibdir='/usr/local/lib/timidity'
2038    fi
2039
2040 fi;
2041 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PKGLIBDIR "$tmplibdir"
2045 _ACEOF
2046
2047
2048
2049 # Checks for programs.
2050
2051 # Check whether --with-lispdir or --without-lispdir was given.
2052 if test "${with_lispdir+set}" = set; then
2053   withval="$with_lispdir"
2054    lispdir="$withval"
2055    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2056 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2057    echo "$as_me:$LINENO: result: $lispdir" >&5
2058 echo "${ECHO_T}$lispdir" >&6
2059 else
2060
2061  # If set to t, that means we are running in a shell under Emacs.
2062  # If you have an Emacs named "t", then use the full path.
2063  test x"$EMACS" = xt && EMACS=
2064  for ac_prog in emacs xemacs
2065 do
2066   # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_EMACS+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$EMACS"; then
2074   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_EMACS="$ac_prog"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090 fi
2091 fi
2092 EMACS=$ac_cv_prog_EMACS
2093 if test -n "$EMACS"; then
2094   echo "$as_me:$LINENO: result: $EMACS" >&5
2095 echo "${ECHO_T}$EMACS" >&6
2096 else
2097   echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2099 fi
2100
2101   test -n "$EMACS" && break
2102 done
2103 test -n "$EMACS" || EMACS="no"
2104
2105  if test $EMACS != "no"; then
2106    if test x${lispdir+set} != xset; then
2107      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2108 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2109 if test "${am_cv_lispdir+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2113   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2114   #  which is non-obvious for non-emacs users.
2115   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2116   #  emacsen earlier and avoid running this altogether.
2117   { (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
2118   ($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
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122         am_cv_lispdir=`sed -n \
2123        -e 's,/$,,' \
2124        -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2125        -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2126        conftest.out`
2127        rm conftest.out
2128        if test -z "$am_cv_lispdir"; then
2129          am_cv_lispdir='${datadir}/emacs/site-lisp'
2130        fi
2131
2132 fi
2133 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2134 echo "${ECHO_T}$am_cv_lispdir" >&6
2135      lispdir="$am_cv_lispdir"
2136    fi
2137  fi
2138
2139 fi;
2140
2141
2142 ac_ext=c
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147 if test -n "$ac_tool_prefix"; then
2148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171
2172 fi
2173 fi
2174 CC=$ac_cv_prog_CC
2175 if test -n "$CC"; then
2176   echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6
2178 else
2179   echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2181 fi
2182
2183 fi
2184 if test -z "$ac_cv_prog_CC"; then
2185   ac_ct_CC=$CC
2186   # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test -n "$ac_ct_CC"; then
2194   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203     ac_cv_prog_ac_ct_CC="gcc"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209
2210 fi
2211 fi
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215 echo "${ECHO_T}$ac_ct_CC" >&6
2216 else
2217   echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221   CC=$ac_ct_CC
2222 else
2223   CC="$ac_cv_prog_CC"
2224 fi
2225
2226 if test -z "$CC"; then
2227   if test -n "$ac_tool_prefix"; then
2228   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}cc; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   if test -n "$CC"; then
2236   ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241   IFS=$as_save_IFS
2242   test -z "$as_dir" && as_dir=.
2243   for ac_exec_ext in '' $ac_executable_extensions; do
2244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245     ac_cv_prog_CC="${ac_tool_prefix}cc"
2246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247     break 2
2248   fi
2249 done
2250 done
2251
2252 fi
2253 fi
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256   echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2258 else
2259   echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2261 fi
2262
2263 fi
2264 if test -z "$ac_cv_prog_CC"; then
2265   ac_ct_CC=$CC
2266   # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$ac_ct_CC"; then
2274   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281   for ac_exec_ext in '' $ac_executable_extensions; do
2282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283     ac_cv_prog_ac_ct_CC="cc"
2284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286   fi
2287 done
2288 done
2289
2290 fi
2291 fi
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2295 echo "${ECHO_T}$ac_ct_CC" >&6
2296 else
2297   echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301   CC=$ac_ct_CC
2302 else
2303   CC="$ac_cv_prog_CC"
2304 fi
2305
2306 fi
2307 if test -z "$CC"; then
2308   # Extract the first word of "cc", so it can be a program name with args.
2309 set dummy cc; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_CC+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   if test -n "$CC"; then
2316   ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318   ac_prog_rejected=no
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327        ac_prog_rejected=yes
2328        continue
2329      fi
2330     ac_cv_prog_CC="cc"
2331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335 done
2336
2337 if test $ac_prog_rejected = yes; then
2338   # We found a bogon in the path, so make sure we never use it.
2339   set dummy $ac_cv_prog_CC
2340   shift
2341   if test $# != 0; then
2342     # We chose a different compiler from the bogus one.
2343     # However, it has the same basename, so the bogon will be chosen
2344     # first if we set CC to just the basename; use the full file name.
2345     shift
2346     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2347   fi
2348 fi
2349 fi
2350 fi
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353   echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2355 else
2356   echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360 fi
2361 if test -z "$CC"; then
2362   if test -n "$ac_tool_prefix"; then
2363   for ac_prog in cl
2364   do
2365     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$CC"; then
2373   ac_cv_prog_CC="$CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388
2389 fi
2390 fi
2391 CC=$ac_cv_prog_CC
2392 if test -n "$CC"; then
2393   echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6
2395 else
2396   echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2398 fi
2399
2400     test -n "$CC" && break
2401   done
2402 fi
2403 if test -z "$CC"; then
2404   ac_ct_CC=$CC
2405   for ac_prog in cl
2406 do
2407   # Extract the first word of "$ac_prog", so it can be a program name with args.
2408 set dummy $ac_prog; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   if test -n "$ac_ct_CC"; then
2415   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422   for ac_exec_ext in '' $ac_executable_extensions; do
2423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424     ac_cv_prog_ac_ct_CC="$ac_prog"
2425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429 done
2430
2431 fi
2432 fi
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436 echo "${ECHO_T}$ac_ct_CC" >&6
2437 else
2438   echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6
2440 fi
2441
2442   test -n "$ac_ct_CC" && break
2443 done
2444
2445   CC=$ac_ct_CC
2446 fi
2447
2448 fi
2449
2450
2451 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455    { (exit 1); exit 1; }; }
2456
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459      "checking for C compiler version" >&5
2460 ac_compiler=`set X $ac_compile; echo $2`
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462   (eval $ac_compiler --version </dev/null >&5) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }
2466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467   (eval $ac_compiler -v </dev/null >&5) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }
2471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472   (eval $ac_compiler -V </dev/null >&5) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }
2476
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 ac_clean_files_save=$ac_clean_files
2494 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2495 # Try to create an executable without -o first, disregard a.out.
2496 # It will help us diagnose broken compilers, and finding out an intuition
2497 # of exeext.
2498 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2499 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2500 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2501 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2502   (eval $ac_link_default) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; then
2506   # Find the output, starting from the most likely.  This scheme is
2507 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2508 # resort.
2509
2510 # Be careful to initialize this variable, since it used to be cached.
2511 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2512 ac_cv_exeext=
2513 # b.out is created by i960 compilers.
2514 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2515 do
2516   test -f "$ac_file" || continue
2517   case $ac_file in
2518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2519         ;;
2520     conftest.$ac_ext )
2521         # This is the source file.
2522         ;;
2523     [ab].out )
2524         # We found the default executable, but exeext='' is most
2525         # certainly right.
2526         break;;
2527     *.* )
2528         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529         # FIXME: I believe we export ac_cv_exeext for Libtool,
2530         # but it would be cool to find out if it's true.  Does anybody
2531         # maintain Libtool? --akim.
2532         export ac_cv_exeext
2533         break;;
2534     * )
2535         break;;
2536   esac
2537 done
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: C compiler cannot create executables
2545 See \`config.log' for more details." >&2;}
2546    { (exit 77); exit 77; }; }
2547 fi
2548
2549 ac_exeext=$ac_cv_exeext
2550 echo "$as_me:$LINENO: result: $ac_file" >&5
2551 echo "${ECHO_T}$ac_file" >&6
2552
2553 # Check the compiler produces executables we can run.  If not, either
2554 # the compiler is broken, or we cross compile.
2555 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2556 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2557 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2558 # If not cross compiling, check that we can run a simple program.
2559 if test "$cross_compiling" != yes; then
2560   if { ac_try='./$ac_file'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566     cross_compiling=no
2567   else
2568     if test "$cross_compiling" = maybe; then
2569         cross_compiling=yes
2570     else
2571         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2572 If you meant to cross compile, use \`--host'.
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&2;}
2577    { (exit 1); exit 1; }; }
2578     fi
2579   fi
2580 fi
2581 echo "$as_me:$LINENO: result: yes" >&5
2582 echo "${ECHO_T}yes" >&6
2583
2584 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2585 ac_clean_files=$ac_clean_files_save
2586 # Check the compiler produces executables we can run.  If not, either
2587 # the compiler is broken, or we cross compile.
2588 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2589 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2590 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2591 echo "${ECHO_T}$cross_compiling" >&6
2592
2593 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2594 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596   (eval $ac_link) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; then
2600   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2603 # `rm'.
2604 for ac_file in conftest.exe conftest conftest.*; do
2605   test -f "$ac_file" || continue
2606   case $ac_file in
2607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2608     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2609           export ac_cv_exeext
2610           break;;
2611     * ) break;;
2612   esac
2613 done
2614 else
2615   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2618 See \`config.log' for more details." >&2;}
2619    { (exit 1); exit 1; }; }
2620 fi
2621
2622 rm -f conftest$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2624 echo "${ECHO_T}$ac_cv_exeext" >&6
2625
2626 rm -f conftest.$ac_ext
2627 EXEEXT=$ac_cv_exeext
2628 ac_exeext=$EXEEXT
2629 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2630 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2631 if test "${ac_cv_objext+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.o conftest.obj
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; then
2656   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2657   case $ac_file in
2658     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2659     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2660        break;;
2661   esac
2662 done
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671    { (exit 1); exit 1; }; }
2672 fi
2673
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 fi
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2679 ac_objext=$OBJEXT
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 #line $LINENO "configure"
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692
2693 int
2694 main ()
2695 {
2696 #ifndef __GNUC__
2697        choke me
2698 #endif
2699
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706   (eval $ac_compile) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   ac_compiler_gnu=yes
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 ac_compiler_gnu=no
2722 fi
2723 rm -f conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2725
2726 fi
2727 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729 GCC=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 CFLAGS="-g"
2733 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   cat >conftest.$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745
2746 int
2747 main ()
2748 {
2749
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756   (eval $ac_compile) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_cv_prog_cc_g=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_cv_prog_cc_g=no
2772 fi
2773 rm -f conftest.$ac_objext conftest.$ac_ext
2774 fi
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2777 if test "$ac_test_CFLAGS" = set; then
2778   CFLAGS=$ac_save_CFLAGS
2779 elif test $ac_cv_prog_cc_g = yes; then
2780   if test "$GCC" = yes; then
2781     CFLAGS="-g -O2"
2782   else
2783     CFLAGS="-g"
2784   fi
2785 else
2786   if test "$GCC" = yes; then
2787     CFLAGS="-O2"
2788   else
2789     CFLAGS=
2790   fi
2791 fi
2792 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2793 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2794 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   ac_cv_prog_cc_stdc=no
2798 ac_save_CC=$CC
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 #include <stdarg.h>
2807 #include <stdio.h>
2808 #include <sys/types.h>
2809 #include <sys/stat.h>
2810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2811 struct buf { int x; };
2812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2813 static char *e (p, i)
2814      char **p;
2815      int i;
2816 {
2817   return p[i];
2818 }
2819 static char *f (char * (*g) (char **, int), char **p, ...)
2820 {
2821   char *s;
2822   va_list v;
2823   va_start (v,p);
2824   s = g (p, va_arg (v,int));
2825   va_end (v);
2826   return s;
2827 }
2828 int test (int i, double x);
2829 struct s1 {int (*f) (int a);};
2830 struct s2 {int (*f) (double a);};
2831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2832 int argc;
2833 char **argv;
2834 int
2835 main ()
2836 {
2837 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 # Don't try gcc -ansi; that turns off useful extensions and
2843 # breaks some systems' header files.
2844 # AIX                   -qlanglvl=ansi
2845 # Ultrix and OSF/1      -std1
2846 # HP-UX 10.20 and later -Ae
2847 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2848 # SVR4                  -Xc -D__EXTENSIONS__
2849 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2850 do
2851   CC="$ac_save_CC $ac_arg"
2852   rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   ac_cv_prog_cc_stdc=$ac_arg
2865 break
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 fi
2871 rm -f conftest.$ac_objext
2872 done
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2874 CC=$ac_save_CC
2875
2876 fi
2877
2878 case "x$ac_cv_prog_cc_stdc" in
2879   x|xno)
2880     echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2882   *)
2883     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885     CC="$CC $ac_cv_prog_cc_stdc" ;;
2886 esac
2887
2888 # Some people use a C++ compiler to compile C.  Since we use `exit',
2889 # in C++ we need to declare it.  In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #ifndef __cplusplus
2894   choke me
2895 #endif
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899   (eval $ac_compile) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -s conftest.$ac_objext'
2904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905   (eval $ac_try) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; }; then
2909   for ac_declaration in \
2910    ''\
2911    '#include <stdlib.h>' \
2912    'extern "C" void std::exit (int) throw (); using std::exit;' \
2913    'extern "C" void std::exit (int); using std::exit;' \
2914    'extern "C" void exit (int) throw ();' \
2915    'extern "C" void exit (int);' \
2916    'void exit (int);'
2917 do
2918   cat >conftest.$ac_ext <<_ACEOF
2919 #line $LINENO "configure"
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925 #include <stdlib.h>
2926 $ac_declaration
2927 int
2928 main ()
2929 {
2930 exit (42);
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937   (eval $ac_compile) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } &&
2941          { ac_try='test -s conftest.$ac_objext'
2942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943   (eval $ac_try) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; }; then
2947   :
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 continue
2953 fi
2954 rm -f conftest.$ac_objext conftest.$ac_ext
2955   cat >conftest.$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962 $ac_declaration
2963 int
2964 main ()
2965 {
2966 exit (42);
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -s conftest.$ac_objext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   break
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 fi
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2990 done
2991 rm -f conftest*
2992 if test -n "$ac_declaration"; then
2993   echo '#ifdef __cplusplus' >>confdefs.h
2994   echo $ac_declaration      >>confdefs.h
2995   echo '#endif'             >>confdefs.h
2996 fi
2997
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 fi
3003 rm -f conftest.$ac_objext conftest.$ac_ext
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 DEPDIR="${am__leading_dot}deps"
3010
3011           ac_config_commands="$ac_config_commands depfiles"
3012
3013
3014 am_make=${MAKE-make}
3015 cat > confinc << 'END'
3016 doit:
3017         @echo done
3018 END
3019 # If we don't find an include directive, just comment out the code.
3020 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3021 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3022 am__include="#"
3023 am__quote=
3024 _am_result=none
3025 # First try GNU make style include.
3026 echo "include confinc" > confmf
3027 # We grep out `Entering directory' and `Leaving directory'
3028 # messages which can occur if `w' ends up in MAKEFLAGS.
3029 # In particular we don't look at `^make:' because GNU make might
3030 # be invoked under some other name (usually "gmake"), in which
3031 # case it prints its new name instead of `make'.
3032 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3033    am__include=include
3034    am__quote=
3035    _am_result=GNU
3036 fi
3037 # Now try BSD make style include.
3038 if test "$am__include" = "#"; then
3039    echo '.include "confinc"' > confmf
3040    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3041       am__include=.include
3042       am__quote="\""
3043       _am_result=BSD
3044    fi
3045 fi
3046
3047
3048 echo "$as_me:$LINENO: result: $_am_result" >&5
3049 echo "${ECHO_T}$_am_result" >&6
3050 rm -f confinc confmf
3051
3052 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3053 if test "${enable_dependency_tracking+set}" = set; then
3054   enableval="$enable_dependency_tracking"
3055
3056 fi;
3057 if test "x$enable_dependency_tracking" != xno; then
3058   am_depcomp="$ac_aux_dir/depcomp"
3059   AMDEPBACKSLASH='\'
3060 fi
3061
3062
3063 if test "x$enable_dependency_tracking" != xno; then
3064   AMDEP_TRUE=
3065   AMDEP_FALSE='#'
3066 else
3067   AMDEP_TRUE='#'
3068   AMDEP_FALSE=
3069 fi
3070
3071
3072
3073
3074 depcc="$CC"   am_compiler_list=
3075
3076 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3077 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3078 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3082   # We make a subdir and do the tests there.  Otherwise we can end up
3083   # making bogus files that we don't know about and never remove.  For
3084   # instance it was reported that on HP-UX the gcc test will end up
3085   # making a dummy file named `D' -- because `-MD' means `put the output
3086   # in D'.
3087   mkdir conftest.dir
3088   # Copy depcomp to subdir because otherwise we won't find it if we're
3089   # using a relative directory.
3090   cp "$am_depcomp" conftest.dir
3091   cd conftest.dir
3092
3093   am_cv_CC_dependencies_compiler_type=none
3094   if test "$am_compiler_list" = ""; then
3095      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3096   fi
3097   for depmode in $am_compiler_list; do
3098     # We need to recreate these files for each test, as the compiler may
3099     # overwrite some of them when testing with obscure command lines.
3100     # This happens at least with the AIX C compiler.
3101     echo '#include "conftest.h"' > conftest.c
3102     echo 'int i;' > conftest.h
3103     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3104
3105     case $depmode in
3106     nosideeffect)
3107       # after this tag, mechanisms are not by side-effect, so they'll
3108       # only be used when explicitly requested
3109       if test "x$enable_dependency_tracking" = xyes; then
3110         continue
3111       else
3112         break
3113       fi
3114       ;;
3115     none) break ;;
3116     esac
3117     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3118     # mode.  It turns out that the SunPro C++ compiler does not properly
3119     # handle `-M -o', and we need to detect this.
3120     if depmode=$depmode \
3121        source=conftest.c object=conftest.o \
3122        depfile=conftest.Po tmpdepfile=conftest.TPo \
3123        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3124          >/dev/null 2>conftest.err &&
3125        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3126        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3127       # icc doesn't choke on unknown options, it will just issue warnings
3128       # (even with -Werror).  So we grep stderr for any message
3129       # that says an option was ignored.
3130       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3131         am_cv_CC_dependencies_compiler_type=$depmode
3132         break
3133       fi
3134     fi
3135   done
3136
3137   cd ..
3138   rm -rf conftest.dir
3139 else
3140   am_cv_CC_dependencies_compiler_type=none
3141 fi
3142
3143 fi
3144 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3145 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3146 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3147
3148
3149
3150 if
3151   test "x$enable_dependency_tracking" != xno \
3152   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3153   am__fastdepCC_TRUE=
3154   am__fastdepCC_FALSE='#'
3155 else
3156   am__fastdepCC_TRUE='#'
3157   am__fastdepCC_FALSE=
3158 fi
3159
3160
3161
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3168 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3169 # On Suns, sometimes $CPP names a directory.
3170 if test -n "$CPP" && test -d "$CPP"; then
3171   CPP=
3172 fi
3173 if test -z "$CPP"; then
3174   if test "${ac_cv_prog_CPP+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177       # Double quotes because CPP needs to be expanded
3178     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3179     do
3180       ac_preproc_ok=false
3181 for ac_c_preproc_warn_flag in '' yes
3182 do
3183   # Use a header file that comes with gcc, so configuring glibc
3184   # with a fresh cross-compiler works.
3185   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186   # <limits.h> exists even on freestanding compilers.
3187   # On the NeXT, cc -E runs the code through the compiler's parser,
3188   # not just through cpp. "Syntax error" is here to catch this case.
3189   cat >conftest.$ac_ext <<_ACEOF
3190 #line $LINENO "configure"
3191 /* confdefs.h.  */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h.  */
3196 #ifdef __STDC__
3197 # include <limits.h>
3198 #else
3199 # include <assert.h>
3200 #endif
3201                      Syntax error
3202 _ACEOF
3203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } >/dev/null; then
3211   if test -s conftest.err; then
3212     ac_cpp_err=$ac_c_preproc_warn_flag
3213   else
3214     ac_cpp_err=
3215   fi
3216 else
3217   ac_cpp_err=yes
3218 fi
3219 if test -z "$ac_cpp_err"; then
3220   :
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225   # Broken: fails on valid input.
3226 continue
3227 fi
3228 rm -f conftest.err conftest.$ac_ext
3229
3230   # OK, works on sane cases.  Now check whether non-existent headers
3231   # can be detected and how.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 #line $LINENO "configure"
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #include <ac_nonexistent.h>
3240 _ACEOF
3241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3243   ac_status=$?
3244   grep -v '^ *+' conftest.er1 >conftest.err
3245   rm -f conftest.er1
3246   cat conftest.err >&5
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } >/dev/null; then
3249   if test -s conftest.err; then
3250     ac_cpp_err=$ac_c_preproc_warn_flag
3251   else
3252     ac_cpp_err=
3253   fi
3254 else
3255   ac_cpp_err=yes
3256 fi
3257 if test -z "$ac_cpp_err"; then
3258   # Broken: success on invalid input.
3259 continue
3260 else
3261   echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264   # Passes both tests.
3265 ac_preproc_ok=:
3266 break
3267 fi
3268 rm -f conftest.err conftest.$ac_ext
3269
3270 done
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then
3274   break
3275 fi
3276
3277     done
3278     ac_cv_prog_CPP=$CPP
3279
3280 fi
3281   CPP=$ac_cv_prog_CPP
3282 else
3283   ac_cv_prog_CPP=$CPP
3284 fi
3285 echo "$as_me:$LINENO: result: $CPP" >&5
3286 echo "${ECHO_T}$CPP" >&6
3287 ac_preproc_ok=false
3288 for ac_c_preproc_warn_flag in '' yes
3289 do
3290   # Use a header file that comes with gcc, so configuring glibc
3291   # with a fresh cross-compiler works.
3292   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293   # <limits.h> exists even on freestanding compilers.
3294   # On the NeXT, cc -E runs the code through the compiler's parser,
3295   # not just through cpp. "Syntax error" is here to catch this case.
3296   cat >conftest.$ac_ext <<_ACEOF
3297 #line $LINENO "configure"
3298 /* confdefs.h.  */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h.  */
3303 #ifdef __STDC__
3304 # include <limits.h>
3305 #else
3306 # include <assert.h>
3307 #endif
3308                      Syntax error
3309 _ACEOF
3310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } >/dev/null; then
3318   if test -s conftest.err; then
3319     ac_cpp_err=$ac_c_preproc_warn_flag
3320   else
3321     ac_cpp_err=
3322   fi
3323 else
3324   ac_cpp_err=yes
3325 fi
3326 if test -z "$ac_cpp_err"; then
3327   :
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332   # Broken: fails on valid input.
3333 continue
3334 fi
3335 rm -f conftest.err conftest.$ac_ext
3336
3337   # OK, works on sane cases.  Now check whether non-existent headers
3338   # can be detected and how.
3339   cat >conftest.$ac_ext <<_ACEOF
3340 #line $LINENO "configure"
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 #include <ac_nonexistent.h>
3347 _ACEOF
3348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } >/dev/null; then
3356   if test -s conftest.err; then
3357     ac_cpp_err=$ac_c_preproc_warn_flag
3358   else
3359     ac_cpp_err=
3360   fi
3361 else
3362   ac_cpp_err=yes
3363 fi
3364 if test -z "$ac_cpp_err"; then
3365   # Broken: success on invalid input.
3366 continue
3367 else
3368   echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371   # Passes both tests.
3372 ac_preproc_ok=:
3373 break
3374 fi
3375 rm -f conftest.err conftest.$ac_ext
3376
3377 done
3378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379 rm -f conftest.err conftest.$ac_ext
3380 if $ac_preproc_ok; then
3381   :
3382 else
3383   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3384 See \`config.log' for more details." >&5
3385 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3386 See \`config.log' for more details." >&2;}
3387    { (exit 1); exit 1; }; }
3388 fi
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
3397 echo "$as_me:$LINENO: checking for egrep" >&5
3398 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3399 if test "${ac_cv_prog_egrep+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3403     then ac_cv_prog_egrep='grep -E'
3404     else ac_cv_prog_egrep='egrep'
3405     fi
3406 fi
3407 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3408 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3409  EGREP=$ac_cv_prog_egrep
3410
3411
3412 if test $ac_cv_c_compiler_gnu = yes; then
3413     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3414 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3415 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418     ac_pattern="Autoconf.*'x'"
3419   cat >conftest.$ac_ext <<_ACEOF
3420 #line $LINENO "configure"
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426 #include <sgtty.h>
3427 Autoconf TIOCGETP
3428 _ACEOF
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3431   ac_cv_prog_gcc_traditional=yes
3432 else
3433   ac_cv_prog_gcc_traditional=no
3434 fi
3435 rm -f conftest*
3436
3437
3438   if test $ac_cv_prog_gcc_traditional = no; then
3439     cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 #include <termio.h>
3447 Autoconf TCGETA
3448 _ACEOF
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3451   ac_cv_prog_gcc_traditional=yes
3452 fi
3453 rm -f conftest*
3454
3455   fi
3456 fi
3457 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3458 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3459   if test $ac_cv_prog_gcc_traditional = yes; then
3460     CC="$CC -traditional"
3461   fi
3462 fi
3463
3464 # Find a good install program.  We prefer a C program (faster),
3465 # so one script is as good as another.  But avoid the broken or
3466 # incompatible versions:
3467 # SysV /etc/install, /usr/sbin/install
3468 # SunOS /usr/etc/install
3469 # IRIX /sbin/install
3470 # AIX /bin/install
3471 # AmigaOS /C/install, which installs bootblocks on floppy discs
3472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3475 # ./install, which can be erroneously created by make from ./install.sh.
3476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3478 if test -z "$INSTALL"; then
3479 if test "${ac_cv_path_install+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487   # Account for people who put trailing slashes in PATH elements.
3488 case $as_dir/ in
3489   ./ | .// | /cC/* | \
3490   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3491   /usr/ucb/* ) ;;
3492   *)
3493     # OSF1 and SCO ODT 3.0 have their own names for install.
3494     # Don't use installbsd from OSF since it installs stuff as root
3495     # by default.
3496     for ac_prog in ginstall scoinst install; do
3497       for ac_exec_ext in '' $ac_executable_extensions; do
3498         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3499           if test $ac_prog = install &&
3500             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3501             # AIX install.  It has an incompatible calling convention.
3502             :
3503           elif test $ac_prog = install &&
3504             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3505             # program-specific install script used by HP pwplus--don't use.
3506             :
3507           else
3508             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3509             break 3
3510           fi
3511         fi
3512       done
3513     done
3514     ;;
3515 esac
3516 done
3517
3518
3519 fi
3520   if test "${ac_cv_path_install+set}" = set; then
3521     INSTALL=$ac_cv_path_install
3522   else
3523     # As a last resort, use the slow shell script.  We don't cache a
3524     # path for INSTALL within a source directory, because that will
3525     # break other packages using the cache if that directory is
3526     # removed, or if the path is relative.
3527     INSTALL=$ac_install_sh
3528   fi
3529 fi
3530 echo "$as_me:$LINENO: result: $INSTALL" >&5
3531 echo "${ECHO_T}$INSTALL" >&6
3532
3533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3534 # It thinks the first close brace ends the variable substitution.
3535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3536
3537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3538
3539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3540
3541 for ac_prog in gawk mawk nawk awk
3542 do
3543   # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_AWK+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   if test -n "$AWK"; then
3551   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556   IFS=$as_save_IFS
3557   test -z "$as_dir" && as_dir=.
3558   for ac_exec_ext in '' $ac_executable_extensions; do
3559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560     ac_cv_prog_AWK="$ac_prog"
3561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562     break 2
3563   fi
3564 done
3565 done
3566
3567 fi
3568 fi
3569 AWK=$ac_cv_prog_AWK
3570 if test -n "$AWK"; then
3571   echo "$as_me:$LINENO: result: $AWK" >&5
3572 echo "${ECHO_T}$AWK" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578   test -n "$AWK" && break
3579 done
3580
3581 if test -n "$ac_tool_prefix"; then
3582   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3584 echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3586 if test "${ac_cv_prog_RANLIB+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   if test -n "$RANLIB"; then
3590   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597   for ac_exec_ext in '' $ac_executable_extensions; do
3598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604 done
3605
3606 fi
3607 fi
3608 RANLIB=$ac_cv_prog_RANLIB
3609 if test -n "$RANLIB"; then
3610   echo "$as_me:$LINENO: result: $RANLIB" >&5
3611 echo "${ECHO_T}$RANLIB" >&6
3612 else
3613   echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3615 fi
3616
3617 fi
3618 if test -z "$ac_cv_prog_RANLIB"; then
3619   ac_ct_RANLIB=$RANLIB
3620   # Extract the first word of "ranlib", so it can be a program name with args.
3621 set dummy ranlib; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   if test -n "$ac_ct_RANLIB"; then
3628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_prog_ac_ct_RANLIB="ranlib"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3645 fi
3646 fi
3647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3648 if test -n "$ac_ct_RANLIB"; then
3649   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3650 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3651 else
3652   echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3654 fi
3655
3656   RANLIB=$ac_ct_RANLIB
3657 else
3658   RANLIB="$ac_cv_prog_RANLIB"
3659 fi
3660
3661 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3663 LN_S=$as_ln_s
3664 if test "$LN_S" = "ln -s"; then
3665   echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6
3667 else
3668   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3669 echo "${ECHO_T}no, using $LN_S" >&6
3670 fi
3671
3672 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3673 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3674 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3675 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   cat > conftest.$ac_ext <<EOF
3679 int main() {return 0;}
3680 EOF
3681 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3682     if test -s conftest.out; then
3683         eval "timidity_cv_ccoption_$ac_ccoption=no"
3684     else
3685         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3686     fi
3687 else
3688     eval "timidity_cv_ccoption_$ac_ccoption=no"
3689 fi
3690
3691 fi
3692
3693 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3694   echo "$as_me:$LINENO: result: yes" >&5
3695 echo "${ECHO_T}yes" >&6
3696
3697 else
3698   echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3700
3701 fi
3702
3703
3704 # Checks for target dependencies
3705
3706
3707 # Check whether --with-elf or --without-elf was given.
3708 if test "${with_elf+set}" = set; then
3709   withval="$with_elf"
3710    ELFFORMAT=$withval
3711 else
3712    ELFFORMAT="yes"
3713 fi;
3714
3715
3716 # Check whether --with-simd or --without-simd was given.
3717 if test "${with_simd+set}" = set; then
3718   withval="$with_simd"
3719    SIMD=$withval
3720 else
3721    SIMD="no"
3722 fi;
3723
3724 case "$target" in
3725   *-*-hpux*)
3726     EXTRADEFS="-DHPUX"
3727     test -n "$SHLD" || SHLD="ld -b"
3728     so="sl"
3729     ;;
3730   *-sgi-irix*)
3731         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3732     test -n "$SHLD" || SHLD="cc -shared -all"
3733     so="so"
3734     ;;
3735   *-*-netbsd*)
3736     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3737     so="so"
3738     ;;
3739
3740   *-*-freebsd2*)
3741         test -n "$SHLD" || SHLD="ld -Bshareable"
3742     so="so"
3743     ;;
3744   *-*-freebsd*)
3745     if test "$ELFFORMAT" = yes; then
3746         test -n "$SHLD" || SHLD="ld -Bshareable"
3747     else
3748         SHCFLAGS=-aou
3749         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3750         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3751     fi
3752         so="so"
3753     ;;
3754
3755 #  *-*-freebsd*)
3756 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3757 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3758 #    so="so"
3759 #  ;;
3760
3761   *-*-cygwin*)
3762     EXTRADEFS="-D__W32__"
3763     # ??
3764     case "x${CC} " in
3765       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3766       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3767       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3768       *) test -n "$SHLD" || SHLD="unknown" ;;
3769     esac
3770     so="dll"
3771     CYGNUS=yes
3772     lib_user32_test=-luser32
3773     ;;
3774   *-*-mingw*)
3775     EXTRADEFS="-D__W32__"
3776     # ??
3777     case "x${CC} " in
3778       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3779       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3780       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3781       *) test -n "$SHLD" || SHLD="unknown" ;;
3782     esac
3783     so="dll"
3784     MINGW=yes
3785     lib_user32_test=-luser32
3786     ;;
3787   *-dec-*)
3788     EXTRADEFS="-DDEC"
3789     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3790     so="so"
3791     ;;
3792   *-*-solaris*)
3793     EXTRADEFS="-DSOLARIS"
3794     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3795     so="so"
3796     ;;
3797   *-*-nextstep*)
3798     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3799     so="so"
3800     ;;
3801   *-*-darwin*)
3802     if test "x$SIMD" = "xyes"; then
3803
3804 cat >>confdefs.h <<\_ACEOF
3805 #define USE_ALTIVEC 1
3806 _ACEOF
3807
3808        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3809        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3810     else
3811
3812 cat >>confdefs.h <<\_ACEOF
3813 #define USE_ALTIVEC 0
3814 _ACEOF
3815
3816     fi
3817     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3818     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3819     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3820     so="bundle"
3821     ;;
3822   *)
3823     test -n "$SHLD" || \
3824       if test "x$GCC" = xyes; then
3825         SHLD="$CC -shared"
3826       else
3827         SHLD="ld -Bdynamic -G"
3828       fi
3829     so="so"
3830     ;;
3831 esac
3832
3833
3834 # Checks for libraries.
3835
3836 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3837 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3838 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   ac_check_lib_save_LIBS=$LIBS
3842 LIBS="-lm  $LIBS"
3843 cat >conftest.$ac_ext <<_ACEOF
3844 #line $LINENO "configure"
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850
3851 /* Override any gcc2 internal prototype to avoid an error.  */
3852 #ifdef __cplusplus
3853 extern "C"
3854 #endif
3855 /* We use char because int might match the return type of a gcc2
3856    builtin and then its argument prototype would still apply.  */
3857 char sqrt ();
3858 int
3859 main ()
3860 {
3861 sqrt ();
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868   (eval $ac_link) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } &&
3872          { ac_try='test -s conftest$ac_exeext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_cv_lib_m_sqrt=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_cv_lib_m_sqrt=no
3884 fi
3885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3886 LIBS=$ac_check_lib_save_LIBS
3887 fi
3888 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3889 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3890 if test $ac_cv_lib_m_sqrt = yes; then
3891   cat >>confdefs.h <<_ACEOF
3892 #define HAVE_LIBM 1
3893 _ACEOF
3894
3895   LIBS="-lm $LIBS"
3896
3897 fi
3898
3899
3900 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3901 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3902 if test "${ac_cv_lib_socket_socket+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   ac_check_lib_save_LIBS=$LIBS
3906 LIBS="-lsocket  $LIBS"
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 /* confdefs.h.  */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h.  */
3914
3915 /* Override any gcc2 internal prototype to avoid an error.  */
3916 #ifdef __cplusplus
3917 extern "C"
3918 #endif
3919 /* We use char because int might match the return type of a gcc2
3920    builtin and then its argument prototype would still apply.  */
3921 char socket ();
3922 int
3923 main ()
3924 {
3925 socket ();
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 rm -f conftest.$ac_objext conftest$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932   (eval $ac_link) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } &&
3936          { ac_try='test -s conftest$ac_exeext'
3937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938   (eval $ac_try) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); }; }; then
3942   ac_cv_lib_socket_socket=yes
3943 else
3944   echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 ac_cv_lib_socket_socket=no
3948 fi
3949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3950 LIBS=$ac_check_lib_save_LIBS
3951 fi
3952 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3953 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3954 if test $ac_cv_lib_socket_socket = yes; then
3955   cat >>confdefs.h <<_ACEOF
3956 #define HAVE_LIBSOCKET 1
3957 _ACEOF
3958
3959   LIBS="-lsocket $LIBS"
3960
3961 fi
3962
3963 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   ac_check_lib_save_LIBS=$LIBS
3969 LIBS="-ldl  $LIBS"
3970 cat >conftest.$ac_ext <<_ACEOF
3971 #line $LINENO "configure"
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977
3978 /* Override any gcc2 internal prototype to avoid an error.  */
3979 #ifdef __cplusplus
3980 extern "C"
3981 #endif
3982 /* We use char because int might match the return type of a gcc2
3983    builtin and then its argument prototype would still apply.  */
3984 char dlopen ();
3985 int
3986 main ()
3987 {
3988 dlopen ();
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext conftest$ac_exeext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995   (eval $ac_link) 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); } &&
3999          { ac_try='test -s conftest$ac_exeext'
4000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001   (eval $ac_try) 2>&5
4002   ac_status=$?
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); }; }; then
4005   ac_cv_lib_dl_dlopen=yes
4006 else
4007   echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 ac_cv_lib_dl_dlopen=no
4011 fi
4012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013 LIBS=$ac_check_lib_save_LIBS
4014 fi
4015 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4017 if test $ac_cv_lib_dl_dlopen = yes; then
4018   lib_dl_opt=-ldl
4019 fi
4020
4021 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4022 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4023 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   ac_check_lib_save_LIBS=$LIBS
4027 LIBS="-lobjc  $LIBS"
4028 cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
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 NSLinkModule ();
4043 int
4044 main ()
4045 {
4046 NSLinkModule ();
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>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } &&
4057          { ac_try='test -s conftest$ac_exeext'
4058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059   (eval $ac_try) 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   ac_cv_lib_objc_NSLinkModule=yes
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 ac_cv_lib_objc_NSLinkModule=no
4069 fi
4070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4071 LIBS=$ac_check_lib_save_LIBS
4072 fi
4073 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4074 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4075 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4076   lib_dl_opt=-lobjc
4077 fi
4078  # Mac OS X need this.
4079
4080 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4081 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4082 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   ac_check_lib_save_LIBS=$LIBS
4086 LIBS="-lxpg4  $LIBS"
4087 cat >conftest.$ac_ext <<_ACEOF
4088 #line $LINENO "configure"
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094
4095 /* Override any gcc2 internal prototype to avoid an error.  */
4096 #ifdef __cplusplus
4097 extern "C"
4098 #endif
4099 /* We use char because int might match the return type of a gcc2
4100    builtin and then its argument prototype would still apply.  */
4101 char setlocale ();
4102 int
4103 main ()
4104 {
4105 setlocale ();
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext conftest$ac_exeext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112   (eval $ac_link) 2>&5
4113   ac_status=$?
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } &&
4116          { ac_try='test -s conftest$ac_exeext'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; }; then
4122   ac_cv_lib_xpg4_setlocale=yes
4123 else
4124   echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 ac_cv_lib_xpg4_setlocale=no
4128 fi
4129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4130 LIBS=$ac_check_lib_save_LIBS
4131 fi
4132 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4133 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4134 if test $ac_cv_lib_xpg4_setlocale = yes; then
4135   cat >>confdefs.h <<_ACEOF
4136 #define HAVE_LIBXPG4 1
4137 _ACEOF
4138
4139   LIBS="-lxpg4 $LIBS"
4140
4141 fi
4142  # Mac OS X (and maybe NetBSD) need this.
4143
4144 for ac_func in gethostbyname
4145 do
4146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4147 echo "$as_me:$LINENO: checking for $ac_func" >&5
4148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4149 if eval "test \"\${$as_ac_var+set}\" = set"; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   cat >conftest.$ac_ext <<_ACEOF
4153 #line $LINENO "configure"
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159 /* System header to define __stub macros and hopefully few prototypes,
4160     which can conflict with char $ac_func (); below.
4161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4162     <limits.h> exists even on freestanding compilers.  */
4163 #ifdef __STDC__
4164 # include <limits.h>
4165 #else
4166 # include <assert.h>
4167 #endif
4168 /* Override any gcc2 internal prototype to avoid an error.  */
4169 #ifdef __cplusplus
4170 extern "C"
4171 {
4172 #endif
4173 /* We use char because int might match the return type of a gcc2
4174    builtin and then its argument prototype would still apply.  */
4175 char $ac_func ();
4176 /* The GNU C library defines this for functions which it implements
4177     to always fail with ENOSYS.  Some functions are actually named
4178     something starting with __ and the normal name is an alias.  */
4179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4180 choke me
4181 #else
4182 char (*f) () = $ac_func;
4183 #endif
4184 #ifdef __cplusplus
4185 }
4186 #endif
4187
4188 int
4189 main ()
4190 {
4191 return f != $ac_func;
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext conftest$ac_exeext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198   (eval $ac_link) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } &&
4202          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4208   eval "$as_ac_var=yes"
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 eval "$as_ac_var=no"
4214 fi
4215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4216 fi
4217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4219 if test `eval echo '${'$as_ac_var'}'` = yes; then
4220   cat >>confdefs.h <<_ACEOF
4221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4222 _ACEOF
4223
4224 else
4225
4226 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4227 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4228 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   ac_check_lib_save_LIBS=$LIBS
4232 LIBS="-lnsl  $LIBS"
4233 cat >conftest.$ac_ext <<_ACEOF
4234 #line $LINENO "configure"
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240
4241 /* Override any gcc2 internal prototype to avoid an error.  */
4242 #ifdef __cplusplus
4243 extern "C"
4244 #endif
4245 /* We use char because int might match the return type of a gcc2
4246    builtin and then its argument prototype would still apply.  */
4247 char gethostbyname ();
4248 int
4249 main ()
4250 {
4251 gethostbyname ();
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258   (eval $ac_link) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -s conftest$ac_exeext'
4263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264   (eval $ac_try) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; }; then
4268   ac_cv_lib_nsl_gethostbyname=yes
4269 else
4270   echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 ac_cv_lib_nsl_gethostbyname=no
4274 fi
4275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4276 LIBS=$ac_check_lib_save_LIBS
4277 fi
4278 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4279 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4280 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4281   cat >>confdefs.h <<_ACEOF
4282 #define HAVE_LIBNSL 1
4283 _ACEOF
4284
4285   LIBS="-lnsl $LIBS"
4286
4287 fi
4288
4289 fi
4290 done
4291
4292 echo "$as_me:$LINENO: checking for X" >&5
4293 echo $ECHO_N "checking for X... $ECHO_C" >&6
4294
4295
4296 # Check whether --with-x or --without-x was given.
4297 if test "${with_x+set}" = set; then
4298   withval="$with_x"
4299
4300 fi;
4301 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4302 if test "x$with_x" = xno; then
4303   # The user explicitly disabled X.
4304   have_x=disabled
4305 else
4306   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4307     # Both variables are already set.
4308     have_x=yes
4309   else
4310     if test "${ac_cv_have_x+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   # One or both of the vars are not set, and there is no cached value.
4314 ac_x_includes=no ac_x_libraries=no
4315 rm -fr conftest.dir
4316 if mkdir conftest.dir; then
4317   cd conftest.dir
4318   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4319   cat >Imakefile <<'_ACEOF'
4320 acfindx:
4321         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4322 _ACEOF
4323   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4324     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4325     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4326     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4327     for ac_extension in a so sl; do
4328       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4329          test -f $ac_im_libdir/libX11.$ac_extension; then
4330         ac_im_usrlibdir=$ac_im_libdir; break
4331       fi
4332     done
4333     # Screen out bogus values from the imake configuration.  They are
4334     # bogus both because they are the default anyway, and because
4335     # using them would break gcc on systems where it needs fixed includes.
4336     case $ac_im_incroot in
4337         /usr/include) ;;
4338         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4339     esac
4340     case $ac_im_usrlibdir in
4341         /usr/lib | /lib) ;;
4342         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4343     esac
4344   fi
4345   cd ..
4346   rm -fr conftest.dir
4347 fi
4348
4349 # Standard set of common directories for X headers.
4350 # Check X11 before X11Rn because it is often a symlink to the current release.
4351 ac_x_header_dirs='
4352 /usr/X11/include
4353 /usr/X11R6/include
4354 /usr/X11R5/include
4355 /usr/X11R4/include
4356
4357 /usr/include/X11
4358 /usr/include/X11R6
4359 /usr/include/X11R5
4360 /usr/include/X11R4
4361
4362 /usr/local/X11/include
4363 /usr/local/X11R6/include
4364 /usr/local/X11R5/include
4365 /usr/local/X11R4/include
4366
4367 /usr/local/include/X11
4368 /usr/local/include/X11R6
4369 /usr/local/include/X11R5
4370 /usr/local/include/X11R4
4371
4372 /usr/X386/include
4373 /usr/x386/include
4374 /usr/XFree86/include/X11
4375
4376 /usr/include
4377 /usr/local/include
4378 /usr/unsupported/include
4379 /usr/athena/include
4380 /usr/local/x11r5/include
4381 /usr/lpp/Xamples/include
4382
4383 /usr/openwin/include
4384 /usr/openwin/share/include'
4385
4386 if test "$ac_x_includes" = no; then
4387   # Guess where to find include files, by looking for Intrinsic.h.
4388   # First, try using that file with no special directory specified.
4389   cat >conftest.$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 #include <X11/Intrinsic.h>
4397 _ACEOF
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } >/dev/null; then
4406   if test -s conftest.err; then
4407     ac_cpp_err=$ac_c_preproc_warn_flag
4408   else
4409     ac_cpp_err=
4410   fi
4411 else
4412   ac_cpp_err=yes
4413 fi
4414 if test -z "$ac_cpp_err"; then
4415   # We can compile using X headers with no special include directory.
4416 ac_x_includes=
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421   for ac_dir in $ac_x_header_dirs; do
4422   if test -r "$ac_dir/X11/Intrinsic.h"; then
4423     ac_x_includes=$ac_dir
4424     break
4425   fi
4426 done
4427 fi
4428 rm -f conftest.err conftest.$ac_ext
4429 fi # $ac_x_includes = no
4430
4431 if test "$ac_x_libraries" = no; then
4432   # Check for the libraries.
4433   # See if we find them without any special options.
4434   # Don't add to $LIBS permanently.
4435   ac_save_LIBS=$LIBS
4436   LIBS="-lXt $LIBS"
4437   cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 #include <X11/Intrinsic.h>
4445 int
4446 main ()
4447 {
4448 XtMalloc (0)
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext conftest$ac_exeext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455   (eval $ac_link) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -s conftest$ac_exeext'
4460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461   (eval $ac_try) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; }; then
4465   LIBS=$ac_save_LIBS
4466 # We can link X programs with no special library path.
4467 ac_x_libraries=
4468 else
4469   echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 LIBS=$ac_save_LIBS
4473 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4474 do
4475   # Don't even attempt the hair of trying to link an X program!
4476   for ac_extension in a so sl; do
4477     if test -r $ac_dir/libXt.$ac_extension; then
4478       ac_x_libraries=$ac_dir
4479       break 2
4480     fi
4481   done
4482 done
4483 fi
4484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4485 fi # $ac_x_libraries = no
4486
4487 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4488   # Didn't find X anywhere.  Cache the known absence of X.
4489   ac_cv_have_x="have_x=no"
4490 else
4491   # Record where we found X for the cache.
4492   ac_cv_have_x="have_x=yes \
4493                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4494 fi
4495 fi
4496
4497   fi
4498   eval "$ac_cv_have_x"
4499 fi # $with_x != no
4500
4501 if test "$have_x" != yes; then
4502   echo "$as_me:$LINENO: result: $have_x" >&5
4503 echo "${ECHO_T}$have_x" >&6
4504   no_x=yes
4505 else
4506   # If each of the values was on the command line, it overrides each guess.
4507   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4508   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4509   # Update the cache value to reflect the command line values.
4510   ac_cv_have_x="have_x=yes \
4511                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4512   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4513 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4514 fi
4515
4516 if test "$no_x" = yes; then
4517   # Not all programs may use this symbol, but it does not hurt to define it.
4518
4519 cat >>confdefs.h <<\_ACEOF
4520 #define X_DISPLAY_MISSING 1
4521 _ACEOF
4522
4523   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4524 else
4525   if test -n "$x_includes"; then
4526     X_CFLAGS="$X_CFLAGS -I$x_includes"
4527   fi
4528
4529   # It would also be nice to do this for all -L options, not just this one.
4530   if test -n "$x_libraries"; then
4531     X_LIBS="$X_LIBS -L$x_libraries"
4532     # For Solaris; some versions of Sun CC require a space after -R and
4533     # others require no space.  Words are not sufficient . . . .
4534     case `(uname -sr) 2>/dev/null` in
4535     "SunOS 5"*)
4536       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4537 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4538       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4539       cat >conftest.$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546
4547 int
4548 main ()
4549 {
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557   (eval $ac_link) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); } &&
4561          { ac_try='test -s conftest$ac_exeext'
4562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563   (eval $ac_try) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; }; then
4567   ac_R_nospace=yes
4568 else
4569   echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 ac_R_nospace=no
4573 fi
4574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4575       if test $ac_R_nospace = yes; then
4576         echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4578         X_LIBS="$X_LIBS -R$x_libraries"
4579       else
4580         LIBS="$ac_xsave_LIBS -R $x_libraries"
4581         cat >conftest.$ac_ext <<_ACEOF
4582 #line $LINENO "configure"
4583 /* confdefs.h.  */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h.  */
4588
4589 int
4590 main ()
4591 {
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599   (eval $ac_link) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); } &&
4603          { ac_try='test -s conftest$ac_exeext'
4604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; }; then
4609   ac_R_space=yes
4610 else
4611   echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 ac_R_space=no
4615 fi
4616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4617         if test $ac_R_space = yes; then
4618           echo "$as_me:$LINENO: result: yes" >&5
4619 echo "${ECHO_T}yes" >&6
4620           X_LIBS="$X_LIBS -R $x_libraries"
4621         else
4622           echo "$as_me:$LINENO: result: neither works" >&5
4623 echo "${ECHO_T}neither works" >&6
4624         fi
4625       fi
4626       LIBS=$ac_xsave_LIBS
4627     esac
4628   fi
4629
4630   # Check for system-dependent libraries X programs must link with.
4631   # Do this before checking for the system-independent R6 libraries
4632   # (-lICE), since we may need -lsocket or whatever for X linking.
4633
4634   if test "$ISC" = yes; then
4635     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4636   else
4637     # Martyn Johnson says this is needed for Ultrix, if the X
4638     # libraries were built with DECnet support.  And Karl Berry says
4639     # the Alpha needs dnet_stub (dnet does not exist).
4640     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4641     cat >conftest.$ac_ext <<_ACEOF
4642 #line $LINENO "configure"
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648
4649 /* Override any gcc2 internal prototype to avoid an error.  */
4650 #ifdef __cplusplus
4651 extern "C"
4652 #endif
4653 /* We use char because int might match the return type of a gcc2
4654    builtin and then its argument prototype would still apply.  */
4655 char XOpenDisplay ();
4656 int
4657 main ()
4658 {
4659 XOpenDisplay ();
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666   (eval $ac_link) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -s conftest$ac_exeext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   :
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4682 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4683 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   ac_check_lib_save_LIBS=$LIBS
4687 LIBS="-ldnet  $LIBS"
4688 cat >conftest.$ac_ext <<_ACEOF
4689 #line $LINENO "configure"
4690 /* confdefs.h.  */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h.  */
4695
4696 /* Override any gcc2 internal prototype to avoid an error.  */
4697 #ifdef __cplusplus
4698 extern "C"
4699 #endif
4700 /* We use char because int might match the return type of a gcc2
4701    builtin and then its argument prototype would still apply.  */
4702 char dnet_ntoa ();
4703 int
4704 main ()
4705 {
4706 dnet_ntoa ();
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713   (eval $ac_link) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } &&
4717          { ac_try='test -s conftest$ac_exeext'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; }; then
4723   ac_cv_lib_dnet_dnet_ntoa=yes
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ac_cv_lib_dnet_dnet_ntoa=no
4729 fi
4730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4732 fi
4733 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4734 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4735 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4736   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4737 fi
4738
4739     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4740       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4741 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4742 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   ac_check_lib_save_LIBS=$LIBS
4746 LIBS="-ldnet_stub  $LIBS"
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 /* confdefs.h.  */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h.  */
4754
4755 /* Override any gcc2 internal prototype to avoid an error.  */
4756 #ifdef __cplusplus
4757 extern "C"
4758 #endif
4759 /* We use char because int might match the return type of a gcc2
4760    builtin and then its argument prototype would still apply.  */
4761 char dnet_ntoa ();
4762 int
4763 main ()
4764 {
4765 dnet_ntoa ();
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770 rm -f conftest.$ac_objext conftest$ac_exeext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772   (eval $ac_link) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } &&
4776          { ac_try='test -s conftest$ac_exeext'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 ac_cv_lib_dnet_stub_dnet_ntoa=no
4788 fi
4789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4790 LIBS=$ac_check_lib_save_LIBS
4791 fi
4792 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4793 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4794 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4795   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4796 fi
4797
4798     fi
4799 fi
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4801     LIBS="$ac_xsave_LIBS"
4802
4803     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4804     # to get the SysV transport functions.
4805     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4806     # needs -lnsl.
4807     # The nsl library prevents programs from opening the X display
4808     # on Irix 5.2, according to T.E. Dickey.
4809     # The functions gethostbyname, getservbyname, and inet_addr are
4810     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4811     echo "$as_me:$LINENO: checking for gethostbyname" >&5
4812 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4813 if test "${ac_cv_func_gethostbyname+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   cat >conftest.$ac_ext <<_ACEOF
4817 #line $LINENO "configure"
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823 /* System header to define __stub macros and hopefully few prototypes,
4824     which can conflict with char gethostbyname (); below.
4825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826     <limits.h> exists even on freestanding compilers.  */
4827 #ifdef __STDC__
4828 # include <limits.h>
4829 #else
4830 # include <assert.h>
4831 #endif
4832 /* Override any gcc2 internal prototype to avoid an error.  */
4833 #ifdef __cplusplus
4834 extern "C"
4835 {
4836 #endif
4837 /* We use char because int might match the return type of a gcc2
4838    builtin and then its argument prototype would still apply.  */
4839 char gethostbyname ();
4840 /* The GNU C library defines this for functions which it implements
4841     to always fail with ENOSYS.  Some functions are actually named
4842     something starting with __ and the normal name is an alias.  */
4843 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4844 choke me
4845 #else
4846 char (*f) () = gethostbyname;
4847 #endif
4848 #ifdef __cplusplus
4849 }
4850 #endif
4851
4852 int
4853 main ()
4854 {
4855 return f != gethostbyname;
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862   (eval $ac_link) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } &&
4866          { ac_try='test -s conftest$ac_exeext'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; }; then
4872   ac_cv_func_gethostbyname=yes
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ac_cv_func_gethostbyname=no
4878 fi
4879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4880 fi
4881 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4882 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4883
4884     if test $ac_cv_func_gethostbyname = no; then
4885       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4886 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4887 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   ac_check_lib_save_LIBS=$LIBS
4891 LIBS="-lnsl  $LIBS"
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899
4900 /* Override any gcc2 internal prototype to avoid an error.  */
4901 #ifdef __cplusplus
4902 extern "C"
4903 #endif
4904 /* We use char because int might match the return type of a gcc2
4905    builtin and then its argument prototype would still apply.  */
4906 char gethostbyname ();
4907 int
4908 main ()
4909 {
4910 gethostbyname ();
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext conftest$ac_exeext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917   (eval $ac_link) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } &&
4921          { ac_try='test -s conftest$ac_exeext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_lib_nsl_gethostbyname=yes
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_cv_lib_nsl_gethostbyname=no
4933 fi
4934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4935 LIBS=$ac_check_lib_save_LIBS
4936 fi
4937 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4938 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4939 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4940   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4941 fi
4942
4943       if test $ac_cv_lib_nsl_gethostbyname = no; then
4944         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4945 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4946 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   ac_check_lib_save_LIBS=$LIBS
4950 LIBS="-lbsd  $LIBS"
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958
4959 /* Override any gcc2 internal prototype to avoid an error.  */
4960 #ifdef __cplusplus
4961 extern "C"
4962 #endif
4963 /* We use char because int might match the return type of a gcc2
4964    builtin and then its argument prototype would still apply.  */
4965 char gethostbyname ();
4966 int
4967 main ()
4968 {
4969 gethostbyname ();
4970   ;
4971   return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976   (eval $ac_link) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } &&
4980          { ac_try='test -s conftest$ac_exeext'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; }; then
4986   ac_cv_lib_bsd_gethostbyname=yes
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ac_cv_lib_bsd_gethostbyname=no
4992 fi
4993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4994 LIBS=$ac_check_lib_save_LIBS
4995 fi
4996 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4997 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4998 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4999   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5000 fi
5001
5002       fi
5003     fi
5004
5005     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5006     # socket/setsockopt and other routines are undefined under SCO ODT
5007     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5008     # on later versions), says Simon Leinen: it contains gethostby*
5009     # variants that don't use the name server (or something).  -lsocket
5010     # must be given before -lnsl if both are needed.  We assume that
5011     # if connect needs -lnsl, so does gethostbyname.
5012     echo "$as_me:$LINENO: checking for connect" >&5
5013 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5014 if test "${ac_cv_func_connect+set}" = set; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017   cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 /* confdefs.h.  */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h.  */
5024 /* System header to define __stub macros and hopefully few prototypes,
5025     which can conflict with char connect (); below.
5026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027     <limits.h> exists even on freestanding compilers.  */
5028 #ifdef __STDC__
5029 # include <limits.h>
5030 #else
5031 # include <assert.h>
5032 #endif
5033 /* Override any gcc2 internal prototype to avoid an error.  */
5034 #ifdef __cplusplus
5035 extern "C"
5036 {
5037 #endif
5038 /* We use char because int might match the return type of a gcc2
5039    builtin and then its argument prototype would still apply.  */
5040 char connect ();
5041 /* The GNU C library defines this for functions which it implements
5042     to always fail with ENOSYS.  Some functions are actually named
5043     something starting with __ and the normal name is an alias.  */
5044 #if defined (__stub_connect) || defined (__stub___connect)
5045 choke me
5046 #else
5047 char (*f) () = connect;
5048 #endif
5049 #ifdef __cplusplus
5050 }
5051 #endif
5052
5053 int
5054 main ()
5055 {
5056 return f != connect;
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext conftest$ac_exeext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063   (eval $ac_link) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); } &&
5067          { ac_try='test -s conftest$ac_exeext'
5068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069   (eval $ac_try) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }; }; then
5073   ac_cv_func_connect=yes
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 ac_cv_func_connect=no
5079 fi
5080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5081 fi
5082 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5083 echo "${ECHO_T}$ac_cv_func_connect" >&6
5084
5085     if test $ac_cv_func_connect = no; then
5086       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5087 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5088 if test "${ac_cv_lib_socket_connect+set}" = set; then
5089   echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091   ac_check_lib_save_LIBS=$LIBS
5092 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100
5101 /* Override any gcc2 internal prototype to avoid an error.  */
5102 #ifdef __cplusplus
5103 extern "C"
5104 #endif
5105 /* We use char because int might match the return type of a gcc2
5106    builtin and then its argument prototype would still apply.  */
5107 char connect ();
5108 int
5109 main ()
5110 {
5111 connect ();
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118   (eval $ac_link) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -s conftest$ac_exeext'
5123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); }; }; then
5128   ac_cv_lib_socket_connect=yes
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_cv_lib_socket_connect=no
5134 fi
5135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5136 LIBS=$ac_check_lib_save_LIBS
5137 fi
5138 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5139 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5140 if test $ac_cv_lib_socket_connect = yes; then
5141   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5142 fi
5143
5144     fi
5145
5146     # Guillermo Gomez says -lposix is necessary on A/UX.
5147     echo "$as_me:$LINENO: checking for remove" >&5
5148 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5149 if test "${ac_cv_func_remove+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   cat >conftest.$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5154 /* confdefs.h.  */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h.  */
5159 /* System header to define __stub macros and hopefully few prototypes,
5160     which can conflict with char remove (); below.
5161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162     <limits.h> exists even on freestanding compilers.  */
5163 #ifdef __STDC__
5164 # include <limits.h>
5165 #else
5166 # include <assert.h>
5167 #endif
5168 /* Override any gcc2 internal prototype to avoid an error.  */
5169 #ifdef __cplusplus
5170 extern "C"
5171 {
5172 #endif
5173 /* We use char because int might match the return type of a gcc2
5174    builtin and then its argument prototype would still apply.  */
5175 char remove ();
5176 /* The GNU C library defines this for functions which it implements
5177     to always fail with ENOSYS.  Some functions are actually named
5178     something starting with __ and the normal name is an alias.  */
5179 #if defined (__stub_remove) || defined (__stub___remove)
5180 choke me
5181 #else
5182 char (*f) () = remove;
5183 #endif
5184 #ifdef __cplusplus
5185 }
5186 #endif
5187
5188 int
5189 main ()
5190 {
5191 return f != remove;
5192   ;
5193   return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext conftest$ac_exeext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5198   (eval $ac_link) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } &&
5202          { ac_try='test -s conftest$ac_exeext'
5203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204   (eval $ac_try) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; }; then
5208   ac_cv_func_remove=yes
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_cv_func_remove=no
5214 fi
5215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5218 echo "${ECHO_T}$ac_cv_func_remove" >&6
5219
5220     if test $ac_cv_func_remove = no; then
5221       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5222 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5223 if test "${ac_cv_lib_posix_remove+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   ac_check_lib_save_LIBS=$LIBS
5227 LIBS="-lposix  $LIBS"
5228 cat >conftest.$ac_ext <<_ACEOF
5229 #line $LINENO "configure"
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 remove ();
5243 int
5244 main ()
5245 {
5246 remove ();
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>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } &&
5257          { ac_try='test -s conftest$ac_exeext'
5258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259   (eval $ac_try) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }; }; then
5263   ac_cv_lib_posix_remove=yes
5264 else
5265   echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 ac_cv_lib_posix_remove=no
5269 fi
5270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5271 LIBS=$ac_check_lib_save_LIBS
5272 fi
5273 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5274 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5275 if test $ac_cv_lib_posix_remove = yes; then
5276   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5277 fi
5278
5279     fi
5280
5281     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5282     echo "$as_me:$LINENO: checking for shmat" >&5
5283 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5284 if test "${ac_cv_func_shmat+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294 /* System header to define __stub macros and hopefully few prototypes,
5295     which can conflict with char shmat (); below.
5296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297     <limits.h> exists even on freestanding compilers.  */
5298 #ifdef __STDC__
5299 # include <limits.h>
5300 #else
5301 # include <assert.h>
5302 #endif
5303 /* Override any gcc2 internal prototype to avoid an error.  */
5304 #ifdef __cplusplus
5305 extern "C"
5306 {
5307 #endif
5308 /* We use char because int might match the return type of a gcc2
5309    builtin and then its argument prototype would still apply.  */
5310 char shmat ();
5311 /* The GNU C library defines this for functions which it implements
5312     to always fail with ENOSYS.  Some functions are actually named
5313     something starting with __ and the normal name is an alias.  */
5314 #if defined (__stub_shmat) || defined (__stub___shmat)
5315 choke me
5316 #else
5317 char (*f) () = shmat;
5318 #endif
5319 #ifdef __cplusplus
5320 }
5321 #endif
5322
5323 int
5324 main ()
5325 {
5326 return f != shmat;
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333   (eval $ac_link) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -s conftest$ac_exeext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   ac_cv_func_shmat=yes
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_cv_func_shmat=no
5349 fi
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 fi
5352 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5353 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5354
5355     if test $ac_cv_func_shmat = no; then
5356       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5357 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5358 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   ac_check_lib_save_LIBS=$LIBS
5362 LIBS="-lipc  $LIBS"
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370
5371 /* Override any gcc2 internal prototype to avoid an error.  */
5372 #ifdef __cplusplus
5373 extern "C"
5374 #endif
5375 /* We use char because int might match the return type of a gcc2
5376    builtin and then its argument prototype would still apply.  */
5377 char shmat ();
5378 int
5379 main ()
5380 {
5381 shmat ();
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest.$ac_objext conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388   (eval $ac_link) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } &&
5392          { ac_try='test -s conftest$ac_exeext'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; }; then
5398   ac_cv_lib_ipc_shmat=yes
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 ac_cv_lib_ipc_shmat=no
5404 fi
5405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5406 LIBS=$ac_check_lib_save_LIBS
5407 fi
5408 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5409 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5410 if test $ac_cv_lib_ipc_shmat = yes; then
5411   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5412 fi
5413
5414     fi
5415   fi
5416
5417   # Check for libraries that X11R6 Xt/Xaw programs need.
5418   ac_save_LDFLAGS=$LDFLAGS
5419   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5420   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5421   # check for ICE first), but we must link in the order -lSM -lICE or
5422   # we get undefined symbols.  So assume we have SM if we have ICE.
5423   # These have to be linked with before -lX11, unlike the other
5424   # libraries we check for below, so use a different variable.
5425   # John Interrante, Karl Berry
5426   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5427 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5428 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434 #line $LINENO "configure"
5435 /* confdefs.h.  */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h.  */
5440
5441 /* Override any gcc2 internal prototype to avoid an error.  */
5442 #ifdef __cplusplus
5443 extern "C"
5444 #endif
5445 /* We use char because int might match the return type of a gcc2
5446    builtin and then its argument prototype would still apply.  */
5447 char IceConnectionNumber ();
5448 int
5449 main ()
5450 {
5451 IceConnectionNumber ();
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458   (eval $ac_link) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } &&
5462          { ac_try='test -s conftest$ac_exeext'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; }; then
5468   ac_cv_lib_ICE_IceConnectionNumber=yes
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_cv_lib_ICE_IceConnectionNumber=no
5474 fi
5475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5476 LIBS=$ac_check_lib_save_LIBS
5477 fi
5478 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5479 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5480 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5481   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5482 fi
5483
5484   LDFLAGS=$ac_save_LDFLAGS
5485
5486 fi
5487
5488
5489 # Checks for X
5490 if test "x$with_x" = xyes; then
5491   if test "x$have_x" = xno; then
5492     if test "x$x_config_flag" = xyes; then
5493       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5494 echo "$as_me: error: Could not configure X" >&2;}
5495    { (exit 1); exit 1; }; }
5496     else
5497       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5498 echo "$as_me: WARNING: Could not configure X" >&2;}
5499     fi
5500   fi
5501 fi
5502 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5503   if test "x$x_libraries" != x; then
5504     ldflags_x_opt="-L$x_libraries"
5505     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5506     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5507   else
5508     ldflags_x_opt=
5509   fi
5510   if test "x$x_includes" != x; then
5511     CPPFLAGS="$CPPFLAGS -I$x_includes"
5512   fi
5513
5514
5515 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5516 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5517 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5518   echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520   ac_check_lib_save_LIBS=$LIBS
5521 LIBS="-lX11  $LIBS"
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #line $LINENO "configure"
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529
5530 /* Override any gcc2 internal prototype to avoid an error.  */
5531 #ifdef __cplusplus
5532 extern "C"
5533 #endif
5534 /* We use char because int might match the return type of a gcc2
5535    builtin and then its argument prototype would still apply.  */
5536 char XOpenDisplay ();
5537 int
5538 main ()
5539 {
5540 XOpenDisplay ();
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547   (eval $ac_link) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } &&
5551          { ac_try='test -s conftest$ac_exeext'
5552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553   (eval $ac_try) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; }; then
5557   ac_cv_lib_X11_XOpenDisplay=yes
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 ac_cv_lib_X11_XOpenDisplay=no
5563 fi
5564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_check_lib_save_LIBS
5566 fi
5567 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5568 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5569 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5570   cat >>confdefs.h <<_ACEOF
5571 #define HAVE_LIBX11 1
5572 _ACEOF
5573
5574   LIBS="-lX11 $LIBS"
5575
5576 fi
5577
5578   echo "$as_me:$LINENO: checking X11 version 6" >&5
5579 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5580   if test "${timidity_cv_x11_version_6+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 /* confdefs.h.  */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h.  */
5590 #include <X11/Xlib.h>
5591 int
5592 main ()
5593 {
5594
5595 #if XlibSpecificationRelease < 6
5596 fail;
5597 #endif
5598
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605   (eval $ac_link) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -s conftest$ac_exeext'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; }; then
5615   timidity_cv_x11_version_6=yes
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620 timidity_cv_x11_version_6=no
5621 fi
5622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5623 fi
5624
5625   if test "$timidity_cv_x11_version_6" = "yes"; then
5626     echo "$as_me:$LINENO: result: 6 or newer" >&5
5627 echo "${ECHO_T}6 or newer" >&6
5628       else
5629     echo "$as_me:$LINENO: result: before 6" >&5
5630 echo "${ECHO_T}before 6" >&6
5631   fi
5632
5633     KEEPLIBS=$LIBS
5634   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5635 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5636 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   ac_check_lib_save_LIBS=$LIBS
5640 LIBS="-lXext  $LIBS"
5641 cat >conftest.$ac_ext <<_ACEOF
5642 #line $LINENO "configure"
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648
5649 /* Override any gcc2 internal prototype to avoid an error.  */
5650 #ifdef __cplusplus
5651 extern "C"
5652 #endif
5653 /* We use char because int might match the return type of a gcc2
5654    builtin and then its argument prototype would still apply.  */
5655 char XShapeCombineMask ();
5656 int
5657 main ()
5658 {
5659 XShapeCombineMask ();
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666   (eval $ac_link) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } &&
5670          { ac_try='test -s conftest$ac_exeext'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; }; then
5676   ac_cv_lib_Xext_XShapeCombineMask=yes
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 ac_cv_lib_Xext_XShapeCombineMask=no
5682 fi
5683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_check_lib_save_LIBS
5685 fi
5686 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5687 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5688 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5689   have_xext=yes; LIBS="-lXext $LIBS"
5690 else
5691   have_xext=no
5692 fi
5693
5694
5695 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5696 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5697 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   ac_check_lib_save_LIBS=$LIBS
5701 LIBS="-lICE  $LIBS"
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 /* confdefs.h.  */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h.  */
5709
5710 /* Override any gcc2 internal prototype to avoid an error.  */
5711 #ifdef __cplusplus
5712 extern "C"
5713 #endif
5714 /* We use char because int might match the return type of a gcc2
5715    builtin and then its argument prototype would still apply.  */
5716 char IceConnectionNumber ();
5717 int
5718 main ()
5719 {
5720 IceConnectionNumber ();
5721   ;
5722   return 0;
5723 }
5724 _ACEOF
5725 rm -f conftest.$ac_objext conftest$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727   (eval $ac_link) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } &&
5731          { ac_try='test -s conftest$ac_exeext'
5732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733   (eval $ac_try) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); }; }; then
5737   ac_cv_lib_ICE_IceConnectionNumber=yes
5738 else
5739   echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742 ac_cv_lib_ICE_IceConnectionNumber=no
5743 fi
5744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5745 LIBS=$ac_check_lib_save_LIBS
5746 fi
5747 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5748 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5749 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5750   cat >>confdefs.h <<_ACEOF
5751 #define HAVE_LIBICE 1
5752 _ACEOF
5753
5754   LIBS="-lICE $LIBS"
5755
5756 fi
5757
5758   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5759 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5760 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   ac_check_lib_save_LIBS=$LIBS
5764 LIBS="-lSM  $LIBS"
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5767 /* confdefs.h.  */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h.  */
5772
5773 /* Override any gcc2 internal prototype to avoid an error.  */
5774 #ifdef __cplusplus
5775 extern "C"
5776 #endif
5777 /* We use char because int might match the return type of a gcc2
5778    builtin and then its argument prototype would still apply.  */
5779 char SmcOpenConnection ();
5780 int
5781 main ()
5782 {
5783 SmcOpenConnection ();
5784   ;
5785   return 0;
5786 }
5787 _ACEOF
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790   (eval $ac_link) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } &&
5794          { ac_try='test -s conftest$ac_exeext'
5795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796   (eval $ac_try) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; }; then
5800   ac_cv_lib_SM_SmcOpenConnection=yes
5801 else
5802   echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 ac_cv_lib_SM_SmcOpenConnection=no
5806 fi
5807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5809 fi
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5811 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5812 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5813   have_xprelibs=yes; LIBS="-lSM $LIBS"
5814 else
5815   have_xprelibs=no
5816 fi
5817
5818   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5819 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5820 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-lXt  $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832
5833 /* Override any gcc2 internal prototype to avoid an error.  */
5834 #ifdef __cplusplus
5835 extern "C"
5836 #endif
5837 /* We use char because int might match the return type of a gcc2
5838    builtin and then its argument prototype would still apply.  */
5839 char XtVaAppInitialize ();
5840 int
5841 main ()
5842 {
5843 XtVaAppInitialize ();
5844   ;
5845   return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850   (eval $ac_link) 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } &&
5854          { ac_try='test -s conftest$ac_exeext'
5855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856   (eval $ac_try) 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }; }; then
5860   ac_cv_lib_Xt_XtVaAppInitialize=yes
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 ac_cv_lib_Xt_XtVaAppInitialize=no
5866 fi
5867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5869 fi
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5871 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5872 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5873   have_xt=yes; LIBS="-lXt $LIBS"
5874 else
5875   have_xt=no
5876 fi
5877
5878   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5879 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5880 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5881   echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883   ac_check_lib_save_LIBS=$LIBS
5884 LIBS="-lXmu  $LIBS"
5885 cat >conftest.$ac_ext <<_ACEOF
5886 #line $LINENO "configure"
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892
5893 /* Override any gcc2 internal prototype to avoid an error.  */
5894 #ifdef __cplusplus
5895 extern "C"
5896 #endif
5897 /* We use char because int might match the return type of a gcc2
5898    builtin and then its argument prototype would still apply.  */
5899 char XmuInternAtom ();
5900 int
5901 main ()
5902 {
5903 XmuInternAtom ();
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910   (eval $ac_link) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -s conftest$ac_exeext'
5915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916   (eval $ac_try) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); }; }; then
5920   ac_cv_lib_Xmu_XmuInternAtom=yes
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 ac_cv_lib_Xmu_XmuInternAtom=no
5926 fi
5927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5928 LIBS=$ac_check_lib_save_LIBS
5929 fi
5930 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5931 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5932 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5933   LIBS="-lXmu $LIBS"
5934 fi
5935
5936
5937 for ac_func in XmuRegisterExternalAgent
5938 do
5939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5940 echo "$as_me:$LINENO: checking for $ac_func" >&5
5941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5942 if eval "test \"\${$as_ac_var+set}\" = set"; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   cat >conftest.$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5947 /* confdefs.h.  */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h.  */
5952 /* System header to define __stub macros and hopefully few prototypes,
5953     which can conflict with char $ac_func (); below.
5954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955     <limits.h> exists even on freestanding compilers.  */
5956 #ifdef __STDC__
5957 # include <limits.h>
5958 #else
5959 # include <assert.h>
5960 #endif
5961 /* Override any gcc2 internal prototype to avoid an error.  */
5962 #ifdef __cplusplus
5963 extern "C"
5964 {
5965 #endif
5966 /* We use char because int might match the return type of a gcc2
5967    builtin and then its argument prototype would still apply.  */
5968 char $ac_func ();
5969 /* The GNU C library defines this for functions which it implements
5970     to always fail with ENOSYS.  Some functions are actually named
5971     something starting with __ and the normal name is an alias.  */
5972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5973 choke me
5974 #else
5975 char (*f) () = $ac_func;
5976 #endif
5977 #ifdef __cplusplus
5978 }
5979 #endif
5980
5981 int
5982 main ()
5983 {
5984 return f != $ac_func;
5985   ;
5986   return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext conftest$ac_exeext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5991   (eval $ac_link) 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } &&
5995          { ac_try='test -s conftest$ac_exeext'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; }; then
6001   eval "$as_ac_var=yes"
6002 else
6003   echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 eval "$as_ac_var=no"
6007 fi
6008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6009 fi
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6012 if test `eval echo '${'$as_ac_var'}'` = yes; then
6013   cat >>confdefs.h <<_ACEOF
6014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6015 _ACEOF
6016
6017 fi
6018 done
6019
6020   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6021 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6022 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   ac_check_lib_save_LIBS=$LIBS
6026 LIBS="-lXaw3d  $LIBS"
6027 cat >conftest.$ac_ext <<_ACEOF
6028 #line $LINENO "configure"
6029 /* confdefs.h.  */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h.  */
6034
6035 /* Override any gcc2 internal prototype to avoid an error.  */
6036 #ifdef __cplusplus
6037 extern "C"
6038 #endif
6039 /* We use char because int might match the return type of a gcc2
6040    builtin and then its argument prototype would still apply.  */
6041 char XawInitializeWidgetSet ();
6042 int
6043 main ()
6044 {
6045 XawInitializeWidgetSet ();
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext conftest$ac_exeext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6052   (eval $ac_link) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -s conftest$ac_exeext'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; }; then
6062   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6068 fi
6069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_check_lib_save_LIBS
6071 fi
6072 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6073 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6074 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6075   have_xaw=3d
6076 else
6077    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6078 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6079 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   ac_check_lib_save_LIBS=$LIBS
6083 LIBS="-lXaw  $LIBS"
6084 cat >conftest.$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6086 /* confdefs.h.  */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h.  */
6091
6092 /* Override any gcc2 internal prototype to avoid an error.  */
6093 #ifdef __cplusplus
6094 extern "C"
6095 #endif
6096 /* We use char because int might match the return type of a gcc2
6097    builtin and then its argument prototype would still apply.  */
6098 char XawInitializeWidgetSet ();
6099 int
6100 main ()
6101 {
6102 XawInitializeWidgetSet ();
6103   ;
6104   return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109   (eval $ac_link) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -s conftest$ac_exeext'
6114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115   (eval $ac_try) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; }; then
6119   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6120 else
6121   echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6125 fi
6126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6128 fi
6129 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6130 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6131 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6132   have_xaw=yes
6133 else
6134   have_xaw=no
6135 fi
6136
6137 fi
6138
6139   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6140 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6141 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   ac_check_lib_save_LIBS=$LIBS
6145 LIBS="-lXm  $LIBS"
6146 cat >conftest.$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153
6154 /* Override any gcc2 internal prototype to avoid an error.  */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 /* We use char because int might match the return type of a gcc2
6159    builtin and then its argument prototype would still apply.  */
6160 char XmCreateForm ();
6161 int
6162 main ()
6163 {
6164 XmCreateForm ();
6165   ;
6166   return 0;
6167 }
6168 _ACEOF
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171   (eval $ac_link) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -s conftest$ac_exeext'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; }; then
6181   ac_cv_lib_Xm_XmCreateForm=yes
6182 else
6183   echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 ac_cv_lib_Xm_XmCreateForm=no
6187 fi
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189 LIBS=$ac_check_lib_save_LIBS
6190 fi
6191 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6192 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6193 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6194   have_xm=yes
6195 else
6196   have_xm=no
6197 fi
6198
6199
6200 for ac_func in XShmCreatePixmap
6201 do
6202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6203 echo "$as_me:$LINENO: checking for $ac_func" >&5
6204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6205 if eval "test \"\${$as_ac_var+set}\" = set"; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   cat >conftest.$ac_ext <<_ACEOF
6209 #line $LINENO "configure"
6210 /* confdefs.h.  */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h.  */
6215 /* System header to define __stub macros and hopefully few prototypes,
6216     which can conflict with char $ac_func (); below.
6217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6218     <limits.h> exists even on freestanding compilers.  */
6219 #ifdef __STDC__
6220 # include <limits.h>
6221 #else
6222 # include <assert.h>
6223 #endif
6224 /* Override any gcc2 internal prototype to avoid an error.  */
6225 #ifdef __cplusplus
6226 extern "C"
6227 {
6228 #endif
6229 /* We use char because int might match the return type of a gcc2
6230    builtin and then its argument prototype would still apply.  */
6231 char $ac_func ();
6232 /* The GNU C library defines this for functions which it implements
6233     to always fail with ENOSYS.  Some functions are actually named
6234     something starting with __ and the normal name is an alias.  */
6235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6236 choke me
6237 #else
6238 char (*f) () = $ac_func;
6239 #endif
6240 #ifdef __cplusplus
6241 }
6242 #endif
6243
6244 int
6245 main ()
6246 {
6247 return f != $ac_func;
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254   (eval $ac_link) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -s conftest$ac_exeext'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; }; then
6264   eval "$as_ac_var=yes"
6265 else
6266   echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 eval "$as_ac_var=no"
6270 fi
6271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6272 fi
6273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6275 if test `eval echo '${'$as_ac_var'}'` = yes; then
6276   cat >>confdefs.h <<_ACEOF
6277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6278 _ACEOF
6279
6280 fi
6281 done
6282
6283   LIBS=$KEEPLIBS
6284 fi
6285
6286 # Checks for header files.
6287 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6288 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6289 if test "${ac_cv_header_stdc+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299 #include <stdlib.h>
6300 #include <stdarg.h>
6301 #include <string.h>
6302 #include <float.h>
6303
6304 int
6305 main ()
6306 {
6307
6308   ;
6309   return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314   (eval $ac_compile) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } &&
6318          { ac_try='test -s conftest.$ac_objext'
6319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320   (eval $ac_try) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); }; }; then
6324   ac_cv_header_stdc=yes
6325 else
6326   echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329 ac_cv_header_stdc=no
6330 fi
6331 rm -f conftest.$ac_objext conftest.$ac_ext
6332
6333 if test $ac_cv_header_stdc = yes; then
6334   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6335   cat >conftest.$ac_ext <<_ACEOF
6336 #line $LINENO "configure"
6337 /* confdefs.h.  */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h.  */
6342 #include <string.h>
6343
6344 _ACEOF
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346   $EGREP "memchr" >/dev/null 2>&1; then
6347   :
6348 else
6349   ac_cv_header_stdc=no
6350 fi
6351 rm -f conftest*
6352
6353 fi
6354
6355 if test $ac_cv_header_stdc = yes; then
6356   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6357   cat >conftest.$ac_ext <<_ACEOF
6358 #line $LINENO "configure"
6359 /* confdefs.h.  */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h.  */
6364 #include <stdlib.h>
6365
6366 _ACEOF
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368   $EGREP "free" >/dev/null 2>&1; then
6369   :
6370 else
6371   ac_cv_header_stdc=no
6372 fi
6373 rm -f conftest*
6374
6375 fi
6376
6377 if test $ac_cv_header_stdc = yes; then
6378   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6379   if test "$cross_compiling" = yes; then
6380   :
6381 else
6382   cat >conftest.$ac_ext <<_ACEOF
6383 #line $LINENO "configure"
6384 /* confdefs.h.  */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h.  */
6389 #include <ctype.h>
6390 #if ((' ' & 0x0FF) == 0x020)
6391 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6392 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6393 #else
6394 # define ISLOWER(c) \
6395                    (('a' <= (c) && (c) <= 'i') \
6396                      || ('j' <= (c) && (c) <= 'r') \
6397                      || ('s' <= (c) && (c) <= 'z'))
6398 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6399 #endif
6400
6401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6402 int
6403 main ()
6404 {
6405   int i;
6406   for (i = 0; i < 256; i++)
6407     if (XOR (islower (i), ISLOWER (i))
6408         || toupper (i) != TOUPPER (i))
6409       exit(2);
6410   exit (0);
6411 }
6412 _ACEOF
6413 rm -f conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415   (eval $ac_link) 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   :
6425 else
6426   echo "$as_me: program exited with status $ac_status" >&5
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 ( exit $ac_status )
6431 ac_cv_header_stdc=no
6432 fi
6433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 fi
6436 fi
6437 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6438 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6439 if test $ac_cv_header_stdc = yes; then
6440
6441 cat >>confdefs.h <<\_ACEOF
6442 #define STDC_HEADERS 1
6443 _ACEOF
6444
6445 fi
6446
6447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6458                   inttypes.h stdint.h unistd.h
6459 do
6460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461 echo "$as_me:$LINENO: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473 $ac_includes_default
6474
6475 #include <$ac_header>
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479   (eval $ac_compile) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -s conftest.$ac_objext'
6484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; }; then
6489   eval "$as_ac_Header=yes"
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6493
6494 eval "$as_ac_Header=no"
6495 fi
6496 rm -f conftest.$ac_objext conftest.$ac_ext
6497 fi
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6501   cat >>confdefs.h <<_ACEOF
6502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6503 _ACEOF
6504
6505 fi
6506
6507 done
6508
6509
6510 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6511 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6512 if test "${ac_cv_header_stdbool_h+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 /* confdefs.h.  */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h.  */
6522
6523 #include <stdbool.h>
6524 #ifndef bool
6525 # error bool is not defined
6526 #endif
6527 #ifndef false
6528 # error false is not defined
6529 #endif
6530 #if false
6531 # error false is not 0
6532 #endif
6533 #ifndef true
6534 # error true is not defined
6535 #endif
6536 #if true != 1
6537 # error true is not 1
6538 #endif
6539 #ifndef __bool_true_false_are_defined
6540 # error __bool_true_false_are_defined is not defined
6541 #endif
6542
6543         struct s { _Bool s: 1; _Bool t; } s;
6544
6545         char a[true == 1 ? 1 : -1];
6546         char b[false == 0 ? 1 : -1];
6547         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6548         char d[(bool) -0.5 == true ? 1 : -1];
6549         bool e = &s;
6550         char f[(_Bool) -0.0 == false ? 1 : -1];
6551         char g[true];
6552         char h[sizeof (_Bool)];
6553         char i[sizeof s.t];
6554
6555 int
6556 main ()
6557 {
6558  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 rm -f conftest.$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565   (eval $ac_compile) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } &&
6569          { ac_try='test -s conftest.$ac_objext'
6570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571   (eval $ac_try) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; }; then
6575   ac_cv_header_stdbool_h=yes
6576 else
6577   echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 ac_cv_header_stdbool_h=no
6581 fi
6582 rm -f conftest.$ac_objext conftest.$ac_ext
6583 fi
6584 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6585 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6586 echo "$as_me:$LINENO: checking for _Bool" >&5
6587 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6588 if test "${ac_cv_type__Bool+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   cat >conftest.$ac_ext <<_ACEOF
6592 #line $LINENO "configure"
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 $ac_includes_default
6599 int
6600 main ()
6601 {
6602 if ((_Bool *) 0)
6603   return 0;
6604 if (sizeof (_Bool))
6605   return 0;
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612   (eval $ac_compile) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -s conftest.$ac_objext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   ac_cv_type__Bool=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627 ac_cv_type__Bool=no
6628 fi
6629 rm -f conftest.$ac_objext conftest.$ac_ext
6630 fi
6631 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6632 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6633 if test $ac_cv_type__Bool = yes; then
6634
6635 cat >>confdefs.h <<_ACEOF
6636 #define HAVE__BOOL 1
6637 _ACEOF
6638
6639
6640 fi
6641
6642 if test $ac_cv_header_stdbool_h = yes; then
6643
6644 cat >>confdefs.h <<\_ACEOF
6645 #define HAVE_STDBOOL_H 1
6646 _ACEOF
6647
6648 fi
6649
6650 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6651 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6652 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6653   echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655   cat >conftest.$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6657 /* confdefs.h.  */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h.  */
6662 #include <sys/types.h>
6663 #include <sys/wait.h>
6664 #ifndef WEXITSTATUS
6665 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6666 #endif
6667 #ifndef WIFEXITED
6668 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6669 #endif
6670
6671 int
6672 main ()
6673 {
6674   int s;
6675   wait (&s);
6676   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6677   ;
6678   return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } &&
6687          { ac_try='test -s conftest.$ac_objext'
6688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689   (eval $ac_try) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; }; then
6693   ac_cv_header_sys_wait_h=yes
6694 else
6695   echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 ac_cv_header_sys_wait_h=no
6699 fi
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6703 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6704 if test $ac_cv_header_sys_wait_h = yes; then
6705
6706 cat >>confdefs.h <<\_ACEOF
6707 #define HAVE_SYS_WAIT_H 1
6708 _ACEOF
6709
6710 fi
6711
6712 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6713 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6714 if test "${ac_cv_header_time+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 #include <sys/types.h>
6725 #include <sys/time.h>
6726 #include <time.h>
6727
6728 int
6729 main ()
6730 {
6731 if ((struct tm *) 0)
6732 return 0;
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739   (eval $ac_compile) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest.$ac_objext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749   ac_cv_header_time=yes
6750 else
6751   echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6753
6754 ac_cv_header_time=no
6755 fi
6756 rm -f conftest.$ac_objext conftest.$ac_ext
6757 fi
6758 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6759 echo "${ECHO_T}$ac_cv_header_time" >&6
6760 if test $ac_cv_header_time = yes; then
6761
6762 cat >>confdefs.h <<\_ACEOF
6763 #define TIME_WITH_SYS_TIME 1
6764 _ACEOF
6765
6766 fi
6767
6768
6769
6770
6771
6772
6773 ac_header_dirent=no
6774 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6775   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6776 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6777 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 /* confdefs.h.  */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h.  */
6788 #include <sys/types.h>
6789 #include <$ac_hdr>
6790
6791 int
6792 main ()
6793 {
6794 if ((DIR *) 0)
6795 return 0;
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802   (eval $ac_compile) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); } &&
6806          { ac_try='test -s conftest.$ac_objext'
6807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808   (eval $ac_try) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); }; }; then
6812   eval "$as_ac_Header=yes"
6813 else
6814   echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 eval "$as_ac_Header=no"
6818 fi
6819 rm -f conftest.$ac_objext conftest.$ac_ext
6820 fi
6821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6824   cat >>confdefs.h <<_ACEOF
6825 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6826 _ACEOF
6827
6828 ac_header_dirent=$ac_hdr; break
6829 fi
6830
6831 done
6832 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6833 if test $ac_header_dirent = dirent.h; then
6834   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6836 if test "${ac_cv_search_opendir+set}" = set; then
6837   echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839   ac_func_search_save_LIBS=$LIBS
6840 ac_cv_search_opendir=no
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848
6849 /* Override any gcc2 internal prototype to avoid an error.  */
6850 #ifdef __cplusplus
6851 extern "C"
6852 #endif
6853 /* We use char because int might match the return type of a gcc2
6854    builtin and then its argument prototype would still apply.  */
6855 char opendir ();
6856 int
6857 main ()
6858 {
6859 opendir ();
6860   ;
6861   return 0;
6862 }
6863 _ACEOF
6864 rm -f conftest.$ac_objext conftest$ac_exeext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866   (eval $ac_link) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); } &&
6870          { ac_try='test -s conftest$ac_exeext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876   ac_cv_search_opendir="none required"
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881 fi
6882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6883 if test "$ac_cv_search_opendir" = no; then
6884   for ac_lib in dir; do
6885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6886     cat >conftest.$ac_ext <<_ACEOF
6887 #line $LINENO "configure"
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893
6894 /* Override any gcc2 internal prototype to avoid an error.  */
6895 #ifdef __cplusplus
6896 extern "C"
6897 #endif
6898 /* We use char because int might match the return type of a gcc2
6899    builtin and then its argument prototype would still apply.  */
6900 char opendir ();
6901 int
6902 main ()
6903 {
6904 opendir ();
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6911   (eval $ac_link) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } &&
6915          { ac_try='test -s conftest$ac_exeext'
6916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917   (eval $ac_try) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; }; then
6921   ac_cv_search_opendir="-l$ac_lib"
6922 break
6923 else
6924   echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 fi
6928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6929   done
6930 fi
6931 LIBS=$ac_func_search_save_LIBS
6932 fi
6933 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6934 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6935 if test "$ac_cv_search_opendir" != no; then
6936   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6937
6938 fi
6939
6940 else
6941   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6942 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6943 if test "${ac_cv_search_opendir+set}" = set; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   ac_func_search_save_LIBS=$LIBS
6947 ac_cv_search_opendir=no
6948 cat >conftest.$ac_ext <<_ACEOF
6949 #line $LINENO "configure"
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955
6956 /* Override any gcc2 internal prototype to avoid an error.  */
6957 #ifdef __cplusplus
6958 extern "C"
6959 #endif
6960 /* We use char because int might match the return type of a gcc2
6961    builtin and then its argument prototype would still apply.  */
6962 char opendir ();
6963 int
6964 main ()
6965 {
6966 opendir ();
6967   ;
6968   return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973   (eval $ac_link) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } &&
6977          { ac_try='test -s conftest$ac_exeext'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; }; then
6983   ac_cv_search_opendir="none required"
6984 else
6985   echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6987
6988 fi
6989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6990 if test "$ac_cv_search_opendir" = no; then
6991   for ac_lib in x; do
6992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6993     cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000
7001 /* Override any gcc2 internal prototype to avoid an error.  */
7002 #ifdef __cplusplus
7003 extern "C"
7004 #endif
7005 /* We use char because int might match the return type of a gcc2
7006    builtin and then its argument prototype would still apply.  */
7007 char opendir ();
7008 int
7009 main ()
7010 {
7011 opendir ();
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018   (eval $ac_link) 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } &&
7022          { ac_try='test -s conftest$ac_exeext'
7023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024   (eval $ac_try) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; }; then
7028   ac_cv_search_opendir="-l$ac_lib"
7029 break
7030 else
7031   echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 fi
7035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7036   done
7037 fi
7038 LIBS=$ac_func_search_save_LIBS
7039 fi
7040 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7041 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7042 if test "$ac_cv_search_opendir" != no; then
7043   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7044
7045 fi
7046
7047 fi
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088 for ac_header in \
7089   arpa/inet.h \
7090   errno.h \
7091   getopt.h \
7092   glob.h \
7093   dlfcn.h \
7094   fcntl.h \
7095   inttypes.h \
7096   limits.h \
7097   machine/endian.h \
7098   malloc.h \
7099   memory.h \
7100   netdb.h \
7101   netinet/in.h \
7102   nlist.h \
7103   stddef.h \
7104   stdlib.h \
7105   stdint.h \
7106   string.h \
7107   strings.h \
7108   stropts.h \
7109   soundcard.h \
7110   alsa/asoundlib.h \
7111   sys/asoundlib.h \
7112   sys/audioio.h \
7113   sys/awe_voice.h\
7114   sys/ioctl.h \
7115   sys/ipc.h \
7116   sys/param.h \
7117   sys/shm.h \
7118   sys/socket.h \
7119   sys/soundcard.h \
7120   sys/param.h \
7121   sys/time.h \
7122   sys/types.h \
7123   sys/sysctl.h \
7124   termios.h \
7125   unistd.h \
7126   X11/extensions/XShm.h \
7127   X11/Xmu/ExtAgent.h
7128 do
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131   echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 fi
7136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138 else
7139   # Is the header compilable?
7140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 $ac_includes_default
7150 #include <$ac_header>
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154   (eval $ac_compile) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -s conftest.$ac_objext'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; }; then
7164   ac_header_compiler=yes
7165 else
7166   echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7168
7169 ac_header_compiler=no
7170 fi
7171 rm -f conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7173 echo "${ECHO_T}$ac_header_compiler" >&6
7174
7175 # Is the header present?
7176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 /* confdefs.h.  */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h.  */
7185 #include <$ac_header>
7186 _ACEOF
7187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7189   ac_status=$?
7190   grep -v '^ *+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } >/dev/null; then
7195   if test -s conftest.err; then
7196     ac_cpp_err=$ac_c_preproc_warn_flag
7197   else
7198     ac_cpp_err=
7199   fi
7200 else
7201   ac_cpp_err=yes
7202 fi
7203 if test -z "$ac_cpp_err"; then
7204   ac_header_preproc=yes
7205 else
7206   echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209   ac_header_preproc=no
7210 fi
7211 rm -f conftest.err conftest.$ac_ext
7212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7213 echo "${ECHO_T}$ac_header_preproc" >&6
7214
7215 # So?  What about this header?
7216 case $ac_header_compiler:$ac_header_preproc in
7217   yes:no )
7218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7222     (
7223       cat <<\_ASBOX
7224 ## ------------------------------------ ##
7225 ## Report this to bug-autoconf@gnu.org. ##
7226 ## ------------------------------------ ##
7227 _ASBOX
7228     ) |
7229       sed "s/^/$as_me: WARNING:     /" >&2
7230     ;;
7231   no:yes )
7232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7234     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7238     (
7239       cat <<\_ASBOX
7240 ## ------------------------------------ ##
7241 ## Report this to bug-autoconf@gnu.org. ##
7242 ## ------------------------------------ ##
7243 _ASBOX
7244     ) |
7245       sed "s/^/$as_me: WARNING:     /" >&2
7246     ;;
7247 esac
7248 echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   eval "$as_ac_Header=$ac_header_preproc"
7254 fi
7255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7257
7258 fi
7259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7260   cat >>confdefs.h <<_ACEOF
7261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7262 _ACEOF
7263
7264 fi
7265
7266 done
7267
7268 if test "${ac_cv_header_string_h+set}" = set; then
7269   echo "$as_me:$LINENO: checking for string.h" >&5
7270 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7271 if test "${ac_cv_header_string_h+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 fi
7274 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7275 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7276 else
7277   # Is the header compilable?
7278 echo "$as_me:$LINENO: checking string.h usability" >&5
7279 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7280 cat >conftest.$ac_ext <<_ACEOF
7281 #line $LINENO "configure"
7282 /* confdefs.h.  */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h.  */
7287 $ac_includes_default
7288 #include <string.h>
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292   (eval $ac_compile) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } &&
7296          { ac_try='test -s conftest.$ac_objext'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; }; then
7302   ac_header_compiler=yes
7303 else
7304   echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 ac_header_compiler=no
7308 fi
7309 rm -f conftest.$ac_objext conftest.$ac_ext
7310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7311 echo "${ECHO_T}$ac_header_compiler" >&6
7312
7313 # Is the header present?
7314 echo "$as_me:$LINENO: checking string.h presence" >&5
7315 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7316 cat >conftest.$ac_ext <<_ACEOF
7317 #line $LINENO "configure"
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 #include <string.h>
7324 _ACEOF
7325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7327   ac_status=$?
7328   grep -v '^ *+' conftest.er1 >conftest.err
7329   rm -f conftest.er1
7330   cat conftest.err >&5
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } >/dev/null; then
7333   if test -s conftest.err; then
7334     ac_cpp_err=$ac_c_preproc_warn_flag
7335   else
7336     ac_cpp_err=
7337   fi
7338 else
7339   ac_cpp_err=yes
7340 fi
7341 if test -z "$ac_cpp_err"; then
7342   ac_header_preproc=yes
7343 else
7344   echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347   ac_header_preproc=no
7348 fi
7349 rm -f conftest.err conftest.$ac_ext
7350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7351 echo "${ECHO_T}$ac_header_preproc" >&6
7352
7353 # So?  What about this header?
7354 case $ac_header_compiler:$ac_header_preproc in
7355   yes:no )
7356     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7357 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7358     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7359 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7360     (
7361       cat <<\_ASBOX
7362 ## ------------------------------------ ##
7363 ## Report this to bug-autoconf@gnu.org. ##
7364 ## ------------------------------------ ##
7365 _ASBOX
7366     ) |
7367       sed "s/^/$as_me: WARNING:     /" >&2
7368     ;;
7369   no:yes )
7370     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7371 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7372     { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7373 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7375 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7376     (
7377       cat <<\_ASBOX
7378 ## ------------------------------------ ##
7379 ## Report this to bug-autoconf@gnu.org. ##
7380 ## ------------------------------------ ##
7381 _ASBOX
7382     ) |
7383       sed "s/^/$as_me: WARNING:     /" >&2
7384     ;;
7385 esac
7386 echo "$as_me:$LINENO: checking for string.h" >&5
7387 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7388 if test "${ac_cv_header_string_h+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   ac_cv_header_string_h=$ac_header_preproc
7392 fi
7393 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7394 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7395
7396 fi
7397 if test $ac_cv_header_string_h = yes; then
7398   :
7399 else
7400
7401 cat >>confdefs.h <<\_ACEOF
7402 #define NO_STRING_H 1
7403 _ACEOF
7404
7405 fi
7406
7407
7408
7409 # Checks for typedefs, structures, and compiler characteristics.
7410 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7411 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7412 if test "${ac_cv_c_bigendian+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   # See if sys/param.h defines the BYTE_ORDER macro.
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423 #include <sys/types.h>
7424 #include <sys/param.h>
7425
7426 int
7427 main ()
7428 {
7429 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7430  bogus endian macros
7431 #endif
7432
7433   ;
7434   return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7439   (eval $ac_compile) 2>&5
7440   ac_status=$?
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } &&
7443          { ac_try='test -s conftest.$ac_objext'
7444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445   (eval $ac_try) 2>&5
7446   ac_status=$?
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); }; }; then
7449   # It does; now see whether it defined to BIG_ENDIAN or not.
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 #include <sys/types.h>
7458 #include <sys/param.h>
7459
7460 int
7461 main ()
7462 {
7463 #if BYTE_ORDER != BIG_ENDIAN
7464  not big endian
7465 #endif
7466
7467   ;
7468   return 0;
7469 }
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473   (eval $ac_compile) 2>&5
7474   ac_status=$?
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -s conftest.$ac_objext'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; }; then
7483   ac_cv_c_bigendian=yes
7484 else
7485   echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 ac_cv_c_bigendian=no
7489 fi
7490 rm -f conftest.$ac_objext conftest.$ac_ext
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 # It does not; compile a test program.
7496 if test "$cross_compiling" = yes; then
7497   # try to guess the endianness by grepping values into an object file
7498   ac_cv_c_bigendian=unknown
7499   cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7507 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7508 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7509 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7510 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7511 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7512 int
7513 main ()
7514 {
7515  _ascii (); _ebcdic ();
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7522   (eval $ac_compile) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -s conftest.$ac_objext'
7527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528   (eval $ac_try) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; }; then
7532   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7533   ac_cv_c_bigendian=yes
7534 fi
7535 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7536   if test "$ac_cv_c_bigendian" = unknown; then
7537     ac_cv_c_bigendian=no
7538   else
7539     # finding both strings is unlikely to happen, but who knows?
7540     ac_cv_c_bigendian=unknown
7541   fi
7542 fi
7543 else
7544   echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7546
7547 fi
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7549 else
7550   cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 int
7558 main ()
7559 {
7560   /* Are we little or big endian?  From Harbison&Steele.  */
7561   union
7562   {
7563     long l;
7564     char c[sizeof (long)];
7565   } u;
7566   u.l = 1;
7567   exit (u.c[sizeof (long) - 1] == 1);
7568 }
7569 _ACEOF
7570 rm -f conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572   (eval $ac_link) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577   (eval $ac_try) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); }; }; then
7581   ac_cv_c_bigendian=no
7582 else
7583   echo "$as_me: program exited with status $ac_status" >&5
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 ( exit $ac_status )
7588 ac_cv_c_bigendian=yes
7589 fi
7590 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 fi
7593 rm -f conftest.$ac_objext conftest.$ac_ext
7594 fi
7595 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7596 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7597 case $ac_cv_c_bigendian in
7598   yes)
7599
7600 cat >>confdefs.h <<\_ACEOF
7601 #define WORDS_BIGENDIAN 1
7602 _ACEOF
7603  ;;
7604   no)
7605      ;;
7606   *)
7607     { { echo "$as_me:$LINENO: error: unknown endianness
7608 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7609 echo "$as_me: error: unknown endianness
7610 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7611    { (exit 1); exit 1; }; } ;;
7612 esac
7613
7614
7615 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7616 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7617 if test "${ac_cv_c_char_unsigned+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   cat >conftest.$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7622 /* confdefs.h.  */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h.  */
7627 $ac_includes_default
7628 int
7629 main ()
7630 {
7631 static int test_array [1 - 2 * !(((char) -1) < 0)];
7632 test_array [0] = 0
7633
7634   ;
7635   return 0;
7636 }
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640   (eval $ac_compile) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); } &&
7644          { ac_try='test -s conftest.$ac_objext'
7645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646   (eval $ac_try) 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); }; }; then
7650   ac_cv_c_char_unsigned=no
7651 else
7652   echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7654
7655 ac_cv_c_char_unsigned=yes
7656 fi
7657 rm -f conftest.$ac_objext conftest.$ac_ext
7658 fi
7659 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7660 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7661 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7662   cat >>confdefs.h <<\_ACEOF
7663 #define __CHAR_UNSIGNED__ 1
7664 _ACEOF
7665
7666 fi
7667
7668 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7669 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7670 if test "${ac_cv_c_const+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   cat >conftest.$ac_ext <<_ACEOF
7674 #line $LINENO "configure"
7675 /* confdefs.h.  */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h.  */
7680
7681 int
7682 main ()
7683 {
7684 /* FIXME: Include the comments suggested by Paul. */
7685 #ifndef __cplusplus
7686   /* Ultrix mips cc rejects this.  */
7687   typedef int charset[2];
7688   const charset x;
7689   /* SunOS 4.1.1 cc rejects this.  */
7690   char const *const *ccp;
7691   char **p;
7692   /* NEC SVR4.0.2 mips cc rejects this.  */
7693   struct point {int x, y;};
7694   static struct point const zero = {0,0};
7695   /* AIX XL C 1.02.0.0 rejects this.
7696      It does not let you subtract one const X* pointer from another in
7697      an arm of an if-expression whose if-part is not a constant
7698      expression */
7699   const char *g = "string";
7700   ccp = &g + (g ? g-g : 0);
7701   /* HPUX 7.0 cc rejects these. */
7702   ++ccp;
7703   p = (char**) ccp;
7704   ccp = (char const *const *) p;
7705   { /* SCO 3.2v4 cc rejects this.  */
7706     char *t;
7707     char const *s = 0 ? (char *) 0 : (char const *) 0;
7708
7709     *t++ = 0;
7710   }
7711   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7712     int x[] = {25, 17};
7713     const int *foo = &x[0];
7714     ++foo;
7715   }
7716   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7717     typedef const int *iptr;
7718     iptr p = 0;
7719     ++p;
7720   }
7721   { /* AIX XL C 1.02.0.0 rejects this saying
7722        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7723     struct s { int j; const int *ap[3]; };
7724     struct s *b; b->j = 5;
7725   }
7726   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7727     const int foo = 10;
7728   }
7729 #endif
7730
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737   (eval $ac_compile) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } &&
7741          { ac_try='test -s conftest.$ac_objext'
7742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   ac_cv_c_const=yes
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 ac_cv_c_const=no
7753 fi
7754 rm -f conftest.$ac_objext conftest.$ac_ext
7755 fi
7756 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7757 echo "${ECHO_T}$ac_cv_c_const" >&6
7758 if test $ac_cv_c_const = no; then
7759
7760 cat >>confdefs.h <<\_ACEOF
7761 #define const
7762 _ACEOF
7763
7764 fi
7765
7766 echo "$as_me:$LINENO: checking for inline" >&5
7767 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7768 if test "${ac_cv_c_inline+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   ac_cv_c_inline=no
7772 for ac_kw in inline __inline__ __inline; do
7773   cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 /* confdefs.h.  */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h.  */
7780 #ifndef __cplusplus
7781 typedef int foo_t;
7782 static $ac_kw foo_t static_foo () {return 0; }
7783 $ac_kw foo_t foo () {return 0; }
7784 #endif
7785
7786 _ACEOF
7787 rm -f conftest.$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789   (eval $ac_compile) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } &&
7793          { ac_try='test -s conftest.$ac_objext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_cv_c_inline=$ac_kw; break
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 fi
7805 rm -f conftest.$ac_objext conftest.$ac_ext
7806 done
7807
7808 fi
7809 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7810 echo "${ECHO_T}$ac_cv_c_inline" >&6
7811 case $ac_cv_c_inline in
7812   inline | yes) ;;
7813   no)
7814 cat >>confdefs.h <<\_ACEOF
7815 #define inline
7816 _ACEOF
7817  ;;
7818   *)  cat >>confdefs.h <<_ACEOF
7819 #define inline $ac_cv_c_inline
7820 _ACEOF
7821  ;;
7822 esac
7823
7824 echo "$as_me:$LINENO: checking for working volatile" >&5
7825 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7826 if test "${ac_cv_c_volatile+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   cat >conftest.$ac_ext <<_ACEOF
7830 #line $LINENO "configure"
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836
7837 int
7838 main ()
7839 {
7840
7841 volatile int x;
7842 int * volatile y;
7843   ;
7844   return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849   (eval $ac_compile) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); } &&
7853          { ac_try='test -s conftest.$ac_objext'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_cv_c_volatile=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 ac_cv_c_volatile=no
7865 fi
7866 rm -f conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7869 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7870 if test $ac_cv_c_volatile = no; then
7871
7872 cat >>confdefs.h <<\_ACEOF
7873 #define volatile
7874 _ACEOF
7875
7876 fi
7877
7878 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7879 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7880 if test "${ac_cv_c_stringize+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 /* confdefs.h.  */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h.  */
7890 #define x(y) #y
7891
7892 char *s = x(teststring);
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895   $EGREP "#teststring" >/dev/null 2>&1; then
7896   ac_cv_c_stringize=no
7897 else
7898   ac_cv_c_stringize=yes
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7904 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7905 if test $ac_cv_c_stringize = yes; then
7906
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_STRINGIZE 1
7909 _ACEOF
7910
7911 fi
7912
7913 echo "$as_me:$LINENO: checking for function prototypes" >&5
7914 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7915 if test "$ac_cv_prog_cc_stdc" != no; then
7916   echo "$as_me:$LINENO: result: yes" >&5
7917 echo "${ECHO_T}yes" >&6
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define PROTOTYPES 1
7921 _ACEOF
7922
7923
7924 cat >>confdefs.h <<\_ACEOF
7925 #define __PROTOTYPES 1
7926 _ACEOF
7927
7928 else
7929   echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7931 fi
7932
7933 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7934 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7935 if test "${ac_cv_struct_tm+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   cat >conftest.$ac_ext <<_ACEOF
7939 #line $LINENO "configure"
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945 #include <sys/types.h>
7946 #include <time.h>
7947
7948 int
7949 main ()
7950 {
7951 struct tm *tp; tp->tm_sec;
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958   (eval $ac_compile) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } &&
7962          { ac_try='test -s conftest.$ac_objext'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; }; then
7968   ac_cv_struct_tm=time.h
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 ac_cv_struct_tm=sys/time.h
7974 fi
7975 rm -f conftest.$ac_objext conftest.$ac_ext
7976 fi
7977 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7978 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7979 if test $ac_cv_struct_tm = sys/time.h; then
7980
7981 cat >>confdefs.h <<\_ACEOF
7982 #define TM_IN_SYS_TIME 1
7983 _ACEOF
7984
7985 fi
7986
7987 echo "$as_me:$LINENO: checking for size_t" >&5
7988 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7989 if test "${ac_cv_type_size_t+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   cat >conftest.$ac_ext <<_ACEOF
7993 #line $LINENO "configure"
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 $ac_includes_default
8000 int
8001 main ()
8002 {
8003 if ((size_t *) 0)
8004   return 0;
8005 if (sizeof (size_t))
8006   return 0;
8007   ;
8008   return 0;
8009 }
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013   (eval $ac_compile) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } &&
8017          { ac_try='test -s conftest.$ac_objext'
8018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019   (eval $ac_try) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }; }; then
8023   ac_cv_type_size_t=yes
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_cv_type_size_t=no
8029 fi
8030 rm -f conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8033 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8034 if test $ac_cv_type_size_t = yes; then
8035   :
8036 else
8037
8038 cat >>confdefs.h <<_ACEOF
8039 #define size_t unsigned
8040 _ACEOF
8041
8042 fi
8043
8044 echo "$as_me:$LINENO: checking for off_t" >&5
8045 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8046 if test "${ac_cv_type_off_t+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049   cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 $ac_includes_default
8057 int
8058 main ()
8059 {
8060 if ((off_t *) 0)
8061   return 0;
8062 if (sizeof (off_t))
8063   return 0;
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070   (eval $ac_compile) 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } &&
8074          { ac_try='test -s conftest.$ac_objext'
8075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076   (eval $ac_try) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); }; }; then
8080   ac_cv_type_off_t=yes
8081 else
8082   echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 ac_cv_type_off_t=no
8086 fi
8087 rm -f conftest.$ac_objext conftest.$ac_ext
8088 fi
8089 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8090 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8091 if test $ac_cv_type_off_t = yes; then
8092   :
8093 else
8094
8095 cat >>confdefs.h <<_ACEOF
8096 #define off_t long
8097 _ACEOF
8098
8099 fi
8100
8101 echo "$as_me:$LINENO: checking for pid_t" >&5
8102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8103 if test "${ac_cv_type_pid_t+set}" = set; then
8104   echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106   cat >conftest.$ac_ext <<_ACEOF
8107 #line $LINENO "configure"
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113 $ac_includes_default
8114 int
8115 main ()
8116 {
8117 if ((pid_t *) 0)
8118   return 0;
8119 if (sizeof (pid_t))
8120   return 0;
8121   ;
8122   return 0;
8123 }
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127   (eval $ac_compile) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_cv_type_pid_t=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 ac_cv_type_pid_t=no
8143 fi
8144 rm -f conftest.$ac_objext conftest.$ac_ext
8145 fi
8146 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8147 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8148 if test $ac_cv_type_pid_t = yes; then
8149   :
8150 else
8151
8152 cat >>confdefs.h <<_ACEOF
8153 #define pid_t int
8154 _ACEOF
8155
8156 fi
8157
8158
8159 echo "$as_me:$LINENO: checking volatile declaration" >&5
8160 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8161 if test "${timidity_cv_type_volatile+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   cat >conftest.$ac_ext <<_ACEOF
8165 #line $LINENO "configure"
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171
8172 int
8173 main ()
8174 {
8175 volatile int x
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 rm -f conftest.$ac_objext
8181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8182   (eval $ac_compile) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } &&
8186          { ac_try='test -s conftest.$ac_objext'
8187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188   (eval $ac_try) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; }; then
8192   timidity_cv_type_volatile=yes
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 timidity_cv_type_volatile=no
8198 fi
8199 rm -f conftest.$ac_objext conftest.$ac_ext
8200 fi
8201 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8202 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8203 if test $timidity_cv_type_volatile = no; then
8204
8205 cat >>confdefs.h <<\_ACEOF
8206 #define NO_VOLATILE 1
8207 _ACEOF
8208
8209 fi
8210
8211 echo "$as_me:$LINENO: checking union semun declaration" >&5
8212 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8213 if test "${timidity_cv_type_union_semun+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223
8224 #include <sys/types.h>
8225 #include <sys/ipc.h>
8226 #include <sys/sem.h>
8227
8228 int
8229 main ()
8230 {
8231 union semun x
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>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } &&
8242          { ac_try='test -s conftest.$ac_objext'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   timidity_cv_type_union_semun=yes
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 timidity_cv_type_union_semun=no
8254 fi
8255 rm -f conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8258 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8259 if test $timidity_cv_type_union_semun = yes; then
8260
8261 cat >>confdefs.h <<\_ACEOF
8262 #define HAVE_UNION_SEMUN 1
8263 _ACEOF
8264
8265 fi
8266
8267 if test "x$CYGNUS" = xyes; then
8268   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8269 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8270 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280
8281 #include <windows.h>
8282 #include <mmsystem.h>
8283
8284 int
8285 main ()
8286 {
8287 return WOM_OPEN != 0x3BB
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294   (eval $ac_compile) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -s conftest.$ac_objext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   timidity_cv_header_new_mmsystem=yes
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 timidity_cv_header_new_mmsystem=no
8310 fi
8311 rm -f conftest.$ac_objext conftest.$ac_ext
8312 fi
8313 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8314 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8315   if test $timidity_cv_header_new_mmsystem = yes; then
8316
8317 cat >>confdefs.h <<\_ACEOF
8318 #define HAVE_NEW_MMSYSTEM 1
8319 _ACEOF
8320
8321   fi
8322 fi
8323
8324 if test "x$MINGW" = xyes; then
8325   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8326 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8327 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   cat >conftest.$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8332 /* confdefs.h.  */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h.  */
8337
8338 #include <windows.h>
8339 #include <mmsystem.h>
8340
8341 int
8342 main ()
8343 {
8344 return WOM_OPEN != 0x3BB
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351   (eval $ac_compile) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } &&
8355          { ac_try='test -s conftest.$ac_objext'
8356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357   (eval $ac_try) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); }; }; then
8361   timidity_cv_header_new_mmsystem=yes
8362 else
8363   echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366 timidity_cv_header_new_mmsystem=no
8367 fi
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8369 fi
8370 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8371 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8372   if test $timidity_cv_header_new_mmsystem = yes; then
8373
8374 cat >>confdefs.h <<\_ACEOF
8375 #define HAVE_NEW_MMSYSTEM 1
8376 _ACEOF
8377
8378   fi
8379 fi
8380
8381 # Checks for library functions.
8382 echo "$as_me:$LINENO: checking for error_at_line" >&5
8383 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8384 if test "${ac_cv_lib_error_at_line+set}" = set; then
8385   echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387   cat >conftest.$ac_ext <<_ACEOF
8388 #line $LINENO "configure"
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394
8395 int
8396 main ()
8397 {
8398 error_at_line (0, 0, "", 0, "");
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405   (eval $ac_link) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -s conftest$ac_exeext'
8410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411   (eval $ac_try) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; }; then
8415   ac_cv_lib_error_at_line=yes
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 ac_cv_lib_error_at_line=no
8421 fi
8422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8423 fi
8424 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8425 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8426 if test $ac_cv_lib_error_at_line = no; then
8427   LIBOBJS="$LIBOBJS error.$ac_objext"
8428 fi
8429
8430
8431
8432 for ac_header in unistd.h vfork.h
8433 do
8434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436   echo "$as_me:$LINENO: checking for $ac_header" >&5
8437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8439   echo $ECHO_N "(cached) $ECHO_C" >&6
8440 fi
8441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8443 else
8444   # Is the header compilable?
8445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454 $ac_includes_default
8455 #include <$ac_header>
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459   (eval $ac_compile) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } &&
8463          { ac_try='test -s conftest.$ac_objext'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; }; then
8469   ac_header_compiler=yes
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ac_header_compiler=no
8475 fi
8476 rm -f conftest.$ac_objext conftest.$ac_ext
8477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8478 echo "${ECHO_T}$ac_header_compiler" >&6
8479
8480 # Is the header present?
8481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490 #include <$ac_header>
8491 _ACEOF
8492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8494   ac_status=$?
8495   grep -v '^ *+' conftest.er1 >conftest.err
8496   rm -f conftest.er1
8497   cat conftest.err >&5
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } >/dev/null; then
8500   if test -s conftest.err; then
8501     ac_cpp_err=$ac_c_preproc_warn_flag
8502   else
8503     ac_cpp_err=
8504   fi
8505 else
8506   ac_cpp_err=yes
8507 fi
8508 if test -z "$ac_cpp_err"; then
8509   ac_header_preproc=yes
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514   ac_header_preproc=no
8515 fi
8516 rm -f conftest.err conftest.$ac_ext
8517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8518 echo "${ECHO_T}$ac_header_preproc" >&6
8519
8520 # So?  What about this header?
8521 case $ac_header_compiler:$ac_header_preproc in
8522   yes:no )
8523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8527     (
8528       cat <<\_ASBOX
8529 ## ------------------------------------ ##
8530 ## Report this to bug-autoconf@gnu.org. ##
8531 ## ------------------------------------ ##
8532 _ASBOX
8533     ) |
8534       sed "s/^/$as_me: WARNING:     /" >&2
8535     ;;
8536   no:yes )
8537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8543     (
8544       cat <<\_ASBOX
8545 ## ------------------------------------ ##
8546 ## Report this to bug-autoconf@gnu.org. ##
8547 ## ------------------------------------ ##
8548 _ASBOX
8549     ) |
8550       sed "s/^/$as_me: WARNING:     /" >&2
8551     ;;
8552 esac
8553 echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556   echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558   eval "$as_ac_Header=$ac_header_preproc"
8559 fi
8560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8562
8563 fi
8564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8565   cat >>confdefs.h <<_ACEOF
8566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567 _ACEOF
8568
8569 fi
8570
8571 done
8572
8573
8574
8575 for ac_func in fork vfork
8576 do
8577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8578 echo "$as_me:$LINENO: checking for $ac_func" >&5
8579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8580 if eval "test \"\${$as_ac_var+set}\" = set"; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   cat >conftest.$ac_ext <<_ACEOF
8584 #line $LINENO "configure"
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590 /* System header to define __stub macros and hopefully few prototypes,
8591     which can conflict with char $ac_func (); below.
8592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8593     <limits.h> exists even on freestanding compilers.  */
8594 #ifdef __STDC__
8595 # include <limits.h>
8596 #else
8597 # include <assert.h>
8598 #endif
8599 /* Override any gcc2 internal prototype to avoid an error.  */
8600 #ifdef __cplusplus
8601 extern "C"
8602 {
8603 #endif
8604 /* We use char because int might match the return type of a gcc2
8605    builtin and then its argument prototype would still apply.  */
8606 char $ac_func ();
8607 /* The GNU C library defines this for functions which it implements
8608     to always fail with ENOSYS.  Some functions are actually named
8609     something starting with __ and the normal name is an alias.  */
8610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8611 choke me
8612 #else
8613 char (*f) () = $ac_func;
8614 #endif
8615 #ifdef __cplusplus
8616 }
8617 #endif
8618
8619 int
8620 main ()
8621 {
8622 return f != $ac_func;
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629   (eval $ac_link) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -s conftest$ac_exeext'
8634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635   (eval $ac_try) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; }; then
8639   eval "$as_ac_var=yes"
8640 else
8641   echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 eval "$as_ac_var=no"
8645 fi
8646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8647 fi
8648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8650 if test `eval echo '${'$as_ac_var'}'` = yes; then
8651   cat >>confdefs.h <<_ACEOF
8652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8653 _ACEOF
8654
8655 fi
8656 done
8657
8658 if test "x$ac_cv_func_fork" = xyes; then
8659   echo "$as_me:$LINENO: checking for working fork" >&5
8660 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8661 if test "${ac_cv_func_fork_works+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   if test "$cross_compiling" = yes; then
8665   ac_cv_func_fork_works=cross
8666 else
8667   cat >conftest.$ac_ext <<_ACEOF
8668 /* By Ruediger Kuhlmann. */
8669       #include <sys/types.h>
8670       #if HAVE_UNISTD_H
8671       # include <unistd.h>
8672       #endif
8673       /* Some systems only have a dummy stub for fork() */
8674       int main ()
8675       {
8676         if (fork() < 0)
8677           exit (1);
8678         exit (0);
8679       }
8680 _ACEOF
8681 rm -f conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683   (eval $ac_link) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688   (eval $ac_try) 2>&5
8689   ac_status=$?
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); }; }; then
8692   ac_cv_func_fork_works=yes
8693 else
8694   echo "$as_me: program exited with status $ac_status" >&5
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ( exit $ac_status )
8699 ac_cv_func_fork_works=no
8700 fi
8701 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8702 fi
8703 fi
8704 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8705 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8706
8707 else
8708   ac_cv_func_fork_works=$ac_cv_func_fork
8709 fi
8710 if test "x$ac_cv_func_fork_works" = xcross; then
8711   case $host in
8712     *-*-amigaos* | *-*-msdosdjgpp*)
8713       # Override, as these systems have only a dummy fork() stub
8714       ac_cv_func_fork_works=no
8715       ;;
8716     *)
8717       ac_cv_func_fork_works=yes
8718       ;;
8719   esac
8720   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8721 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8722 fi
8723 ac_cv_func_vfork_works=$ac_cv_func_vfork
8724 if test "x$ac_cv_func_vfork" = xyes; then
8725   echo "$as_me:$LINENO: checking for working vfork" >&5
8726 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8727 if test "${ac_cv_func_vfork_works+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   if test "$cross_compiling" = yes; then
8731   ac_cv_func_vfork_works=cross
8732 else
8733   cat >conftest.$ac_ext <<_ACEOF
8734 #line $LINENO "configure"
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 /* Thanks to Paul Eggert for this test.  */
8741 #include <stdio.h>
8742 #include <stdlib.h>
8743 #include <sys/types.h>
8744 #include <sys/stat.h>
8745 #include <sys/wait.h>
8746 #if HAVE_UNISTD_H
8747 # include <unistd.h>
8748 #endif
8749 #if HAVE_VFORK_H
8750 # include <vfork.h>
8751 #endif
8752 /* On some sparc systems, changes by the child to local and incoming
8753    argument registers are propagated back to the parent.  The compiler
8754    is told about this with #include <vfork.h>, but some compilers
8755    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8756    static variable whose address is put into a register that is
8757    clobbered by the vfork.  */
8758 static void
8759 #ifdef __cplusplus
8760 sparc_address_test (int arg)
8761 # else
8762 sparc_address_test (arg) int arg;
8763 #endif
8764 {
8765   static pid_t child;
8766   if (!child) {
8767     child = vfork ();
8768     if (child < 0) {
8769       perror ("vfork");
8770       _exit(2);
8771     }
8772     if (!child) {
8773       arg = getpid();
8774       write(-1, "", 0);
8775       _exit (arg);
8776     }
8777   }
8778 }
8779
8780 int
8781 main ()
8782 {
8783   pid_t parent = getpid ();
8784   pid_t child;
8785
8786   sparc_address_test (0);
8787
8788   child = vfork ();
8789
8790   if (child == 0) {
8791     /* Here is another test for sparc vfork register problems.  This
8792        test uses lots of local variables, at least as many local
8793        variables as main has allocated so far including compiler
8794        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8795        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8796        reuse the register of parent for one of the local variables,
8797        since it will think that parent can't possibly be used any more
8798        in this routine.  Assigning to the local variable will thus
8799        munge parent in the parent process.  */
8800     pid_t
8801       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8802       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8803     /* Convince the compiler that p..p7 are live; otherwise, it might
8804        use the same hardware register for all 8 local variables.  */
8805     if (p != p1 || p != p2 || p != p3 || p != p4
8806         || p != p5 || p != p6 || p != p7)
8807       _exit(1);
8808
8809     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8810        from child file descriptors.  If the child closes a descriptor
8811        before it execs or exits, this munges the parent's descriptor
8812        as well.  Test for this by closing stdout in the child.  */
8813     _exit(close(fileno(stdout)) != 0);
8814   } else {
8815     int status;
8816     struct stat st;
8817
8818     while (wait(&status) != child)
8819       ;
8820     exit(
8821          /* Was there some problem with vforking?  */
8822          child < 0
8823
8824          /* Did the child fail?  (This shouldn't happen.)  */
8825          || status
8826
8827          /* Did the vfork/compiler bug occur?  */
8828          || parent != getpid()
8829
8830          /* Did the file descriptor bug occur?  */
8831          || fstat(fileno(stdout), &st) != 0
8832          );
8833   }
8834 }
8835 _ACEOF
8836 rm -f conftest$ac_exeext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838   (eval $ac_link) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; }; then
8847   ac_cv_func_vfork_works=yes
8848 else
8849   echo "$as_me: program exited with status $ac_status" >&5
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ( exit $ac_status )
8854 ac_cv_func_vfork_works=no
8855 fi
8856 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8857 fi
8858 fi
8859 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8860 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8861
8862 fi;
8863 if test "x$ac_cv_func_fork_works" = xcross; then
8864   ac_cv_func_vfork_works=ac_cv_func_vfork
8865   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8866 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8867 fi
8868
8869 if test "x$ac_cv_func_vfork_works" = xyes; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_WORKING_VFORK 1
8873 _ACEOF
8874
8875 else
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define vfork fork
8879 _ACEOF
8880
8881 fi
8882 if test "x$ac_cv_func_fork_works" = xyes; then
8883
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_WORKING_FORK 1
8886 _ACEOF
8887
8888 fi
8889
8890 echo "$as_me:$LINENO: checking for working memcmp" >&5
8891 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8892 if test "${ac_cv_func_memcmp_working+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   if test "$cross_compiling" = yes; then
8896   ac_cv_func_memcmp_working=no
8897 else
8898   cat >conftest.$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905
8906 int
8907 main ()
8908 {
8909
8910   /* Some versions of memcmp are not 8-bit clean.  */
8911   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8912   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8913     exit (1);
8914
8915   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8916      or more and with at least one buffer not starting on a 4-byte boundary.
8917      William Lewis provided this test program.   */
8918   {
8919     char foo[21];
8920     char bar[21];
8921     int i;
8922     for (i = 0; i < 4; i++)
8923       {
8924         char *a = foo + i;
8925         char *b = bar + i;
8926         strcpy (a, "--------01111111");
8927         strcpy (b, "--------10000000");
8928         if (memcmp (a, b, 16) >= 0)
8929           exit (1);
8930       }
8931     exit (0);
8932   }
8933
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 rm -f conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940   (eval $ac_link) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; }; then
8949   ac_cv_func_memcmp_working=yes
8950 else
8951   echo "$as_me: program exited with status $ac_status" >&5
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 ( exit $ac_status )
8956 ac_cv_func_memcmp_working=no
8957 fi
8958 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 fi
8961 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8962 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8963 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8964
8965
8966
8967 for ac_header in stdlib.h unistd.h
8968 do
8969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8971   echo "$as_me:$LINENO: checking for $ac_header" >&5
8972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 fi
8976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8978 else
8979   # Is the header compilable?
8980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989 $ac_includes_default
8990 #include <$ac_header>
8991 _ACEOF
8992 rm -f conftest.$ac_objext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8994   (eval $ac_compile) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -s conftest.$ac_objext'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004   ac_header_compiler=yes
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ac_header_compiler=no
9010 fi
9011 rm -f conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013 echo "${ECHO_T}$ac_header_compiler" >&6
9014
9015 # Is the header present?
9016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025 #include <$ac_header>
9026 _ACEOF
9027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } >/dev/null; then
9035   if test -s conftest.err; then
9036     ac_cpp_err=$ac_c_preproc_warn_flag
9037   else
9038     ac_cpp_err=
9039   fi
9040 else
9041   ac_cpp_err=yes
9042 fi
9043 if test -z "$ac_cpp_err"; then
9044   ac_header_preproc=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049   ac_header_preproc=no
9050 fi
9051 rm -f conftest.err conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053 echo "${ECHO_T}$ac_header_preproc" >&6
9054
9055 # So?  What about this header?
9056 case $ac_header_compiler:$ac_header_preproc in
9057   yes:no )
9058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9062     (
9063       cat <<\_ASBOX
9064 ## ------------------------------------ ##
9065 ## Report this to bug-autoconf@gnu.org. ##
9066 ## ------------------------------------ ##
9067 _ASBOX
9068     ) |
9069       sed "s/^/$as_me: WARNING:     /" >&2
9070     ;;
9071   no:yes )
9072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9074     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9078     (
9079       cat <<\_ASBOX
9080 ## ------------------------------------ ##
9081 ## Report this to bug-autoconf@gnu.org. ##
9082 ## ------------------------------------ ##
9083 _ASBOX
9084     ) |
9085       sed "s/^/$as_me: WARNING:     /" >&2
9086     ;;
9087 esac
9088 echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093   eval "$as_ac_Header=$ac_header_preproc"
9094 fi
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097
9098 fi
9099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100   cat >>confdefs.h <<_ACEOF
9101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9102 _ACEOF
9103
9104 fi
9105
9106 done
9107
9108
9109 for ac_func in getpagesize
9110 do
9111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9112 echo "$as_me:$LINENO: checking for $ac_func" >&5
9113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9114 if eval "test \"\${$as_ac_var+set}\" = set"; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   cat >conftest.$ac_ext <<_ACEOF
9118 #line $LINENO "configure"
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 /* System header to define __stub macros and hopefully few prototypes,
9125     which can conflict with char $ac_func (); below.
9126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9127     <limits.h> exists even on freestanding compilers.  */
9128 #ifdef __STDC__
9129 # include <limits.h>
9130 #else
9131 # include <assert.h>
9132 #endif
9133 /* Override any gcc2 internal prototype to avoid an error.  */
9134 #ifdef __cplusplus
9135 extern "C"
9136 {
9137 #endif
9138 /* We use char because int might match the return type of a gcc2
9139    builtin and then its argument prototype would still apply.  */
9140 char $ac_func ();
9141 /* The GNU C library defines this for functions which it implements
9142     to always fail with ENOSYS.  Some functions are actually named
9143     something starting with __ and the normal name is an alias.  */
9144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9145 choke me
9146 #else
9147 char (*f) () = $ac_func;
9148 #endif
9149 #ifdef __cplusplus
9150 }
9151 #endif
9152
9153 int
9154 main ()
9155 {
9156 return f != $ac_func;
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163   (eval $ac_link) 2>&5
9164   ac_status=$?
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); } &&
9167          { ac_try='test -s conftest$ac_exeext'
9168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169   (eval $ac_try) 2>&5
9170   ac_status=$?
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); }; }; then
9173   eval "$as_ac_var=yes"
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178 eval "$as_ac_var=no"
9179 fi
9180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9181 fi
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9184 if test `eval echo '${'$as_ac_var'}'` = yes; then
9185   cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9187 _ACEOF
9188
9189 fi
9190 done
9191
9192 echo "$as_me:$LINENO: checking for working mmap" >&5
9193 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9194 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   if test "$cross_compiling" = yes; then
9198   ac_cv_func_mmap_fixed_mapped=no
9199 else
9200   cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 /* confdefs.h.  */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h.  */
9207 $ac_includes_default
9208 /* malloc might have been renamed as rpl_malloc. */
9209 #undef malloc
9210
9211 /* Thanks to Mike Haertel and Jim Avera for this test.
9212    Here is a matrix of mmap possibilities:
9213         mmap private not fixed
9214         mmap private fixed at somewhere currently unmapped
9215         mmap private fixed at somewhere already mapped
9216         mmap shared not fixed
9217         mmap shared fixed at somewhere currently unmapped
9218         mmap shared fixed at somewhere already mapped
9219    For private mappings, we should verify that changes cannot be read()
9220    back from the file, nor mmap's back from the file at a different
9221    address.  (There have been systems where private was not correctly
9222    implemented like the infamous i386 svr4.0, and systems where the
9223    VM page cache was not coherent with the file system buffer cache
9224    like early versions of FreeBSD and possibly contemporary NetBSD.)
9225    For shared mappings, we should conversely verify that changes get
9226    propagated back to all the places they're supposed to be.
9227
9228    Grep wants private fixed already mapped.
9229    The main things grep needs to know about mmap are:
9230    * does it exist and is it safe to write into the mmap'd area
9231    * how to use it (BSD variants)  */
9232
9233 #include <fcntl.h>
9234 #include <sys/mman.h>
9235
9236 #if !STDC_HEADERS && !HAVE_STDLIB_H
9237 char *malloc ();
9238 #endif
9239
9240 /* This mess was copied from the GNU getpagesize.h.  */
9241 #if !HAVE_GETPAGESIZE
9242 /* Assume that all systems that can run configure have sys/param.h.  */
9243 # if !HAVE_SYS_PARAM_H
9244 #  define HAVE_SYS_PARAM_H 1
9245 # endif
9246
9247 # ifdef _SC_PAGESIZE
9248 #  define getpagesize() sysconf(_SC_PAGESIZE)
9249 # else /* no _SC_PAGESIZE */
9250 #  if HAVE_SYS_PARAM_H
9251 #   include <sys/param.h>
9252 #   ifdef EXEC_PAGESIZE
9253 #    define getpagesize() EXEC_PAGESIZE
9254 #   else /* no EXEC_PAGESIZE */
9255 #    ifdef NBPG
9256 #     define getpagesize() NBPG * CLSIZE
9257 #     ifndef CLSIZE
9258 #      define CLSIZE 1
9259 #     endif /* no CLSIZE */
9260 #    else /* no NBPG */
9261 #     ifdef NBPC
9262 #      define getpagesize() NBPC
9263 #     else /* no NBPC */
9264 #      ifdef PAGESIZE
9265 #       define getpagesize() PAGESIZE
9266 #      endif /* PAGESIZE */
9267 #     endif /* no NBPC */
9268 #    endif /* no NBPG */
9269 #   endif /* no EXEC_PAGESIZE */
9270 #  else /* no HAVE_SYS_PARAM_H */
9271 #   define getpagesize() 8192   /* punt totally */
9272 #  endif /* no HAVE_SYS_PARAM_H */
9273 # endif /* no _SC_PAGESIZE */
9274
9275 #endif /* no HAVE_GETPAGESIZE */
9276
9277 int
9278 main ()
9279 {
9280   char *data, *data2, *data3;
9281   int i, pagesize;
9282   int fd;
9283
9284   pagesize = getpagesize ();
9285
9286   /* First, make a file with some known garbage in it. */
9287   data = (char *) malloc (pagesize);
9288   if (!data)
9289     exit (1);
9290   for (i = 0; i < pagesize; ++i)
9291     *(data + i) = rand ();
9292   umask (0);
9293   fd = creat ("conftest.mmap", 0600);
9294   if (fd < 0)
9295     exit (1);
9296   if (write (fd, data, pagesize) != pagesize)
9297     exit (1);
9298   close (fd);
9299
9300   /* Next, try to mmap the file at a fixed address which already has
9301      something else allocated at it.  If we can, also make sure that
9302      we see the same garbage.  */
9303   fd = open ("conftest.mmap", O_RDWR);
9304   if (fd < 0)
9305     exit (1);
9306   data2 = (char *) malloc (2 * pagesize);
9307   if (!data2)
9308     exit (1);
9309   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9310   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9311                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9312     exit (1);
9313   for (i = 0; i < pagesize; ++i)
9314     if (*(data + i) != *(data2 + i))
9315       exit (1);
9316
9317   /* Finally, make sure that changes to the mapped area do not
9318      percolate back to the file as seen by read().  (This is a bug on
9319      some variants of i386 svr4.0.)  */
9320   for (i = 0; i < pagesize; ++i)
9321     *(data2 + i) = *(data2 + i) + 1;
9322   data3 = (char *) malloc (pagesize);
9323   if (!data3)
9324     exit (1);
9325   if (read (fd, data3, pagesize) != pagesize)
9326     exit (1);
9327   for (i = 0; i < pagesize; ++i)
9328     if (*(data + i) != *(data3 + i))
9329       exit (1);
9330   close (fd);
9331   exit (0);
9332 }
9333 _ACEOF
9334 rm -f conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336   (eval $ac_link) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341   (eval $ac_try) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); }; }; then
9345   ac_cv_func_mmap_fixed_mapped=yes
9346 else
9347   echo "$as_me: program exited with status $ac_status" >&5
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 ( exit $ac_status )
9352 ac_cv_func_mmap_fixed_mapped=no
9353 fi
9354 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9355 fi
9356 fi
9357 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9358 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9359 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9360
9361 cat >>confdefs.h <<\_ACEOF
9362 #define HAVE_MMAP 1
9363 _ACEOF
9364
9365 fi
9366 rm -f conftest.mmap
9367
9368 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9369 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9370 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   ac_cv_func_setvbuf_reversed=no
9374    cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 #include <stdio.h>
9382 #         if PROTOTYPES
9383            int (setvbuf) (FILE *, int, char *, size_t);
9384 #         endif
9385 int
9386 main ()
9387 {
9388 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395   (eval $ac_link) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } &&
9399          { ac_try='test -s conftest$ac_exeext'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; }; then
9405   cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <stdio.h>
9413 #            if PROTOTYPES
9414               int (setvbuf) (FILE *, int, char *, size_t);
9415 #            endif
9416 int
9417 main ()
9418 {
9419 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426   (eval $ac_link) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } &&
9430          { ac_try='test -s conftest$ac_exeext'
9431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; }; then
9436   # It compiles and links either way, so it must not be declared
9437          # with a prototype and most likely this is a K&R C compiler.
9438          # Try running it.
9439          if test "$cross_compiling" = yes; then
9440   : # Assume setvbuf is not reversed when cross-compiling.
9441 else
9442   cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9444 /* confdefs.h.  */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h.  */
9449 #include <stdio.h>
9450 int
9451 main ()
9452 {
9453 /* This call has the arguments reversed.
9454                    A reversed system may check and see that the address of buf
9455                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
9456                 char buf;
9457                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9458                   exit (1);
9459                 putchar ('\r');
9460                 exit (0); /* Non-reversed systems SEGV here.  */
9461   ;
9462   return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467   (eval $ac_link) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472   (eval $ac_try) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }; }; then
9476   ac_cv_func_setvbuf_reversed=yes
9477 else
9478   echo "$as_me: program exited with status $ac_status" >&5
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 ( exit $ac_status )
9483 rm -f core core.* *.core
9484 fi
9485 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9486 fi
9487         ac_cv_func_setvbuf_reversed=yes
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 fi
9493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9494 else
9495   echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9497
9498 fi
9499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9502 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9503 if test $ac_cv_func_setvbuf_reversed = yes; then
9504
9505 cat >>confdefs.h <<\_ACEOF
9506 #define SETVBUF_REVERSED 1
9507 _ACEOF
9508
9509 fi
9510
9511 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9512 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9513 if test "${ac_cv_type_signal+set}" = set; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516   cat >conftest.$ac_ext <<_ACEOF
9517 #line $LINENO "configure"
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523 #include <sys/types.h>
9524 #include <signal.h>
9525 #ifdef signal
9526 # undef signal
9527 #endif
9528 #ifdef __cplusplus
9529 extern "C" void (*signal (int, void (*)(int)))(int);
9530 #else
9531 void (*signal ()) ();
9532 #endif
9533
9534 int
9535 main ()
9536 {
9537 int i;
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544   (eval $ac_compile) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } &&
9548          { ac_try='test -s conftest.$ac_objext'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; }; then
9554   ac_cv_type_signal=void
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ac_cv_type_signal=int
9560 fi
9561 rm -f conftest.$ac_objext conftest.$ac_ext
9562 fi
9563 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9564 echo "${ECHO_T}$ac_cv_type_signal" >&6
9565
9566 cat >>confdefs.h <<_ACEOF
9567 #define RETSIGTYPE $ac_cv_type_signal
9568 _ACEOF
9569
9570
9571
9572 for ac_func in vprintf
9573 do
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9582 /* confdefs.h.  */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h.  */
9587 /* System header to define __stub macros and hopefully few prototypes,
9588     which can conflict with char $ac_func (); below.
9589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590     <limits.h> exists even on freestanding compilers.  */
9591 #ifdef __STDC__
9592 # include <limits.h>
9593 #else
9594 # include <assert.h>
9595 #endif
9596 /* Override any gcc2 internal prototype to avoid an error.  */
9597 #ifdef __cplusplus
9598 extern "C"
9599 {
9600 #endif
9601 /* We use char because int might match the return type of a gcc2
9602    builtin and then its argument prototype would still apply.  */
9603 char $ac_func ();
9604 /* The GNU C library defines this for functions which it implements
9605     to always fail with ENOSYS.  Some functions are actually named
9606     something starting with __ and the normal name is an alias.  */
9607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9608 choke me
9609 #else
9610 char (*f) () = $ac_func;
9611 #endif
9612 #ifdef __cplusplus
9613 }
9614 #endif
9615
9616 int
9617 main ()
9618 {
9619 return f != $ac_func;
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626   (eval $ac_link) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -s conftest$ac_exeext'
9631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632   (eval $ac_try) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; }; then
9636   eval "$as_ac_var=yes"
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641 eval "$as_ac_var=no"
9642 fi
9643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9644 fi
9645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9647 if test `eval echo '${'$as_ac_var'}'` = yes; then
9648   cat >>confdefs.h <<_ACEOF
9649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9650 _ACEOF
9651
9652 echo "$as_me:$LINENO: checking for _doprnt" >&5
9653 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9654 if test "${ac_cv_func__doprnt+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   cat >conftest.$ac_ext <<_ACEOF
9658 #line $LINENO "configure"
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664 /* System header to define __stub macros and hopefully few prototypes,
9665     which can conflict with char _doprnt (); below.
9666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667     <limits.h> exists even on freestanding compilers.  */
9668 #ifdef __STDC__
9669 # include <limits.h>
9670 #else
9671 # include <assert.h>
9672 #endif
9673 /* Override any gcc2 internal prototype to avoid an error.  */
9674 #ifdef __cplusplus
9675 extern "C"
9676 {
9677 #endif
9678 /* We use char because int might match the return type of a gcc2
9679    builtin and then its argument prototype would still apply.  */
9680 char _doprnt ();
9681 /* The GNU C library defines this for functions which it implements
9682     to always fail with ENOSYS.  Some functions are actually named
9683     something starting with __ and the normal name is an alias.  */
9684 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9685 choke me
9686 #else
9687 char (*f) () = _doprnt;
9688 #endif
9689 #ifdef __cplusplus
9690 }
9691 #endif
9692
9693 int
9694 main ()
9695 {
9696 return f != _doprnt;
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703   (eval $ac_link) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -s conftest$ac_exeext'
9708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709   (eval $ac_try) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; }; then
9713   ac_cv_func__doprnt=yes
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9717
9718 ac_cv_func__doprnt=no
9719 fi
9720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9721 fi
9722 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9723 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9724 if test $ac_cv_func__doprnt = yes; then
9725
9726 cat >>confdefs.h <<\_ACEOF
9727 #define HAVE_DOPRNT 1
9728 _ACEOF
9729
9730 fi
9731
9732 fi
9733 done
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769 for ac_func in \
9770   alarm \
9771   dup2 \
9772   floor \
9773   getcwd \
9774   getopt \
9775   gethostbyname \
9776   gettimeofday \
9777   getwd \
9778   isatty \
9779   memchr \
9780   memmove \
9781   memset \
9782   modf \
9783   munmap \
9784   popen \
9785   pow \
9786   select \
9787   signal \
9788   socket \
9789   sleep \
9790   vsnprintf \
9791   snprintf \
9792   sqrt \
9793   strchr \
9794   strdup \
9795   strstr \
9796   strerror \
9797   strcasecmp \
9798   strncasecmp \
9799   strrchr \
9800   strstr \
9801   strtol \
9802   usleep
9803 do
9804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9805 echo "$as_me:$LINENO: checking for $ac_func" >&5
9806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9807 if eval "test \"\${$as_ac_var+set}\" = set"; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 /* System header to define __stub macros and hopefully few prototypes,
9818     which can conflict with char $ac_func (); below.
9819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820     <limits.h> exists even on freestanding compilers.  */
9821 #ifdef __STDC__
9822 # include <limits.h>
9823 #else
9824 # include <assert.h>
9825 #endif
9826 /* Override any gcc2 internal prototype to avoid an error.  */
9827 #ifdef __cplusplus
9828 extern "C"
9829 {
9830 #endif
9831 /* We use char because int might match the return type of a gcc2
9832    builtin and then its argument prototype would still apply.  */
9833 char $ac_func ();
9834 /* The GNU C library defines this for functions which it implements
9835     to always fail with ENOSYS.  Some functions are actually named
9836     something starting with __ and the normal name is an alias.  */
9837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9838 choke me
9839 #else
9840 char (*f) () = $ac_func;
9841 #endif
9842 #ifdef __cplusplus
9843 }
9844 #endif
9845
9846 int
9847 main ()
9848 {
9849 return f != $ac_func;
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856   (eval $ac_link) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -s conftest$ac_exeext'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   eval "$as_ac_var=yes"
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 eval "$as_ac_var=no"
9872 fi
9873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9874 fi
9875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9877 if test `eval echo '${'$as_ac_var'}'` = yes; then
9878   cat >>confdefs.h <<_ACEOF
9879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9880 _ACEOF
9881
9882 fi
9883 done
9884
9885 echo "$as_me:$LINENO: checking for getopt_long" >&5
9886 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
9887 if test "${ac_cv_func_getopt_long+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   cat >conftest.$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9892 /* confdefs.h.  */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h.  */
9897 /* System header to define __stub macros and hopefully few prototypes,
9898     which can conflict with char getopt_long (); below.
9899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900     <limits.h> exists even on freestanding compilers.  */
9901 #ifdef __STDC__
9902 # include <limits.h>
9903 #else
9904 # include <assert.h>
9905 #endif
9906 /* Override any gcc2 internal prototype to avoid an error.  */
9907 #ifdef __cplusplus
9908 extern "C"
9909 {
9910 #endif
9911 /* We use char because int might match the return type of a gcc2
9912    builtin and then its argument prototype would still apply.  */
9913 char getopt_long ();
9914 /* The GNU C library defines this for functions which it implements
9915     to always fail with ENOSYS.  Some functions are actually named
9916     something starting with __ and the normal name is an alias.  */
9917 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
9918 choke me
9919 #else
9920 char (*f) () = getopt_long;
9921 #endif
9922 #ifdef __cplusplus
9923 }
9924 #endif
9925
9926 int
9927 main ()
9928 {
9929 return f != getopt_long;
9930   ;
9931   return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936   (eval $ac_link) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } &&
9940          { ac_try='test -s conftest$ac_exeext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_cv_func_getopt_long=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_cv_func_getopt_long=no
9952 fi
9953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9956 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
9957 if test $ac_cv_func_getopt_long = yes; then
9958
9959 cat >>confdefs.h <<\_ACEOF
9960 #define HAVE_GETOPT_LONG 1
9961 _ACEOF
9962
9963          tm_cv_needgetopt="no"
9964 else
9965   tm_cv_needgetopt="yes"
9966 fi
9967
9968
9969
9970 if test "x$tm_cv_needgetopt" = "xyes"; then
9971   NEEDGETOPT_TRUE=
9972   NEEDGETOPT_FALSE='#'
9973 else
9974   NEEDGETOPT_TRUE='#'
9975   NEEDGETOPT_FALSE=
9976 fi
9977
9978
9979 # Checks on cygnus
9980 if test "x$CYGNUS" = xyes; then
9981   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
9982   *yes*)
9983     echo "$as_me:$LINENO: checking for opendir" >&5
9984 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9985 if test "${ac_cv_func_opendir+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   cat >conftest.$ac_ext <<_ACEOF
9989 #line $LINENO "configure"
9990 /* confdefs.h.  */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h.  */
9995 /* System header to define __stub macros and hopefully few prototypes,
9996     which can conflict with char opendir (); below.
9997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9998     <limits.h> exists even on freestanding compilers.  */
9999 #ifdef __STDC__
10000 # include <limits.h>
10001 #else
10002 # include <assert.h>
10003 #endif
10004 /* Override any gcc2 internal prototype to avoid an error.  */
10005 #ifdef __cplusplus
10006 extern "C"
10007 {
10008 #endif
10009 /* We use char because int might match the return type of a gcc2
10010    builtin and then its argument prototype would still apply.  */
10011 char opendir ();
10012 /* The GNU C library defines this for functions which it implements
10013     to always fail with ENOSYS.  Some functions are actually named
10014     something starting with __ and the normal name is an alias.  */
10015 #if defined (__stub_opendir) || defined (__stub___opendir)
10016 choke me
10017 #else
10018 char (*f) () = opendir;
10019 #endif
10020 #ifdef __cplusplus
10021 }
10022 #endif
10023
10024 int
10025 main ()
10026 {
10027 return f != opendir;
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034   (eval $ac_link) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   ac_cv_func_opendir=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_cv_func_opendir=no
10050 fi
10051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10052 fi
10053 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10054 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10055 if test $ac_cv_func_opendir = yes; then
10056   :
10057 else
10058    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10059     W32READDIR=yes
10060 fi
10061
10062     ;;
10063   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10064     W32READDIR=yes
10065     ;;
10066   esac
10067   if test "x$enable_network" = "xyes"; then
10068     echo "$as_me:$LINENO: checking for socket" >&5
10069 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10070 if test "${ac_cv_func_socket+set}" = set; then
10071   echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073   cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 /* confdefs.h.  */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h.  */
10080 /* System header to define __stub macros and hopefully few prototypes,
10081     which can conflict with char socket (); below.
10082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083     <limits.h> exists even on freestanding compilers.  */
10084 #ifdef __STDC__
10085 # include <limits.h>
10086 #else
10087 # include <assert.h>
10088 #endif
10089 /* Override any gcc2 internal prototype to avoid an error.  */
10090 #ifdef __cplusplus
10091 extern "C"
10092 {
10093 #endif
10094 /* We use char because int might match the return type of a gcc2
10095    builtin and then its argument prototype would still apply.  */
10096 char socket ();
10097 /* The GNU C library defines this for functions which it implements
10098     to always fail with ENOSYS.  Some functions are actually named
10099     something starting with __ and the normal name is an alias.  */
10100 #if defined (__stub_socket) || defined (__stub___socket)
10101 choke me
10102 #else
10103 char (*f) () = socket;
10104 #endif
10105 #ifdef __cplusplus
10106 }
10107 #endif
10108
10109 int
10110 main ()
10111 {
10112 return f != socket;
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119   (eval $ac_link) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_func_socket=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_func_socket=no
10135 fi
10136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10137 fi
10138 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10139 echo "${ECHO_T}$ac_cv_func_socket" >&6
10140 if test $ac_cv_func_socket = yes; then
10141   :
10142 else
10143   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10144 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10145 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10146 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   ac_save_LIBS="$LIBS"
10150 LIBS="-lwsock32  $LIBS"
10151 cat >conftest.$ac_ext <<_ACEOF
10152 #line $LINENO "configure"
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158 #include <windows.h>
10159 #include <winsock.h>
10160
10161 int
10162 main ()
10163 {
10164 WSAStartup(0,0);
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171   (eval $ac_link) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -s conftest$ac_exeext'
10176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177   (eval $ac_try) 2>&5
10178   ac_status=$?
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); }; }; then
10181   eval "wapi_cv_lib_$ac_lib_var=yes"
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 eval "wapi_cv_lib_$ac_lib_var=no"
10187 fi
10188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10189 LIBS="$ac_save_LIBS"
10190
10191 fi
10192 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10193   echo "$as_me:$LINENO: result: yes" >&5
10194 echo "${ECHO_T}yes" >&6
10195    EXTRALIBS="$EXTRALIBS -lwsock32"
10196     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10197 else
10198   echo "$as_me:$LINENO: result: no" >&5
10199 echo "${ECHO_T}no" >&6
10200 fi
10201
10202 fi
10203
10204   fi
10205 fi
10206
10207 # Checks on Mingw
10208 if test "x$CYGWIN" = xyes; then
10209   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
10210   *yes*)
10211     echo "$as_me:$LINENO: checking for opendir" >&5
10212 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10213 if test "${ac_cv_func_opendir+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   cat >conftest.$ac_ext <<_ACEOF
10217 #line $LINENO "configure"
10218 /* confdefs.h.  */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h.  */
10223 /* System header to define __stub macros and hopefully few prototypes,
10224     which can conflict with char opendir (); below.
10225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226     <limits.h> exists even on freestanding compilers.  */
10227 #ifdef __STDC__
10228 # include <limits.h>
10229 #else
10230 # include <assert.h>
10231 #endif
10232 /* Override any gcc2 internal prototype to avoid an error.  */
10233 #ifdef __cplusplus
10234 extern "C"
10235 {
10236 #endif
10237 /* We use char because int might match the return type of a gcc2
10238    builtin and then its argument prototype would still apply.  */
10239 char opendir ();
10240 /* The GNU C library defines this for functions which it implements
10241     to always fail with ENOSYS.  Some functions are actually named
10242     something starting with __ and the normal name is an alias.  */
10243 #if defined (__stub_opendir) || defined (__stub___opendir)
10244 choke me
10245 #else
10246 char (*f) () = opendir;
10247 #endif
10248 #ifdef __cplusplus
10249 }
10250 #endif
10251
10252 int
10253 main ()
10254 {
10255 return f != opendir;
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262   (eval $ac_link) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } &&
10266          { ac_try='test -s conftest$ac_exeext'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   ac_cv_func_opendir=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_cv_func_opendir=no
10278 fi
10279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10280 fi
10281 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10282 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10283 if test $ac_cv_func_opendir = yes; then
10284   :
10285 else
10286    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10287     W32READDIR=yes
10288 fi
10289
10290     ;;
10291   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10292     W32READDIR=yes
10293     ;;
10294   esac
10295   if test "x$enable_network" = "xyes"; then
10296     echo "$as_me:$LINENO: checking for socket" >&5
10297 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10298 if test "${ac_cv_func_socket+set}" = set; then
10299   echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301   cat >conftest.$ac_ext <<_ACEOF
10302 #line $LINENO "configure"
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 /* System header to define __stub macros and hopefully few prototypes,
10309     which can conflict with char socket (); below.
10310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10311     <limits.h> exists even on freestanding compilers.  */
10312 #ifdef __STDC__
10313 # include <limits.h>
10314 #else
10315 # include <assert.h>
10316 #endif
10317 /* Override any gcc2 internal prototype to avoid an error.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 {
10321 #endif
10322 /* We use char because int might match the return type of a gcc2
10323    builtin and then its argument prototype would still apply.  */
10324 char socket ();
10325 /* The GNU C library defines this for functions which it implements
10326     to always fail with ENOSYS.  Some functions are actually named
10327     something starting with __ and the normal name is an alias.  */
10328 #if defined (__stub_socket) || defined (__stub___socket)
10329 choke me
10330 #else
10331 char (*f) () = socket;
10332 #endif
10333 #ifdef __cplusplus
10334 }
10335 #endif
10336
10337 int
10338 main ()
10339 {
10340 return f != socket;
10341   ;
10342   return 0;
10343 }
10344 _ACEOF
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347   (eval $ac_link) 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10357   ac_cv_func_socket=yes
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ac_cv_func_socket=no
10363 fi
10364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10365 fi
10366 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10367 echo "${ECHO_T}$ac_cv_func_socket" >&6
10368 if test $ac_cv_func_socket = yes; then
10369   :
10370 else
10371   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10372 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10373 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10374 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   ac_save_LIBS="$LIBS"
10378 LIBS="-lwsock32  $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386 #include <windows.h>
10387 #include <winsock.h>
10388
10389 int
10390 main ()
10391 {
10392 WSAStartup(0,0);
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399   (eval $ac_link) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   eval "wapi_cv_lib_$ac_lib_var=yes"
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 eval "wapi_cv_lib_$ac_lib_var=no"
10415 fi
10416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10417 LIBS="$ac_save_LIBS"
10418
10419 fi
10420 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10421   echo "$as_me:$LINENO: result: yes" >&5
10422 echo "${ECHO_T}yes" >&6
10423    EXTRALIBS="$EXTRALIBS -lwsock32"
10424     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10425 else
10426   echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6
10428 fi
10429
10430 fi
10431
10432   fi
10433 fi
10434
10435 # Checks on extra paths
10436
10437
10438 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10439 if test "${with_tcl_includes+set}" = set; then
10440   withval="$with_tcl_includes"
10441    if test ! -d $withval; then
10442       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10443 echo "$as_me: WARNING: $withval is not found." >&2;}
10444     fi
10445     tcl_include_dir="-I$withval"
10446
10447 fi;
10448
10449 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10450 if test "${with_tcl_libs+set}" = set; then
10451   withval="$with_tcl_libs"
10452    if test ! -d $withval; then
10453       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10454 echo "$as_me: WARNING: $withval is not found." >&2;}
10455     fi
10456     tcl_libdir="-L$withval"
10457 fi;
10458
10459 # Check whether --with-tk-includes or --without-tk-includes was given.
10460 if test "${with_tk_includes+set}" = set; then
10461   withval="$with_tk_includes"
10462    if test ! -d $withval; then
10463       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10464 echo "$as_me: WARNING: $withval is not found." >&2;}
10465     fi
10466     tk_includes="-I$withval"
10467 fi;
10468
10469 # Check whether --with-tk-libs or --without-tk-libs was given.
10470 if test "${with_tk_libs+set}" = set; then
10471   withval="$with_tk_libs"
10472    if test ! -d $withval; then
10473       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10474 echo "$as_me: WARNING: $withval is not found." >&2;}
10475     fi
10476     tk_libdir="-L$withval"
10477 fi;
10478
10479
10480 # Check whether --with-offix-includes or --without-offix-includes was given.
10481 if test "${with_offix_includes+set}" = set; then
10482   withval="$with_offix_includes"
10483    if test ! -d $withval; then
10484       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10485 echo "$as_me: WARNING: $withval is not found." >&2;}
10486     fi
10487     offix_include_dir="-I$withval"
10488 fi;
10489
10490 # Check whether --with-offix-libs or --without-offix-libs was given.
10491 if test "${with_offix_libs+set}" = set; then
10492   withval="$with_offix_libs"
10493    if test ! -d $withval; then
10494       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10495 echo "$as_me: WARNING: $withval is not found." >&2;}
10496     fi
10497     offix_lib_dir="-L$withval"
10498 fi;
10499
10500
10501 #
10502 # audio section
10503 #
10504
10505 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack'
10506
10507
10508 # Check whether --with-nas-library or --without-nas-library was given.
10509 if test "${with_nas_library+set}" = set; then
10510   withval="$with_nas_library"
10511
10512 fi;
10513
10514 # Check whether --with-nas-includes or --without-nas-includes was given.
10515 if test "${with_nas_includes+set}" = set; then
10516   withval="$with_nas_includes"
10517
10518 fi;
10519
10520
10521 # Check whether --enable-audio or --disable-audio was given.
10522 if test "${enable_audio+set}" = set; then
10523   enableval="$enable_audio"
10524    enable_audio=$enableval
10525     have_audio_opt=yes
10526 else
10527    enable_audio=yes
10528     have_audio_opt=no
10529 fi;
10530
10531 test "x$enable_audio" = xyes && enable_audio=default
10532
10533 if test "x$enable_audio" != xno; then
10534   for i in `echo $enable_audio | sed 's/,/ /g'`; do
10535     eval "au_enable_$i=yes"
10536   done
10537 fi
10538
10539 DEFAULT_PLAYMODE=
10540
10541 # Check whether --with-default-output or --without-default-output was given.
10542 if test "${with_default_output+set}" = set; then
10543   withval="$with_default_output"
10544    if test "$enable_audio" != no; then
10545     DEFAULT_PLAYMODE=$withval
10546     eval "au_enable_$DEFAULT_PLAYMODE=yes"
10547   else
10548     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10549 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10550   fi
10551 fi;
10552
10553
10554 if test "x$au_enable_default" = xyes; then
10555   case "$target" in
10556   *-*-linux*|*-*-freebsd*)
10557     au_enable_oss=yes
10558     ;;
10559   *-*-bsdi2.0)
10560     au_enable_sb_dsp=yes
10561     ;;
10562   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10563     au_enable_oss=yes
10564     ;;
10565   *-*-hpux*)
10566     au_enable_hpux=yes
10567     ;;
10568   *-dec-*)
10569     au_enable_mme=yes
10570     ;;
10571   *irix*)
10572     au_enable_irix=yes
10573     ;;
10574   *-*-sunos4*)
10575     au_enable_sun=yes
10576     ;;
10577   *-*-solaris*)
10578     au_enable_sun=yes
10579     ;;
10580   *-*-netbsd*)
10581     au_enable_sun=yes
10582     ;;
10583   *-*-cygwin*)
10584     au_enable_w32=yes
10585     ;;
10586   *-*-mingw*)
10587     au_enable_w32=yes
10588     ;;
10589   *-*-darwin*)
10590     au_enable_darwin=yes
10591     ;;
10592   *)
10593     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10594 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10595     ;;
10596   esac
10597 fi
10598
10599
10600 # Each audio mode's configurations
10601 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10602 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10603 if test "x$au_enable_oss" = xyes; then
10604   EXTRADEFS="$EXTRADEFS -DAU_OSS"
10605   SYSEXTRAS="$SYSEXTRAS oss_a.c"
10606   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10607     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10608 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10609   else
10610     case "$target" in
10611       *linux*|*freebsd*)
10612                 echo "$as_me:$LINENO: result: yes" >&5
10613 echo "${ECHO_T}yes" >&6
10614         ;;
10615       *)
10616         if test "x$ac_cv_header_soundcard_h" = xyes; then
10617           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10618 echo "${ECHO_T}yes - <soundcard.h>" >&6
10619         else
10620           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10621 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10622         fi
10623         ;;
10624     esac
10625   fi
10626
10627 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10628 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10629 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10630   echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632   ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lossaudio  $LIBS"
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #line $LINENO "configure"
10636 /* confdefs.h.  */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h.  */
10641
10642 /* Override any gcc2 internal prototype to avoid an error.  */
10643 #ifdef __cplusplus
10644 extern "C"
10645 #endif
10646 /* We use char because int might match the return type of a gcc2
10647    builtin and then its argument prototype would still apply.  */
10648 char open ();
10649 int
10650 main ()
10651 {
10652 open ();
10653   ;
10654   return 0;
10655 }
10656 _ACEOF
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659   (eval $ac_link) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -s conftest$ac_exeext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_cv_lib_ossaudio_open=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 ac_cv_lib_ossaudio_open=no
10675 fi
10676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10678 fi
10679 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10680 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10681 if test $ac_cv_lib_ossaudio_open = yes; then
10682   cat >>confdefs.h <<_ACEOF
10683 #define HAVE_LIBOSSAUDIO 1
10684 _ACEOF
10685
10686   LIBS="-lossaudio $LIBS"
10687
10688 fi
10689
10690
10691     case "$target" in
10692     *openbsd*)
10693       if test ! -e "/dev/dsp"; then
10694         oss_device=/dev/audio
10695       fi
10696       ;;
10697   esac
10698 else
10699   echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6
10701 fi
10702
10703 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10704 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10705 if test "x$au_enable_sun" = xyes; then
10706   case "$target" in
10707     *-*-sunos4*)
10708       if test -f /usr/demo/SOUND/libaudio.a; then
10709         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10710         echo "$as_me:$LINENO: result: yes" >&5
10711 echo "${ECHO_T}yes" >&6
10712       else
10713         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10714 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10715       fi
10716       ;;
10717     *-*-solaris*)
10718       if test -f /usr/demo/SOUND/lib/libaudio.a; then
10719         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10720         echo "$as_me:$LINENO: result: yes" >&5
10721 echo "${ECHO_T}yes" >&6
10722       else
10723         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10724 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10725       fi
10726       ;;
10727     *)   echo "$as_me:$LINENO: result: yes" >&5
10728 echo "${ECHO_T}yes" >&6
10729       ;;
10730   esac
10731   EXTRADEFS="$EXTRADEFS -DAU_SUN"
10732   SYSEXTRAS="$SYSEXTRAS sun_a.c"
10733 else
10734   echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10736 fi
10737
10738 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10739 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10740 if test "x$au_enable_hpux" = xyes; then
10741   case "$target" in
10742     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10743 echo "${ECHO_T}yes" >&6 ;;
10744     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10745 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10746   esac
10747   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10748   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10749 else
10750   echo "$as_me:$LINENO: result: no" >&5
10751 echo "${ECHO_T}no" >&6
10752 fi
10753
10754 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10755 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10756 if test "x$au_enable_irix" = xyes; then
10757   case "$target" in
10758     *-sgi-irix5*|*-sgi-irix6.2)
10759       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10760       echo "$as_me:$LINENO: result: yes" >&5
10761 echo "${ECHO_T}yes" >&6
10762       ;;
10763     *-sgi-irix6*)
10764       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10765       echo "$as_me:$LINENO: result: yes" >&5
10766 echo "${ECHO_T}yes" >&6
10767       ;;
10768     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10769 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10770   esac
10771   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10772   EXTRALIBS="$EXTRASLIBS -laudio"
10773 else
10774   echo "$as_me:$LINENO: result: no" >&5
10775 echo "${ECHO_T}no" >&6
10776 fi
10777
10778 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10779 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10780 if test "x$au_enable_mme" = xyes; then
10781   case "$target" in
10782     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10783 echo "${ECHO_T}yes" >&6 ;;
10784     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10785 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10786   esac
10787   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10788   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10789   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10790   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10791 else
10792   echo "$as_me:$LINENO: result: no" >&5
10793 echo "${ECHO_T}no" >&6
10794 fi
10795
10796 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10797 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10798 if test "x$au_enable_sb_dsp" = xyes; then
10799   case "$target" in
10800     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10801 echo "${ECHO_T}yes" >&6 ;;
10802     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10803 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10804   esac
10805   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10806   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10807 else
10808   echo "$as_me:$LINENO: result: no" >&5
10809 echo "${ECHO_T}no" >&6
10810 fi
10811
10812 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10813 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10814 if test "x$au_enable_w32" = xyes; then
10815   case "$target" in
10816     *-*-cygwin*)
10817      echo "$as_me:$LINENO: result: yes" >&5
10818 echo "${ECHO_T}yes" >&6
10819      ;;
10820     *-*-mingw32)
10821      echo "$as_me:$LINENO: result: yes" >&5
10822 echo "${ECHO_T}yes" >&6
10823      ;;
10824     *)
10825      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10826 echo "$as_me: WARNING: may not work on $target" >&2;}
10827      ;;
10828   esac
10829   SYSEXTRAS="$SYSEXTRAS w32_a.c"
10830   EXTRALIBS="$EXTRALIBS -lwinmm"
10831   EXTRADEFS="$EXTRADEFS -DAU_W32"
10832 else
10833   echo "$as_me:$LINENO: result: no" >&5
10834 echo "${ECHO_T}no" >&6
10835 fi
10836
10837 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10838 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10839 if test "x$au_enable_darwin" = xyes; then
10840   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10841   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10842   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10843     case "$target" in
10844     *-*-darwin*)
10845      echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6;;
10847    *)
10848      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10849 echo "$as_me: WARNING: may not work on $target" >&2;}
10850      ;;
10851   esac
10852 else
10853   echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6
10855 fi
10856
10857
10858 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10859 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10860 if test "x$au_enable_alsa" = xyes; then
10861   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10862 echo "${ECHO_T}yes, configuring alsa" >&6
10863   KEEPCFLAGS=$CFLAGS
10864   KEEPLIBS=$LIBS
10865   KEEPLDFLAGS=$LDFLAGS
10866   alsa_save_CFLAGS="$CFLAGS"
10867 alsa_save_LDFLAGS="$LDFLAGS"
10868 alsa_save_LIBS="$LIBS"
10869 alsa_found=yes
10870
10871
10872 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10873 if test "${with_alsa_prefix+set}" = set; then
10874   withval="$with_alsa_prefix"
10875   alsa_prefix="$withval"
10876 else
10877   alsa_prefix=""
10878 fi;
10879
10880
10881 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10882 if test "${with_alsa_inc_prefix+set}" = set; then
10883   withval="$with_alsa_inc_prefix"
10884   alsa_inc_prefix="$withval"
10885 else
10886   alsa_inc_prefix=""
10887 fi;
10888
10889 # Check whether --enable-alsatest or --disable-alsatest was given.
10890 if test "${enable_alsatest+set}" = set; then
10891   enableval="$enable_alsatest"
10892   enable_alsatest=no
10893 else
10894   enable_alsatest=yes
10895 fi;
10896
10897 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10898 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10899 if test "$alsa_inc_prefix" != "" ; then
10900         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10901         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10902 fi
10903 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10904 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10905
10906 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10907 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10908 if test "$alsa_prefix" != "" ; then
10909         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10910         LDFLAGS="$LDFLAGS $ALSA_LIBS"
10911 fi
10912
10913 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10914 LIBS=`echo $LIBS | sed 's/-lm//'`
10915 LIBS=`echo $LIBS | sed 's/-ldl//'`
10916 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10917 LIBS=`echo $LIBS | sed 's/  //'`
10918 LIBS="$ALSA_LIBS $LIBS"
10919 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10920 echo "${ECHO_T}$ALSA_LIBS" >&6
10921
10922 min_alsa_version=0.1.1
10923 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10924 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10925 no_alsa=""
10926     alsa_min_major_version=`echo $min_alsa_version | \
10927            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10928     alsa_min_minor_version=`echo $min_alsa_version | \
10929            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10930     alsa_min_micro_version=`echo $min_alsa_version | \
10931            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10932
10933
10934
10935
10936 ac_ext=c
10937 ac_cpp='$CPP $CPPFLAGS'
10938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941
10942 cat >conftest.$ac_ext <<_ACEOF
10943 #line $LINENO "configure"
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949
10950 #include <alsa/asoundlib.h>
10951
10952 int
10953 main ()
10954 {
10955
10956 /* ensure backward compatibility */
10957 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10958 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10959 #endif
10960 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10961 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10962 #endif
10963 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10964 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10965 #endif
10966
10967 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
10968   exit(0);
10969 #  else
10970 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
10971 #       error not present
10972 #    endif
10973
10974 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
10975   exit(0);
10976 #   else
10977 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
10978 #          error not present
10979 #      endif
10980
10981 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10982 #        error not present
10983 #      endif
10984 #    endif
10985 #  endif
10986 exit(0);
10987
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10994   (eval $ac_compile) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } &&
10998          { ac_try='test -s conftest.$ac_objext'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; }; then
11004   echo "$as_me:$LINENO: result: found." >&5
11005 echo "${ECHO_T}found." >&6
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 cat >conftest.$ac_ext <<_ACEOF
11011 #line $LINENO "configure"
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017
11018 #include <sys/asoundlib.h>
11019
11020 int
11021 main ()
11022 {
11023
11024 /* ensure backward compatibility */
11025 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11026 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11027 #endif
11028 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11029 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11030 #endif
11031 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11032 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11033 #endif
11034
11035 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
11036   exit(0);
11037 #  else
11038 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
11039 #       error not present
11040 #    endif
11041
11042 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
11043   exit(0);
11044 #   else
11045 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
11046 #          error not present
11047 #      endif
11048
11049 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11050 #        error not present
11051 #      endif
11052 #    endif
11053 #  endif
11054 exit(0);
11055
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062   (eval $ac_compile) 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); } &&
11066          { ac_try='test -s conftest.$ac_objext'
11067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068   (eval $ac_try) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; }; then
11072   echo "$as_me:$LINENO: result: found." >&5
11073 echo "${ECHO_T}found." >&6
11074 else
11075   echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 echo "$as_me:$LINENO: result: not present." >&5
11079 echo "${ECHO_T}not present." >&6
11080    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
11081 echo "${ECHO_T}libasound was not found anywhere." >&6
11082    alsa_found=no
11083 fi
11084 rm -f conftest.$ac_objext conftest.$ac_ext
11085    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
11086 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
11087
11088 fi
11089 rm -f conftest.$ac_objext conftest.$ac_ext
11090 ac_ext=c
11091 ac_cpp='$CPP $CPPFLAGS'
11092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11095
11096
11097
11098 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
11099 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
11100 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-lasound  $LIBS"
11105 cat >conftest.$ac_ext <<_ACEOF
11106 #line $LINENO "configure"
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112
11113 /* Override any gcc2 internal prototype to avoid an error.  */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 /* We use char because int might match the return type of a gcc2
11118    builtin and then its argument prototype would still apply.  */
11119 char snd_ctl_open ();
11120 int
11121 main ()
11122 {
11123 snd_ctl_open ();
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130   (eval $ac_link) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } &&
11134          { ac_try='test -s conftest$ac_exeext'
11135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136   (eval $ac_try) 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; }; then
11140   ac_cv_lib_asound_snd_ctl_open=yes
11141 else
11142   echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_cv_lib_asound_snd_ctl_open=no
11146 fi
11147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11149 fi
11150 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
11151 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
11152 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
11153   cat >>confdefs.h <<_ACEOF
11154 #define HAVE_LIBASOUND 1
11155 _ACEOF
11156
11157   LIBS="-lasound $LIBS"
11158
11159 else
11160   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
11161 echo "${ECHO_T}No linkable libasound was found." >&6
11162    alsa_found=no
11163
11164 fi
11165
11166
11167 if test "x$alsa_found" = "xyes" ; then
11168    :
11169    LIBS=`echo $LIBS | sed 's/-lasound//g'`
11170    LIBS=`echo $LIBS | sed 's/  //'`
11171    LIBS="-lasound $LIBS"
11172 else
11173    :
11174    CFLAGS="$alsa_save_CFLAGS"
11175    LDFLAGS="$alsa_save_LDFLAGS"
11176    LIBS="$alsa_save_LIBS"
11177    ALSA_CFLAGS=""
11178    ALSA_LIBS=""
11179 fi
11180
11181
11182
11183
11184   if test "x$alsa_found" = "xyes" ; then
11185         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
11186     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
11187     for f in $ALSA_CFLAGS; do
11188     case ".$f" in
11189         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11190         *)              CFLAGS="$CPPFLAGS $f" ;;
11191     esac
11192 done
11193
11194     LIBS="$KEEPLIBS $ALSA_LIBS"
11195
11196 for ac_func in snd_seq_port_info_set_timestamping
11197 do
11198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11199 echo "$as_me:$LINENO: checking for $ac_func" >&5
11200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_var+set}\" = set"; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211 /* System header to define __stub macros and hopefully few prototypes,
11212     which can conflict with char $ac_func (); below.
11213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11214     <limits.h> exists even on freestanding compilers.  */
11215 #ifdef __STDC__
11216 # include <limits.h>
11217 #else
11218 # include <assert.h>
11219 #endif
11220 /* Override any gcc2 internal prototype to avoid an error.  */
11221 #ifdef __cplusplus
11222 extern "C"
11223 {
11224 #endif
11225 /* We use char because int might match the return type of a gcc2
11226    builtin and then its argument prototype would still apply.  */
11227 char $ac_func ();
11228 /* The GNU C library defines this for functions which it implements
11229     to always fail with ENOSYS.  Some functions are actually named
11230     something starting with __ and the normal name is an alias.  */
11231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11232 choke me
11233 #else
11234 char (*f) () = $ac_func;
11235 #endif
11236 #ifdef __cplusplus
11237 }
11238 #endif
11239
11240 int
11241 main ()
11242 {
11243 return f != $ac_func;
11244   ;
11245   return 0;
11246 }
11247 _ACEOF
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250   (eval $ac_link) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } &&
11254          { ac_try='test -s conftest$ac_exeext'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; }; then
11260   eval "$as_ac_var=yes"
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 eval "$as_ac_var=no"
11266 fi
11267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11268 fi
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272   cat >>confdefs.h <<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11274 _ACEOF
11275
11276 fi
11277 done
11278
11279   else
11280     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
11281 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
11282     CFLAGS=$KEEPCFLAGS
11283     LIBS=$KEEPLIBS
11284     LDFLAGS=$KEEPLDFLAGS
11285   fi
11286 else
11287   echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6
11289 fi
11290
11291 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11292 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11293 if test "x$au_enable_alib" = xyes; then
11294   case "$target" in
11295     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11296 echo "${ECHO_T}yes" >&6 ;;
11297     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11298 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11299   esac
11300   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11301   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11302   if test -d /opt/audio/include; then
11303     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11304   fi
11305   if test -d /opt/audio/lib; then
11306     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11307   fi
11308   EXTRALIBS="$EXTRALIBS -lAlib"
11309 else
11310   echo "$as_me:$LINENO: result: no" >&5
11311 echo "${ECHO_T}no" >&6
11312 fi
11313
11314 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11315 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11316 if test "x$au_enable_nas" = xyes; then
11317   if test "x$with_x" != xyes; then
11318     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11319 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11320    { (exit 1); exit 1; }; }
11321   fi
11322   EXTRADEFS="$EXTRADEFS -DAU_NAS"
11323   SYSEXTRAS="$SYSEXTRAS nas_a.c"
11324
11325
11326   if test "x$with_nas_library" != x; then
11327     echo "$as_me:$LINENO: result: $with_nas_library" >&5
11328 echo "${ECHO_T}$with_nas_library" >&6;
11329     EXTRALIBS="$EXTRALIBS $with_nas_library"
11330   else
11331     echo "$as_me:$LINENO: result: " >&5
11332 echo "${ECHO_T}" >&6
11333     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11334 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11335 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338   ac_func_search_save_LIBS="$LIBS"
11339 timidity_cv_search_AuOpenServer="no"
11340 for i in $x_libraries/libaudio.a \
11341          /usr/lib/libaudio.so \
11342          /usr/lib/libaudio.a ; do
11343   LIBS="$i  $ac_func_search_save_LIBS"
11344   cat >conftest.$ac_ext <<_ACEOF
11345 #line $LINENO "configure"
11346 /* confdefs.h.  */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h.  */
11351
11352 /* Override any gcc2 internal prototype to avoid an error.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 /* We use char because int might match the return type of a gcc2
11357    builtin and then its argument prototype would still apply.  */
11358 char AuOpenServer ();
11359 int
11360 main ()
11361 {
11362 AuOpenServer ();
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369   (eval $ac_link) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } &&
11373          { ac_try='test -s conftest$ac_exeext'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; }; then
11379   timidity_cv_search_AuOpenServer="$i"; break
11380 else
11381   echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 fi
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11386 done
11387 LIBS="$ac_func_search_save_LIBS"
11388 fi
11389 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11390 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11391 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11392    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11393 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11394           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11395 else :
11396   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11397 echo "$as_me: WARNING: NAS library is not found." >&2;}
11398 fi
11399   fi
11400   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11401   lib_xt_opt=-lXt
11402   if test "x$have_xext" = xyes; then
11403     lib_xext_opt=-lXext
11404   fi
11405   if test "x$have_xprelibs" = xyes; then
11406     lib_xprelibs_opt='-lSM -lICE'
11407   fi
11408 else
11409   echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11411 fi
11412
11413 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11414 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11415 if test "x$au_enable_arts" = xyes; then
11416   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11417 echo "${ECHO_T}yes, configuring aRts" >&6
11418   KEEPCFLAGS=$CFLAGS
11419   KEEPLIBS=$LIBS
11420   KEEPLDFLAGS=$LDFLAGS
11421
11422 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11423 if test "${with_arts_prefix+set}" = set; then
11424   withval="$with_arts_prefix"
11425   arts_prefix="$withval"
11426 else
11427   arts_prefix=""
11428 fi;
11429 # Check whether --enable-artstest or --disable-artstest was given.
11430 if test "${enable_artstest+set}" = set; then
11431   enableval="$enable_artstest"
11432
11433 else
11434   enable_artstest=yes
11435 fi;
11436
11437   if test x$arts_prefix != x ; then
11438      arts_args="$arts_args --prefix=$arts_prefix"
11439      if test x${ARTS_CONFIG+set} != xset ; then
11440         ARTS_CONFIG=$arts_prefix/bin/artsc-config
11441      fi
11442   fi
11443
11444   # Extract the first word of "artsc-config", so it can be a program name with args.
11445 set dummy artsc-config; ac_word=$2
11446 echo "$as_me:$LINENO: checking for $ac_word" >&5
11447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11448 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   case $ARTS_CONFIG in
11452   [\\/]* | ?:[\\/]*)
11453   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11454   ;;
11455   *)
11456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457 for as_dir in $PATH
11458 do
11459   IFS=$as_save_IFS
11460   test -z "$as_dir" && as_dir=.
11461   for ac_exec_ext in '' $ac_executable_extensions; do
11462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11463     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11465     break 2
11466   fi
11467 done
11468 done
11469
11470   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11471   ;;
11472 esac
11473 fi
11474 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11475
11476 if test -n "$ARTS_CONFIG"; then
11477   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11478 echo "${ECHO_T}$ARTS_CONFIG" >&6
11479 else
11480   echo "$as_me:$LINENO: result: no" >&5
11481 echo "${ECHO_T}no" >&6
11482 fi
11483
11484   min_arts_version=0.9.5
11485   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11486 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11487   no_arts=""
11488   if test "$ARTS_CONFIG" = "no" ; then
11489     no_arts=yes
11490   else
11491     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11492     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11493
11494     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11495            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11496     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11497            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11498     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11499            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11500     if test "x$enable_artstest" = "xyes" ; then
11501       ac_save_CFLAGS="$CFLAGS"
11502       ac_save_LIBS="$LIBS"
11503       CFLAGS="$CFLAGS $ARTS_CFLAGS"
11504       LIBS="$LIBS $ARTS_LIBS"
11505       rm -f conf.artstest
11506       if test "$cross_compiling" = yes; then
11507   echo $ac_n "cross compiling; assumed OK... $ac_c"
11508 else
11509   cat >conftest.$ac_ext <<_ACEOF
11510 #line $LINENO "configure"
11511 /* confdefs.h.  */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h.  */
11516
11517 #include <stdio.h>
11518 #include <stdlib.h>
11519 #include <string.h>
11520 #include <artsc.h>
11521
11522 char*
11523 my_strdup (char *str)
11524 {
11525   char *new_str;
11526
11527   if (str)
11528     {
11529       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11530       strcpy (new_str, str);
11531     }
11532   else
11533     new_str = NULL;
11534
11535   return new_str;
11536 }
11537
11538 int main ()
11539 {
11540   int major, minor, micro;
11541   char *tmp_version;
11542
11543   system ("touch conf.artstest");
11544
11545   /* HP/UX 9 (%@#!) writes to sscanf strings */
11546   tmp_version = my_strdup("$min_arts_version");
11547   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11548      printf("%s, bad version string\n", "$min_arts_version");
11549      exit(1);
11550    }
11551
11552    if (($arts_major_version > major) ||
11553       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11554       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11555     {
11556       return 0;
11557     }
11558   else
11559     {
11560       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11561       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11562       printf("*** best to upgrade to the required version.\n");
11563       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11564       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11565       printf("*** config.cache before re-running configure\n");
11566       return 1;
11567     }
11568 }
11569
11570
11571 _ACEOF
11572 rm -f conftest$ac_exeext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574   (eval $ac_link) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579   (eval $ac_try) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; }; then
11583   :
11584 else
11585   echo "$as_me: program exited with status $ac_status" >&5
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589 ( exit $ac_status )
11590 no_arts=yes
11591 fi
11592 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11593 fi
11594        CFLAGS="$ac_save_CFLAGS"
11595        LIBS="$ac_save_LIBS"
11596      fi
11597   fi
11598   if test "x$no_arts" = x ; then
11599      echo "$as_me:$LINENO: result: yes" >&5
11600 echo "${ECHO_T}yes" >&6
11601      :
11602   else
11603      echo "$as_me:$LINENO: result: no" >&5
11604 echo "${ECHO_T}no" >&6
11605      if test "$ARTS_CONFIG" = "no" ; then
11606        echo "*** The artsc-config script installed by ARTS could not be found"
11607        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11608        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11609        echo "*** full path to artsc-config."
11610      else
11611        if test -f conf.artstest ; then
11612         :
11613        else
11614           echo "*** Could not run ARTS test program, checking why..."
11615           CFLAGS="$CFLAGS $ARTS_CFLAGS"
11616           LIBS="$LIBS $ARTS_LIBS"
11617           cat >conftest.$ac_ext <<_ACEOF
11618 #line $LINENO "configure"
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624
11625 #include <stdio.h>
11626 #include <artsc.h>
11627
11628 int
11629 main ()
11630 {
11631  return 0;
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638   (eval $ac_link) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -s conftest$ac_exeext'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648    echo "*** The test program compiled, but did not run. This usually means"
11649           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11650           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11651           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11652           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11653           echo "*** is required on your system"
11654           echo "***"
11655           echo "*** If you have an old version installed, it is best to remove it, although"
11656           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661  echo "*** The test program failed to compile or link. See the file config.log for the"
11662           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11663           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11664           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11665 fi
11666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667           CFLAGS="$ac_save_CFLAGS"
11668           LIBS="$ac_save_LIBS"
11669        fi
11670      fi
11671      ARTS_CFLAGS=""
11672      ARTS_LIBS=""
11673      :
11674   fi
11675
11676
11677   rm -f conf.artstest
11678
11679   CFLAGS=$KEEPCFLAGS
11680   LIBS=$KEEPLIBS
11681   LDFLAGS=$KEEPLDFLAGS
11682   if test "x$no_arts" = x; then
11683         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11684     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11685     for f in $ARTS_CFLAGS; do
11686     case ".$f" in
11687         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11688         *)              CFLAGS="$CPPFLAGS $f" ;;
11689     esac
11690 done
11691
11692     LIBS="$LIBS $ARTS_LIBS"
11693   else
11694     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11695 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11696   fi
11697 else
11698   echo "$as_me:$LINENO: result: no" >&5
11699 echo "${ECHO_T}no" >&6
11700 fi
11701
11702 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11703 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11704 if test "x$au_enable_esd" = xyes; then
11705   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11706 echo "${ECHO_T}yes, configuring esd" >&6
11707   KEEPCFLAGS=$CFLAGS
11708   KEEPLIBS=$LIBS
11709   KEEPLDFLAGS=$LDFLAGS
11710
11711 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11712 if test "${with_esd_prefix+set}" = set; then
11713   withval="$with_esd_prefix"
11714   esd_prefix="$withval"
11715 else
11716   esd_prefix=""
11717 fi;
11718
11719 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11720 if test "${with_esd_exec_prefix+set}" = set; then
11721   withval="$with_esd_exec_prefix"
11722   esd_exec_prefix="$withval"
11723 else
11724   esd_exec_prefix=""
11725 fi;
11726 # Check whether --enable-esdtest or --disable-esdtest was given.
11727 if test "${enable_esdtest+set}" = set; then
11728   enableval="$enable_esdtest"
11729
11730 else
11731   enable_esdtest=yes
11732 fi;
11733
11734   if test x$esd_exec_prefix != x ; then
11735      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11736      if test x${ESD_CONFIG+set} != xset ; then
11737         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11738      fi
11739   fi
11740   if test x$esd_prefix != x ; then
11741      esd_args="$esd_args --prefix=$esd_prefix"
11742      if test x${ESD_CONFIG+set} != xset ; then
11743         ESD_CONFIG=$esd_prefix/bin/esd-config
11744      fi
11745   fi
11746
11747   # Extract the first word of "esd-config", so it can be a program name with args.
11748 set dummy esd-config; ac_word=$2
11749 echo "$as_me:$LINENO: checking for $ac_word" >&5
11750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11751 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   case $ESD_CONFIG in
11755   [\\/]* | ?:[\\/]*)
11756   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11757   ;;
11758   *)
11759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11761 do
11762   IFS=$as_save_IFS
11763   test -z "$as_dir" && as_dir=.
11764   for ac_exec_ext in '' $ac_executable_extensions; do
11765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768     break 2
11769   fi
11770 done
11771 done
11772
11773   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11774   ;;
11775 esac
11776 fi
11777 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11778
11779 if test -n "$ESD_CONFIG"; then
11780   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11781 echo "${ECHO_T}$ESD_CONFIG" >&6
11782 else
11783   echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11785 fi
11786
11787   min_esd_version=0.2.7
11788   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11789 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11790   no_esd=""
11791   if test "$ESD_CONFIG" = "no" ; then
11792     no_esd=yes
11793   else
11794
11795
11796     ac_ext=c
11797 ac_cpp='$CPP $CPPFLAGS'
11798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11801
11802     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11803     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11804
11805     esd_major_version=`$ESD_CONFIG $esd_args --version | \
11806            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11807     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11808            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11809     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11810            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11811     if test "x$enable_esdtest" = "xyes" ; then
11812       ac_save_CFLAGS="$CFLAGS"
11813       ac_save_LIBS="$LIBS"
11814       CFLAGS="$CFLAGS $ESD_CFLAGS"
11815       LIBS="$LIBS $ESD_LIBS"
11816       rm -f conf.esdtest
11817       if test "$cross_compiling" = yes; then
11818   echo $ac_n "cross compiling; assumed OK... $ac_c"
11819 else
11820   cat >conftest.$ac_ext <<_ACEOF
11821 #line $LINENO "configure"
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827
11828 #include <stdio.h>
11829 #include <stdlib.h>
11830 #include <string.h>
11831 #include <esd.h>
11832
11833 char*
11834 my_strdup (char *str)
11835 {
11836   char *new_str;
11837
11838   if (str)
11839     {
11840       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11841       strcpy (new_str, str);
11842     }
11843   else
11844     new_str = NULL;
11845
11846   return new_str;
11847 }
11848
11849 int main ()
11850 {
11851   int major, minor, micro;
11852   char *tmp_version;
11853
11854   system ("touch conf.esdtest");
11855
11856   /* HP/UX 9 (%@#!) writes to sscanf strings */
11857   tmp_version = my_strdup("$min_esd_version");
11858   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11859      printf("%s, bad version string\n", "$min_esd_version");
11860      exit(1);
11861    }
11862
11863    if (($esd_major_version > major) ||
11864       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11865       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11866     {
11867       return 0;
11868     }
11869   else
11870     {
11871       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11872       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11873       printf("*** best to upgrade to the required version.\n");
11874       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11875       printf("*** to point to the correct copy of esd-config, and remove the file\n");
11876       printf("*** config.cache before re-running configure\n");
11877       return 1;
11878     }
11879 }
11880
11881
11882 _ACEOF
11883 rm -f conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885   (eval $ac_link) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   :
11895 else
11896   echo "$as_me: program exited with status $ac_status" >&5
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ( exit $ac_status )
11901 no_esd=yes
11902 fi
11903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11904 fi
11905        CFLAGS="$ac_save_CFLAGS"
11906        LIBS="$ac_save_LIBS"
11907        ac_ext=c
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912
11913      fi
11914   fi
11915   if test "x$no_esd" = x ; then
11916      echo "$as_me:$LINENO: result: yes" >&5
11917 echo "${ECHO_T}yes" >&6
11918      :
11919   else
11920      echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11922      if test "$ESD_CONFIG" = "no" ; then
11923        echo "*** The esd-config script installed by ESD could not be found"
11924        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11925        echo "*** your path, or set the ESD_CONFIG environment variable to the"
11926        echo "*** full path to esd-config."
11927      else
11928        if test -f conf.esdtest ; then
11929         :
11930        else
11931           echo "*** Could not run ESD test program, checking why..."
11932           CFLAGS="$CFLAGS $ESD_CFLAGS"
11933           LIBS="$LIBS $ESD_LIBS"
11934
11935
11936           ac_ext=c
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11941
11942           cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949
11950 #include <stdio.h>
11951 #include <esd.h>
11952
11953 int
11954 main ()
11955 {
11956  return 0;
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963   (eval $ac_link) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -s conftest$ac_exeext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973    echo "*** The test program compiled, but did not run. This usually means"
11974           echo "*** that the run-time linker is not finding ESD or finding the wrong"
11975           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11976           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11977           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11978           echo "*** is required on your system"
11979           echo "***"
11980           echo "*** If you have an old version installed, it is best to remove it, although"
11981           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986  echo "*** The test program failed to compile or link. See the file config.log for the"
11987           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11988           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11989           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11990 fi
11991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11992           CFLAGS="$ac_save_CFLAGS"
11993           LIBS="$ac_save_LIBS"
11994           ac_ext=c
11995 ac_cpp='$CPP $CPPFLAGS'
11996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11999
12000        fi
12001      fi
12002      ESD_CFLAGS=""
12003      ESD_LIBS=""
12004      :
12005   fi
12006
12007
12008   rm -f conf.esdtest
12009
12010   CFLAGS=$KEEPCFLAGS
12011   LIBS=$KEEPLIBS
12012   LDFLAGS=$KEEPLDFLAGS
12013   if test "x$no_esd" = x; then
12014         EXTRADEFS="$EXTRADEFS -DAU_ESD"
12015     SYSEXTRAS="$SYSEXTRAS esd_a.c"
12016     for f in $ESD_CFLAGS; do
12017     case ".$f" in
12018         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12019         *)              CFLAGS="$CPPFLAGS $f" ;;
12020     esac
12021 done
12022
12023     LIBS="$LIBS $ESD_LIBS"
12024   else
12025     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
12026 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
12027   fi
12028 else
12029   echo "$as_me:$LINENO: result: no" >&5
12030 echo "${ECHO_T}no" >&6
12031 fi
12032
12033 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
12034 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
12035 if test "x$au_enable_portaudio" = xyes; then
12036   echo "$as_me:$LINENO: result: yes" >&5
12037 echo "${ECHO_T}yes" >&6
12038   SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
12039   EXTRALIBS="$EXTRALIBS -lportaudio"
12040   EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
12041 else
12042   echo "$as_me:$LINENO: result: no" >&5
12043 echo "${ECHO_T}no" >&6
12044 fi
12045
12046 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
12047 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
12048 if test "x$au_enable_jack" = xyes; then
12049   echo "$as_me:$LINENO: result: yes" >&5
12050 echo "${ECHO_T}yes" >&6
12051   SYSEXTRAS="$SYSEXTRAS jack_a.c"
12052   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
12053   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
12054 else
12055   echo "$as_me:$LINENO: result: no" >&5
12056 echo "${ECHO_T}no" >&6
12057 fi
12058
12059 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
12060 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
12061 if test "x$au_enable_vorbis" = xyes; then
12062   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
12063 echo "${ECHO_T}yes, configuring vorbis" >&6
12064
12065 # Check whether --with-ogg or --without-ogg was given.
12066 if test "${with_ogg+set}" = set; then
12067   withval="$with_ogg"
12068   ogg_prefix="$withval"
12069 else
12070   ogg_prefix=""
12071 fi;
12072
12073 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
12074 if test "${with_ogg_libraries+set}" = set; then
12075   withval="$with_ogg_libraries"
12076   ogg_libraries="$withval"
12077 else
12078   ogg_libraries=""
12079 fi;
12080
12081 # Check whether --with-ogg-includes or --without-ogg-includes was given.
12082 if test "${with_ogg_includes+set}" = set; then
12083   withval="$with_ogg_includes"
12084   ogg_includes="$withval"
12085 else
12086   ogg_includes=""
12087 fi;
12088 # Check whether --enable-oggtest or --disable-oggtest was given.
12089 if test "${enable_oggtest+set}" = set; then
12090   enableval="$enable_oggtest"
12091
12092 else
12093   enable_oggtest=yes
12094 fi;
12095
12096   if test "x$ogg_libraries" != "x" ; then
12097     OGG_LIBS="-L$ogg_libraries"
12098   elif test "x$ogg_prefix" != "x" ; then
12099     OGG_LIBS="-L$ogg_prefix/lib"
12100   elif test "x$prefix" != "xNONE" ; then
12101     OGG_LIBS="-L$prefix/lib"
12102   fi
12103
12104   OGG_LIBS="$OGG_LIBS -logg"
12105
12106   if test "x$ogg_includes" != "x" ; then
12107     OGG_CFLAGS="-I$ogg_includes"
12108   elif test "x$ogg_prefix" != "x" ; then
12109     OGG_CFLAGS="-I$ogg_prefix/include"
12110   elif test "x$prefix" != "xNONE"; then
12111     OGG_CFLAGS="-I$prefix/include"
12112   fi
12113
12114   echo "$as_me:$LINENO: checking for Ogg" >&5
12115 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
12116   no_ogg=""
12117
12118
12119   if test "x$enable_oggtest" = "xyes" ; then
12120     ac_save_CFLAGS="$CFLAGS"
12121     ac_save_LIBS="$LIBS"
12122     CFLAGS="$CFLAGS $OGG_CFLAGS"
12123     LIBS="$LIBS $OGG_LIBS"
12124       rm -f conf.oggtest
12125       if test "$cross_compiling" = yes; then
12126   echo $ac_n "cross compiling; assumed OK... $ac_c"
12127 else
12128   cat >conftest.$ac_ext <<_ACEOF
12129 #line $LINENO "configure"
12130 /* confdefs.h.  */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h.  */
12135
12136 #include <stdio.h>
12137 #include <stdlib.h>
12138 #include <string.h>
12139 #include <ogg/ogg.h>
12140
12141 int main ()
12142 {
12143   system("touch conf.oggtest");
12144   return 0;
12145 }
12146
12147
12148 _ACEOF
12149 rm -f conftest$ac_exeext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12151   (eval $ac_link) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; }; then
12160   :
12161 else
12162   echo "$as_me: program exited with status $ac_status" >&5
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 ( exit $ac_status )
12167 no_ogg=yes
12168 fi
12169 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12170 fi
12171        CFLAGS="$ac_save_CFLAGS"
12172        LIBS="$ac_save_LIBS"
12173   fi
12174
12175   if test "x$no_ogg" = "x" ; then
12176      echo "$as_me:$LINENO: result: yes" >&5
12177 echo "${ECHO_T}yes" >&6
12178
12179
12180 # Check whether --with-vorbis or --without-vorbis was given.
12181 if test "${with_vorbis+set}" = set; then
12182   withval="$with_vorbis"
12183   vorbis_prefix="$withval"
12184 else
12185   vorbis_prefix=""
12186 fi;
12187
12188 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
12189 if test "${with_vorbis_libraries+set}" = set; then
12190   withval="$with_vorbis_libraries"
12191   vorbis_libraries="$withval"
12192 else
12193   vorbis_libraries=""
12194 fi;
12195
12196 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
12197 if test "${with_vorbis_includes+set}" = set; then
12198   withval="$with_vorbis_includes"
12199   vorbis_includes="$withval"
12200 else
12201   vorbis_includes=""
12202 fi;
12203 # Check whether --enable-vorbistest or --disable-vorbistest was given.
12204 if test "${enable_vorbistest+set}" = set; then
12205   enableval="$enable_vorbistest"
12206
12207 else
12208   enable_vorbistest=yes
12209 fi;
12210
12211   if test "x$vorbis_libraries" != "x" ; then
12212     VORBIS_LIBS="-L$vorbis_libraries"
12213   elif test "x$vorbis_prefix" != "x" ; then
12214     VORBIS_LIBS="-L$vorbis_prefix/lib"
12215   elif test "x$prefix" != "xNONE"; then
12216     VORBIS_LIBS="-L$prefix/lib"
12217   fi
12218
12219   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12220   VORBISFILE_LIBS="-lvorbisfile"
12221   VORBISENC_LIBS="-lvorbisenc"
12222
12223   if test "x$vorbis_includes" != "x" ; then
12224     VORBIS_CFLAGS="-I$vorbis_includes"
12225   elif test "x$vorbis_prefix" != "x" ; then
12226     VORBIS_CFLAGS="-I$vorbis_prefix/include"
12227   elif test "x$prefix" != "xNONE"; then
12228     VORBIS_CFLAGS="-I$prefix/include"
12229   fi
12230
12231
12232   echo "$as_me:$LINENO: checking for Vorbis" >&5
12233 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
12234   no_vorbis=""
12235
12236
12237   if test "x$enable_vorbistest" = "xyes" ; then
12238     ac_save_CFLAGS="$CFLAGS"
12239     ac_save_LIBS="$LIBS"
12240     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12241     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12242       rm -f conf.vorbistest
12243       if test "$cross_compiling" = yes; then
12244   echo $ac_n "cross compiling; assumed OK... $ac_c"
12245 else
12246   cat >conftest.$ac_ext <<_ACEOF
12247 #line $LINENO "configure"
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253
12254 #include <stdio.h>
12255 #include <stdlib.h>
12256 #include <string.h>
12257 #include <vorbis/codec.h>
12258
12259 int main ()
12260 {
12261   system("touch conf.vorbistest");
12262   return 0;
12263 }
12264
12265
12266 _ACEOF
12267 rm -f conftest$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269   (eval $ac_link) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } && { ac_try='./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   :
12279 else
12280   echo "$as_me: program exited with status $ac_status" >&5
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ( exit $ac_status )
12285 no_vorbis=yes
12286 fi
12287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12288 fi
12289        CFLAGS="$ac_save_CFLAGS"
12290        LIBS="$ac_save_LIBS"
12291   fi
12292
12293   if test "x$no_vorbis" = "x" ; then
12294      echo "$as_me:$LINENO: result: yes" >&5
12295 echo "${ECHO_T}yes" >&6
12296
12297       have_vorbis=yes
12298       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
12299       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
12300       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12301       if test "x$CYGNUS" = "xyes"; then
12302       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12303           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12304       fi
12305       if test "x$MINGW" = "xyes"; then
12306       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12307           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12308       fi
12309
12310   else
12311      echo "$as_me:$LINENO: result: no" >&5
12312 echo "${ECHO_T}no" >&6
12313      if test -f conf.vorbistest ; then
12314        :
12315      else
12316        echo "*** Could not run Vorbis test program, checking why..."
12317        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12318        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12319        cat >conftest.$ac_ext <<_ACEOF
12320 #line $LINENO "configure"
12321 /* confdefs.h.  */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h.  */
12326
12327 #include <stdio.h>
12328 #include <vorbis/codec.h>
12329
12330 int
12331 main ()
12332 {
12333  return 0;
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340   (eval $ac_link) 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } &&
12344          { ac_try='test -s conftest$ac_exeext'
12345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346   (eval $ac_try) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }; }; then
12350    echo "*** The test program compiled, but did not run. This usually means"
12351        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12352        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12353        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12354        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12355        echo "*** is required on your system"
12356        echo "***"
12357        echo "*** If you have an old version installed, it is best to remove it, although"
12358        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363  echo "*** The test program failed to compile or link. See the file config.log for the"
12364        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12365        echo "*** or that you have moved Vorbis since it was installed."
12366 fi
12367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12368        CFLAGS="$ac_save_CFLAGS"
12369        LIBS="$ac_save_LIBS"
12370      fi
12371      VORBIS_CFLAGS=""
12372      VORBIS_LIBS=""
12373      VORBISFILE_LIBS=""
12374      VORBISENC_LIBS=""
12375
12376       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12377 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12378
12379   fi
12380
12381
12382
12383
12384   rm -f conf.vorbistest
12385
12386
12387   else
12388      echo "$as_me:$LINENO: result: no" >&5
12389 echo "${ECHO_T}no" >&6
12390      if test -f conf.oggtest ; then
12391        :
12392      else
12393        echo "*** Could not run Ogg test program, checking why..."
12394        CFLAGS="$CFLAGS $OGG_CFLAGS"
12395        LIBS="$LIBS $OGG_LIBS"
12396        cat >conftest.$ac_ext <<_ACEOF
12397 #line $LINENO "configure"
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403
12404 #include <stdio.h>
12405 #include <ogg/ogg.h>
12406
12407 int
12408 main ()
12409 {
12410  return 0;
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417   (eval $ac_link) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } &&
12421          { ac_try='test -s conftest$ac_exeext'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; }; then
12427    echo "*** The test program compiled, but did not run. This usually means"
12428        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12429        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12430        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12431        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12432        echo "*** is required on your system"
12433        echo "***"
12434        echo "*** If you have an old version installed, it is best to remove it, although"
12435        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440  echo "*** The test program failed to compile or link. See the file config.log for the"
12441        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12442        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12443        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12444 fi
12445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12446        CFLAGS="$ac_save_CFLAGS"
12447        LIBS="$ac_save_LIBS"
12448      fi
12449      OGG_CFLAGS=""
12450      OGG_LIBS=""
12451
12452     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12453 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12454     have_vorbis=no
12455
12456   fi
12457
12458
12459   rm -f conf.oggtest
12460
12461 else
12462   echo "$as_me:$LINENO: result: no" >&5
12463 echo "${ECHO_T}no" >&6
12464 fi
12465
12466 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12467 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12468 if test "x$au_enable_gogo" = xyes; then
12469   if test "x$CYGNUS" = "xyes"; then
12470     echo "$as_me:$LINENO: result: yes" >&5
12471 echo "${ECHO_T}yes" >&6
12472   else
12473     if test "x$MINGW" = "xyes"; then
12474     echo "$as_me:$LINENO: result: yes" >&5
12475 echo "${ECHO_T}yes" >&6
12476     else
12477       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
12478 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
12479     fi
12480   fi
12481   have_gogo=yes
12482   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12483   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12484   EXTRALIBS="$EXTRALIBS -lgogo"
12485 else
12486   echo "$as_me:$LINENO: result: no" >&5
12487 echo "${ECHO_T}no" >&6
12488 fi
12489
12490 if test "x$au_enable_none" = xyes; then
12491     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12492     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12493 fi
12494 echo "$as_me:$LINENO: checking default output mode" >&5
12495 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12496 if test "x$DEFAULT_PLAYMODE" = x; then
12497   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12498 fi
12499 case ".$DEFAULT_PLAYMODE" in
12500   .default)  TIMIDITY_OUTPUT_ID=d ;;
12501   .oss)      TIMIDITY_OUTPUT_ID=d ;;
12502   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
12503   .sun)      TIMIDITY_OUTPUT_ID=d ;;
12504   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
12505   .irix)     TIMIDITY_OUTPUT_ID=d ;;
12506   .mme)      TIMIDITY_OUTPUT_ID=d ;;
12507   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
12508   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
12509   .w32)      TIMIDITY_OUTPUT_ID=d ;;
12510   .alib)     TIMIDITY_OUTPUT_ID=A ;;
12511   .nas)      TIMIDITY_OUTPUT_ID=n ;;
12512   .arts)     TIMIDITY_OUTPUT_ID=R ;;
12513   .esd)      TIMIDITY_OUTPUT_ID=e ;;
12514   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
12515   .wav)      TIMIDITY_OUTPUT_ID=w ;;
12516   .au)       TIMIDITY_OUTPUT_ID=u ;;
12517   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
12518   .list)     TIMIDITY_OUTPUT_ID=l ;;
12519   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
12520   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
12521   .jack)     TIMIDITY_OUTPUT_ID=j ;;
12522   *)         TIMIDITY_OUTPUT_ID= ;;
12523 esac
12524 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12525 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12526
12527 #
12528 # Interface Section
12529 #
12530
12531 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
12532
12533 # Check whether --enable-interface or --disable-interface was given.
12534 if test "${enable_interface+set}" = set; then
12535   enableval="$enable_interface"
12536    for i in `echo $enableval | sed 's/,/ /g'`; do
12537       eval "enable_$i=yes"
12538     done
12539 fi;
12540
12541 #  Dynamic link configuration
12542 # Check whether --enable-dynamic or --disable-dynamic was given.
12543 if test "${enable_dynamic+set}" = set; then
12544   enableval="$enable_dynamic"
12545        if test "x$enable_dynamic" = xyes; then
12546       enable_dynamic=dynamic
12547     elif test "x$enable_dynamic" != xno; then
12548       for i in `echo $enableval | sed 's/,/ /g'`; do
12549         eval "enable_$i=dynamic"
12550       done
12551     fi
12552 fi;
12553
12554 join_targets=
12555 for i in $interface_targets; do
12556   eval "join_targets=$join_targets\$enable_$i"
12557 done
12558
12559 case ".$join_targets" in
12560 .*dynamic*) NEEDDLOPEN=yes;;
12561 *)          NEEDDLOPEN=no;;
12562 esac
12563
12564 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12565 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12566
12567 if test "$NEEDDLOPEN" = "yes"; then
12568   have_dl=no
12569
12570   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12571 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12572 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12573   echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575   cat >conftest.$ac_ext <<_ACEOF
12576 #line $LINENO "configure"
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 #include <windows.h>
12583
12584
12585 int
12586 main ()
12587 {
12588 LoadLibrary(0);
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595   (eval $ac_link) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -s conftest$ac_exeext'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   wapi_cv_func_LoadLibrary=yes
12606 else
12607   echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 wapi_cv_func_LoadLibrary=no
12611 fi
12612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12613 fi
12614
12615 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12616   echo "$as_me:$LINENO: result: yes" >&5
12617 echo "${ECHO_T}yes" >&6
12618   have_dl=w32
12619 else
12620   echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6
12622 fi
12623
12624   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12625
12626   if test "$have_dl" = "no"; then
12627     echo "$as_me:$LINENO: checking for shl_load" >&5
12628 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12629 if test "${ac_cv_func_shl_load+set}" = set; then
12630   echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632   cat >conftest.$ac_ext <<_ACEOF
12633 #line $LINENO "configure"
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639 /* System header to define __stub macros and hopefully few prototypes,
12640     which can conflict with char shl_load (); below.
12641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12642     <limits.h> exists even on freestanding compilers.  */
12643 #ifdef __STDC__
12644 # include <limits.h>
12645 #else
12646 # include <assert.h>
12647 #endif
12648 /* Override any gcc2 internal prototype to avoid an error.  */
12649 #ifdef __cplusplus
12650 extern "C"
12651 {
12652 #endif
12653 /* We use char because int might match the return type of a gcc2
12654    builtin and then its argument prototype would still apply.  */
12655 char shl_load ();
12656 /* The GNU C library defines this for functions which it implements
12657     to always fail with ENOSYS.  Some functions are actually named
12658     something starting with __ and the normal name is an alias.  */
12659 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12660 choke me
12661 #else
12662 char (*f) () = shl_load;
12663 #endif
12664 #ifdef __cplusplus
12665 }
12666 #endif
12667
12668 int
12669 main ()
12670 {
12671 return f != shl_load;
12672   ;
12673   return 0;
12674 }
12675 _ACEOF
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678   (eval $ac_link) 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } &&
12682          { ac_try='test -s conftest$ac_exeext'
12683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684   (eval $ac_try) 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; }; then
12688   ac_cv_func_shl_load=yes
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 ac_cv_func_shl_load=no
12694 fi
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12696 fi
12697 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12698 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12699 if test $ac_cv_func_shl_load = yes; then
12700   have_dl=hpux
12701 fi
12702
12703   fi
12704   if test "$have_dl" = "no"; then
12705             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12706 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12707 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   cat >conftest.$ac_ext <<_ACEOF
12711 #line $LINENO "configure"
12712 /* confdefs.h.  */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h.  */
12717 /* System header to define __stub macros and hopefully few prototypes,
12718     which can conflict with char NSLinkModule (); below.
12719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12720     <limits.h> exists even on freestanding compilers.  */
12721 #ifdef __STDC__
12722 # include <limits.h>
12723 #else
12724 # include <assert.h>
12725 #endif
12726 /* Override any gcc2 internal prototype to avoid an error.  */
12727 #ifdef __cplusplus
12728 extern "C"
12729 {
12730 #endif
12731 /* We use char because int might match the return type of a gcc2
12732    builtin and then its argument prototype would still apply.  */
12733 char NSLinkModule ();
12734 /* The GNU C library defines this for functions which it implements
12735     to always fail with ENOSYS.  Some functions are actually named
12736     something starting with __ and the normal name is an alias.  */
12737 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12738 choke me
12739 #else
12740 char (*f) () = NSLinkModule;
12741 #endif
12742 #ifdef __cplusplus
12743 }
12744 #endif
12745
12746 int
12747 main ()
12748 {
12749 return f != NSLinkModule;
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756   (eval $ac_link) 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -s conftest$ac_exeext'
12761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762   (eval $ac_try) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; }; then
12766   ac_cv_func_NSLinkModule=yes
12767 else
12768   echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 ac_cv_func_NSLinkModule=no
12772 fi
12773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12774 fi
12775 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12776 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12777 if test $ac_cv_func_NSLinkModule = yes; then
12778   have_dl=dyld
12779 fi
12780
12781   fi
12782   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12783     have_dl=dlopen
12784   fi
12785   if test "$have_dl" = "no"; then
12786     echo "$as_me:$LINENO: checking for dlopen" >&5
12787 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12788 if test "${ac_cv_func_dlopen+set}" = set; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791   cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798 /* System header to define __stub macros and hopefully few prototypes,
12799     which can conflict with char dlopen (); below.
12800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801     <limits.h> exists even on freestanding compilers.  */
12802 #ifdef __STDC__
12803 # include <limits.h>
12804 #else
12805 # include <assert.h>
12806 #endif
12807 /* Override any gcc2 internal prototype to avoid an error.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 {
12811 #endif
12812 /* We use char because int might match the return type of a gcc2
12813    builtin and then its argument prototype would still apply.  */
12814 char dlopen ();
12815 /* The GNU C library defines this for functions which it implements
12816     to always fail with ENOSYS.  Some functions are actually named
12817     something starting with __ and the normal name is an alias.  */
12818 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12819 choke me
12820 #else
12821 char (*f) () = dlopen;
12822 #endif
12823 #ifdef __cplusplus
12824 }
12825 #endif
12826
12827 int
12828 main ()
12829 {
12830 return f != dlopen;
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837   (eval $ac_link) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -s conftest$ac_exeext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   ac_cv_func_dlopen=yes
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 ac_cv_func_dlopen=no
12853 fi
12854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12855 fi
12856 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12857 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12858 if test $ac_cv_func_dlopen = yes; then
12859   have_dl=dlopen
12860 fi
12861
12862   fi
12863   if test "$have_dl" = "no"; then
12864     echo "$as_me:$LINENO: checking for dld_init" >&5
12865 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12866 if test "${ac_cv_func_dld_init+set}" = set; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   cat >conftest.$ac_ext <<_ACEOF
12870 #line $LINENO "configure"
12871 /* confdefs.h.  */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h.  */
12876 /* System header to define __stub macros and hopefully few prototypes,
12877     which can conflict with char dld_init (); below.
12878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12879     <limits.h> exists even on freestanding compilers.  */
12880 #ifdef __STDC__
12881 # include <limits.h>
12882 #else
12883 # include <assert.h>
12884 #endif
12885 /* Override any gcc2 internal prototype to avoid an error.  */
12886 #ifdef __cplusplus
12887 extern "C"
12888 {
12889 #endif
12890 /* We use char because int might match the return type of a gcc2
12891    builtin and then its argument prototype would still apply.  */
12892 char dld_init ();
12893 /* The GNU C library defines this for functions which it implements
12894     to always fail with ENOSYS.  Some functions are actually named
12895     something starting with __ and the normal name is an alias.  */
12896 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12897 choke me
12898 #else
12899 char (*f) () = dld_init;
12900 #endif
12901 #ifdef __cplusplus
12902 }
12903 #endif
12904
12905 int
12906 main ()
12907 {
12908 return f != dld_init;
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915   (eval $ac_link) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } &&
12919          { ac_try='test -s conftest$ac_exeext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_cv_func_dld_init=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ac_cv_func_dld_init=no
12931 fi
12932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12933 fi
12934 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12935 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12936 if test $ac_cv_func_dld_init = yes; then
12937   have_dl=dld
12938 fi
12939
12940   fi
12941   if test "$have_dl" = "no"; then
12942     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12943 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12944 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   ac_check_lib_save_LIBS=$LIBS
12948 LIBS="-ldld  $LIBS"
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956
12957 /* Override any gcc2 internal prototype to avoid an error.  */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 /* We use char because int might match the return type of a gcc2
12962    builtin and then its argument prototype would still apply.  */
12963 char dld_init ();
12964 int
12965 main ()
12966 {
12967 dld_init ();
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974   (eval $ac_link) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -s conftest$ac_exeext'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; }; then
12984   ac_cv_lib_dld_dld_init=yes
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 ac_cv_lib_dld_dld_init=no
12990 fi
12991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
12993 fi
12994 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12995 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12996 if test $ac_cv_lib_dld_dld_init = yes; then
12997   have_dl=dld;lib_dl_opt=-ldld
12998 fi
12999
13000   fi
13001
13002   echo "$as_me:$LINENO: checking dynamic link method" >&5
13003 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
13004   case "$have_dl" in
13005     dlopen)
13006       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
13007 echo "${ECHO_T}use dl_dlopen.c" >&6
13008       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
13009       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
13010 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
13011 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
13012   echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014   case "$ac_cv_header_dlfcn_h" in
13015 yes) i_dlfcn=define;;
13016 *)   i_dlfcn=undef;;
13017 esac
13018 cat > dyna.c <<EOM
13019 fred () { }
13020 EOM
13021
13022 cat > fred.c <<EOM
13023 #include <stdio.h>
13024 #$i_dlfcn I_DLFCN
13025 #ifdef I_DLFCN
13026 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
13027 #else
13028 #include <sys/types.h>
13029 #include <nlist.h>
13030 #include <link.h>
13031 #endif
13032
13033 extern int fred() ;
13034
13035 main()
13036 {
13037     void * handle ;
13038     void * symbol ;
13039 #ifndef RTLD_LAZY
13040     int mode = 1 ;
13041 #else
13042     int mode = RTLD_LAZY ;
13043 #endif
13044     handle = dlopen("./dyna.$so", mode) ;
13045     if (handle == NULL) {
13046         printf ("1\n") ;
13047         fflush (stdout) ;
13048         exit(0);
13049     }
13050     symbol = dlsym(handle, "fred") ;
13051     if (symbol == NULL) {
13052         /* try putting a leading underscore */
13053         symbol = dlsym(handle, "_fred") ;
13054         if (symbol == NULL) {
13055             printf ("2\n") ;
13056             fflush (stdout) ;
13057             exit(0);
13058         }
13059         printf ("3\n") ;
13060     }
13061     else
13062         printf ("4\n") ;
13063     fflush (stdout) ;
13064     exit(0);
13065 }
13066 EOM
13067 : Call the object file tmp-dyna.o in case dlext=o.
13068 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
13069         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
13070         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
13071         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
13072         xxx=`./fred`
13073         case $xxx in
13074         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
13075 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
13076                 ;;
13077         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
13078 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
13079                 ;;
13080         3)      timidity_cv_func_dlsym_underscore=yes
13081                 ;;
13082         4)      timidity_cv_func_dlsym_underscore=no
13083                 ;;
13084         esac
13085 else
13086         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
13087 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
13088 fi
13089 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
13090
13091 fi
13092
13093 case "x$timidity_cv_func_dlsym_underscore" in
13094 xyes)
13095 cat >>confdefs.h <<\_ACEOF
13096 #define DLSYM_NEEDS_UNDERSCORE 1
13097 _ACEOF
13098
13099         echo "$as_me:$LINENO: result: yes" >&5
13100 echo "${ECHO_T}yes" >&6
13101         ;;
13102 xno)
13103         echo "$as_me:$LINENO: result: no" >&5
13104 echo "${ECHO_T}no" >&6
13105         ;;
13106 esac
13107
13108       ;;
13109     dld)
13110       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
13111 echo "${ECHO_T}use dl_dld.c" >&6
13112       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
13113       ;;
13114     hpux)
13115       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
13116 echo "${ECHO_T}use dl_hpux.c" >&6
13117       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
13118       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
13119       ;;
13120     w32)
13121       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
13122 echo "${ECHO_T}use dl_w32.c" >&6
13123       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
13124       ;;
13125     dyld)
13126       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
13127 echo "${ECHO_T}use dl_dyld.c" >&6
13128       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
13129       ;;
13130     *)
13131       NEEDDLOPEN="no"
13132       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
13133 echo "$as_me: WARNING: no method to open a shared object" >&2;}
13134       ;;
13135   esac
13136 fi
13137
13138 if test "$NEEDDLOPEN" = "yes"; then
13139   cat >> confdefs.h <<EOF
13140 #define IA_DYNAMIC 1
13141 EOF
13142
13143
13144 cat >>confdefs.h <<_ACEOF
13145 #define SHARED_LIB_EXT ".$so"
13146 _ACEOF
13147
13148       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
13149 fi
13150
13151
13152
13153 if test "$NEEDDLOPEN" = "yes"; then
13154   NEEDDLOPEN_TRUE=
13155   NEEDDLOPEN_FALSE='#'
13156 else
13157   NEEDDLOPEN_TRUE='#'
13158   NEEDDLOPEN_FALSE=
13159 fi
13160
13161
13162
13163
13164
13165 if false; then
13166   ENABLE_NCURSES_TRUE=
13167   ENABLE_NCURSES_FALSE='#'
13168 else
13169   ENABLE_NCURSES_TRUE='#'
13170   ENABLE_NCURSES_FALSE=
13171 fi
13172
13173 # Check whether --enable-ncurses or --disable-ncurses was given.
13174 if test "${enable_ncurses+set}" = set; then
13175   enableval="$enable_ncurses"
13176   case "x$enable_ncurses" in xyes|xdynamic)
13177
13178
13179 for ac_header in ncurses.h ncurses/curses.h curses.h
13180 do
13181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13183   echo "$as_me:$LINENO: checking for $ac_header" >&5
13184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 fi
13188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13190 else
13191   # Is the header compilable?
13192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13194 cat >conftest.$ac_ext <<_ACEOF
13195 #line $LINENO "configure"
13196 /* confdefs.h.  */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h.  */
13201 $ac_includes_default
13202 #include <$ac_header>
13203 _ACEOF
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206   (eval $ac_compile) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } &&
13210          { ac_try='test -s conftest.$ac_objext'
13211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212   (eval $ac_try) 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); }; }; then
13216   ac_header_compiler=yes
13217 else
13218   echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_header_compiler=no
13222 fi
13223 rm -f conftest.$ac_objext conftest.$ac_ext
13224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13225 echo "${ECHO_T}$ac_header_compiler" >&6
13226
13227 # Is the header present?
13228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13230 cat >conftest.$ac_ext <<_ACEOF
13231 #line $LINENO "configure"
13232 /* confdefs.h.  */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h.  */
13237 #include <$ac_header>
13238 _ACEOF
13239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } >/dev/null; then
13247   if test -s conftest.err; then
13248     ac_cpp_err=$ac_c_preproc_warn_flag
13249   else
13250     ac_cpp_err=
13251   fi
13252 else
13253   ac_cpp_err=yes
13254 fi
13255 if test -z "$ac_cpp_err"; then
13256   ac_header_preproc=yes
13257 else
13258   echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261   ac_header_preproc=no
13262 fi
13263 rm -f conftest.err conftest.$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13265 echo "${ECHO_T}$ac_header_preproc" >&6
13266
13267 # So?  What about this header?
13268 case $ac_header_compiler:$ac_header_preproc in
13269   yes:no )
13270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13274     (
13275       cat <<\_ASBOX
13276 ## ------------------------------------ ##
13277 ## Report this to bug-autoconf@gnu.org. ##
13278 ## ------------------------------------ ##
13279 _ASBOX
13280     ) |
13281       sed "s/^/$as_me: WARNING:     /" >&2
13282     ;;
13283   no:yes )
13284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13286     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13290     (
13291       cat <<\_ASBOX
13292 ## ------------------------------------ ##
13293 ## Report this to bug-autoconf@gnu.org. ##
13294 ## ------------------------------------ ##
13295 _ASBOX
13296     ) |
13297       sed "s/^/$as_me: WARNING:     /" >&2
13298     ;;
13299 esac
13300 echo "$as_me:$LINENO: checking for $ac_header" >&5
13301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13303   echo $ECHO_N "(cached) $ECHO_C" >&6
13304 else
13305   eval "$as_ac_Header=$ac_header_preproc"
13306 fi
13307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13309
13310 fi
13311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13312   cat >>confdefs.h <<_ACEOF
13313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13314 _ACEOF
13315
13316 fi
13317
13318 done
13319
13320
13321
13322   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
13323     *yes*);;
13324     *)  for i in /usr/include /usr/local/include; do
13325           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
13326             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
13327 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
13328             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13329             break
13330           fi
13331         done
13332         ;;
13333     esac
13334
13335     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13336 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13337 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340   ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-lncurses  $LIBS"
13342 cat >conftest.$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350 /* Override any gcc2 internal prototype to avoid an error.  */
13351 #ifdef __cplusplus
13352 extern "C"
13353 #endif
13354 /* We use char because int might match the return type of a gcc2
13355    builtin and then its argument prototype would still apply.  */
13356 char initscr ();
13357 int
13358 main ()
13359 {
13360 initscr ();
13361   ;
13362   return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13367   (eval $ac_link) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); } &&
13371          { ac_try='test -s conftest$ac_exeext'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   ac_cv_lib_ncurses_initscr=yes
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382 ac_cv_lib_ncurses_initscr=no
13383 fi
13384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13385 LIBS=$ac_check_lib_save_LIBS
13386 fi
13387 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13388 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13389 if test $ac_cv_lib_ncurses_initscr = yes; then
13390   lib_curses_opt=-lncurses
13391 else
13392         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13393 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13394 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397   ac_check_lib_save_LIBS=$LIBS
13398 LIBS="-lcurses $lib_user32_test $LIBS"
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406
13407 /* Override any gcc2 internal prototype to avoid an error.  */
13408 #ifdef __cplusplus
13409 extern "C"
13410 #endif
13411 /* We use char because int might match the return type of a gcc2
13412    builtin and then its argument prototype would still apply.  */
13413 char PDC_set_ctrl_break ();
13414 int
13415 main ()
13416 {
13417 PDC_set_ctrl_break ();
13418   ;
13419   return 0;
13420 }
13421 _ACEOF
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13424   (eval $ac_link) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -s conftest$ac_exeext'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434   ac_cv_lib_curses_PDC_set_ctrl_break=yes
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 ac_cv_lib_curses_PDC_set_ctrl_break=no
13440 fi
13441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13442 LIBS=$ac_check_lib_save_LIBS
13443 fi
13444 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13445 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13446 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13447    lib_curses_opt=-lcurses
13448
13449 cat >>confdefs.h <<\_ACEOF
13450 #define USE_PDCURSES 1
13451 _ACEOF
13452
13453             lib_user32_opt="$lib_user32_test"
13454
13455 else
13456             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13457 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13458 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-lpdcurses  $LIBS"
13463 cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13465 /* confdefs.h.  */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h.  */
13470
13471 /* Override any gcc2 internal prototype to avoid an error.  */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 /* We use char because int might match the return type of a gcc2
13476    builtin and then its argument prototype would still apply.  */
13477 char PDC_set_ctrl_break ();
13478 int
13479 main ()
13480 {
13481 PDC_set_ctrl_break ();
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488   (eval $ac_link) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -s conftest$ac_exeext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13504 fi
13505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13506 LIBS=$ac_check_lib_save_LIBS
13507 fi
13508 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13509 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13510 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13511    lib_curses_opt=-lpdcurses
13512
13513 cat >>confdefs.h <<\_ACEOF
13514 #define USE_PDCURSES 1
13515 _ACEOF
13516
13517               lib_user32_opt="$lib_user32_test"
13518
13519 else
13520               case "$target" in
13521                 *openbsd*)
13522                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13523 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13524 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527   ac_check_lib_save_LIBS=$LIBS
13528 LIBS="-lcurses  $LIBS"
13529 cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13531 /* confdefs.h.  */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h.  */
13536
13537 /* Override any gcc2 internal prototype to avoid an error.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 /* We use char because int might match the return type of a gcc2
13542    builtin and then its argument prototype would still apply.  */
13543 char initscr ();
13544 int
13545 main ()
13546 {
13547 initscr ();
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554   (eval $ac_link) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); } &&
13558          { ac_try='test -s conftest$ac_exeext'
13559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560   (eval $ac_try) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; }; then
13564   ac_cv_lib_curses_initscr=yes
13565 else
13566   echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 ac_cv_lib_curses_initscr=no
13570 fi
13571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13573 fi
13574 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13575 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13576 if test $ac_cv_lib_curses_initscr = yes; then
13577   lib_curses_opt=-lcurses
13578 else
13579    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13580 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13581                       enable_ncurses=no
13582 fi
13583
13584                   ;;
13585                 *)
13586                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13587 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13588                   enable_ncurses=no
13589                   ;;
13590               esac
13591
13592 fi
13593
13594
13595 fi
13596
13597
13598 fi
13599
13600    ;; esac
13601 fi;
13602 case "x$enable_ncurses" in
13603 xyes)
13604   cat >> confdefs.h <<EOF
13605 #define IA_NCURSES 1
13606 EOF
13607
13608
13609
13610 if true; then
13611   ENABLE_NCURSES_TRUE=
13612   ENABLE_NCURSES_FALSE='#'
13613 else
13614   ENABLE_NCURSES_TRUE='#'
13615   ENABLE_NCURSES_FALSE=
13616 fi
13617
13618    LIBS="$LIBS $lib_curses_opt"
13619     case "$target" in
13620        *-*-freebsd123*)
13621          EXTRALIBS="$EXTRALIBS -lmytinfo"
13622          ;;
13623      esac
13624     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13625
13626   ;;
13627 xdynamic)
13628   dynamic_targets="$dynamic_targets interface_n.\$(so)"
13629    n_so_libs="$lib_curses_opt"
13630     case "$target" in
13631        *-*-freebsd123*)
13632          EXTRALIBS="$EXTRALIBS -lmytinfo"
13633          ;;
13634      esac
13635   ;;
13636 *)
13637
13638   ;;
13639 esac
13640
13641
13642
13643
13644
13645 if false; then
13646   ENABLE_SLANG_TRUE=
13647   ENABLE_SLANG_FALSE='#'
13648 else
13649   ENABLE_SLANG_TRUE='#'
13650   ENABLE_SLANG_FALSE=
13651 fi
13652
13653 # Check whether --enable-slang or --disable-slang was given.
13654 if test "${enable_slang+set}" = set; then
13655   enableval="$enable_slang"
13656   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13657 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13658 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   ac_check_lib_save_LIBS=$LIBS
13662 LIBS="-lslang  $LIBS"
13663 cat >conftest.$ac_ext <<_ACEOF
13664 #line $LINENO "configure"
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670
13671 /* Override any gcc2 internal prototype to avoid an error.  */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 /* We use char because int might match the return type of a gcc2
13676    builtin and then its argument prototype would still apply.  */
13677 char SLang_init_tty ();
13678 int
13679 main ()
13680 {
13681 SLang_init_tty ();
13682   ;
13683   return 0;
13684 }
13685 _ACEOF
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13688   (eval $ac_link) 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); } &&
13692          { ac_try='test -s conftest$ac_exeext'
13693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694   (eval $ac_try) 2>&5
13695   ac_status=$?
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); }; }; then
13698   ac_cv_lib_slang_SLang_init_tty=yes
13699 else
13700   echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703 ac_cv_lib_slang_SLang_init_tty=no
13704 fi
13705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13706 LIBS=$ac_check_lib_save_LIBS
13707 fi
13708 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13709 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13710 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13711   :
13712 else
13713    enable_slang=no
13714       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13715 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13716
13717 fi
13718
13719
13720
13721 for ac_header in slang/slang.h slang.h
13722 do
13723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13725   echo "$as_me:$LINENO: checking for $ac_header" >&5
13726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13728   echo $ECHO_N "(cached) $ECHO_C" >&6
13729 fi
13730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13732 else
13733   # Is the header compilable?
13734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13737 #line $LINENO "configure"
13738 /* confdefs.h.  */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h.  */
13743 $ac_includes_default
13744 #include <$ac_header>
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748   (eval $ac_compile) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   ac_header_compiler=yes
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ac_header_compiler=no
13764 fi
13765 rm -f conftest.$ac_objext conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13767 echo "${ECHO_T}$ac_header_compiler" >&6
13768
13769 # Is the header present?
13770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13772 cat >conftest.$ac_ext <<_ACEOF
13773 #line $LINENO "configure"
13774 /* confdefs.h.  */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h.  */
13779 #include <$ac_header>
13780 _ACEOF
13781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13783   ac_status=$?
13784   grep -v '^ *+' conftest.er1 >conftest.err
13785   rm -f conftest.er1
13786   cat conftest.err >&5
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); } >/dev/null; then
13789   if test -s conftest.err; then
13790     ac_cpp_err=$ac_c_preproc_warn_flag
13791   else
13792     ac_cpp_err=
13793   fi
13794 else
13795   ac_cpp_err=yes
13796 fi
13797 if test -z "$ac_cpp_err"; then
13798   ac_header_preproc=yes
13799 else
13800   echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803   ac_header_preproc=no
13804 fi
13805 rm -f conftest.err conftest.$ac_ext
13806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13807 echo "${ECHO_T}$ac_header_preproc" >&6
13808
13809 # So?  What about this header?
13810 case $ac_header_compiler:$ac_header_preproc in
13811   yes:no )
13812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13816     (
13817       cat <<\_ASBOX
13818 ## ------------------------------------ ##
13819 ## Report this to bug-autoconf@gnu.org. ##
13820 ## ------------------------------------ ##
13821 _ASBOX
13822     ) |
13823       sed "s/^/$as_me: WARNING:     /" >&2
13824     ;;
13825   no:yes )
13826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13828     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13832     (
13833       cat <<\_ASBOX
13834 ## ------------------------------------ ##
13835 ## Report this to bug-autoconf@gnu.org. ##
13836 ## ------------------------------------ ##
13837 _ASBOX
13838     ) |
13839       sed "s/^/$as_me: WARNING:     /" >&2
13840     ;;
13841 esac
13842 echo "$as_me:$LINENO: checking for $ac_header" >&5
13843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   eval "$as_ac_Header=$ac_header_preproc"
13848 fi
13849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13851
13852 fi
13853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13854   cat >>confdefs.h <<_ACEOF
13855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13856 _ACEOF
13857
13858 fi
13859
13860 done
13861
13862    ;; esac
13863 fi;
13864 case "x$enable_slang" in
13865 xyes)
13866   cat >> confdefs.h <<EOF
13867 #define IA_SLANG 1
13868 EOF
13869
13870
13871
13872 if true; then
13873   ENABLE_SLANG_TRUE=
13874   ENABLE_SLANG_FALSE='#'
13875 else
13876   ENABLE_SLANG_TRUE='#'
13877   ENABLE_SLANG_FALSE=
13878 fi
13879
13880    LIBS="$LIBS -lslang"
13881     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13882
13883   ;;
13884 xdynamic)
13885   dynamic_targets="$dynamic_targets interface_s.\$(so)"
13886    s_so_libs="-lslang"
13887     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13888 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13889 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13890   echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892   ac_check_lib_save_LIBS=$LIBS
13893 LIBS="-ltermcap  $LIBS"
13894 cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901
13902 /* Override any gcc2 internal prototype to avoid an error.  */
13903 #ifdef __cplusplus
13904 extern "C"
13905 #endif
13906 /* We use char because int might match the return type of a gcc2
13907    builtin and then its argument prototype would still apply.  */
13908 char initscr ();
13909 int
13910 main ()
13911 {
13912 initscr ();
13913   ;
13914   return 0;
13915 }
13916 _ACEOF
13917 rm -f conftest.$ac_objext conftest$ac_exeext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13919   (eval $ac_link) 2>&5
13920   ac_status=$?
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -s conftest$ac_exeext'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; }; then
13929   ac_cv_lib_termcap_initscr=yes
13930 else
13931   echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13933
13934 ac_cv_lib_termcap_initscr=no
13935 fi
13936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13937 LIBS=$ac_check_lib_save_LIBS
13938 fi
13939 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13940 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13941 if test $ac_cv_lib_termcap_initscr = yes; then
13942   s_so_libs="$s_so_libs -ltermcap"
13943 fi
13944
13945
13946   ;;
13947 *)
13948
13949   ;;
13950 esac
13951
13952
13953
13954
13955
13956 if false; then
13957   ENABLE_MOTIF_TRUE=
13958   ENABLE_MOTIF_FALSE='#'
13959 else
13960   ENABLE_MOTIF_TRUE='#'
13961   ENABLE_MOTIF_FALSE=
13962 fi
13963
13964 # Check whether --enable-motif or --disable-motif was given.
13965 if test "${enable_motif+set}" = set; then
13966   enableval="$enable_motif"
13967   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
13968         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13969 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13970    { (exit 1); exit 1; }; }
13971     fi
13972     if test "x$have_xm" != xyes; then
13973       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13974 echo "$as_me: WARNING: Motif library is not found." >&2;}
13975       enable_motif=no
13976     fi
13977    ;; esac
13978 fi;
13979 case "x$enable_motif" in
13980 xyes)
13981   cat >> confdefs.h <<EOF
13982 #define IA_MOTIF 1
13983 EOF
13984
13985
13986
13987 if true; then
13988   ENABLE_MOTIF_TRUE=
13989   ENABLE_MOTIF_FALSE='#'
13990 else
13991   ENABLE_MOTIF_TRUE='#'
13992   ENABLE_MOTIF_FALSE=
13993 fi
13994
13995    lib_xm_opt=-lXm
13996     lib_xt_opt=-lXt
13997     lib_xext_opt=-lXext
13998     if test "x$have_xprelibs" = xyes; then
13999         lib_xprelibs_opt='-lSM -lICE'
14000     fi
14001     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
14002
14003   ;;
14004 xdynamic)
14005   dynamic_targets="$dynamic_targets interface_m.\$(so)"
14006    if test x$have_xprelibs = xyes; then
14007       m_so_libs="-lXext -lSM -lICE"
14008     fi
14009     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
14010
14011   ;;
14012 *)
14013
14014   ;;
14015 esac
14016
14017
14018
14019
14020
14021 if false; then
14022   ENABLE_TCLTK_TRUE=
14023   ENABLE_TCLTK_FALSE='#'
14024 else
14025   ENABLE_TCLTK_TRUE='#'
14026   ENABLE_TCLTK_FALSE=
14027 fi
14028
14029 # Check whether --enable-tcltk or --disable-tcltk was given.
14030 if test "${enable_tcltk+set}" = set; then
14031   enableval="$enable_tcltk"
14032   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14033         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
14034 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
14035    { (exit 1); exit 1; }; }
14036     fi
14037
14038         KEEPCPPFLAGS=$CPPFLAGS
14039     KEEPLDFLAGS=$LDFLAGS
14040     KEEPLIBS=$LIBS
14041
14042     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
14043     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
14044     LIBS="$LIBS $lib_dl_opt"
14045
14046     tcl_lib=
14047     tk_lib=
14048     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
14049       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
14050 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
14051 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
14052 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   ac_check_lib_save_LIBS=$LIBS
14056 LIBS="-l$l  $LIBS"
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064
14065 /* Override any gcc2 internal prototype to avoid an error.  */
14066 #ifdef __cplusplus
14067 extern "C"
14068 #endif
14069 /* We use char because int might match the return type of a gcc2
14070    builtin and then its argument prototype would still apply.  */
14071 char Tcl_Init ();
14072 int
14073 main ()
14074 {
14075 Tcl_Init ();
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082   (eval $ac_link) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } &&
14086          { ac_try='test -s conftest$ac_exeext'
14087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088   (eval $ac_try) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092   eval "$as_ac_Lib=yes"
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 eval "$as_ac_Lib=no"
14098 fi
14099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14101 fi
14102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14103 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14104 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14105   tcl_lib=-l$l
14106 fi
14107 ;; esac
14108     done
14109     LIBS="$LIBS $tcl_lib"
14110     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
14111       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
14112 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
14113 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
14114 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   ac_check_lib_save_LIBS=$LIBS
14118 LIBS="-l$l  $LIBS"
14119 cat >conftest.$ac_ext <<_ACEOF
14120 #line $LINENO "configure"
14121 /* confdefs.h.  */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h.  */
14126
14127 /* Override any gcc2 internal prototype to avoid an error.  */
14128 #ifdef __cplusplus
14129 extern "C"
14130 #endif
14131 /* We use char because int might match the return type of a gcc2
14132    builtin and then its argument prototype would still apply.  */
14133 char Tk_Init ();
14134 int
14135 main ()
14136 {
14137 Tk_Init ();
14138   ;
14139   return 0;
14140 }
14141 _ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144   (eval $ac_link) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -s conftest$ac_exeext'
14149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150   (eval $ac_try) 2>&5
14151   ac_status=$?
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); }; }; then
14154   eval "$as_ac_Lib=yes"
14155 else
14156   echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 eval "$as_ac_Lib=no"
14160 fi
14161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14163 fi
14164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14165 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14166 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14167   tk_lib=-l$l
14168 fi
14169 ;; esac
14170     done
14171
14172     LIBS=$KEEPLIBS
14173     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
14174       CPPFLAGS=$KEEPCPPFLAGS
14175       LDFLAGS=$KEEPLDFLAGS
14176       enable_tcltk=no
14177       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
14178 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
14179     else
14180       tcltk_dep='tclIndex'
14181     fi
14182    ;; esac
14183 fi;
14184 case "x$enable_tcltk" in
14185 xyes)
14186   cat >> confdefs.h <<EOF
14187 #define IA_TCLTK 1
14188 EOF
14189
14190
14191
14192 if true; then
14193   ENABLE_TCLTK_TRUE=
14194   ENABLE_TCLTK_FALSE='#'
14195 else
14196   ENABLE_TCLTK_TRUE='#'
14197   ENABLE_TCLTK_FALSE=
14198 fi
14199
14200    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
14201     case "$target" in
14202       *-*-bsdi*)
14203         EXTRALIBS="$EXTRALIBS -lipc"
14204         ;;
14205     esac
14206     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
14207
14208   ;;
14209 xdynamic)
14210   dynamic_targets="$dynamic_targets interface_k.\$(so)"
14211    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
14212     case "$target" in
14213       *-*-bsdi*)
14214         k_so_libs="$k_so_libs -lipc"
14215         ;;
14216     esac
14217     k_so_libs="$k_so_libs -lX11 -lm"
14218
14219   ;;
14220 *)
14221
14222   ;;
14223 esac
14224
14225
14226
14227
14228 if test "x$enable_tcltk" = "xdynamic"; then
14229   ENABLE_DYNAMIC_TCLTK_TRUE=
14230   ENABLE_DYNAMIC_TCLTK_FALSE='#'
14231 else
14232   ENABLE_DYNAMIC_TCLTK_TRUE='#'
14233   ENABLE_DYNAMIC_TCLTK_FALSE=
14234 fi
14235
14236
14237
14238
14239 if false; then
14240   ENABLE_EMACS_TRUE=
14241   ENABLE_EMACS_FALSE='#'
14242 else
14243   ENABLE_EMACS_TRUE='#'
14244   ENABLE_EMACS_FALSE=
14245 fi
14246
14247 # Check whether --enable-emacs or --disable-emacs was given.
14248 if test "${enable_emacs+set}" = set; then
14249   enableval="$enable_emacs"
14250   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
14251 fi;
14252 case "x$enable_emacs" in
14253 xyes)
14254   cat >> confdefs.h <<EOF
14255 #define IA_EMACS 1
14256 EOF
14257
14258
14259
14260 if true; then
14261   ENABLE_EMACS_TRUE=
14262   ENABLE_EMACS_FALSE='#'
14263 else
14264   ENABLE_EMACS_TRUE='#'
14265   ENABLE_EMACS_FALSE=
14266 fi
14267
14268    ELFILES="$ELFILES timidity.el"
14269     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
14270
14271   ;;
14272 xdynamic)
14273   dynamic_targets="$dynamic_targets interface_e.\$(so)"
14274    ELFILES="$ELFILES timidity.el"
14275   ;;
14276 *)
14277
14278   ;;
14279 esac
14280
14281
14282
14283
14284
14285 if false; then
14286   ENABLE_VT100_TRUE=
14287   ENABLE_VT100_FALSE='#'
14288 else
14289   ENABLE_VT100_TRUE='#'
14290   ENABLE_VT100_FALSE=
14291 fi
14292
14293 # Check whether --enable-vt100 or --disable-vt100 was given.
14294 if test "${enable_vt100+set}" = set; then
14295   enableval="$enable_vt100"
14296   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
14297 fi;
14298 case "x$enable_vt100" in
14299 xyes)
14300   cat >> confdefs.h <<EOF
14301 #define IA_VT100 1
14302 EOF
14303
14304
14305
14306 if true; then
14307   ENABLE_VT100_TRUE=
14308   ENABLE_VT100_FALSE='#'
14309 else
14310   ENABLE_VT100_TRUE='#'
14311   ENABLE_VT100_FALSE=
14312 fi
14313
14314    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
14315   ;;
14316 xdynamic)
14317   dynamic_targets="$dynamic_targets interface_T.\$(so)"
14318
14319   ;;
14320 *)
14321
14322   ;;
14323 esac
14324
14325
14326
14327
14328
14329 if false; then
14330   ENABLE_XAW_TRUE=
14331   ENABLE_XAW_FALSE='#'
14332 else
14333   ENABLE_XAW_TRUE='#'
14334   ENABLE_XAW_FALSE=
14335 fi
14336
14337 # Check whether --enable-xaw or --disable-xaw was given.
14338 if test "${enable_xaw+set}" = set; then
14339   enableval="$enable_xaw"
14340   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14341         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14342 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14343    { (exit 1); exit 1; }; }
14344     fi
14345     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14346       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14347 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14348       enable_xaw=no
14349     fi  ;; esac
14350 fi;
14351 case "x$enable_xaw" in
14352 xyes)
14353   cat >> confdefs.h <<EOF
14354 #define IA_XAW 1
14355 EOF
14356
14357
14358
14359 if true; then
14360   ENABLE_XAW_TRUE=
14361   ENABLE_XAW_FALSE='#'
14362 else
14363   ENABLE_XAW_TRUE='#'
14364   ENABLE_XAW_FALSE=
14365 fi
14366
14367        if test "x$have_xext" = xyes; then
14368       lib_xext_opt=-lXext
14369     fi
14370     if test "x$have_xprelibs" = xyes; then
14371       lib_xprelibs_opt='-lSM -lICE'
14372     fi
14373     lib_xmu_opt=-lXmu
14374     lib_xt_opt=-lXt
14375     if test "x$have_xaw" = x3d; then
14376
14377 cat >>confdefs.h <<\_ACEOF
14378 #define XAW3D 1
14379 _ACEOF
14380
14381       lib_xaw_opt=-lXaw3d
14382     else
14383       lib_xaw_opt=-lXaw
14384     fi
14385     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14386
14387   ;;
14388 xdynamic)
14389   dynamic_targets="$dynamic_targets interface_a.\$(so)"
14390    if test "x$have_xext" = xyes; then
14391       a_so_libs="-lXext -lX11"
14392     else
14393       a_so_libs="-lX11"
14394     fi
14395     case "$target" in
14396       *darwin*)
14397         a_so_libs="$a_so_libs -lcc_dynamic"
14398         ;;
14399     esac
14400     if test "x$have_xprelibs" = xyes; then
14401       a_so_libs="-lSM -lICE $a_so_libs"
14402     fi
14403     if test "x$have_xaw" = xyes; then
14404       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14405     elif test "x$have_xaw" = x3d; then
14406
14407 cat >>confdefs.h <<\_ACEOF
14408 #define XAW3D 1
14409 _ACEOF
14410
14411       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14412     fi
14413     a_so_libs="$ldflags_x_opt $a_so_libs"
14414
14415   ;;
14416 *)
14417
14418   ;;
14419 esac
14420
14421
14422
14423
14424 if test "x$enable_xaw" = "xdynamic"; then
14425   ENABLE_DYNAMIC_XAW_TRUE=
14426   ENABLE_DYNAMIC_XAW_FALSE='#'
14427 else
14428   ENABLE_DYNAMIC_XAW_TRUE='#'
14429   ENABLE_DYNAMIC_XAW_FALSE=
14430 fi
14431
14432
14433
14434
14435 if false; then
14436   ENABLE_XSKIN_TRUE=
14437   ENABLE_XSKIN_FALSE='#'
14438 else
14439   ENABLE_XSKIN_TRUE='#'
14440   ENABLE_XSKIN_FALSE=
14441 fi
14442
14443 # Check whether --enable-xskin or --disable-xskin was given.
14444 if test "${enable_xskin+set}" = set; then
14445   enableval="$enable_xskin"
14446   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14447         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14448 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14449    { (exit 1); exit 1; }; }
14450     fi
14451    ;; esac
14452 fi;
14453 case "x$enable_xskin" in
14454 xyes)
14455   cat >> confdefs.h <<EOF
14456 #define IA_XSKIN 1
14457 EOF
14458
14459
14460
14461 if true; then
14462   ENABLE_XSKIN_TRUE=
14463   ENABLE_XSKIN_FALSE='#'
14464 else
14465   ENABLE_XSKIN_TRUE='#'
14466   ENABLE_XSKIN_FALSE=
14467 fi
14468
14469    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14470   ;;
14471 xdynamic)
14472   dynamic_targets="$dynamic_targets interface_i.\$(so)"
14473    i_so_libs="$ldflags_x_opt -lX11"
14474   ;;
14475 *)
14476
14477   ;;
14478 esac
14479
14480
14481
14482
14483
14484 if false; then
14485   ENABLE_GTK_TRUE=
14486   ENABLE_GTK_FALSE='#'
14487 else
14488   ENABLE_GTK_TRUE='#'
14489   ENABLE_GTK_FALSE=
14490 fi
14491
14492 # Check whether --enable-gtk or --disable-gtk was given.
14493 if test "${enable_gtk+set}" = set; then
14494   enableval="$enable_gtk"
14495   case "x$enable_gtk" in xyes|xdynamic)
14496 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14497 if test "${with_gtk_prefix+set}" = set; then
14498   withval="$with_gtk_prefix"
14499   gtk_config_prefix="$withval"
14500 else
14501   gtk_config_prefix=""
14502 fi;
14503
14504 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14505 if test "${with_gtk_exec_prefix+set}" = set; then
14506   withval="$with_gtk_exec_prefix"
14507   gtk_config_exec_prefix="$withval"
14508 else
14509   gtk_config_exec_prefix=""
14510 fi;
14511 # Check whether --enable-gtktest or --disable-gtktest was given.
14512 if test "${enable_gtktest+set}" = set; then
14513   enableval="$enable_gtktest"
14514
14515 else
14516   enable_gtktest=yes
14517 fi;
14518
14519   for module in .
14520   do
14521       case "$module" in
14522          gthread)
14523              gtk_config_args="$gtk_config_args gthread"
14524          ;;
14525       esac
14526   done
14527
14528   if test x$gtk_config_exec_prefix != x ; then
14529      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14530      if test x${GTK_CONFIG+set} != xset ; then
14531         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14532      fi
14533   fi
14534   if test x$gtk_config_prefix != x ; then
14535      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14536      if test x${GTK_CONFIG+set} != xset ; then
14537         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14538      fi
14539   fi
14540
14541   # Extract the first word of "gtk-config", so it can be a program name with args.
14542 set dummy gtk-config; ac_word=$2
14543 echo "$as_me:$LINENO: checking for $ac_word" >&5
14544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14545 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   case $GTK_CONFIG in
14549   [\\/]* | ?:[\\/]*)
14550   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14551   ;;
14552   *)
14553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14555 do
14556   IFS=$as_save_IFS
14557   test -z "$as_dir" && as_dir=.
14558   for ac_exec_ext in '' $ac_executable_extensions; do
14559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14560     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14562     break 2
14563   fi
14564 done
14565 done
14566
14567   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14568   ;;
14569 esac
14570 fi
14571 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14572
14573 if test -n "$GTK_CONFIG"; then
14574   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14575 echo "${ECHO_T}$GTK_CONFIG" >&6
14576 else
14577   echo "$as_me:$LINENO: result: no" >&5
14578 echo "${ECHO_T}no" >&6
14579 fi
14580
14581   min_gtk_version=1.1.3
14582   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14583 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14584   no_gtk=""
14585   if test "$GTK_CONFIG" = "no" ; then
14586     no_gtk=yes
14587   else
14588     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14589     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14590     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14591            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14592     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14593            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14594     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14595            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14596     if test "x$enable_gtktest" = "xyes" ; then
14597       ac_save_CFLAGS="$CFLAGS"
14598       ac_save_LIBS="$LIBS"
14599       CFLAGS="$CFLAGS $GTK_CFLAGS"
14600       LIBS="$GTK_LIBS $LIBS"
14601       rm -f conf.gtktest
14602       if test "$cross_compiling" = yes; then
14603   echo $ac_n "cross compiling; assumed OK... $ac_c"
14604 else
14605   cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612
14613 #include <gtk/gtk.h>
14614 #include <stdio.h>
14615 #include <stdlib.h>
14616
14617 int
14618 main ()
14619 {
14620   int major, minor, micro;
14621   char *tmp_version;
14622
14623   system ("touch conf.gtktest");
14624
14625   /* HP/UX 9 (%@#!) writes to sscanf strings */
14626   tmp_version = g_strdup("$min_gtk_version");
14627   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14628      printf("%s, bad version string\n", "$min_gtk_version");
14629      exit(1);
14630    }
14631
14632   if ((gtk_major_version != $gtk_config_major_version) ||
14633       (gtk_minor_version != $gtk_config_minor_version) ||
14634       (gtk_micro_version != $gtk_config_micro_version))
14635     {
14636       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14637              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14638              gtk_major_version, gtk_minor_version, gtk_micro_version);
14639       printf ("*** was found! If gtk-config was correct, then it is best\n");
14640       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14641       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14642       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14643       printf("*** required on your system.\n");
14644       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14645       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14646       printf("*** before re-running configure\n");
14647     }
14648 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14649   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14650            (gtk_minor_version != GTK_MINOR_VERSION) ||
14651            (gtk_micro_version != GTK_MICRO_VERSION))
14652     {
14653       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14654              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14655       printf("*** library (version %d.%d.%d)\n",
14656              gtk_major_version, gtk_minor_version, gtk_micro_version);
14657     }
14658 #endif /* defined (GTK_MAJOR_VERSION) ... */
14659   else
14660     {
14661       if ((gtk_major_version > major) ||
14662         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14663         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14664       {
14665         return 0;
14666        }
14667      else
14668       {
14669         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14670                gtk_major_version, gtk_minor_version, gtk_micro_version);
14671         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14672                major, minor, micro);
14673         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14674         printf("***\n");
14675         printf("*** If you have already installed a sufficiently new version, this error\n");
14676         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14677         printf("*** being found. The easiest way to fix this is to remove the old version\n");
14678         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14679         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14680         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14681         printf("*** so that the correct libraries are found at run-time))\n");
14682       }
14683     }
14684   return 1;
14685 }
14686
14687 _ACEOF
14688 rm -f conftest$ac_exeext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690   (eval $ac_link) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695   (eval $ac_try) 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); }; }; then
14699   :
14700 else
14701   echo "$as_me: program exited with status $ac_status" >&5
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14704
14705 ( exit $ac_status )
14706 no_gtk=yes
14707 fi
14708 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14709 fi
14710        CFLAGS="$ac_save_CFLAGS"
14711        LIBS="$ac_save_LIBS"
14712      fi
14713   fi
14714   if test "x$no_gtk" = x ; then
14715      echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14717      :
14718   else
14719      echo "$as_me:$LINENO: result: no" >&5
14720 echo "${ECHO_T}no" >&6
14721      if test "$GTK_CONFIG" = "no" ; then
14722        echo "*** The gtk-config script installed by GTK could not be found"
14723        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14724        echo "*** your path, or set the GTK_CONFIG environment variable to the"
14725        echo "*** full path to gtk-config."
14726      else
14727        if test -f conf.gtktest ; then
14728         :
14729        else
14730           echo "*** Could not run GTK test program, checking why..."
14731           CFLAGS="$CFLAGS $GTK_CFLAGS"
14732           LIBS="$LIBS $GTK_LIBS"
14733           cat >conftest.$ac_ext <<_ACEOF
14734 #line $LINENO "configure"
14735 /* confdefs.h.  */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h.  */
14740
14741 #include <gtk/gtk.h>
14742 #include <stdio.h>
14743
14744 int
14745 main ()
14746 {
14747  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754   (eval $ac_link) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -s conftest$ac_exeext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764    echo "*** The test program compiled, but did not run. This usually means"
14765           echo "*** that the run-time linker is not finding GTK or finding the wrong"
14766           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14767           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14768           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14769           echo "*** is required on your system"
14770           echo "***"
14771           echo "*** If you have an old version installed, it is best to remove it, although"
14772           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14773           echo "***"
14774           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14775           echo "*** came with the system with the command"
14776           echo "***"
14777           echo "***    rpm --erase --nodeps gtk gtk-devel"
14778 else
14779   echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782  echo "*** The test program failed to compile or link. See the file config.log for the"
14783           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14784           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14785           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14786 fi
14787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14788           CFLAGS="$ac_save_CFLAGS"
14789           LIBS="$ac_save_LIBS"
14790        fi
14791      fi
14792      GTK_CFLAGS=""
14793      GTK_LIBS=""
14794      enable_gtk=no
14795   fi
14796
14797
14798   rm -f conf.gtktest
14799   ;; esac
14800 fi;
14801 case "x$enable_gtk" in
14802 xyes)
14803   cat >> confdefs.h <<EOF
14804 #define IA_GTK 1
14805 EOF
14806
14807
14808
14809 if true; then
14810   ENABLE_GTK_TRUE=
14811   ENABLE_GTK_FALSE='#'
14812 else
14813   ENABLE_GTK_TRUE='#'
14814   ENABLE_GTK_FALSE=
14815 fi
14816
14817    LIBS="$LIBS $GTK_LIBS"
14818     for f in $GTK_CFLAGS; do
14819     case ".$f" in
14820         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14821         *)              CFLAGS="$CPPFLAGS $f" ;;
14822     esac
14823 done
14824
14825     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14826
14827   ;;
14828 xdynamic)
14829   dynamic_targets="$dynamic_targets interface_g.\$(so)"
14830    if test "x$GCC" = xyes; then
14831                 for i in $GTK_LIBS; do
14832             case "x$i" in
14833                 x-rdynamic) ;;
14834                 *) g_so_libs="$g_so_libs $i" ;;
14835             esac
14836         done
14837     else
14838         g_so_libs="$GTK_LIBS"
14839     fi
14840     for f in $GTK_CFLAGS; do
14841     case ".$f" in
14842         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14843         *)              CFLAGS="$CPPFLAGS $f" ;;
14844     esac
14845 done
14846
14847   ;;
14848 *)
14849
14850   ;;
14851 esac
14852
14853
14854
14855
14856
14857 if false; then
14858   ENABLE_SERVER_TRUE=
14859   ENABLE_SERVER_FALSE='#'
14860 else
14861   ENABLE_SERVER_TRUE='#'
14862   ENABLE_SERVER_FALSE=
14863 fi
14864
14865 # Check whether --enable-server or --disable-server was given.
14866 if test "${enable_server+set}" = set; then
14867   enableval="$enable_server"
14868   case "x$enable_server" in xyes|xdynamic)  ;; esac
14869 fi;
14870 case "x$enable_server" in
14871 xyes)
14872   cat >> confdefs.h <<EOF
14873 #define IA_SERVER 1
14874 EOF
14875
14876
14877
14878 if true; then
14879   ENABLE_SERVER_TRUE=
14880   ENABLE_SERVER_FALSE='#'
14881 else
14882   ENABLE_SERVER_TRUE='#'
14883   ENABLE_SERVER_FALSE=
14884 fi
14885
14886    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14887
14888 for ac_header in sys/soundcard.h
14889 do
14890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14892   echo "$as_me:$LINENO: checking for $ac_header" >&5
14893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 fi
14897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14899 else
14900   # Is the header compilable?
14901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14903 cat >conftest.$ac_ext <<_ACEOF
14904 #line $LINENO "configure"
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910 $ac_includes_default
14911 #include <$ac_header>
14912 _ACEOF
14913 rm -f conftest.$ac_objext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14915   (eval $ac_compile) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } &&
14919          { ac_try='test -s conftest.$ac_objext'
14920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921   (eval $ac_try) 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; }; then
14925   ac_header_compiler=yes
14926 else
14927   echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.$ac_ext >&5
14929
14930 ac_header_compiler=no
14931 fi
14932 rm -f conftest.$ac_objext conftest.$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14934 echo "${ECHO_T}$ac_header_compiler" >&6
14935
14936 # Is the header present?
14937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14939 cat >conftest.$ac_ext <<_ACEOF
14940 #line $LINENO "configure"
14941 /* confdefs.h.  */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h.  */
14946 #include <$ac_header>
14947 _ACEOF
14948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14950   ac_status=$?
14951   grep -v '^ *+' conftest.er1 >conftest.err
14952   rm -f conftest.er1
14953   cat conftest.err >&5
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } >/dev/null; then
14956   if test -s conftest.err; then
14957     ac_cpp_err=$ac_c_preproc_warn_flag
14958   else
14959     ac_cpp_err=
14960   fi
14961 else
14962   ac_cpp_err=yes
14963 fi
14964 if test -z "$ac_cpp_err"; then
14965   ac_header_preproc=yes
14966 else
14967   echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970   ac_header_preproc=no
14971 fi
14972 rm -f conftest.err conftest.$ac_ext
14973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14974 echo "${ECHO_T}$ac_header_preproc" >&6
14975
14976 # So?  What about this header?
14977 case $ac_header_compiler:$ac_header_preproc in
14978   yes:no )
14979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14983     (
14984       cat <<\_ASBOX
14985 ## ------------------------------------ ##
14986 ## Report this to bug-autoconf@gnu.org. ##
14987 ## ------------------------------------ ##
14988 _ASBOX
14989     ) |
14990       sed "s/^/$as_me: WARNING:     /" >&2
14991     ;;
14992   no:yes )
14993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14995     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14999     (
15000       cat <<\_ASBOX
15001 ## ------------------------------------ ##
15002 ## Report this to bug-autoconf@gnu.org. ##
15003 ## ------------------------------------ ##
15004 _ASBOX
15005     ) |
15006       sed "s/^/$as_me: WARNING:     /" >&2
15007     ;;
15008 esac
15009 echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014   eval "$as_ac_Header=$ac_header_preproc"
15015 fi
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15018
15019 fi
15020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15021   cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15023 _ACEOF
15024
15025 fi
15026
15027 done
15028
15029
15030   ;;
15031 xdynamic)
15032   dynamic_targets="$dynamic_targets interface_r.\$(so)"
15033
15034   ;;
15035 *)
15036
15037   ;;
15038 esac
15039
15040
15041
15042
15043
15044 if false; then
15045   ENABLE_ALSASEQ_TRUE=
15046   ENABLE_ALSASEQ_FALSE='#'
15047 else
15048   ENABLE_ALSASEQ_TRUE='#'
15049   ENABLE_ALSASEQ_FALSE=
15050 fi
15051
15052 # Check whether --enable-alsaseq or --disable-alsaseq was given.
15053 if test "${enable_alsaseq+set}" = set; then
15054   enableval="$enable_alsaseq"
15055   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
15056 fi;
15057 case "x$enable_alsaseq" in
15058 xyes)
15059   cat >> confdefs.h <<EOF
15060 #define IA_ALSASEQ 1
15061 EOF
15062
15063
15064
15065 if true; then
15066   ENABLE_ALSASEQ_TRUE=
15067   ENABLE_ALSASEQ_FALSE='#'
15068 else
15069   ENABLE_ALSASEQ_TRUE='#'
15070   ENABLE_ALSASEQ_FALSE=
15071 fi
15072
15073    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
15074
15075 for ac_header in sys/asoundlib.h
15076 do
15077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15079   echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 fi
15084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15086 else
15087   # Is the header compilable?
15088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097 $ac_includes_default
15098 #include <$ac_header>
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102   (eval $ac_compile) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } &&
15106          { ac_try='test -s conftest.$ac_objext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_header_compiler=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_header_compiler=no
15118 fi
15119 rm -f conftest.$ac_objext conftest.$ac_ext
15120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15121 echo "${ECHO_T}$ac_header_compiler" >&6
15122
15123 # Is the header present?
15124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15126 cat >conftest.$ac_ext <<_ACEOF
15127 #line $LINENO "configure"
15128 /* confdefs.h.  */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h.  */
15133 #include <$ac_header>
15134 _ACEOF
15135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15137   ac_status=$?
15138   grep -v '^ *+' conftest.er1 >conftest.err
15139   rm -f conftest.er1
15140   cat conftest.err >&5
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } >/dev/null; then
15143   if test -s conftest.err; then
15144     ac_cpp_err=$ac_c_preproc_warn_flag
15145   else
15146     ac_cpp_err=
15147   fi
15148 else
15149   ac_cpp_err=yes
15150 fi
15151 if test -z "$ac_cpp_err"; then
15152   ac_header_preproc=yes
15153 else
15154   echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15156
15157   ac_header_preproc=no
15158 fi
15159 rm -f conftest.err conftest.$ac_ext
15160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161 echo "${ECHO_T}$ac_header_preproc" >&6
15162
15163 # So?  What about this header?
15164 case $ac_header_compiler:$ac_header_preproc in
15165   yes:no )
15166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15170     (
15171       cat <<\_ASBOX
15172 ## ------------------------------------ ##
15173 ## Report this to bug-autoconf@gnu.org. ##
15174 ## ------------------------------------ ##
15175 _ASBOX
15176     ) |
15177       sed "s/^/$as_me: WARNING:     /" >&2
15178     ;;
15179   no:yes )
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15186     (
15187       cat <<\_ASBOX
15188 ## ------------------------------------ ##
15189 ## Report this to bug-autoconf@gnu.org. ##
15190 ## ------------------------------------ ##
15191 _ASBOX
15192     ) |
15193       sed "s/^/$as_me: WARNING:     /" >&2
15194     ;;
15195 esac
15196 echo "$as_me:$LINENO: checking for $ac_header" >&5
15197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   eval "$as_ac_Header=$ac_header_preproc"
15202 fi
15203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15205
15206 fi
15207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15208   cat >>confdefs.h <<_ACEOF
15209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15210 _ACEOF
15211
15212 fi
15213
15214 done
15215
15216
15217   ;;
15218 xdynamic)
15219   dynamic_targets="$dynamic_targets interface_A.\$(so)"
15220
15221   ;;
15222 *)
15223
15224   ;;
15225 esac
15226
15227
15228
15229
15230
15231 if false; then
15232   ENABLE_WINSYN_TRUE=
15233   ENABLE_WINSYN_FALSE='#'
15234 else
15235   ENABLE_WINSYN_TRUE='#'
15236   ENABLE_WINSYN_FALSE=
15237 fi
15238
15239 # Check whether --enable-winsyn or --disable-winsyn was given.
15240 if test "${enable_winsyn+set}" = set; then
15241   enableval="$enable_winsyn"
15242   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
15243 fi;
15244 case "x$enable_winsyn" in
15245 xyes)
15246   cat >> confdefs.h <<EOF
15247 #define IA_WINSYN 1
15248 EOF
15249
15250
15251
15252 if true; then
15253   ENABLE_WINSYN_TRUE=
15254   ENABLE_WINSYN_FALSE='#'
15255 else
15256   ENABLE_WINSYN_TRUE='#'
15257   ENABLE_WINSYN_FALSE=
15258 fi
15259
15260    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
15261   ;;
15262 xdynamic)
15263   dynamic_targets="$dynamic_targets interface_W.\$(so)"
15264
15265   ;;
15266 *)
15267
15268   ;;
15269 esac
15270
15271
15272
15273
15274
15275 if false; then
15276   ENABLE_PORTMIDISYN_TRUE=
15277   ENABLE_PORTMIDISYN_FALSE='#'
15278 else
15279   ENABLE_PORTMIDISYN_TRUE='#'
15280   ENABLE_PORTMIDISYN_FALSE=
15281 fi
15282
15283 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
15284 if test "${enable_portmidisyn+set}" = set; then
15285   enableval="$enable_portmidisyn"
15286   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
15287 fi;
15288 case "x$enable_portmidisyn" in
15289 xyes)
15290   cat >> confdefs.h <<EOF
15291 #define IA_PORTMIDISYN 1
15292 EOF
15293
15294
15295
15296 if true; then
15297   ENABLE_PORTMIDISYN_TRUE=
15298   ENABLE_PORTMIDISYN_FALSE='#'
15299 else
15300   ENABLE_PORTMIDISYN_TRUE='#'
15301   ENABLE_PORTMIDISYN_FALSE=
15302 fi
15303
15304    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
15305   ;;
15306 xdynamic)
15307   dynamic_targets="$dynamic_targets interface_P.\$(so)"
15308
15309   ;;
15310 *)
15311
15312   ;;
15313 esac
15314
15315
15316
15317
15318
15319 if false; then
15320   ENABLE_W32G_SYN_TRUE=
15321   ENABLE_W32G_SYN_FALSE='#'
15322 else
15323   ENABLE_W32G_SYN_TRUE='#'
15324   ENABLE_W32G_SYN_FALSE=
15325 fi
15326
15327 # Check whether --enable-winsyng or --disable-winsyng was given.
15328 if test "${enable_winsyng+set}" = set; then
15329   enableval="$enable_winsyng"
15330   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
15331 fi;
15332 case "x$enable_winsyng" in
15333 xyes)
15334   cat >> confdefs.h <<EOF
15335 #define IA_W32G_SYN 1
15336 EOF
15337
15338
15339
15340 if true; then
15341   ENABLE_W32G_SYN_TRUE=
15342   ENABLE_W32G_SYN_FALSE='#'
15343 else
15344   ENABLE_W32G_SYN_TRUE='#'
15345   ENABLE_W32G_SYN_FALSE=
15346 fi
15347
15348    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15349     lib_user32_opt='-luser32'
15350     LDFLAGS="-mwindows $LDFLAGS"
15351     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"
15352
15353   ;;
15354 xdynamic)
15355   dynamic_targets="$dynamic_targets interface_W.\$(so)"
15356
15357   ;;
15358 *)
15359
15360   ;;
15361 esac
15362
15363
15364
15365
15366
15367
15368 if false; then
15369   ENABLE_W32GUI_TRUE=
15370   ENABLE_W32GUI_FALSE='#'
15371 else
15372   ENABLE_W32GUI_TRUE='#'
15373   ENABLE_W32GUI_FALSE=
15374 fi
15375
15376 # Check whether --enable-w32gui or --disable-w32gui was given.
15377 if test "${enable_w32gui+set}" = set; then
15378   enableval="$enable_w32gui"
15379   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
15380 fi;
15381 case "x$enable_w32gui" in
15382 xyes)
15383   cat >> confdefs.h <<EOF
15384 #define IA_W32GUI 1
15385 EOF
15386
15387
15388
15389 if true; then
15390   ENABLE_W32GUI_TRUE=
15391   ENABLE_W32GUI_FALSE='#'
15392 else
15393   ENABLE_W32GUI_TRUE='#'
15394   ENABLE_W32GUI_FALSE=
15395 fi
15396
15397    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15398     lib_user32_opt='-luser32'
15399     LDFLAGS="-mwindows $LDFLAGS"
15400     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"
15401
15402   ;;
15403 xdynamic)
15404   dynamic_targets="$dynamic_targets interface_w.\$(so)"
15405
15406   ;;
15407 *)
15408
15409   ;;
15410 esac
15411
15412
15413
15414
15415
15416 if false; then
15417   ENABLE_PLUGIN_TRUE=
15418   ENABLE_PLUGIN_FALSE='#'
15419 else
15420   ENABLE_PLUGIN_TRUE='#'
15421   ENABLE_PLUGIN_FALSE=
15422 fi
15423
15424 # Check whether --enable-ump or --disable-ump was given.
15425 if test "${enable_ump+set}" = set; then
15426   enableval="$enable_ump"
15427   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
15428         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
15429 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
15430    { (exit 1); exit 1; }; }
15431     fi
15432     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15433   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15434 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15435 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15436   echo $ECHO_N "(cached) $ECHO_C" >&6
15437 fi
15438 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15439 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15440 else
15441   # Is the header compilable?
15442 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15443 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15444 cat >conftest.$ac_ext <<_ACEOF
15445 #line $LINENO "configure"
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 $ac_includes_default
15452 #include <X11/xpm.h>
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456   (eval $ac_compile) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } &&
15460          { ac_try='test -s conftest.$ac_objext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466   ac_header_compiler=yes
15467 else
15468   echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15470
15471 ac_header_compiler=no
15472 fi
15473 rm -f conftest.$ac_objext conftest.$ac_ext
15474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15475 echo "${ECHO_T}$ac_header_compiler" >&6
15476
15477 # Is the header present?
15478 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15479 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15480 cat >conftest.$ac_ext <<_ACEOF
15481 #line $LINENO "configure"
15482 /* confdefs.h.  */
15483 _ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h.  */
15487 #include <X11/xpm.h>
15488 _ACEOF
15489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15491   ac_status=$?
15492   grep -v '^ *+' conftest.er1 >conftest.err
15493   rm -f conftest.er1
15494   cat conftest.err >&5
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } >/dev/null; then
15497   if test -s conftest.err; then
15498     ac_cpp_err=$ac_c_preproc_warn_flag
15499   else
15500     ac_cpp_err=
15501   fi
15502 else
15503   ac_cpp_err=yes
15504 fi
15505 if test -z "$ac_cpp_err"; then
15506   ac_header_preproc=yes
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511   ac_header_preproc=no
15512 fi
15513 rm -f conftest.err conftest.$ac_ext
15514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15515 echo "${ECHO_T}$ac_header_preproc" >&6
15516
15517 # So?  What about this header?
15518 case $ac_header_compiler:$ac_header_preproc in
15519   yes:no )
15520     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15521 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15523 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15524     (
15525       cat <<\_ASBOX
15526 ## ------------------------------------ ##
15527 ## Report this to bug-autoconf@gnu.org. ##
15528 ## ------------------------------------ ##
15529 _ASBOX
15530     ) |
15531       sed "s/^/$as_me: WARNING:     /" >&2
15532     ;;
15533   no:yes )
15534     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15535 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15536     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15537 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15538     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15539 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15540     (
15541       cat <<\_ASBOX
15542 ## ------------------------------------ ##
15543 ## Report this to bug-autoconf@gnu.org. ##
15544 ## ------------------------------------ ##
15545 _ASBOX
15546     ) |
15547       sed "s/^/$as_me: WARNING:     /" >&2
15548     ;;
15549 esac
15550 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15551 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15552 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15553   echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555   ac_cv_header_X11_xpm_h=$ac_header_preproc
15556 fi
15557 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15558 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15559
15560 fi
15561 if test $ac_cv_header_X11_xpm_h = yes; then
15562   :
15563 else
15564   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15565 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15566    { (exit 1); exit 1; }; }
15567 fi
15568
15569
15570     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15571 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15572 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575   ac_check_lib_save_LIBS=$LIBS
15576 LIBS="-lXpm  $LIBS"
15577 cat >conftest.$ac_ext <<_ACEOF
15578 #line $LINENO "configure"
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584
15585 /* Override any gcc2 internal prototype to avoid an error.  */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 /* We use char because int might match the return type of a gcc2
15590    builtin and then its argument prototype would still apply.  */
15591 char XpmCreatePixmapFromData ();
15592 int
15593 main ()
15594 {
15595 XpmCreatePixmapFromData ();
15596   ;
15597   return 0;
15598 }
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602   (eval $ac_link) 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } &&
15606          { ac_try='test -s conftest$ac_exeext'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
15613 else
15614   echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15616
15617 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
15618 fi
15619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15620 LIBS=$ac_check_lib_save_LIBS
15621 fi
15622 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
15623 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15624 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15625   :
15626 else
15627   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15628 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15629    { (exit 1); exit 1; }; }
15630 fi
15631
15632     if test "x$have_xext" = xyes; then
15633       lib_xext_opt=-lXext
15634     fi
15635     if test "x$have_xprelibs" = xyes; then
15636       lib_xprelibs_opt='-lSM -lICE'
15637     fi
15638     lib_xmu_opt=-lXmu
15639     lib_xt_opt=-lXt
15640    ;; esac
15641 fi;
15642 case "x$enable_ump" in
15643 xyes)
15644   cat >> confdefs.h <<EOF
15645 #define IA_PLUGIN 1
15646 EOF
15647
15648
15649
15650 if true; then
15651   ENABLE_PLUGIN_TRUE=
15652   ENABLE_PLUGIN_FALSE='#'
15653 else
15654   ENABLE_PLUGIN_TRUE='#'
15655   ENABLE_PLUGIN_FALSE=
15656 fi
15657
15658
15659   ;;
15660 xdynamic)
15661   dynamic_targets="$dynamic_targets interface_p.\$(so)"
15662
15663   ;;
15664 *)
15665
15666   ;;
15667 esac
15668
15669
15670
15671
15672 # Check whether --enable-offix or --disable-offix was given.
15673 if test "${enable_offix+set}" = set; then
15674   enableval="$enable_offix"
15675    if test "$enableval" = "yes"; then
15676       KEEPCPPFLAGS=$CPPFLAGS
15677       KEEPLIBS=$LIBS
15678       KEEPLDFLAGS=$LDFLAGS
15679       CPPFLAGS="$CPPFLAGS $offix_include_dir"
15680       LDFLAGS="$LDFLAGS $offix_lib_dir"
15681       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15682       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15683 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15684 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15685   echo $ECHO_N "(cached) $ECHO_C" >&6
15686 else
15687   ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-lDnd  $LIBS"
15689 cat >conftest.$ac_ext <<_ACEOF
15690 #line $LINENO "configure"
15691 /* confdefs.h.  */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h.  */
15696
15697 /* Override any gcc2 internal prototype to avoid an error.  */
15698 #ifdef __cplusplus
15699 extern "C"
15700 #endif
15701 /* We use char because int might match the return type of a gcc2
15702    builtin and then its argument prototype would still apply.  */
15703 char DndInitialize ();
15704 int
15705 main ()
15706 {
15707 DndInitialize ();
15708   ;
15709   return 0;
15710 }
15711 _ACEOF
15712 rm -f conftest.$ac_objext conftest$ac_exeext
15713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15714   (eval $ac_link) 2>&5
15715   ac_status=$?
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } &&
15718          { ac_try='test -s conftest$ac_exeext'
15719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720   (eval $ac_try) 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); }; }; then
15724   ac_cv_lib_Dnd_DndInitialize=yes
15725 else
15726   echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 ac_cv_lib_Dnd_DndInitialize=no
15730 fi
15731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15732 LIBS=$ac_check_lib_save_LIBS
15733 fi
15734 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15735 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15736 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15737
15738         LIBS=$KEEPLIBS
15739         lib_offix_opt="-lDnd"
15740
15741 cat >>confdefs.h <<\_ACEOF
15742 #define OFFIX 1
15743 _ACEOF
15744
15745
15746 else
15747    LDFLAGS=$KEEPLDFLAGS
15748         CPPFLAGS=$KEEPCPPFLAGS
15749         LIBS=$KEEPLIBS
15750
15751 fi
15752
15753     fi
15754
15755 fi;
15756
15757 # Check whether --enable-network or --disable-network was given.
15758 if test "${enable_network+set}" = set; then
15759   enableval="$enable_network"
15760    if test "$enableval" = "yes"; then
15761
15762 cat >>confdefs.h <<\_ACEOF
15763 #define SUPPORT_SOCKET 1
15764 _ACEOF
15765
15766     fi
15767 fi;
15768
15769
15770 if test "x$enable_network" = "xyes"; then
15771   ENABLE_NETWORK_TRUE=
15772   ENABLE_NETWORK_FALSE='#'
15773 else
15774   ENABLE_NETWORK_TRUE='#'
15775   ENABLE_NETWORK_FALSE=
15776 fi
15777
15778
15779 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15780 if test "${enable_spectrogram+set}" = set; then
15781   enableval="$enable_spectrogram"
15782    if test "$enableval" = "yes"; then
15783       if test "x$with_x" != xyes; then
15784         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15785 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15786    { (exit 1); exit 1; }; }
15787       fi
15788
15789 cat >>confdefs.h <<\_ACEOF
15790 #define SUPPORT_SOUNDSPEC 1
15791 _ACEOF
15792
15793     fi
15794 fi;
15795
15796
15797 if test "x$enable_spectrogram" = "xyes"; then
15798   ENABLE_SOUND_SPEC_TRUE=
15799   ENABLE_SOUND_SPEC_FALSE='#'
15800 else
15801   ENABLE_SOUND_SPEC_TRUE='#'
15802   ENABLE_SOUND_SPEC_FALSE=
15803 fi
15804
15805
15806 # Check whether --enable-spline or --disable-spline was given.
15807 if test "${enable_spline+set}" = set; then
15808   enableval="$enable_spline"
15809    case "x$enableval" in
15810       xlinear)
15811
15812 cat >>confdefs.h <<\_ACEOF
15813 #define LINEAR_INTERPOLATION 1
15814 _ACEOF
15815
15816         ;;
15817       xcubic)
15818
15819 cat >>confdefs.h <<\_ACEOF
15820 #define CSPLINE_INTERPOLATION 1
15821 _ACEOF
15822
15823         ;;
15824       xlagrange)
15825
15826 cat >>confdefs.h <<\_ACEOF
15827 #define LAGRANGE_INTERPOLATION 1
15828 _ACEOF
15829
15830         ;;
15831       xnewton)
15832
15833 cat >>confdefs.h <<\_ACEOF
15834 #define NEWTON_INTERPOLATION 1
15835 _ACEOF
15836
15837         ;;
15838       xgauss)
15839
15840 cat >>confdefs.h <<\_ACEOF
15841 #define GAUSS_INTERPOLATION 1
15842 _ACEOF
15843
15844         ;;
15845       xno)
15846
15847 cat >>confdefs.h <<\_ACEOF
15848 #define NO_INTERPOLATION 1
15849 _ACEOF
15850
15851         ;;
15852       *)
15853         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15854 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15855    { (exit 1); exit 1; }; }
15856         ;;
15857     esac
15858 fi;
15859
15860 # Check whether --enable-wrd or --disable-wrd was given.
15861 if test "${enable_wrd+set}" = set; then
15862   enableval="$enable_wrd"
15863    if test "$enableval" = "yes"; then
15864       if test "x$with_x" != xyes; then
15865         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15866 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15867    { (exit 1); exit 1; }; }
15868       fi
15869
15870 cat >>confdefs.h <<\_ACEOF
15871 #define WRDT_X 1
15872 _ACEOF
15873
15874       enable_sherry_wrd=yes
15875       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15876 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15877 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15878   echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880   ac_check_lib_save_LIBS=$LIBS
15881 LIBS="-lz  $LIBS"
15882 cat >conftest.$ac_ext <<_ACEOF
15883 #line $LINENO "configure"
15884 /* confdefs.h.  */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h.  */
15889
15890 /* Override any gcc2 internal prototype to avoid an error.  */
15891 #ifdef __cplusplus
15892 extern "C"
15893 #endif
15894 /* We use char because int might match the return type of a gcc2
15895    builtin and then its argument prototype would still apply.  */
15896 char zlibVersion ();
15897 int
15898 main ()
15899 {
15900 zlibVersion ();
15901   ;
15902   return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907   (eval $ac_link) 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); } &&
15911          { ac_try='test -s conftest$ac_exeext'
15912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913   (eval $ac_try) 2>&5
15914   ac_status=$?
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); }; }; then
15917   ac_cv_lib_z_zlibVersion=yes
15918 else
15919   echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15921
15922 ac_cv_lib_z_zlibVersion=no
15923 fi
15924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15925 LIBS=$ac_check_lib_save_LIBS
15926 fi
15927 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15928 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15929 if test $ac_cv_lib_z_zlibVersion = yes; then
15930   :
15931 else
15932   enable_sherry_wrd=no
15933 fi
15934
15935       if test "${ac_cv_header_png_h+set}" = set; then
15936   echo "$as_me:$LINENO: checking for png.h" >&5
15937 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15938 if test "${ac_cv_header_png_h+set}" = set; then
15939   echo $ECHO_N "(cached) $ECHO_C" >&6
15940 fi
15941 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15942 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15943 else
15944   # Is the header compilable?
15945 echo "$as_me:$LINENO: checking png.h usability" >&5
15946 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15947 cat >conftest.$ac_ext <<_ACEOF
15948 #line $LINENO "configure"
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954 $ac_includes_default
15955 #include <png.h>
15956 _ACEOF
15957 rm -f conftest.$ac_objext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959   (eval $ac_compile) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } &&
15963          { ac_try='test -s conftest.$ac_objext'
15964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965   (eval $ac_try) 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; }; then
15969   ac_header_compiler=yes
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 ac_header_compiler=no
15975 fi
15976 rm -f conftest.$ac_objext conftest.$ac_ext
15977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978 echo "${ECHO_T}$ac_header_compiler" >&6
15979
15980 # Is the header present?
15981 echo "$as_me:$LINENO: checking png.h presence" >&5
15982 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 #include <png.h>
15991 _ACEOF
15992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } >/dev/null; then
16000   if test -s conftest.err; then
16001     ac_cpp_err=$ac_c_preproc_warn_flag
16002   else
16003     ac_cpp_err=
16004   fi
16005 else
16006   ac_cpp_err=yes
16007 fi
16008 if test -z "$ac_cpp_err"; then
16009   ac_header_preproc=yes
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014   ac_header_preproc=no
16015 fi
16016 rm -f conftest.err conftest.$ac_ext
16017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16018 echo "${ECHO_T}$ac_header_preproc" >&6
16019
16020 # So?  What about this header?
16021 case $ac_header_compiler:$ac_header_preproc in
16022   yes:no )
16023     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
16024 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16025     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16026 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16027     (
16028       cat <<\_ASBOX
16029 ## ------------------------------------ ##
16030 ## Report this to bug-autoconf@gnu.org. ##
16031 ## ------------------------------------ ##
16032 _ASBOX
16033     ) |
16034       sed "s/^/$as_me: WARNING:     /" >&2
16035     ;;
16036   no:yes )
16037     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
16039     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16042 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16043     (
16044       cat <<\_ASBOX
16045 ## ------------------------------------ ##
16046 ## Report this to bug-autoconf@gnu.org. ##
16047 ## ------------------------------------ ##
16048 _ASBOX
16049     ) |
16050       sed "s/^/$as_me: WARNING:     /" >&2
16051     ;;
16052 esac
16053 echo "$as_me:$LINENO: checking for png.h" >&5
16054 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
16055 if test "${ac_cv_header_png_h+set}" = set; then
16056   echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058   ac_cv_header_png_h=$ac_header_preproc
16059 fi
16060 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
16061 echo "${ECHO_T}$ac_cv_header_png_h" >&6
16062
16063 fi
16064 if test $ac_cv_header_png_h = yes; then
16065   :
16066 else
16067   enable_sherry_wrd=no
16068 fi
16069
16070
16071       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
16072 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
16073 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   ac_check_lib_save_LIBS=$LIBS
16077 LIBS="-lpng -lz $LIBS"
16078 cat >conftest.$ac_ext <<_ACEOF
16079 #line $LINENO "configure"
16080 /* confdefs.h.  */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h.  */
16085
16086 /* Override any gcc2 internal prototype to avoid an error.  */
16087 #ifdef __cplusplus
16088 extern "C"
16089 #endif
16090 /* We use char because int might match the return type of a gcc2
16091    builtin and then its argument prototype would still apply.  */
16092 char png_init_io ();
16093 int
16094 main ()
16095 {
16096 png_init_io ();
16097   ;
16098   return 0;
16099 }
16100 _ACEOF
16101 rm -f conftest.$ac_objext conftest$ac_exeext
16102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16103   (eval $ac_link) 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } &&
16107          { ac_try='test -s conftest$ac_exeext'
16108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109   (eval $ac_try) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; }; then
16113   ac_cv_lib_png_png_init_io=yes
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118 ac_cv_lib_png_png_init_io=no
16119 fi
16120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16121 LIBS=$ac_check_lib_save_LIBS
16122 fi
16123 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
16124 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
16125 if test $ac_cv_lib_png_png_init_io = yes; then
16126   :
16127 else
16128   enable_sherry_wrd=no
16129 fi
16130
16131       if test "$enable_sherry_wrd" = yes; then
16132
16133 cat >>confdefs.h <<\_ACEOF
16134 #define ENABLE_SHERRY 1
16135 _ACEOF
16136
16137         lib_zip_opt=-lz
16138         lib_png_opt=-lpng
16139       else
16140          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
16141 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
16142       fi
16143       if test "x$have_xext" = xyes; then
16144         lib_xext_opt=-lXext
16145       fi
16146     fi
16147 fi;
16148
16149
16150
16151 #
16152 # Finish up
16153 #
16154
16155
16156
16157 if test "x$enable_wrd" = "xyes"; then
16158   ENABLE_WRD_TRUE=
16159   ENABLE_WRD_FALSE='#'
16160 else
16161   ENABLE_WRD_TRUE='#'
16162   ENABLE_WRD_FALSE=
16163 fi
16164
16165
16166
16167
16168 if test "x$CYGNUS" = xyes; then
16169   CYGNUS_TRUE=
16170   CYGNUS_FALSE='#'
16171 else
16172   CYGNUS_TRUE='#'
16173   CYGNUS_FALSE=
16174 fi
16175
16176
16177
16178 if test "x$MINGW" = xyes; then
16179   MINGW_TRUE=
16180   MINGW_FALSE='#'
16181 else
16182   MINGW_TRUE='#'
16183   MINGW_FALSE=
16184 fi
16185
16186
16187
16188 if test "x$W32READDIR" = "xyes"; then
16189   W32READDIR_TRUE=
16190   W32READDIR_FALSE='#'
16191 else
16192   W32READDIR_TRUE='#'
16193   W32READDIR_FALSE=
16194 fi
16195
16196
16197 rm -f wordtmp >/dev/null 2>&1
16198 val=''
16199 for f in $LDFLAGS; do
16200   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16201   :
16202 else
16203   echo $f >>wordtmp; val="$val $f"
16204 fi
16205
16206 done
16207 LDFLAGS="$val"
16208 rm -f wordtmp >/dev/null 2>&1
16209
16210 rm -f wordtmp >/dev/null 2>&1
16211 val=''
16212 for f in $SHLDFLAGS; do
16213   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16214   :
16215 else
16216   echo $f >>wordtmp; val="$val $f"
16217 fi
16218
16219 done
16220 SHLDFLAGS="$val"
16221 rm -f wordtmp >/dev/null 2>&1
16222
16223 rm -f wordtmp >/dev/null 2>&1
16224 val=''
16225 for f in $EXTRACFLAGS $CFLAGS; do
16226   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16227   :
16228 else
16229   echo $f >>wordtmp; val="$val $f"
16230 fi
16231
16232 done
16233 CFLAGS="$val"
16234 rm -f wordtmp >/dev/null 2>&1
16235
16236 rm -f wordtmp >/dev/null 2>&1
16237 val=''
16238 for f in $CPPFLAGS $EXTRADEFS; do
16239   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16240   :
16241 else
16242   echo $f >>wordtmp; val="$val $f"
16243 fi
16244
16245 done
16246 CPPFLAGS="$val"
16247 rm -f wordtmp >/dev/null 2>&1
16248
16249
16250 if test "x$oss_device" != x; then
16251
16252 cat >>confdefs.h <<_ACEOF
16253 #define OSS_DEVICE "$oss_device"
16254 _ACEOF
16255
16256 fi
16257
16258 if test "x$TIMIDITY_OUTPUT_ID" != x; then
16259
16260 cat >>confdefs.h <<_ACEOF
16261 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
16262 _ACEOF
16263
16264 fi
16265
16266 if test "x$with_x" = xyes; then
16267     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/"`
16268 fi
16269 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
16270 SHLD="$SHLD $SHLDFLAGS"
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290                                                                                                                                                                                     ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.ujis/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"
16291
16292 cat >confcache <<\_ACEOF
16293 # This file is a shell script that caches the results of configure
16294 # tests run on this system so they can be shared between configure
16295 # scripts and configure runs, see configure's option --config-cache.
16296 # It is not useful on other systems.  If it contains results you don't
16297 # want to keep, you may remove or edit it.
16298 #
16299 # config.status only pays attention to the cache file if you give it
16300 # the --recheck option to rerun configure.
16301 #
16302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16304 # following values.
16305
16306 _ACEOF
16307
16308 # The following way of writing the cache mishandles newlines in values,
16309 # but we know of no workaround that is simple, portable, and efficient.
16310 # So, don't put newlines in cache variables' values.
16311 # Ultrix sh set writes to stderr and can't be redirected directly,
16312 # and sets the high bit in the cache file unless we assign to the vars.
16313 {
16314   (set) 2>&1 |
16315     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16316     *ac_space=\ *)
16317       # `set' does not quote correctly, so add quotes (double-quote
16318       # substitution turns \\\\ into \\, and sed turns \\ into \).
16319       sed -n \
16320         "s/'/'\\\\''/g;
16321           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16322       ;;
16323     *)
16324       # `set' quotes correctly as required by POSIX, so do not add quotes.
16325       sed -n \
16326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16327       ;;
16328     esac;
16329 } |
16330   sed '
16331      t clear
16332      : clear
16333      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16334      t end
16335      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16336      : end' >>confcache
16337 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16338   if test -w $cache_file; then
16339     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16340     cat confcache >$cache_file
16341   else
16342     echo "not updating unwritable cache $cache_file"
16343   fi
16344 fi
16345 rm -f confcache
16346
16347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16348 # Let make expand exec_prefix.
16349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16350
16351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16353 # trailing colons and then remove the whole line if VPATH becomes empty
16354 # (actually we leave an empty line to preserve line numbers).
16355 if test "x$srcdir" = x.; then
16356   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16357 s/:*\$(srcdir):*/:/;
16358 s/:*\${srcdir}:*/:/;
16359 s/:*@srcdir@:*/:/;
16360 s/^\([^=]*=[    ]*\):*/\1/;
16361 s/:*$//;
16362 s/^[^=]*=[      ]*$//;
16363 }'
16364 fi
16365
16366 DEFS=-DHAVE_CONFIG_H
16367
16368 ac_libobjs=
16369 ac_ltlibobjs=
16370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16371   # 1. Remove the extension, and $U if already installed.
16372   ac_i=`echo "$ac_i" |
16373          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16374   # 2. Add them.
16375   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16376   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16377 done
16378 LIBOBJS=$ac_libobjs
16379
16380 LTLIBOBJS=$ac_ltlibobjs
16381
16382
16383 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16384   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&5
16386 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&2;}
16388    { (exit 1); exit 1; }; }
16389 fi
16390 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16391   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&5
16393 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&2;}
16395    { (exit 1); exit 1; }; }
16396 fi
16397 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16398   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&5
16400 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&2;}
16402    { (exit 1); exit 1; }; }
16403 fi
16404 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
16405   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&5
16407 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&2;}
16409    { (exit 1); exit 1; }; }
16410 fi
16411 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16412   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&5
16414 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16415 Usually this means the macro was only invoked conditionally." >&2;}
16416    { (exit 1); exit 1; }; }
16417 fi
16418 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16419   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16420 Usually this means the macro was only invoked conditionally." >&5
16421 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16422 Usually this means the macro was only invoked conditionally." >&2;}
16423    { (exit 1); exit 1; }; }
16424 fi
16425 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16426   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16427 Usually this means the macro was only invoked conditionally." >&5
16428 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16429 Usually this means the macro was only invoked conditionally." >&2;}
16430    { (exit 1); exit 1; }; }
16431 fi
16432 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16433   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16434 Usually this means the macro was only invoked conditionally." >&5
16435 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16436 Usually this means the macro was only invoked conditionally." >&2;}
16437    { (exit 1); exit 1; }; }
16438 fi
16439 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16440   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16441 Usually this means the macro was only invoked conditionally." >&5
16442 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16443 Usually this means the macro was only invoked conditionally." >&2;}
16444    { (exit 1); exit 1; }; }
16445 fi
16446 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16447   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16448 Usually this means the macro was only invoked conditionally." >&5
16449 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16450 Usually this means the macro was only invoked conditionally." >&2;}
16451    { (exit 1); exit 1; }; }
16452 fi
16453 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16454   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16455 Usually this means the macro was only invoked conditionally." >&5
16456 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16457 Usually this means the macro was only invoked conditionally." >&2;}
16458    { (exit 1); exit 1; }; }
16459 fi
16460 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16461   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16462 Usually this means the macro was only invoked conditionally." >&5
16463 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16464 Usually this means the macro was only invoked conditionally." >&2;}
16465    { (exit 1); exit 1; }; }
16466 fi
16467 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16468   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16469 Usually this means the macro was only invoked conditionally." >&5
16470 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16471 Usually this means the macro was only invoked conditionally." >&2;}
16472    { (exit 1); exit 1; }; }
16473 fi
16474 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16475   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16476 Usually this means the macro was only invoked conditionally." >&5
16477 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16478 Usually this means the macro was only invoked conditionally." >&2;}
16479    { (exit 1); exit 1; }; }
16480 fi
16481 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16482   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16483 Usually this means the macro was only invoked conditionally." >&5
16484 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16485 Usually this means the macro was only invoked conditionally." >&2;}
16486    { (exit 1); exit 1; }; }
16487 fi
16488 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16489   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16490 Usually this means the macro was only invoked conditionally." >&5
16491 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16492 Usually this means the macro was only invoked conditionally." >&2;}
16493    { (exit 1); exit 1; }; }
16494 fi
16495 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16496   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16497 Usually this means the macro was only invoked conditionally." >&5
16498 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16499 Usually this means the macro was only invoked conditionally." >&2;}
16500    { (exit 1); exit 1; }; }
16501 fi
16502 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16503   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16504 Usually this means the macro was only invoked conditionally." >&5
16505 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16506 Usually this means the macro was only invoked conditionally." >&2;}
16507    { (exit 1); exit 1; }; }
16508 fi
16509 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16510   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16511 Usually this means the macro was only invoked conditionally." >&5
16512 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16513 Usually this means the macro was only invoked conditionally." >&2;}
16514    { (exit 1); exit 1; }; }
16515 fi
16516 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16517   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16518 Usually this means the macro was only invoked conditionally." >&5
16519 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16520 Usually this means the macro was only invoked conditionally." >&2;}
16521    { (exit 1); exit 1; }; }
16522 fi
16523 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16524   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16525 Usually this means the macro was only invoked conditionally." >&5
16526 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16527 Usually this means the macro was only invoked conditionally." >&2;}
16528    { (exit 1); exit 1; }; }
16529 fi
16530 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16531   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16532 Usually this means the macro was only invoked conditionally." >&5
16533 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16534 Usually this means the macro was only invoked conditionally." >&2;}
16535    { (exit 1); exit 1; }; }
16536 fi
16537 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16538   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16539 Usually this means the macro was only invoked conditionally." >&5
16540 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16541 Usually this means the macro was only invoked conditionally." >&2;}
16542    { (exit 1); exit 1; }; }
16543 fi
16544 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16545   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16546 Usually this means the macro was only invoked conditionally." >&5
16547 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16548 Usually this means the macro was only invoked conditionally." >&2;}
16549    { (exit 1); exit 1; }; }
16550 fi
16551 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16552   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16553 Usually this means the macro was only invoked conditionally." >&5
16554 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16555 Usually this means the macro was only invoked conditionally." >&2;}
16556    { (exit 1); exit 1; }; }
16557 fi
16558 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16559   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16560 Usually this means the macro was only invoked conditionally." >&5
16561 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16562 Usually this means the macro was only invoked conditionally." >&2;}
16563    { (exit 1); exit 1; }; }
16564 fi
16565 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16566   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16567 Usually this means the macro was only invoked conditionally." >&5
16568 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16569 Usually this means the macro was only invoked conditionally." >&2;}
16570    { (exit 1); exit 1; }; }
16571 fi
16572 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16573   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16574 Usually this means the macro was only invoked conditionally." >&5
16575 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16576 Usually this means the macro was only invoked conditionally." >&2;}
16577    { (exit 1); exit 1; }; }
16578 fi
16579 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16580   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16581 Usually this means the macro was only invoked conditionally." >&5
16582 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16583 Usually this means the macro was only invoked conditionally." >&2;}
16584    { (exit 1); exit 1; }; }
16585 fi
16586 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16587   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16588 Usually this means the macro was only invoked conditionally." >&5
16589 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16590 Usually this means the macro was only invoked conditionally." >&2;}
16591    { (exit 1); exit 1; }; }
16592 fi
16593 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16594   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16595 Usually this means the macro was only invoked conditionally." >&5
16596 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16597 Usually this means the macro was only invoked conditionally." >&2;}
16598    { (exit 1); exit 1; }; }
16599 fi
16600 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16601   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16602 Usually this means the macro was only invoked conditionally." >&5
16603 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16604 Usually this means the macro was only invoked conditionally." >&2;}
16605    { (exit 1); exit 1; }; }
16606 fi
16607 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16608   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16609 Usually this means the macro was only invoked conditionally." >&5
16610 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16611 Usually this means the macro was only invoked conditionally." >&2;}
16612    { (exit 1); exit 1; }; }
16613 fi
16614 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16615   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16616 Usually this means the macro was only invoked conditionally." >&5
16617 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16618 Usually this means the macro was only invoked conditionally." >&2;}
16619    { (exit 1); exit 1; }; }
16620 fi
16621 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16622   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16623 Usually this means the macro was only invoked conditionally." >&5
16624 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16625 Usually this means the macro was only invoked conditionally." >&2;}
16626    { (exit 1); exit 1; }; }
16627 fi
16628 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16629   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16630 Usually this means the macro was only invoked conditionally." >&5
16631 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16632 Usually this means the macro was only invoked conditionally." >&2;}
16633    { (exit 1); exit 1; }; }
16634 fi
16635 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16636   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16637 Usually this means the macro was only invoked conditionally." >&5
16638 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16639 Usually this means the macro was only invoked conditionally." >&2;}
16640    { (exit 1); exit 1; }; }
16641 fi
16642 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16643   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16644 Usually this means the macro was only invoked conditionally." >&5
16645 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16646 Usually this means the macro was only invoked conditionally." >&2;}
16647    { (exit 1); exit 1; }; }
16648 fi
16649 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16650   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16651 Usually this means the macro was only invoked conditionally." >&5
16652 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16653 Usually this means the macro was only invoked conditionally." >&2;}
16654    { (exit 1); exit 1; }; }
16655 fi
16656 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16657   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16658 Usually this means the macro was only invoked conditionally." >&5
16659 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16660 Usually this means the macro was only invoked conditionally." >&2;}
16661    { (exit 1); exit 1; }; }
16662 fi
16663 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16664   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16665 Usually this means the macro was only invoked conditionally." >&5
16666 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16667 Usually this means the macro was only invoked conditionally." >&2;}
16668    { (exit 1); exit 1; }; }
16669 fi
16670 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16671   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16672 Usually this means the macro was only invoked conditionally." >&5
16673 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16674 Usually this means the macro was only invoked conditionally." >&2;}
16675    { (exit 1); exit 1; }; }
16676 fi
16677 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16678   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16679 Usually this means the macro was only invoked conditionally." >&5
16680 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16681 Usually this means the macro was only invoked conditionally." >&2;}
16682    { (exit 1); exit 1; }; }
16683 fi
16684 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16685   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16686 Usually this means the macro was only invoked conditionally." >&5
16687 echo "$as_me: error: conditional \"MINGW\" was never defined.
16688 Usually this means the macro was only invoked conditionally." >&2;}
16689    { (exit 1); exit 1; }; }
16690 fi
16691 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16692   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16693 Usually this means the macro was only invoked conditionally." >&5
16694 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16695 Usually this means the macro was only invoked conditionally." >&2;}
16696    { (exit 1); exit 1; }; }
16697 fi
16698
16699 : ${CONFIG_STATUS=./config.status}
16700 ac_clean_files_save=$ac_clean_files
16701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16702 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16703 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16704 cat >$CONFIG_STATUS <<_ACEOF
16705 #! $SHELL
16706 # Generated by $as_me.
16707 # Run this file to recreate the current configuration.
16708 # Compiler output produced by configure, useful for debugging
16709 # configure, is in config.log if it exists.
16710
16711 debug=false
16712 ac_cs_recheck=false
16713 ac_cs_silent=false
16714 SHELL=\${CONFIG_SHELL-$SHELL}
16715 _ACEOF
16716
16717 cat >>$CONFIG_STATUS <<\_ACEOF
16718 ## --------------------- ##
16719 ## M4sh Initialization.  ##
16720 ## --------------------- ##
16721
16722 # Be Bourne compatible
16723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16724   emulate sh
16725   NULLCMD=:
16726   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16727   # is contrary to our usage.  Disable this feature.
16728   alias -g '${1+"$@"}'='"$@"'
16729 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16730   set -o posix
16731 fi
16732
16733 # Support unset when possible.
16734 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16735   as_unset=unset
16736 else
16737   as_unset=false
16738 fi
16739
16740
16741 # Work around bugs in pre-3.0 UWIN ksh.
16742 $as_unset ENV MAIL MAILPATH
16743 PS1='$ '
16744 PS2='> '
16745 PS4='+ '
16746
16747 # NLS nuisances.
16748 for as_var in \
16749   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16750   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16751   LC_TELEPHONE LC_TIME
16752 do
16753   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16754     eval $as_var=C; export $as_var
16755   else
16756     $as_unset $as_var
16757   fi
16758 done
16759
16760 # Required to use basename.
16761 if expr a : '\(a\)' >/dev/null 2>&1; then
16762   as_expr=expr
16763 else
16764   as_expr=false
16765 fi
16766
16767 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16768   as_basename=basename
16769 else
16770   as_basename=false
16771 fi
16772
16773
16774 # Name of the executable.
16775 as_me=`$as_basename "$0" ||
16776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16777          X"$0" : 'X\(//\)$' \| \
16778          X"$0" : 'X\(/\)$' \| \
16779          .     : '\(.\)' 2>/dev/null ||
16780 echo X/"$0" |
16781     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16782           /^X\/\(\/\/\)$/{ s//\1/; q; }
16783           /^X\/\(\/\).*/{ s//\1/; q; }
16784           s/.*/./; q'`
16785
16786
16787 # PATH needs CR, and LINENO needs CR and PATH.
16788 # Avoid depending upon Character Ranges.
16789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16792 as_cr_digits='0123456789'
16793 as_cr_alnum=$as_cr_Letters$as_cr_digits
16794
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797   echo "#! /bin/sh" >conf$$.sh
16798   echo  "exit 0"   >>conf$$.sh
16799   chmod +x conf$$.sh
16800   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16801     PATH_SEPARATOR=';'
16802   else
16803     PATH_SEPARATOR=:
16804   fi
16805   rm -f conf$$.sh
16806 fi
16807
16808
16809   as_lineno_1=$LINENO
16810   as_lineno_2=$LINENO
16811   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16812   test "x$as_lineno_1" != "x$as_lineno_2" &&
16813   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16814   # Find who we are.  Look in the path if we contain no path at all
16815   # relative or not.
16816   case $0 in
16817     *[\\/]* ) as_myself=$0 ;;
16818     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16820 do
16821   IFS=$as_save_IFS
16822   test -z "$as_dir" && as_dir=.
16823   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16824 done
16825
16826        ;;
16827   esac
16828   # We did not find ourselves, most probably we were run as `sh COMMAND'
16829   # in which case we are not to be found in the path.
16830   if test "x$as_myself" = x; then
16831     as_myself=$0
16832   fi
16833   if test ! -f "$as_myself"; then
16834     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16835 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16836    { (exit 1); exit 1; }; }
16837   fi
16838   case $CONFIG_SHELL in
16839   '')
16840     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16842 do
16843   IFS=$as_save_IFS
16844   test -z "$as_dir" && as_dir=.
16845   for as_base in sh bash ksh sh5; do
16846          case $as_dir in
16847          /*)
16848            if ("$as_dir/$as_base" -c '
16849   as_lineno_1=$LINENO
16850   as_lineno_2=$LINENO
16851   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16852   test "x$as_lineno_1" != "x$as_lineno_2" &&
16853   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16854              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16855              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16856              CONFIG_SHELL=$as_dir/$as_base
16857              export CONFIG_SHELL
16858              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16859            fi;;
16860          esac
16861        done
16862 done
16863 ;;
16864   esac
16865
16866   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16867   # uniformly replaced by the line number.  The first 'sed' inserts a
16868   # line-number line before each line; the second 'sed' does the real
16869   # work.  The second script uses 'N' to pair each line-number line
16870   # with the numbered line, and appends trailing '-' during
16871   # substitution so that $LINENO is not a special case at line end.
16872   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16873   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16874   sed '=' <$as_myself |
16875     sed '
16876       N
16877       s,$,-,
16878       : loop
16879       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16880       t loop
16881       s,-$,,
16882       s,^['$as_cr_digits']*\n,,
16883     ' >$as_me.lineno &&
16884   chmod +x $as_me.lineno ||
16885     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16886 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16887    { (exit 1); exit 1; }; }
16888
16889   # Don't try to exec as it changes $[0], causing all sort of problems
16890   # (the dirname of $[0] is not the place where we might find the
16891   # original and so on.  Autoconf is especially sensible to this).
16892   . ./$as_me.lineno
16893   # Exit status is that of the last command.
16894   exit
16895 }
16896
16897
16898 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16899   *c*,-n*) ECHO_N= ECHO_C='
16900 ' ECHO_T='      ' ;;
16901   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16902   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16903 esac
16904
16905 if expr a : '\(a\)' >/dev/null 2>&1; then
16906   as_expr=expr
16907 else
16908   as_expr=false
16909 fi
16910
16911 rm -f conf$$ conf$$.exe conf$$.file
16912 echo >conf$$.file
16913 if ln -s conf$$.file conf$$ 2>/dev/null; then
16914   # We could just check for DJGPP; but this test a) works b) is more generic
16915   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16916   if test -f conf$$.exe; then
16917     # Don't use ln at all; we don't have any links
16918     as_ln_s='cp -p'
16919   else
16920     as_ln_s='ln -s'
16921   fi
16922 elif ln conf$$.file conf$$ 2>/dev/null; then
16923   as_ln_s=ln
16924 else
16925   as_ln_s='cp -p'
16926 fi
16927 rm -f conf$$ conf$$.exe conf$$.file
16928
16929 if mkdir -p . 2>/dev/null; then
16930   as_mkdir_p=:
16931 else
16932   as_mkdir_p=false
16933 fi
16934
16935 as_executable_p="test -f"
16936
16937 # Sed expression to map a string onto a valid CPP name.
16938 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16939
16940 # Sed expression to map a string onto a valid variable name.
16941 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16942
16943
16944 # IFS
16945 # We need space, tab and new line, in precisely that order.
16946 as_nl='
16947 '
16948 IFS="   $as_nl"
16949
16950 # CDPATH.
16951 $as_unset CDPATH
16952
16953 exec 6>&1
16954
16955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16956 # report actual input values of CONFIG_FILES etc. instead of their
16957 # values after options handling.  Logging --version etc. is OK.
16958 exec 5>>config.log
16959 {
16960   echo
16961   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16962 ## Running $as_me. ##
16963 _ASBOX
16964 } >&5
16965 cat >&5 <<_CSEOF
16966
16967 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16968 generated by GNU Autoconf 2.57.  Invocation command line was
16969
16970   CONFIG_FILES    = $CONFIG_FILES
16971   CONFIG_HEADERS  = $CONFIG_HEADERS
16972   CONFIG_LINKS    = $CONFIG_LINKS
16973   CONFIG_COMMANDS = $CONFIG_COMMANDS
16974   $ $0 $@
16975
16976 _CSEOF
16977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16978 echo >&5
16979 _ACEOF
16980
16981 # Files that config.status was made for.
16982 if test -n "$ac_config_files"; then
16983   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16984 fi
16985
16986 if test -n "$ac_config_headers"; then
16987   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16988 fi
16989
16990 if test -n "$ac_config_links"; then
16991   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16992 fi
16993
16994 if test -n "$ac_config_commands"; then
16995   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16996 fi
16997
16998 cat >>$CONFIG_STATUS <<\_ACEOF
16999
17000 ac_cs_usage="\
17001 \`$as_me' instantiates files from templates according to the
17002 current configuration.
17003
17004 Usage: $0 [OPTIONS] [FILE]...
17005
17006   -h, --help       print this help, then exit
17007   -V, --version    print version number, then exit
17008   -q, --quiet      do not print progress messages
17009   -d, --debug      don't remove temporary files
17010       --recheck    update $as_me by reconfiguring in the same conditions
17011   --file=FILE[:TEMPLATE]
17012                    instantiate the configuration file FILE
17013   --header=FILE[:TEMPLATE]
17014                    instantiate the configuration header FILE
17015
17016 Configuration files:
17017 $config_files
17018
17019 Configuration headers:
17020 $config_headers
17021
17022 Configuration commands:
17023 $config_commands
17024
17025 Report bugs to <bug-autoconf@gnu.org>."
17026 _ACEOF
17027
17028 cat >>$CONFIG_STATUS <<_ACEOF
17029 ac_cs_version="\\
17030 TiMidity++ config.status 2.12.0-pre1b
17031 configured by $0, generated by GNU Autoconf 2.57,
17032   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17033
17034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17035 Free Software Foundation, Inc.
17036 This config.status script is free software; the Free Software Foundation
17037 gives unlimited permission to copy, distribute and modify it."
17038 srcdir=$srcdir
17039 INSTALL="$INSTALL"
17040 _ACEOF
17041
17042 cat >>$CONFIG_STATUS <<\_ACEOF
17043 # If no file are specified by the user, then we need to provide default
17044 # value.  By we need to know if files were specified by the user.
17045 ac_need_defaults=:
17046 while test $# != 0
17047 do
17048   case $1 in
17049   --*=*)
17050     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17051     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17052     ac_shift=:
17053     ;;
17054   -*)
17055     ac_option=$1
17056     ac_optarg=$2
17057     ac_shift=shift
17058     ;;
17059   *) # This is not an option, so the user has probably given explicit
17060      # arguments.
17061      ac_option=$1
17062      ac_need_defaults=false;;
17063   esac
17064
17065   case $ac_option in
17066   # Handling of the options.
17067 _ACEOF
17068 cat >>$CONFIG_STATUS <<\_ACEOF
17069   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17070     ac_cs_recheck=: ;;
17071   --version | --vers* | -V )
17072     echo "$ac_cs_version"; exit 0 ;;
17073   --he | --h)
17074     # Conflict between --help and --header
17075     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17076 Try \`$0 --help' for more information." >&5
17077 echo "$as_me: error: ambiguous option: $1
17078 Try \`$0 --help' for more information." >&2;}
17079    { (exit 1); exit 1; }; };;
17080   --help | --hel | -h )
17081     echo "$ac_cs_usage"; exit 0 ;;
17082   --debug | --d* | -d )
17083     debug=: ;;
17084   --file | --fil | --fi | --f )
17085     $ac_shift
17086     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17087     ac_need_defaults=false;;
17088   --header | --heade | --head | --hea )
17089     $ac_shift
17090     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17091     ac_need_defaults=false;;
17092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17093   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17094     ac_cs_silent=: ;;
17095
17096   # This is an error.
17097   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17098 Try \`$0 --help' for more information." >&5
17099 echo "$as_me: error: unrecognized option: $1
17100 Try \`$0 --help' for more information." >&2;}
17101    { (exit 1); exit 1; }; } ;;
17102
17103   *) ac_config_targets="$ac_config_targets $1" ;;
17104
17105   esac
17106   shift
17107 done
17108
17109 ac_configure_extra_args=
17110
17111 if $ac_cs_silent; then
17112   exec 6>/dev/null
17113   ac_configure_extra_args="$ac_configure_extra_args --silent"
17114 fi
17115
17116 _ACEOF
17117 cat >>$CONFIG_STATUS <<_ACEOF
17118 if \$ac_cs_recheck; then
17119   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17120   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17121 fi
17122
17123 _ACEOF
17124
17125 cat >>$CONFIG_STATUS <<_ACEOF
17126 #
17127 # INIT-COMMANDS section.
17128 #
17129
17130 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17131
17132 _ACEOF
17133
17134
17135
17136 cat >>$CONFIG_STATUS <<\_ACEOF
17137 for ac_config_target in $ac_config_targets
17138 do
17139   case "$ac_config_target" in
17140   # Handling of arguments.
17141   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17142   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
17143   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
17144   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
17145   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17146   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
17147   "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
17148   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
17149   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
17150   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
17151   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
17152   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
17153   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
17154   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
17155   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17156   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
17157   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
17158   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
17159   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17160   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17161   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
17162   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17163 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17164    { (exit 1); exit 1; }; };;
17165   esac
17166 done
17167
17168 # If the user did not use the arguments to specify the items to instantiate,
17169 # then the envvar interface is used.  Set only those that are not.
17170 # We use the long form for the default assignment because of an extremely
17171 # bizarre bug on SunOS 4.1.3.
17172 if $ac_need_defaults; then
17173   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17174   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17175   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17176 fi
17177
17178 # Have a temporary directory for convenience.  Make it in the build tree
17179 # simply because there is no reason to put it here, and in addition,
17180 # creating and moving files from /tmp can sometimes cause problems.
17181 # Create a temporary directory, and hook for its removal unless debugging.
17182 $debug ||
17183 {
17184   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17185   trap '{ (exit 1); exit 1; }' 1 2 13 15
17186 }
17187
17188 # Create a (secure) tmp directory for tmp files.
17189
17190 {
17191   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17192   test -n "$tmp" && test -d "$tmp"
17193 }  ||
17194 {
17195   tmp=./confstat$$-$RANDOM
17196   (umask 077 && mkdir $tmp)
17197 } ||
17198 {
17199    echo "$me: cannot create a temporary directory in ." >&2
17200    { (exit 1); exit 1; }
17201 }
17202
17203 _ACEOF
17204
17205 cat >>$CONFIG_STATUS <<_ACEOF
17206
17207 #
17208 # CONFIG_FILES section.
17209 #
17210
17211 # No need to generate the scripts if there are no CONFIG_FILES.
17212 # This happens for instance when ./config.status config.h
17213 if test -n "\$CONFIG_FILES"; then
17214   # Protect against being on the right side of a sed subst in config.status.
17215   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17216    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17217 s,@SHELL@,$SHELL,;t t
17218 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17219 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17220 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17221 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17222 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17223 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17224 s,@exec_prefix@,$exec_prefix,;t t
17225 s,@prefix@,$prefix,;t t
17226 s,@program_transform_name@,$program_transform_name,;t t
17227 s,@bindir@,$bindir,;t t
17228 s,@sbindir@,$sbindir,;t t
17229 s,@libexecdir@,$libexecdir,;t t
17230 s,@datadir@,$datadir,;t t
17231 s,@sysconfdir@,$sysconfdir,;t t
17232 s,@sharedstatedir@,$sharedstatedir,;t t
17233 s,@localstatedir@,$localstatedir,;t t
17234 s,@libdir@,$libdir,;t t
17235 s,@includedir@,$includedir,;t t
17236 s,@oldincludedir@,$oldincludedir,;t t
17237 s,@infodir@,$infodir,;t t
17238 s,@mandir@,$mandir,;t t
17239 s,@build_alias@,$build_alias,;t t
17240 s,@host_alias@,$host_alias,;t t
17241 s,@target_alias@,$target_alias,;t t
17242 s,@DEFS@,$DEFS,;t t
17243 s,@ECHO_C@,$ECHO_C,;t t
17244 s,@ECHO_N@,$ECHO_N,;t t
17245 s,@ECHO_T@,$ECHO_T,;t t
17246 s,@LIBS@,$LIBS,;t t
17247 s,@build@,$build,;t t
17248 s,@build_cpu@,$build_cpu,;t t
17249 s,@build_vendor@,$build_vendor,;t t
17250 s,@build_os@,$build_os,;t t
17251 s,@host@,$host,;t t
17252 s,@host_cpu@,$host_cpu,;t t
17253 s,@host_vendor@,$host_vendor,;t t
17254 s,@host_os@,$host_os,;t t
17255 s,@target@,$target,;t t
17256 s,@target_cpu@,$target_cpu,;t t
17257 s,@target_vendor@,$target_vendor,;t t
17258 s,@target_os@,$target_os,;t t
17259 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17260 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17261 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17262 s,@CYGPATH_W@,$CYGPATH_W,;t t
17263 s,@PACKAGE@,$PACKAGE,;t t
17264 s,@VERSION@,$VERSION,;t t
17265 s,@ACLOCAL@,$ACLOCAL,;t t
17266 s,@AUTOCONF@,$AUTOCONF,;t t
17267 s,@AUTOMAKE@,$AUTOMAKE,;t t
17268 s,@AUTOHEADER@,$AUTOHEADER,;t t
17269 s,@MAKEINFO@,$MAKEINFO,;t t
17270 s,@AMTAR@,$AMTAR,;t t
17271 s,@install_sh@,$install_sh,;t t
17272 s,@STRIP@,$STRIP,;t t
17273 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17274 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17275 s,@AWK@,$AWK,;t t
17276 s,@SET_MAKE@,$SET_MAKE,;t t
17277 s,@am__leading_dot@,$am__leading_dot,;t t
17278 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17279 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17280 s,@MAINT@,$MAINT,;t t
17281 s,@EMACS@,$EMACS,;t t
17282 s,@lispdir@,$lispdir,;t t
17283 s,@CC@,$CC,;t t
17284 s,@CFLAGS@,$CFLAGS,;t t
17285 s,@LDFLAGS@,$LDFLAGS,;t t
17286 s,@CPPFLAGS@,$CPPFLAGS,;t t
17287 s,@ac_ct_CC@,$ac_ct_CC,;t t
17288 s,@EXEEXT@,$EXEEXT,;t t
17289 s,@OBJEXT@,$OBJEXT,;t t
17290 s,@DEPDIR@,$DEPDIR,;t t
17291 s,@am__include@,$am__include,;t t
17292 s,@am__quote@,$am__quote,;t t
17293 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17294 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17295 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17296 s,@CCDEPMODE@,$CCDEPMODE,;t t
17297 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17298 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17299 s,@CPP@,$CPP,;t t
17300 s,@EGREP@,$EGREP,;t t
17301 s,@RANLIB@,$RANLIB,;t t
17302 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17303 s,@LN_S@,$LN_S,;t t
17304 s,@X_CFLAGS@,$X_CFLAGS,;t t
17305 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17306 s,@X_LIBS@,$X_LIBS,;t t
17307 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17308 s,@LIBOBJS@,$LIBOBJS,;t t
17309 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
17310 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
17311 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
17312 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
17313 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
17314 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
17315 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
17316 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
17317 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
17318 s,@ESD_LIBS@,$ESD_LIBS,;t t
17319 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
17320 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
17321 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
17322 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
17323 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
17324 s,@OGG_LIBS@,$OGG_LIBS,;t t
17325 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
17326 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
17327 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
17328 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
17329 s,@n_so_libs@,$n_so_libs,;t t
17330 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
17331 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
17332 s,@s_so_libs@,$s_so_libs,;t t
17333 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
17334 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
17335 s,@m_so_libs@,$m_so_libs,;t t
17336 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
17337 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
17338 s,@k_so_libs@,$k_so_libs,;t t
17339 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
17340 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
17341 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
17342 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17343 s,@e_so_libs@,$e_so_libs,;t t
17344 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17345 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17346 s,@T_so_libs@,$T_so_libs,;t t
17347 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17348 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17349 s,@a_so_libs@,$a_so_libs,;t t
17350 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17351 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17352 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17353 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17354 s,@i_so_libs@,$i_so_libs,;t t
17355 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17356 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17357 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17358 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17359 s,@GTK_LIBS@,$GTK_LIBS,;t t
17360 s,@g_so_libs@,$g_so_libs,;t t
17361 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17362 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17363 s,@r_so_libs@,$r_so_libs,;t t
17364 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17365 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17366 s,@A_so_libs@,$A_so_libs,;t t
17367 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17368 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17369 s,@W_so_libs@,$W_so_libs,;t t
17370 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
17371 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
17372 s,@P_so_libs@,$P_so_libs,;t t
17373 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
17374 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
17375 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17376 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17377 s,@w_so_libs@,$w_so_libs,;t t
17378 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17379 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17380 s,@p_so_libs@,$p_so_libs,;t t
17381 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17382 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17383 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17384 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17385 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17386 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17387 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17388 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17389 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17390 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17391 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17392 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17393 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17394 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17395 s,@EXTRALIBS@,$EXTRALIBS,;t t
17396 s,@NETSRCS@,$NETSRCS,;t t
17397 s,@ELFILES@,$ELFILES,;t t
17398 s,@SHLD@,$SHLD,;t t
17399 s,@SHCFLAGS@,$SHCFLAGS,;t t
17400 s,@dynamic_targets@,$dynamic_targets,;t t
17401 s,@so@,$so,;t t
17402 s,@WISH@,$WISH,;t t
17403 s,@tcltk_dep@,$tcltk_dep,;t t
17404 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17405 s,@pkgdatadir@,$pkgdatadir,;t t
17406 s,@pkglibdir@,$pkglibdir,;t t
17407 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17408 CEOF
17409
17410 _ACEOF
17411
17412   cat >>$CONFIG_STATUS <<\_ACEOF
17413   # Split the substitutions into bite-sized pieces for seds with
17414   # small command number limits, like on Digital OSF/1 and HP-UX.
17415   ac_max_sed_lines=48
17416   ac_sed_frag=1 # Number of current file.
17417   ac_beg=1 # First line for current file.
17418   ac_end=$ac_max_sed_lines # Line after last line for current file.
17419   ac_more_lines=:
17420   ac_sed_cmds=
17421   while $ac_more_lines; do
17422     if test $ac_beg -gt 1; then
17423       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17424     else
17425       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17426     fi
17427     if test ! -s $tmp/subs.frag; then
17428       ac_more_lines=false
17429     else
17430       # The purpose of the label and of the branching condition is to
17431       # speed up the sed processing (if there are no `@' at all, there
17432       # is no need to browse any of the substitutions).
17433       # These are the two extra sed commands mentioned above.
17434       (echo ':t
17435   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17436       if test -z "$ac_sed_cmds"; then
17437         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17438       else
17439         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17440       fi
17441       ac_sed_frag=`expr $ac_sed_frag + 1`
17442       ac_beg=$ac_end
17443       ac_end=`expr $ac_end + $ac_max_sed_lines`
17444     fi
17445   done
17446   if test -z "$ac_sed_cmds"; then
17447     ac_sed_cmds=cat
17448   fi
17449 fi # test -n "$CONFIG_FILES"
17450
17451 _ACEOF
17452 cat >>$CONFIG_STATUS <<\_ACEOF
17453 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17454   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17455   case $ac_file in
17456   - | *:- | *:-:* ) # input from stdin
17457         cat >$tmp/stdin
17458         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17459         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17460   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17461         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17462   * )   ac_file_in=$ac_file.in ;;
17463   esac
17464
17465   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17466   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17468          X"$ac_file" : 'X\(//\)[^/]' \| \
17469          X"$ac_file" : 'X\(//\)$' \| \
17470          X"$ac_file" : 'X\(/\)' \| \
17471          .     : '\(.\)' 2>/dev/null ||
17472 echo X"$ac_file" |
17473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17474           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17475           /^X\(\/\/\)$/{ s//\1/; q; }
17476           /^X\(\/\).*/{ s//\1/; q; }
17477           s/.*/./; q'`
17478   { if $as_mkdir_p; then
17479     mkdir -p "$ac_dir"
17480   else
17481     as_dir="$ac_dir"
17482     as_dirs=
17483     while test ! -d "$as_dir"; do
17484       as_dirs="$as_dir $as_dirs"
17485       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487          X"$as_dir" : 'X\(//\)[^/]' \| \
17488          X"$as_dir" : 'X\(//\)$' \| \
17489          X"$as_dir" : 'X\(/\)' \| \
17490          .     : '\(.\)' 2>/dev/null ||
17491 echo X"$as_dir" |
17492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17493           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17494           /^X\(\/\/\)$/{ s//\1/; q; }
17495           /^X\(\/\).*/{ s//\1/; q; }
17496           s/.*/./; q'`
17497     done
17498     test ! -n "$as_dirs" || mkdir $as_dirs
17499   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17500 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17501    { (exit 1); exit 1; }; }; }
17502
17503   ac_builddir=.
17504
17505 if test "$ac_dir" != .; then
17506   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17507   # A "../" for each directory in $ac_dir_suffix.
17508   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17509 else
17510   ac_dir_suffix= ac_top_builddir=
17511 fi
17512
17513 case $srcdir in
17514   .)  # No --srcdir option.  We are building in place.
17515     ac_srcdir=.
17516     if test -z "$ac_top_builddir"; then
17517        ac_top_srcdir=.
17518     else
17519        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17520     fi ;;
17521   [\\/]* | ?:[\\/]* )  # Absolute path.
17522     ac_srcdir=$srcdir$ac_dir_suffix;
17523     ac_top_srcdir=$srcdir ;;
17524   *) # Relative path.
17525     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17526     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17527 esac
17528 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17529 # absolute.
17530 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17531 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17532 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17533 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17534
17535
17536   case $INSTALL in
17537   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17538   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17539   esac
17540
17541   if test x"$ac_file" != x-; then
17542     { echo "$as_me:$LINENO: creating $ac_file" >&5
17543 echo "$as_me: creating $ac_file" >&6;}
17544     rm -f "$ac_file"
17545   fi
17546   # Let's still pretend it is `configure' which instantiates (i.e., don't
17547   # use $as_me), people would be surprised to read:
17548   #    /* config.h.  Generated by config.status.  */
17549   if test x"$ac_file" = x-; then
17550     configure_input=
17551   else
17552     configure_input="$ac_file.  "
17553   fi
17554   configure_input=$configure_input"Generated from `echo $ac_file_in |
17555                                      sed 's,.*/,,'` by configure."
17556
17557   # First look for the input files in the build tree, otherwise in the
17558   # src tree.
17559   ac_file_inputs=`IFS=:
17560     for f in $ac_file_in; do
17561       case $f in
17562       -) echo $tmp/stdin ;;
17563       [\\/$]*)
17564          # Absolute (can't be DOS-style, as IFS=:)
17565          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17566 echo "$as_me: error: cannot find input file: $f" >&2;}
17567    { (exit 1); exit 1; }; }
17568          echo $f;;
17569       *) # Relative
17570          if test -f "$f"; then
17571            # Build tree
17572            echo $f
17573          elif test -f "$srcdir/$f"; then
17574            # Source tree
17575            echo $srcdir/$f
17576          else
17577            # /dev/null tree
17578            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17579 echo "$as_me: error: cannot find input file: $f" >&2;}
17580    { (exit 1); exit 1; }; }
17581          fi;;
17582       esac
17583     done` || { (exit 1); exit 1; }
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<_ACEOF
17586   sed "$ac_vpsub
17587 $extrasub
17588 _ACEOF
17589 cat >>$CONFIG_STATUS <<\_ACEOF
17590 :t
17591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17592 s,@configure_input@,$configure_input,;t t
17593 s,@srcdir@,$ac_srcdir,;t t
17594 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17595 s,@top_srcdir@,$ac_top_srcdir,;t t
17596 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17597 s,@builddir@,$ac_builddir,;t t
17598 s,@abs_builddir@,$ac_abs_builddir,;t t
17599 s,@top_builddir@,$ac_top_builddir,;t t
17600 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17601 s,@INSTALL@,$ac_INSTALL,;t t
17602 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17603   rm -f $tmp/stdin
17604   if test x"$ac_file" != x-; then
17605     mv $tmp/out $ac_file
17606   else
17607     cat $tmp/out
17608     rm -f $tmp/out
17609   fi
17610
17611 done
17612 _ACEOF
17613 cat >>$CONFIG_STATUS <<\_ACEOF
17614
17615 #
17616 # CONFIG_HEADER section.
17617 #
17618
17619 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17620 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17621 #
17622 # ac_d sets the value in "#define NAME VALUE" lines.
17623 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17624 ac_dB='[        ].*$,\1#\2'
17625 ac_dC=' '
17626 ac_dD=',;t'
17627 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17628 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17629 ac_uB='$,\1#\2define\3'
17630 ac_uC=' '
17631 ac_uD=',;t'
17632
17633 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17634   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17635   case $ac_file in
17636   - | *:- | *:-:* ) # input from stdin
17637         cat >$tmp/stdin
17638         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17639         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17640   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17641         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17642   * )   ac_file_in=$ac_file.in ;;
17643   esac
17644
17645   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17646 echo "$as_me: creating $ac_file" >&6;}
17647
17648   # First look for the input files in the build tree, otherwise in the
17649   # src tree.
17650   ac_file_inputs=`IFS=:
17651     for f in $ac_file_in; do
17652       case $f in
17653       -) echo $tmp/stdin ;;
17654       [\\/$]*)
17655          # Absolute (can't be DOS-style, as IFS=:)
17656          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17657 echo "$as_me: error: cannot find input file: $f" >&2;}
17658    { (exit 1); exit 1; }; }
17659          echo $f;;
17660       *) # Relative
17661          if test -f "$f"; then
17662            # Build tree
17663            echo $f
17664          elif test -f "$srcdir/$f"; then
17665            # Source tree
17666            echo $srcdir/$f
17667          else
17668            # /dev/null tree
17669            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17670 echo "$as_me: error: cannot find input file: $f" >&2;}
17671    { (exit 1); exit 1; }; }
17672          fi;;
17673       esac
17674     done` || { (exit 1); exit 1; }
17675   # Remove the trailing spaces.
17676   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17677
17678 _ACEOF
17679
17680 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17681 # `conftest.undefs', that substitutes the proper values into
17682 # config.h.in to produce config.h.  The first handles `#define'
17683 # templates, and the second `#undef' templates.
17684 # And first: Protect against being on the right side of a sed subst in
17685 # config.status.  Protect against being in an unquoted here document
17686 # in config.status.
17687 rm -f conftest.defines conftest.undefs
17688 # Using a here document instead of a string reduces the quoting nightmare.
17689 # Putting comments in sed scripts is not portable.
17690 #
17691 # `end' is used to avoid that the second main sed command (meant for
17692 # 0-ary CPP macros) applies to n-ary macro definitions.
17693 # See the Autoconf documentation for `clear'.
17694 cat >confdef2sed.sed <<\_ACEOF
17695 s/[\\&,]/\\&/g
17696 s,[\\$`],\\&,g
17697 t clear
17698 : clear
17699 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17700 t end
17701 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17702 : end
17703 _ACEOF
17704 # If some macros were called several times there might be several times
17705 # the same #defines, which is useless.  Nevertheless, we may not want to
17706 # sort them, since we want the *last* AC-DEFINE to be honored.
17707 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17708 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17709 rm -f confdef2sed.sed
17710
17711 # This sed command replaces #undef with comments.  This is necessary, for
17712 # example, in the case of _POSIX_SOURCE, which is predefined and required
17713 # on some systems where configure will not decide to define it.
17714 cat >>conftest.undefs <<\_ACEOF
17715 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17716 _ACEOF
17717
17718 # Break up conftest.defines because some shells have a limit on the size
17719 # of here documents, and old seds have small limits too (100 cmds).
17720 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17721 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17722 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17723 echo '  :' >>$CONFIG_STATUS
17724 rm -f conftest.tail
17725 while grep . conftest.defines >/dev/null
17726 do
17727   # Write a limited-size here document to $tmp/defines.sed.
17728   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17729   # Speed up: don't consider the non `#define' lines.
17730   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17731   # Work around the forget-to-reset-the-flag bug.
17732   echo 't clr' >>$CONFIG_STATUS
17733   echo ': clr' >>$CONFIG_STATUS
17734   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17735   echo 'CEOF
17736   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17737   rm -f $tmp/in
17738   mv $tmp/out $tmp/in
17739 ' >>$CONFIG_STATUS
17740   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17741   rm -f conftest.defines
17742   mv conftest.tail conftest.defines
17743 done
17744 rm -f conftest.defines
17745 echo '  fi # grep' >>$CONFIG_STATUS
17746 echo >>$CONFIG_STATUS
17747
17748 # Break up conftest.undefs because some shells have a limit on the size
17749 # of here documents, and old seds have small limits too (100 cmds).
17750 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17751 rm -f conftest.tail
17752 while grep . conftest.undefs >/dev/null
17753 do
17754   # Write a limited-size here document to $tmp/undefs.sed.
17755   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17756   # Speed up: don't consider the non `#undef'
17757   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17758   # Work around the forget-to-reset-the-flag bug.
17759   echo 't clr' >>$CONFIG_STATUS
17760   echo ': clr' >>$CONFIG_STATUS
17761   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17762   echo 'CEOF
17763   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17764   rm -f $tmp/in
17765   mv $tmp/out $tmp/in
17766 ' >>$CONFIG_STATUS
17767   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17768   rm -f conftest.undefs
17769   mv conftest.tail conftest.undefs
17770 done
17771 rm -f conftest.undefs
17772
17773 cat >>$CONFIG_STATUS <<\_ACEOF
17774   # Let's still pretend it is `configure' which instantiates (i.e., don't
17775   # use $as_me), people would be surprised to read:
17776   #    /* config.h.  Generated by config.status.  */
17777   if test x"$ac_file" = x-; then
17778     echo "/* Generated by configure.  */" >$tmp/config.h
17779   else
17780     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17781   fi
17782   cat $tmp/in >>$tmp/config.h
17783   rm -f $tmp/in
17784   if test x"$ac_file" != x-; then
17785     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17786       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17787 echo "$as_me: $ac_file is unchanged" >&6;}
17788     else
17789       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17791          X"$ac_file" : 'X\(//\)[^/]' \| \
17792          X"$ac_file" : 'X\(//\)$' \| \
17793          X"$ac_file" : 'X\(/\)' \| \
17794          .     : '\(.\)' 2>/dev/null ||
17795 echo X"$ac_file" |
17796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17798           /^X\(\/\/\)$/{ s//\1/; q; }
17799           /^X\(\/\).*/{ s//\1/; q; }
17800           s/.*/./; q'`
17801       { if $as_mkdir_p; then
17802     mkdir -p "$ac_dir"
17803   else
17804     as_dir="$ac_dir"
17805     as_dirs=
17806     while test ! -d "$as_dir"; do
17807       as_dirs="$as_dir $as_dirs"
17808       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17810          X"$as_dir" : 'X\(//\)[^/]' \| \
17811          X"$as_dir" : 'X\(//\)$' \| \
17812          X"$as_dir" : 'X\(/\)' \| \
17813          .     : '\(.\)' 2>/dev/null ||
17814 echo X"$as_dir" |
17815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17817           /^X\(\/\/\)$/{ s//\1/; q; }
17818           /^X\(\/\).*/{ s//\1/; q; }
17819           s/.*/./; q'`
17820     done
17821     test ! -n "$as_dirs" || mkdir $as_dirs
17822   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17824    { (exit 1); exit 1; }; }; }
17825
17826       rm -f $ac_file
17827       mv $tmp/config.h $ac_file
17828     fi
17829   else
17830     cat $tmp/config.h
17831     rm -f $tmp/config.h
17832   fi
17833 # Compute $ac_file's index in $config_headers.
17834 _am_stamp_count=1
17835 for _am_header in $config_headers :; do
17836   case $_am_header in
17837     $ac_file | $ac_file:* )
17838       break ;;
17839     * )
17840       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17841   esac
17842 done
17843 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17844 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17845          X$ac_file : 'X\(//\)[^/]' \| \
17846          X$ac_file : 'X\(//\)$' \| \
17847          X$ac_file : 'X\(/\)' \| \
17848          .     : '\(.\)' 2>/dev/null ||
17849 echo X$ac_file |
17850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17851           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17852           /^X\(\/\/\)$/{ s//\1/; q; }
17853           /^X\(\/\).*/{ s//\1/; q; }
17854           s/.*/./; q'`/stamp-h$_am_stamp_count
17855 done
17856 _ACEOF
17857 cat >>$CONFIG_STATUS <<\_ACEOF
17858
17859 #
17860 # CONFIG_COMMANDS section.
17861 #
17862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17863   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17864   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17865   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17867          X"$ac_dest" : 'X\(//\)[^/]' \| \
17868          X"$ac_dest" : 'X\(//\)$' \| \
17869          X"$ac_dest" : 'X\(/\)' \| \
17870          .     : '\(.\)' 2>/dev/null ||
17871 echo X"$ac_dest" |
17872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17874           /^X\(\/\/\)$/{ s//\1/; q; }
17875           /^X\(\/\).*/{ s//\1/; q; }
17876           s/.*/./; q'`
17877   ac_builddir=.
17878
17879 if test "$ac_dir" != .; then
17880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17881   # A "../" for each directory in $ac_dir_suffix.
17882   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17883 else
17884   ac_dir_suffix= ac_top_builddir=
17885 fi
17886
17887 case $srcdir in
17888   .)  # No --srcdir option.  We are building in place.
17889     ac_srcdir=.
17890     if test -z "$ac_top_builddir"; then
17891        ac_top_srcdir=.
17892     else
17893        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17894     fi ;;
17895   [\\/]* | ?:[\\/]* )  # Absolute path.
17896     ac_srcdir=$srcdir$ac_dir_suffix;
17897     ac_top_srcdir=$srcdir ;;
17898   *) # Relative path.
17899     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17900     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17901 esac
17902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17903 # absolute.
17904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17908
17909
17910   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17911 echo "$as_me: executing $ac_dest commands" >&6;}
17912   case $ac_dest in
17913     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17914   # Strip MF so we end up with the name of the file.
17915   mf=`echo "$mf" | sed -e 's/:.*$//'`
17916   # Check whether this is an Automake generated Makefile or not.
17917   # We used to match only the files named `Makefile.in', but
17918   # some people rename them; so instead we look at the file content.
17919   # Grep'ing the first line is not enough: some people post-process
17920   # each Makefile.in and add a new line on top of each file to say so.
17921   # So let's grep whole file.
17922   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17923     dirpart=`(dirname "$mf") 2>/dev/null ||
17924 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17925          X"$mf" : 'X\(//\)[^/]' \| \
17926          X"$mf" : 'X\(//\)$' \| \
17927          X"$mf" : 'X\(/\)' \| \
17928          .     : '\(.\)' 2>/dev/null ||
17929 echo X"$mf" |
17930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17932           /^X\(\/\/\)$/{ s//\1/; q; }
17933           /^X\(\/\).*/{ s//\1/; q; }
17934           s/.*/./; q'`
17935   else
17936     continue
17937   fi
17938   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17939   # Extract the definition of DEP_FILES from the Makefile without
17940   # running `make'.
17941   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17942   test -z "$DEPDIR" && continue
17943   # When using ansi2knr, U may be empty or an underscore; expand it
17944   U=`sed -n -e '/^U = / s///p' < "$mf"`
17945   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17946   # We invoke sed twice because it is the simplest approach to
17947   # changing $(DEPDIR) to its actual value in the expansion.
17948   for file in `sed -n -e '
17949     /^DEP_FILES = .*\\\\$/ {
17950       s/^DEP_FILES = //
17951       :loop
17952         s/\\\\$//
17953         p
17954         n
17955         /\\\\$/ b loop
17956       p
17957     }
17958     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17959        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17960     # Make sure the directory exists.
17961     test -f "$dirpart/$file" && continue
17962     fdir=`(dirname "$file") 2>/dev/null ||
17963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17964          X"$file" : 'X\(//\)[^/]' \| \
17965          X"$file" : 'X\(//\)$' \| \
17966          X"$file" : 'X\(/\)' \| \
17967          .     : '\(.\)' 2>/dev/null ||
17968 echo X"$file" |
17969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17971           /^X\(\/\/\)$/{ s//\1/; q; }
17972           /^X\(\/\).*/{ s//\1/; q; }
17973           s/.*/./; q'`
17974     { if $as_mkdir_p; then
17975     mkdir -p $dirpart/$fdir
17976   else
17977     as_dir=$dirpart/$fdir
17978     as_dirs=
17979     while test ! -d "$as_dir"; do
17980       as_dirs="$as_dir $as_dirs"
17981       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17983          X"$as_dir" : 'X\(//\)[^/]' \| \
17984          X"$as_dir" : 'X\(//\)$' \| \
17985          X"$as_dir" : 'X\(/\)' \| \
17986          .     : '\(.\)' 2>/dev/null ||
17987 echo X"$as_dir" |
17988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17990           /^X\(\/\/\)$/{ s//\1/; q; }
17991           /^X\(\/\).*/{ s//\1/; q; }
17992           s/.*/./; q'`
17993     done
17994     test ! -n "$as_dirs" || mkdir $as_dirs
17995   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17996 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17997    { (exit 1); exit 1; }; }; }
17998
17999     # echo "creating $dirpart/$file"
18000     echo '# dummy' > "$dirpart/$file"
18001   done
18002 done
18003  ;;
18004   esac
18005 done
18006 _ACEOF
18007
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18009
18010 { (exit 0); exit 0; }
18011 _ACEOF
18012 chmod +x $CONFIG_STATUS
18013 ac_clean_files=$ac_clean_files_save
18014
18015
18016 # configure is writing to config.log, and then calls config.status.
18017 # config.status does its own redirection, appending to config.log.
18018 # Unfortunately, on DOS this fails, as config.log is still kept open
18019 # by configure, so config.status won't be able to write to it; its
18020 # output is simply discarded.  So we exec the FD to /dev/null,
18021 # effectively closing config.log, so it can be properly (re)opened and
18022 # appended to by config.status.  When coming back to configure, we
18023 # need to make the FD available again.
18024 if test "$no_create" != yes; then
18025   ac_cs_success=:
18026   ac_config_status_args=
18027   test "$silent" = yes &&
18028     ac_config_status_args="$ac_config_status_args --quiet"
18029   exec 5>/dev/null
18030   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18031   exec 5>>config.log
18032   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18033   # would make configure fail if this is the last instruction.
18034   $ac_cs_success || { (exit 1); exit 1; }
18035 fi
18036