OSDN Git Service

add support for libFLAC
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
275
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848   --target=TARGET   configure for building compilers for TARGET [HOST]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of TiMidity++ current:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-maintainer-mode enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --enable-debug          Build a debugging version.
864   --disable-dependency-tracking Speeds up one-time builds
865   --enable-dependency-tracking  Do not reject slow dependency extractors
866   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867                               default:   Automatically select audio device.
868                               oss:       OSS /dev/dsp
869                               sun:       SunOS /dev/audio
870                               hpux:      HPUX /dev/audio
871                               irix:      IRIX audio library
872                               mme:       OSF/1 MME
873                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
874                               w32:       Windows MMS
875                               darwin:    Darwin CoreAudio
876                               alsa:      ALSA pcm device
877                               alib:      HPUX network audio (Alib)
878                               nas:       NAS - Network Audio System
879                               arts:      aRts
880                               esd:       EsounD - Enlightened Sound Daemon
881                               portaudio: PortAudio
882                               jack:      JACK
883                               ao:        Libao
884                               vorbis:    Ogg Vorbis
885                               flac:      FLAC / OggFLAC
886                               gogo:      MP3 GOGO (Only Windows is supported)
887   --disable-alsatest      Do not try to compile and run a test Alsa program
888   --disable-artstest       Do not try to compile and run a test ARTS program
889   --disable-esdtest       Do not try to compile and run a test ESD program
890   --disable-aotest       Do not try to compile and run a test ao program
891   --disable-oggtest       Do not try to compile and run a test Ogg program
892   --disable-vorbistest       Do not try to compile and run a test Vorbis program
893   --enable-interface=interface_list
894                           Comma separated interface list
895   --enable-dynamic        Enable dynamic link interface   (default is no)
896   --enable-dynamic=dynamic_list
897                           Comma separated dynamic interface list
898   --enable-ncurses        Enable ncurses interface        (default is no)
899   --enable-slang          Enable slang interface          (default is no)
900   --enable-motif          Enable motif interface          (default is no)
901   --enable-tcltk          Enable tcltk interface          (default is no)
902   --enable-emacs          Enable emacs interface          (default is no)
903   --enable-vt100          Enable VT100 interface          (default is no)
904   --enable-xaw            Enable athena interface         (default is no)
905   --enable-xskin          Enable X skin interface         (default is no)
906   --enable-gtk            Enable GTK+ interface           (default is no)
907   --disable-gtktest       Do not try to compile and run a test GTK program
908   --enable-server         Enable server interface         (default is no)
909   --enable-alsaseq        Enable ALSA sequencer server interface
910                                                           (default is no)
911   --enable-winsyn        Enable Windows Synthesizer interface
912                                                           (default is no)
913   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
914                                                           (default is no)
915   --enable-winsyng        Enable Windows GUI Synthesizer interface
916                                                           (default is no)
917   --enable-w32gui         Enable Windows GUI interface    (default is no)
918   --enable-ump            UMP configuration               (default is no)
919   --enable-offix          Enable offix support            (default is no)
920   --enable-network        Enable network support          (default is no)
921   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
922   --enable-spline=method  Specify spline method.
923                                   one of no,linear,cubic,lagrange,newton,gauss
924                                                           (default is linear)
925   --enable-wrd            Enable WRD interface for X      (default is no)
926
927 Optional Packages:
928   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
929   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
930   --with-includes=DIR     Specify include directories (colon separated)
931   --with-libraries=DIR    Specify library directories (colon separated)
932   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
933   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
934   --with-lispdir          Override the default lisp directory
935   --with-elf              create ELF shared object instead of AOUT
936   --with-x                use the X Window System
937   --with-tcl-includes=DIR Tcl include file path
938   --with-tcl-libs=DIR     Tcl library file path
939   --with-tk-includes=DIR  Tk include file path
940   --with-tk-libs=DIR      Tk library file path
941   --with-offix-includes=DIR Offix include file path
942   --with-offix-libs=DIR   Offix include file path
943   --with-nas-library=library NAS absolute library path(Don't use -laudio)
944   --with-nas-includes=DIR NAS include files are in dir
945   --with-default-output=<mode>  Specify default output mode (optional):
946                                 (default|alsa|alib|arts|nas|
947                                 esd|wav|au|aiff|list|vorbis|flac|
948                                 gogo|portaudio|jack|ao)
949   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
950   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
951   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
952   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
953   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
954   --with-ao=PFX   Prefix where libao is installed (optional)
955   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
956   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
957   --with-ogg=PFX   Prefix where libogg is installed (optional)
958   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
959   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
960   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
961   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
962   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
963   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
964   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
965
966 Some influential environment variables:
967   CC          C compiler command
968   CFLAGS      C compiler flags
969   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
970               nonstandard directory <lib dir>
971   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
972               headers in a nonstandard directory <include dir>
973   CPP         C preprocessor
974
975 Use these variables to override the choices made by `configure' or to help
976 it to find libraries and programs with nonstandard names/locations.
977
978 Report bugs to <root@mput.dip.jp>.
979 _ACEOF
980 fi
981
982 if test "$ac_init_help" = "recursive"; then
983   # If there are subdirs, report their specific --help.
984   ac_popdir=`pwd`
985   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
986     test -d $ac_dir || continue
987     ac_builddir=.
988
989 if test "$ac_dir" != .; then
990   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
991   # A "../" for each directory in $ac_dir_suffix.
992   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
993 else
994   ac_dir_suffix= ac_top_builddir=
995 fi
996
997 case $srcdir in
998   .)  # No --srcdir option.  We are building in place.
999     ac_srcdir=.
1000     if test -z "$ac_top_builddir"; then
1001        ac_top_srcdir=.
1002     else
1003        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1004     fi ;;
1005   [\\/]* | ?:[\\/]* )  # Absolute path.
1006     ac_srcdir=$srcdir$ac_dir_suffix;
1007     ac_top_srcdir=$srcdir ;;
1008   *) # Relative path.
1009     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1010     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1011 esac
1012
1013 # Do not use `cd foo && pwd` to compute absolute paths, because
1014 # the directories may not exist.
1015 case `pwd` in
1016 .) ac_abs_builddir="$ac_dir";;
1017 *)
1018   case "$ac_dir" in
1019   .) ac_abs_builddir=`pwd`;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1021   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1026 *)
1027   case ${ac_top_builddir}. in
1028   .) ac_abs_top_builddir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1030   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1031   esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_srcdir=$ac_srcdir;;
1035 *)
1036   case $ac_srcdir in
1037   .) ac_abs_srcdir=$ac_abs_builddir;;
1038   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1039   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1040   esac;;
1041 esac
1042 case $ac_abs_builddir in
1043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1044 *)
1045   case $ac_top_srcdir in
1046   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1047   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1048   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1049   esac;;
1050 esac
1051
1052     cd $ac_dir
1053     # Check for guested configure; otherwise get Cygnus style configure.
1054     if test -f $ac_srcdir/configure.gnu; then
1055       echo
1056       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1057     elif test -f $ac_srcdir/configure; then
1058       echo
1059       $SHELL $ac_srcdir/configure  --help=recursive
1060     elif test -f $ac_srcdir/configure.ac ||
1061            test -f $ac_srcdir/configure.in; then
1062       echo
1063       $ac_configure --help
1064     else
1065       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1066     fi
1067     cd $ac_popdir
1068   done
1069 fi
1070
1071 test -n "$ac_init_help" && exit 0
1072 if $ac_init_version; then
1073   cat <<\_ACEOF
1074 TiMidity++ configure current
1075 generated by GNU Autoconf 2.59
1076
1077 Copyright (C) 2003 Free Software Foundation, Inc.
1078 This configure script is free software; the Free Software Foundation
1079 gives unlimited permission to copy, distribute and modify it.
1080 _ACEOF
1081   exit 0
1082 fi
1083 exec 5>config.log
1084 cat >&5 <<_ACEOF
1085 This file contains any messages produced by compilers while
1086 running configure, to aid debugging if configure makes a mistake.
1087
1088 It was created by TiMidity++ $as_me current, which was
1089 generated by GNU Autoconf 2.59.  Invocation command line was
1090
1091   $ $0 $@
1092
1093 _ACEOF
1094 {
1095 cat <<_ASUNAME
1096 ## --------- ##
1097 ## Platform. ##
1098 ## --------- ##
1099
1100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1105
1106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1107 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1108
1109 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1110 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1112 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1113 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1114 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1115 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1116
1117 _ASUNAME
1118
1119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1120 for as_dir in $PATH
1121 do
1122   IFS=$as_save_IFS
1123   test -z "$as_dir" && as_dir=.
1124   echo "PATH: $as_dir"
1125 done
1126
1127 } >&5
1128
1129 cat >&5 <<_ACEOF
1130
1131
1132 ## ----------- ##
1133 ## Core tests. ##
1134 ## ----------- ##
1135
1136 _ACEOF
1137
1138
1139 # Keep a trace of the command line.
1140 # Strip out --no-create and --no-recursion so they do not pile up.
1141 # Strip out --silent because we don't want to record it for future runs.
1142 # Also quote any args containing shell meta-characters.
1143 # Make two passes to allow for proper duplicate-argument suppression.
1144 ac_configure_args=
1145 ac_configure_args0=
1146 ac_configure_args1=
1147 ac_sep=
1148 ac_must_keep_next=false
1149 for ac_pass in 1 2
1150 do
1151   for ac_arg
1152   do
1153     case $ac_arg in
1154     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1155     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156     | -silent | --silent | --silen | --sile | --sil)
1157       continue ;;
1158     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1159       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1160     esac
1161     case $ac_pass in
1162     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1163     2)
1164       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1165       if test $ac_must_keep_next = true; then
1166         ac_must_keep_next=false # Got value, back to normal.
1167       else
1168         case $ac_arg in
1169           *=* | --config-cache | -C | -disable-* | --disable-* \
1170           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1171           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1172           | -with-* | --with-* | -without-* | --without-* | --x)
1173             case "$ac_configure_args0 " in
1174               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1175             esac
1176             ;;
1177           -* ) ac_must_keep_next=true ;;
1178         esac
1179       fi
1180       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1181       # Get rid of the leading space.
1182       ac_sep=" "
1183       ;;
1184     esac
1185   done
1186 done
1187 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1188 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1189
1190 # When interrupted or exit'd, cleanup temporary files, and complete
1191 # config.log.  We remove comments because anyway the quotes in there
1192 # would cause problems or look ugly.
1193 # WARNING: Be sure not to use single quotes in there, as some shells,
1194 # such as our DU 5.0 friend, will then `close' the trap.
1195 trap 'exit_status=$?
1196   # Save into config.log some information that might help in debugging.
1197   {
1198     echo
1199
1200     cat <<\_ASBOX
1201 ## ---------------- ##
1202 ## Cache variables. ##
1203 ## ---------------- ##
1204 _ASBOX
1205     echo
1206     # The following way of writing the cache mishandles newlines in values,
1207 {
1208   (set) 2>&1 |
1209     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1210     *ac_space=\ *)
1211       sed -n \
1212         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1213           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1214       ;;
1215     *)
1216       sed -n \
1217         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1218       ;;
1219     esac;
1220 }
1221     echo
1222
1223     cat <<\_ASBOX
1224 ## ----------------- ##
1225 ## Output variables. ##
1226 ## ----------------- ##
1227 _ASBOX
1228     echo
1229     for ac_var in $ac_subst_vars
1230     do
1231       eval ac_val=$`echo $ac_var`
1232       echo "$ac_var='"'"'$ac_val'"'"'"
1233     done | sort
1234     echo
1235
1236     if test -n "$ac_subst_files"; then
1237       cat <<\_ASBOX
1238 ## ------------- ##
1239 ## Output files. ##
1240 ## ------------- ##
1241 _ASBOX
1242       echo
1243       for ac_var in $ac_subst_files
1244       do
1245         eval ac_val=$`echo $ac_var`
1246         echo "$ac_var='"'"'$ac_val'"'"'"
1247       done | sort
1248       echo
1249     fi
1250
1251     if test -s confdefs.h; then
1252       cat <<\_ASBOX
1253 ## ----------- ##
1254 ## confdefs.h. ##
1255 ## ----------- ##
1256 _ASBOX
1257       echo
1258       sed "/^$/d" confdefs.h | sort
1259       echo
1260     fi
1261     test "$ac_signal" != 0 &&
1262       echo "$as_me: caught signal $ac_signal"
1263     echo "$as_me: exit $exit_status"
1264   } >&5
1265   rm -f core *.core &&
1266   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1267     exit $exit_status
1268      ' 0
1269 for ac_signal in 1 2 13 15; do
1270   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1271 done
1272 ac_signal=0
1273
1274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1275 rm -rf conftest* confdefs.h
1276 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1277 echo >confdefs.h
1278
1279 # Predefined preprocessor variables.
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_NAME "$PACKAGE_NAME"
1283 _ACEOF
1284
1285
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1288 _ACEOF
1289
1290
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1293 _ACEOF
1294
1295
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_STRING "$PACKAGE_STRING"
1298 _ACEOF
1299
1300
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1303 _ACEOF
1304
1305
1306 # Let the site file select an alternate cache file if it wants to.
1307 # Prefer explicitly selected file to automatically selected ones.
1308 if test -z "$CONFIG_SITE"; then
1309   if test "x$prefix" != xNONE; then
1310     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1311   else
1312     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1313   fi
1314 fi
1315 for ac_site_file in $CONFIG_SITE; do
1316   if test -r "$ac_site_file"; then
1317     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1318 echo "$as_me: loading site script $ac_site_file" >&6;}
1319     sed 's/^/| /' "$ac_site_file" >&5
1320     . "$ac_site_file"
1321   fi
1322 done
1323
1324 if test -r "$cache_file"; then
1325   # Some versions of bash will fail to source /dev/null (special
1326   # files actually), so we avoid doing that.
1327   if test -f "$cache_file"; then
1328     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1329 echo "$as_me: loading cache $cache_file" >&6;}
1330     case $cache_file in
1331       [\\/]* | ?:[\\/]* ) . $cache_file;;
1332       *)                      . ./$cache_file;;
1333     esac
1334   fi
1335 else
1336   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1337 echo "$as_me: creating cache $cache_file" >&6;}
1338   >$cache_file
1339 fi
1340
1341 # Check that the precious variables saved in the cache have kept the same
1342 # value.
1343 ac_cache_corrupted=false
1344 for ac_var in `(set) 2>&1 |
1345                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1346   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1347   eval ac_new_set=\$ac_env_${ac_var}_set
1348   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1349   eval ac_new_val="\$ac_env_${ac_var}_value"
1350   case $ac_old_set,$ac_new_set in
1351     set,)
1352       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1353 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1354       ac_cache_corrupted=: ;;
1355     ,set)
1356       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1358       ac_cache_corrupted=: ;;
1359     ,);;
1360     *)
1361       if test "x$ac_old_val" != "x$ac_new_val"; then
1362         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1363 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1364         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1365 echo "$as_me:   former value:  $ac_old_val" >&2;}
1366         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1367 echo "$as_me:   current value: $ac_new_val" >&2;}
1368         ac_cache_corrupted=:
1369       fi;;
1370   esac
1371   # Pass precious variables to config.status.
1372   if test "$ac_new_set" = set; then
1373     case $ac_new_val in
1374     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1375       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1376     *) ac_arg=$ac_var=$ac_new_val ;;
1377     esac
1378     case " $ac_configure_args " in
1379       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1380       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1381     esac
1382   fi
1383 done
1384 if $ac_cache_corrupted; then
1385   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1386 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1387   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1388 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1389    { (exit 1); exit 1; }; }
1390 fi
1391
1392 ac_ext=c
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424 ac_aux_dir=
1425 for ac_dir in autoconf $srcdir/autoconf; do
1426   if test -f $ac_dir/install-sh; then
1427     ac_aux_dir=$ac_dir
1428     ac_install_sh="$ac_aux_dir/install-sh -c"
1429     break
1430   elif test -f $ac_dir/install.sh; then
1431     ac_aux_dir=$ac_dir
1432     ac_install_sh="$ac_aux_dir/install.sh -c"
1433     break
1434   elif test -f $ac_dir/shtool; then
1435     ac_aux_dir=$ac_dir
1436     ac_install_sh="$ac_aux_dir/shtool install -c"
1437     break
1438   fi
1439 done
1440 if test -z "$ac_aux_dir"; then
1441   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1442 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1443    { (exit 1); exit 1; }; }
1444 fi
1445 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1446 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1447 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1448
1449 # Make sure we can run config.sub.
1450 $ac_config_sub sun4 >/dev/null 2>&1 ||
1451   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1452 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1453    { (exit 1); exit 1; }; }
1454
1455 echo "$as_me:$LINENO: checking build system type" >&5
1456 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1457 if test "${ac_cv_build+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   ac_cv_build_alias=$build_alias
1461 test -z "$ac_cv_build_alias" &&
1462   ac_cv_build_alias=`$ac_config_guess`
1463 test -z "$ac_cv_build_alias" &&
1464   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1465 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1466    { (exit 1); exit 1; }; }
1467 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1468   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1470    { (exit 1); exit 1; }; }
1471
1472 fi
1473 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1474 echo "${ECHO_T}$ac_cv_build" >&6
1475 build=$ac_cv_build
1476 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479
1480
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488   ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492    { (exit 1); exit 1; }; }
1493
1494 fi
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1497 host=$ac_cv_host
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501
1502
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510   ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514    { (exit 1); exit 1; }; }
1515
1516 fi
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1523
1524
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528   test "$program_prefix$program_suffix$program_transform_name" = \
1529     NONENONEs,x,x, &&
1530   program_prefix=${target_alias}-
1531 am__api_version="1.7"
1532 # Find a good install program.  We prefer a C program (faster),
1533 # so one script is as good as another.  But avoid the broken or
1534 # incompatible versions:
1535 # SysV /etc/install, /usr/sbin/install
1536 # SunOS /usr/etc/install
1537 # IRIX /sbin/install
1538 # AIX /bin/install
1539 # AmigaOS /C/install, which installs bootblocks on floppy discs
1540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1543 # OS/2's system install, which has a completely different semantic
1544 # ./install, which can be erroneously created by make from ./install.sh.
1545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1547 if test -z "$INSTALL"; then
1548 if test "${ac_cv_path_install+set}" = set; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554   IFS=$as_save_IFS
1555   test -z "$as_dir" && as_dir=.
1556   # Account for people who put trailing slashes in PATH elements.
1557 case $as_dir/ in
1558   ./ | .// | /cC/* | \
1559   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1560   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1561   /usr/ucb/* ) ;;
1562   *)
1563     # OSF1 and SCO ODT 3.0 have their own names for install.
1564     # Don't use installbsd from OSF since it installs stuff as root
1565     # by default.
1566     for ac_prog in ginstall scoinst install; do
1567       for ac_exec_ext in '' $ac_executable_extensions; do
1568         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1569           if test $ac_prog = install &&
1570             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571             # AIX install.  It has an incompatible calling convention.
1572             :
1573           elif test $ac_prog = install &&
1574             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575             # program-specific install script used by HP pwplus--don't use.
1576             :
1577           else
1578             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1579             break 3
1580           fi
1581         fi
1582       done
1583     done
1584     ;;
1585 esac
1586 done
1587
1588
1589 fi
1590   if test "${ac_cv_path_install+set}" = set; then
1591     INSTALL=$ac_cv_path_install
1592   else
1593     # As a last resort, use the slow shell script.  We don't cache a
1594     # path for INSTALL within a source directory, because that will
1595     # break other packages using the cache if that directory is
1596     # removed, or if the path is relative.
1597     INSTALL=$ac_install_sh
1598   fi
1599 fi
1600 echo "$as_me:$LINENO: result: $INSTALL" >&5
1601 echo "${ECHO_T}$INSTALL" >&6
1602
1603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1604 # It thinks the first close brace ends the variable substitution.
1605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1606
1607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1608
1609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1610
1611 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1612 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1613 # Just in case
1614 sleep 1
1615 echo timestamp > conftest.file
1616 # Do `set' in a subshell so we don't clobber the current shell's
1617 # arguments.  Must try -L first in case configure is actually a
1618 # symlink; some systems play weird games with the mod time of symlinks
1619 # (eg FreeBSD returns the mod time of the symlink's containing
1620 # directory).
1621 if (
1622    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1623    if test "$*" = "X"; then
1624       # -L didn't work.
1625       set X `ls -t $srcdir/configure conftest.file`
1626    fi
1627    rm -f conftest.file
1628    if test "$*" != "X $srcdir/configure conftest.file" \
1629       && test "$*" != "X conftest.file $srcdir/configure"; then
1630
1631       # If neither matched, then we have a broken ls.  This can happen
1632       # if, for instance, CONFIG_SHELL is bash and it inherits a
1633       # broken ls alias from the environment.  This has actually
1634       # happened.  Such a system could not be considered "sane".
1635       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1636 alias in your environment" >&5
1637 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1638 alias in your environment" >&2;}
1639    { (exit 1); exit 1; }; }
1640    fi
1641
1642    test "$2" = conftest.file
1643    )
1644 then
1645    # Ok.
1646    :
1647 else
1648    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1649 Check your system clock" >&5
1650 echo "$as_me: error: newly created file is older than distributed files!
1651 Check your system clock" >&2;}
1652    { (exit 1); exit 1; }; }
1653 fi
1654 echo "$as_me:$LINENO: result: yes" >&5
1655 echo "${ECHO_T}yes" >&6
1656 test "$program_prefix" != NONE &&
1657   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1658 # Use a double $ so make ignores it.
1659 test "$program_suffix" != NONE &&
1660   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1661 # Double any \ or $.  echo might interpret backslashes.
1662 # By default was `s,x,x', remove it if useless.
1663 cat <<\_ACEOF >conftest.sed
1664 s/[\\$]/&&/g;s/;s,x,x,$//
1665 _ACEOF
1666 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1667 rm conftest.sed
1668
1669
1670 # expand $ac_aux_dir to an absolute path
1671 am_aux_dir=`cd $ac_aux_dir && pwd`
1672
1673 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1674 # Use eval to expand $SHELL
1675 if eval "$MISSING --run true"; then
1676   am_missing_run="$MISSING --run "
1677 else
1678   am_missing_run=
1679   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1680 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1681 fi
1682
1683 for ac_prog in gawk mawk nawk awk
1684 do
1685   # Extract the first word of "$ac_prog", so it can be a program name with args.
1686 set dummy $ac_prog; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_AWK+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$AWK"; then
1693   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     ac_cv_prog_AWK="$ac_prog"
1703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704     break 2
1705   fi
1706 done
1707 done
1708
1709 fi
1710 fi
1711 AWK=$ac_cv_prog_AWK
1712 if test -n "$AWK"; then
1713   echo "$as_me:$LINENO: result: $AWK" >&5
1714 echo "${ECHO_T}$AWK" >&6
1715 else
1716   echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720   test -n "$AWK" && break
1721 done
1722
1723 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1724 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1725 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1726 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1727   echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729   cat >conftest.make <<\_ACEOF
1730 all:
1731         @echo 'ac_maketemp="$(MAKE)"'
1732 _ACEOF
1733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1734 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1735 if test -n "$ac_maketemp"; then
1736   eval ac_cv_prog_make_${ac_make}_set=yes
1737 else
1738   eval ac_cv_prog_make_${ac_make}_set=no
1739 fi
1740 rm -f conftest.make
1741 fi
1742 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1743   echo "$as_me:$LINENO: result: yes" >&5
1744 echo "${ECHO_T}yes" >&6
1745   SET_MAKE=
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749   SET_MAKE="MAKE=${MAKE-make}"
1750 fi
1751
1752 rm -rf .tst 2>/dev/null
1753 mkdir .tst 2>/dev/null
1754 if test -d .tst; then
1755   am__leading_dot=.
1756 else
1757   am__leading_dot=_
1758 fi
1759 rmdir .tst 2>/dev/null
1760
1761  # test to see if srcdir already configured
1762 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1763    test -f $srcdir/config.status; then
1764   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1765 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1766    { (exit 1); exit 1; }; }
1767 fi
1768
1769 # test whether we have cygpath
1770 if test -z "$CYGPATH_W"; then
1771   if (cygpath --version) >/dev/null 2>/dev/null; then
1772     CYGPATH_W='cygpath -w'
1773   else
1774     CYGPATH_W=echo
1775   fi
1776 fi
1777
1778
1779 # Define the identity of the package.
1780  PACKAGE='TiMidity++'
1781  VERSION='current'
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE "$PACKAGE"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define VERSION "$VERSION"
1791 _ACEOF
1792
1793 # Some tools Automake needs.
1794
1795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1796
1797
1798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1799
1800
1801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1802
1803
1804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1805
1806
1807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1808
1809
1810 AMTAR=${AMTAR-"${am_missing_run}tar"}
1811
1812 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1813
1814 # Installed binaries are usually stripped using `strip' when the user
1815 # run `make install-strip'.  However `strip' might not be the right
1816 # tool to use in cross-compilation environments, therefore Automake
1817 # will honor the `STRIP' environment variable to overrule this program.
1818 if test "$cross_compiling" != no; then
1819   if test -n "$ac_tool_prefix"; then
1820   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}strip; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_STRIP+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$STRIP"; then
1828   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 STRIP=$ac_cv_prog_STRIP
1847 if test -n "$STRIP"; then
1848   echo "$as_me:$LINENO: result: $STRIP" >&5
1849 echo "${ECHO_T}$STRIP" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 fi
1856 if test -z "$ac_cv_prog_STRIP"; then
1857   ac_ct_STRIP=$STRIP
1858   # Extract the first word of "strip", so it can be a program name with args.
1859 set dummy strip; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_STRIP"; then
1866   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_STRIP="strip"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1883 fi
1884 fi
1885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1886 if test -n "$ac_ct_STRIP"; then
1887   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1888 echo "${ECHO_T}$ac_ct_STRIP" >&6
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 fi
1893
1894   STRIP=$ac_ct_STRIP
1895 else
1896   STRIP="$ac_cv_prog_STRIP"
1897 fi
1898
1899 fi
1900 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1901
1902 # We need awk for the "check" target.  The system "awk" is bad on
1903 # some platforms.
1904
1905
1906
1907
1908                     ac_config_headers="$ac_config_headers config.h interface.h"
1909
1910 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1911 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1912     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1913 if test "${enable_maintainer_mode+set}" = set; then
1914   enableval="$enable_maintainer_mode"
1915   USE_MAINTAINER_MODE=$enableval
1916 else
1917   USE_MAINTAINER_MODE=no
1918 fi;
1919   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1920 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1921
1922
1923 if test $USE_MAINTAINER_MODE = yes; then
1924   MAINTAINER_MODE_TRUE=
1925   MAINTAINER_MODE_FALSE='#'
1926 else
1927   MAINTAINER_MODE_TRUE='#'
1928   MAINTAINER_MODE_FALSE=
1929 fi
1930
1931   MAINT=$MAINTAINER_MODE_TRUE
1932
1933
1934
1935 SHELL=${CONFIG_SHELL-"/bin/sh"}
1936 WISH=${WISH-"wish"}
1937
1938 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1939 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1940 echo "grimblepritz" >grimble
1941 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1942         contains="./contains"
1943 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1944         contains=grep
1945 else
1946         contains="./contains"
1947 fi
1948 rm -f grimble
1949 case "$contains" in
1950 grep)   echo "$as_me:$LINENO: result: yes" >&5
1951 echo "${ECHO_T}yes" >&6
1952         ;;
1953 ./contains)
1954         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1955 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1956         cat >./contains <<'EOSS'
1957 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1958 EOSS
1959         chmod +x "./contains"
1960         ;;
1961 esac
1962
1963
1964 # Check for compiler options -- such as debug flags.
1965
1966 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1967 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1968 # Check whether --enable-debug or --disable-debug was given.
1969 if test "${enable_debug+set}" = set; then
1970   enableval="$enable_debug"
1971   timidity_cv_debug="yes"
1972 else
1973   timidity_cv_debug="no"
1974 fi;
1975 if test "x$timidity_cv_debug" = "xyes"; then
1976
1977 cat >>confdefs.h <<\_ACEOF
1978 #define DEBUG 1
1979 _ACEOF
1980
1981   CFLAGS=${CFLAGS-"-g"}
1982 fi
1983 if test "x$timidity_cv_debug" = "xno"; then
1984
1985 cat >>confdefs.h <<\_ACEOF
1986 #define NDEBUG 1
1987 _ACEOF
1988
1989 fi
1990 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1991 echo "${ECHO_T}$timidity_cv_debug" >&6
1992
1993 CFLAGS=${CFLAGS-"-O2"}
1994
1995 if test "x$with_x" = x; then
1996   with_x=yes
1997 else
1998   x_config_flag=yes
1999 fi
2000
2001 # Checking gcc environment
2002 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2003   LDFLAGS="$LDFLAGS -L${i}"
2004 done
2005 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2006   CPPFLAGS="$CPPFLAGS -I${i}"
2007 done
2008
2009 # add $prefix if specified.
2010 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2011   LDFLAGS="-L$prefix/lib $LDFLAGS"
2012   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2013   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2014 fi
2015
2016
2017 # Check whether --with-includes or --without-includes was given.
2018 if test "${with_includes+set}" = set; then
2019   withval="$with_includes"
2020    j=' '
2021     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2022       j="${j}-I${i} "
2023     done
2024     CPPFLAGS="$j$CPPFLAGS"
2025
2026 fi;
2027
2028
2029 # Check whether --with-libraries or --without-libraries was given.
2030 if test "${with_libraries+set}" = set; then
2031   withval="$with_libraries"
2032    j=' '
2033     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2034       j="${j}-L${i} "
2035     done
2036     LDFLAGS="$j$LDFLAGS"
2037
2038 fi;
2039
2040
2041
2042 # Check whether --with-default-path or --without-default-path was given.
2043 if test "${with_default_path+set}" = set; then
2044   withval="$with_default_path"
2045   pkgdatadir=$withval
2046 else
2047
2048    if test "x$prefix" != "xNONE"; then
2049       pkgdatadir='${prefix}/share/timidity'
2050    else
2051       pkgdatadir='/usr/local/share/timidity'
2052    fi
2053
2054 fi;
2055 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define DEFAULT_PATH "$tmpdefpath"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<\_ACEOF
2063 #define PKGDATADIR DEFAULT_PATH
2064 _ACEOF
2065
2066
2067
2068 # Check whether --with-module-dir or --without-module-dir was given.
2069 if test "${with_module_dir+set}" = set; then
2070   withval="$with_module_dir"
2071   pkglibdir=$withval
2072 else
2073
2074    if test "x$prefix" != "xNONE"; then
2075       pkglibdir='${prefix}/lib/timidity'
2076    else
2077       pkglibdir='/usr/local/lib/timidity'
2078    fi
2079
2080 fi;
2081 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PKGLIBDIR "$tmplibdir"
2085 _ACEOF
2086
2087
2088
2089 # Checks for programs.
2090
2091 # Check whether --with-lispdir or --without-lispdir was given.
2092 if test "${with_lispdir+set}" = set; then
2093   withval="$with_lispdir"
2094    lispdir="$withval"
2095    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2096 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2097    echo "$as_me:$LINENO: result: $lispdir" >&5
2098 echo "${ECHO_T}$lispdir" >&6
2099 else
2100
2101  # If set to t, that means we are running in a shell under Emacs.
2102  # If you have an Emacs named "t", then use the full path.
2103  test x"$EMACS" = xt && EMACS=
2104  for ac_prog in emacs xemacs
2105 do
2106   # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_EMACS+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   if test -n "$EMACS"; then
2114   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121   for ac_exec_ext in '' $ac_executable_extensions; do
2122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123     ac_cv_prog_EMACS="$ac_prog"
2124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125     break 2
2126   fi
2127 done
2128 done
2129
2130 fi
2131 fi
2132 EMACS=$ac_cv_prog_EMACS
2133 if test -n "$EMACS"; then
2134   echo "$as_me:$LINENO: result: $EMACS" >&5
2135 echo "${ECHO_T}$EMACS" >&6
2136 else
2137   echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141   test -n "$EMACS" && break
2142 done
2143 test -n "$EMACS" || EMACS="no"
2144
2145  if test $EMACS != "no"; then
2146    if test x${lispdir+set} != xset; then
2147      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2148 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2149 if test "${am_cv_lispdir+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2153   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2154   #  which is non-obvious for non-emacs users.
2155   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2156   #  emacsen earlier and avoid running this altogether.
2157   { (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
2158   ($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
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }
2162         am_cv_lispdir=`sed -n \
2163        -e 's,/$,,' \
2164        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2165        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2166        conftest.out`
2167        rm conftest.out
2168        if test -z "$am_cv_lispdir"; then
2169          am_cv_lispdir='${datadir}/emacs/site-lisp'
2170        fi
2171
2172 fi
2173 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2174 echo "${ECHO_T}$am_cv_lispdir" >&6
2175      lispdir="$am_cv_lispdir"
2176    fi
2177  fi
2178
2179 fi;
2180
2181
2182 ac_ext=c
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187 if test -n "$ac_tool_prefix"; then
2188   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2189 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_CC+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test -n "$CC"; then
2196   ac_cv_prog_CC="$CC" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201   IFS=$as_save_IFS
2202   test -z "$as_dir" && as_dir=.
2203   for ac_exec_ext in '' $ac_executable_extensions; do
2204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2205     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207     break 2
2208   fi
2209 done
2210 done
2211
2212 fi
2213 fi
2214 CC=$ac_cv_prog_CC
2215 if test -n "$CC"; then
2216   echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6
2218 else
2219   echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2221 fi
2222
2223 fi
2224 if test -z "$ac_cv_prog_CC"; then
2225   ac_ct_CC=$CC
2226   # Extract the first word of "gcc", so it can be a program name with args.
2227 set dummy gcc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$ac_ct_CC"; then
2234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     ac_cv_prog_ac_ct_CC="gcc"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253 if test -n "$ac_ct_CC"; then
2254   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2255 echo "${ECHO_T}$ac_ct_CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261   CC=$ac_ct_CC
2262 else
2263   CC="$ac_cv_prog_CC"
2264 fi
2265
2266 if test -z "$CC"; then
2267   if test -n "$ac_tool_prefix"; then
2268   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}cc; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$CC"; then
2276   ac_cv_prog_CC="$CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285     ac_cv_prog_CC="${ac_tool_prefix}cc"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296   echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6
2298 else
2299   echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2301 fi
2302
2303 fi
2304 if test -z "$ac_cv_prog_CC"; then
2305   ac_ct_CC=$CC
2306   # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   if test -n "$ac_ct_CC"; then
2314   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   for ac_exec_ext in '' $ac_executable_extensions; do
2322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323     ac_cv_prog_ac_ct_CC="cc"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329
2330 fi
2331 fi
2332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2333 if test -n "$ac_ct_CC"; then
2334   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2335 echo "${ECHO_T}$ac_ct_CC" >&6
2336 else
2337   echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6
2339 fi
2340
2341   CC=$ac_ct_CC
2342 else
2343   CC="$ac_cv_prog_CC"
2344 fi
2345
2346 fi
2347 if test -z "$CC"; then
2348   # Extract the first word of "cc", so it can be a program name with args.
2349 set dummy cc; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CC"; then
2356   ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358   ac_prog_rejected=no
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362   IFS=$as_save_IFS
2363   test -z "$as_dir" && as_dir=.
2364   for ac_exec_ext in '' $ac_executable_extensions; do
2365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2367        ac_prog_rejected=yes
2368        continue
2369      fi
2370     ac_cv_prog_CC="cc"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376
2377 if test $ac_prog_rejected = yes; then
2378   # We found a bogon in the path, so make sure we never use it.
2379   set dummy $ac_cv_prog_CC
2380   shift
2381   if test $# != 0; then
2382     # We chose a different compiler from the bogus one.
2383     # However, it has the same basename, so the bogon will be chosen
2384     # first if we set CC to just the basename; use the full file name.
2385     shift
2386     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2387   fi
2388 fi
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 fi
2401 if test -z "$CC"; then
2402   if test -n "$ac_tool_prefix"; then
2403   for ac_prog in cl
2404   do
2405     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   if test -n "$CC"; then
2413   ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427 done
2428
2429 fi
2430 fi
2431 CC=$ac_cv_prog_CC
2432 if test -n "$CC"; then
2433   echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6
2435 else
2436   echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 fi
2439
2440     test -n "$CC" && break
2441   done
2442 fi
2443 if test -z "$CC"; then
2444   ac_ct_CC=$CC
2445   for ac_prog in cl
2446 do
2447   # Extract the first word of "$ac_prog", so it can be a program name with args.
2448 set dummy $ac_prog; ac_word=$2
2449 echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   if test -n "$ac_ct_CC"; then
2455   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460   IFS=$as_save_IFS
2461   test -z "$as_dir" && as_dir=.
2462   for ac_exec_ext in '' $ac_executable_extensions; do
2463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464     ac_cv_prog_ac_ct_CC="$ac_prog"
2465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466     break 2
2467   fi
2468 done
2469 done
2470
2471 fi
2472 fi
2473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2474 if test -n "$ac_ct_CC"; then
2475   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2476 echo "${ECHO_T}$ac_ct_CC" >&6
2477 else
2478   echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2480 fi
2481
2482   test -n "$ac_ct_CC" && break
2483 done
2484
2485   CC=$ac_ct_CC
2486 fi
2487
2488 fi
2489
2490
2491 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: no acceptable C compiler found in \$PATH
2494 See \`config.log' for more details." >&2;}
2495    { (exit 1); exit 1; }; }
2496
2497 # Provide some information about the compiler.
2498 echo "$as_me:$LINENO:" \
2499      "checking for C compiler version" >&5
2500 ac_compiler=`set X $ac_compile; echo $2`
2501 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2502   (eval $ac_compiler --version </dev/null >&5) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }
2506 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2507   (eval $ac_compiler -v </dev/null >&5) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2512   (eval $ac_compiler -V </dev/null >&5) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }
2516
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 ac_clean_files_save=$ac_clean_files
2533 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2534 # Try to create an executable without -o first, disregard a.out.
2535 # It will help us diagnose broken compilers, and finding out an intuition
2536 # of exeext.
2537 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2538 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2539 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2540 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2541   (eval $ac_link_default) 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; then
2545   # Find the output, starting from the most likely.  This scheme is
2546 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2547 # resort.
2548
2549 # Be careful to initialize this variable, since it used to be cached.
2550 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2551 ac_cv_exeext=
2552 # b.out is created by i960 compilers.
2553 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2554 do
2555   test -f "$ac_file" || continue
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2558         ;;
2559     conftest.$ac_ext )
2560         # This is the source file.
2561         ;;
2562     [ab].out )
2563         # We found the default executable, but exeext='' is most
2564         # certainly right.
2565         break;;
2566     *.* )
2567         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2568         # FIXME: I believe we export ac_cv_exeext for Libtool,
2569         # but it would be cool to find out if it's true.  Does anybody
2570         # maintain Libtool? --akim.
2571         export ac_cv_exeext
2572         break;;
2573     * )
2574         break;;
2575   esac
2576 done
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: C compiler cannot create executables
2584 See \`config.log' for more details." >&2;}
2585    { (exit 77); exit 77; }; }
2586 fi
2587
2588 ac_exeext=$ac_cv_exeext
2589 echo "$as_me:$LINENO: result: $ac_file" >&5
2590 echo "${ECHO_T}$ac_file" >&6
2591
2592 # Check the compiler produces executables we can run.  If not, either
2593 # the compiler is broken, or we cross compile.
2594 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2595 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2596 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2597 # If not cross compiling, check that we can run a simple program.
2598 if test "$cross_compiling" != yes; then
2599   if { ac_try='./$ac_file'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; }; then
2605     cross_compiling=no
2606   else
2607     if test "$cross_compiling" = maybe; then
2608         cross_compiling=yes
2609     else
2610         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2611 If you meant to cross compile, use \`--host'.
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&2;}
2616    { (exit 1); exit 1; }; }
2617     fi
2618   fi
2619 fi
2620 echo "$as_me:$LINENO: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6
2622
2623 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2624 ac_clean_files=$ac_clean_files_save
2625 # Check the compiler produces executables we can run.  If not, either
2626 # the compiler is broken, or we cross compile.
2627 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2628 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2629 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2630 echo "${ECHO_T}$cross_compiling" >&6
2631
2632 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2633 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635   (eval $ac_link) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; then
2639   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 # `rm'.
2643 for ac_file in conftest.exe conftest conftest.*; do
2644   test -f "$ac_file" || continue
2645   case $ac_file in
2646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2647     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648           export ac_cv_exeext
2649           break;;
2650     * ) break;;
2651   esac
2652 done
2653 else
2654   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&2;}
2658    { (exit 1); exit 1; }; }
2659 fi
2660
2661 rm -f conftest$ac_cv_exeext
2662 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6
2664
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2667 ac_exeext=$EXEEXT
2668 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2670 if test "${ac_cv_objext+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.o conftest.obj
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690   (eval $ac_compile) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; then
2694   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2695   case $ac_file in
2696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2697     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698        break;;
2699   esac
2700 done
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2706 See \`config.log' for more details." >&5
2707 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details." >&2;}
2709    { (exit 1); exit 1; }; }
2710 fi
2711
2712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2713 fi
2714 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2715 echo "${ECHO_T}$ac_cv_objext" >&6
2716 OBJEXT=$ac_cv_objext
2717 ac_objext=$OBJEXT
2718 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733 #ifndef __GNUC__
2734        choke me
2735 #endif
2736
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743   (eval $ac_compile) 2>conftest.er1
2744   ac_status=$?
2745   grep -v '^ *+' conftest.er1 >conftest.err
2746   rm -f conftest.er1
2747   cat conftest.err >&5
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } &&
2750          { ac_try='test -z "$ac_c_werror_flag"
2751                          || test ! -s conftest.err'
2752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753   (eval $ac_try) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; } &&
2757          { ac_try='test -s conftest.$ac_objext'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_compiler_gnu=yes
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_compiler_gnu=no
2769 fi
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2772
2773 fi
2774 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2775 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2776 GCC=`test $ac_compiler_gnu = yes && echo yes`
2777 ac_test_CFLAGS=${CFLAGS+set}
2778 ac_save_CFLAGS=$CFLAGS
2779 CFLAGS="-g"
2780 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h.  */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h.  */
2791
2792 int
2793 main ()
2794 {
2795
2796   ;
2797   return 0;
2798 }
2799 _ACEOF
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802   (eval $ac_compile) 2>conftest.er1
2803   ac_status=$?
2804   grep -v '^ *+' conftest.er1 >conftest.err
2805   rm -f conftest.er1
2806   cat conftest.err >&5
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          { ac_try='test -z "$ac_c_werror_flag"
2810                          || test ! -s conftest.err'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; } &&
2816          { ac_try='test -s conftest.$ac_objext'
2817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; }; then
2822   ac_cv_prog_cc_g=yes
2823 else
2824   echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 ac_cv_prog_cc_g=no
2828 fi
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 fi
2831 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2832 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2833 if test "$ac_test_CFLAGS" = set; then
2834   CFLAGS=$ac_save_CFLAGS
2835 elif test $ac_cv_prog_cc_g = yes; then
2836   if test "$GCC" = yes; then
2837     CFLAGS="-g -O2"
2838   else
2839     CFLAGS="-g"
2840   fi
2841 else
2842   if test "$GCC" = yes; then
2843     CFLAGS="-O2"
2844   else
2845     CFLAGS=
2846   fi
2847 fi
2848 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2849 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2850 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2851   echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853   ac_cv_prog_cc_stdc=no
2854 ac_save_CC=$CC
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h.  */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h.  */
2861 #include <stdarg.h>
2862 #include <stdio.h>
2863 #include <sys/types.h>
2864 #include <sys/stat.h>
2865 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2866 struct buf { int x; };
2867 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2868 static char *e (p, i)
2869      char **p;
2870      int i;
2871 {
2872   return p[i];
2873 }
2874 static char *f (char * (*g) (char **, int), char **p, ...)
2875 {
2876   char *s;
2877   va_list v;
2878   va_start (v,p);
2879   s = g (p, va_arg (v,int));
2880   va_end (v);
2881   return s;
2882 }
2883
2884 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2885    function prototypes and stuff, but not '\xHH' hex character constants.
2886    These don't provoke an error unfortunately, instead are silently treated
2887    as 'x'.  The following induces an error, until -std1 is added to get
2888    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2889    array size at least.  It's necessary to write '\x00'==0 to get something
2890    that's true only with -std1.  */
2891 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2892
2893 int test (int i, double x);
2894 struct s1 {int (*f) (int a);};
2895 struct s2 {int (*f) (double a);};
2896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2897 int argc;
2898 char **argv;
2899 int
2900 main ()
2901 {
2902 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 # Don't try gcc -ansi; that turns off useful extensions and
2908 # breaks some systems' header files.
2909 # AIX                   -qlanglvl=ansi
2910 # Ultrix and OSF/1      -std1
2911 # HP-UX 10.20 and later -Ae
2912 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2913 # SVR4                  -Xc -D__EXTENSIONS__
2914 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2915 do
2916   CC="$ac_save_CC $ac_arg"
2917   rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919   (eval $ac_compile) 2>conftest.er1
2920   ac_status=$?
2921   grep -v '^ *+' conftest.er1 >conftest.err
2922   rm -f conftest.er1
2923   cat conftest.err >&5
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); } &&
2926          { ac_try='test -z "$ac_c_werror_flag"
2927                          || test ! -s conftest.err'
2928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929   (eval $ac_try) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; } &&
2933          { ac_try='test -s conftest.$ac_objext'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; }; then
2939   ac_cv_prog_cc_stdc=$ac_arg
2940 break
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 fi
2946 rm -f conftest.err conftest.$ac_objext
2947 done
2948 rm -f conftest.$ac_ext conftest.$ac_objext
2949 CC=$ac_save_CC
2950
2951 fi
2952
2953 case "x$ac_cv_prog_cc_stdc" in
2954   x|xno)
2955     echo "$as_me:$LINENO: result: none needed" >&5
2956 echo "${ECHO_T}none needed" >&6 ;;
2957   *)
2958     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2959 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2960     CC="$CC $ac_cv_prog_cc_stdc" ;;
2961 esac
2962
2963 # Some people use a C++ compiler to compile C.  Since we use `exit',
2964 # in C++ we need to declare it.  In case someone uses the same compiler
2965 # for both compiling C and C++ we need to have the C++ compiler decide
2966 # the declaration of exit, since it's the most demanding environment.
2967 cat >conftest.$ac_ext <<_ACEOF
2968 #ifndef __cplusplus
2969   choke me
2970 #endif
2971 _ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974   (eval $ac_compile) 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } &&
2981          { ac_try='test -z "$ac_c_werror_flag"
2982                          || test ! -s conftest.err'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; } &&
2988          { ac_try='test -s conftest.$ac_objext'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   for ac_declaration in \
2995    '' \
2996    'extern "C" void std::exit (int) throw (); using std::exit;' \
2997    'extern "C" void std::exit (int); using std::exit;' \
2998    'extern "C" void exit (int) throw ();' \
2999    'extern "C" void exit (int);' \
3000    'void exit (int);'
3001 do
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 $ac_declaration
3009 #include <stdlib.h>
3010 int
3011 main ()
3012 {
3013 exit (42);
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020   (eval $ac_compile) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_c_werror_flag"
3028                          || test ! -s conftest.err'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036   (eval $ac_try) 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; }; then
3040   :
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 continue
3046 fi
3047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3048   cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054 $ac_declaration
3055 int
3056 main ()
3057 {
3058 exit (42);
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065   (eval $ac_compile) 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } &&
3072          { ac_try='test -z "$ac_c_werror_flag"
3073                          || test ! -s conftest.err'
3074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075   (eval $ac_try) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; } &&
3079          { ac_try='test -s conftest.$ac_objext'
3080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081   (eval $ac_try) 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   break
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 fi
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 done
3093 rm -f conftest*
3094 if test -n "$ac_declaration"; then
3095   echo '#ifdef __cplusplus' >>confdefs.h
3096   echo $ac_declaration      >>confdefs.h
3097   echo '#endif'             >>confdefs.h
3098 fi
3099
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 fi
3105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_ext=c
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 DEPDIR="${am__leading_dot}deps"
3112
3113           ac_config_commands="$ac_config_commands depfiles"
3114
3115
3116 am_make=${MAKE-make}
3117 cat > confinc << 'END'
3118 am__doit:
3119         @echo done
3120 .PHONY: am__doit
3121 END
3122 # If we don't find an include directive, just comment out the code.
3123 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3124 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3125 am__include="#"
3126 am__quote=
3127 _am_result=none
3128 # First try GNU make style include.
3129 echo "include confinc" > confmf
3130 # We grep out `Entering directory' and `Leaving directory'
3131 # messages which can occur if `w' ends up in MAKEFLAGS.
3132 # In particular we don't look at `^make:' because GNU make might
3133 # be invoked under some other name (usually "gmake"), in which
3134 # case it prints its new name instead of `make'.
3135 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3136    am__include=include
3137    am__quote=
3138    _am_result=GNU
3139 fi
3140 # Now try BSD make style include.
3141 if test "$am__include" = "#"; then
3142    echo '.include "confinc"' > confmf
3143    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3144       am__include=.include
3145       am__quote="\""
3146       _am_result=BSD
3147    fi
3148 fi
3149
3150
3151 echo "$as_me:$LINENO: result: $_am_result" >&5
3152 echo "${ECHO_T}$_am_result" >&6
3153 rm -f confinc confmf
3154
3155 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3156 if test "${enable_dependency_tracking+set}" = set; then
3157   enableval="$enable_dependency_tracking"
3158
3159 fi;
3160 if test "x$enable_dependency_tracking" != xno; then
3161   am_depcomp="$ac_aux_dir/depcomp"
3162   AMDEPBACKSLASH='\'
3163 fi
3164
3165
3166 if test "x$enable_dependency_tracking" != xno; then
3167   AMDEP_TRUE=
3168   AMDEP_FALSE='#'
3169 else
3170   AMDEP_TRUE='#'
3171   AMDEP_FALSE=
3172 fi
3173
3174
3175
3176
3177 depcc="$CC"   am_compiler_list=
3178
3179 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3180 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3181 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3185   # We make a subdir and do the tests there.  Otherwise we can end up
3186   # making bogus files that we don't know about and never remove.  For
3187   # instance it was reported that on HP-UX the gcc test will end up
3188   # making a dummy file named `D' -- because `-MD' means `put the output
3189   # in D'.
3190   mkdir conftest.dir
3191   # Copy depcomp to subdir because otherwise we won't find it if we're
3192   # using a relative directory.
3193   cp "$am_depcomp" conftest.dir
3194   cd conftest.dir
3195   # We will build objects and dependencies in a subdirectory because
3196   # it helps to detect inapplicable dependency modes.  For instance
3197   # both Tru64's cc and ICC support -MD to output dependencies as a
3198   # side effect of compilation, but ICC will put the dependencies in
3199   # the current directory while Tru64 will put them in the object
3200   # directory.
3201   mkdir sub
3202
3203   am_cv_CC_dependencies_compiler_type=none
3204   if test "$am_compiler_list" = ""; then
3205      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3206   fi
3207   for depmode in $am_compiler_list; do
3208     # Setup a source with many dependencies, because some compilers
3209     # like to wrap large dependency lists on column 80 (with \), and
3210     # we should not choose a depcomp mode which is confused by this.
3211     #
3212     # We need to recreate these files for each test, as the compiler may
3213     # overwrite some of them when testing with obscure command lines.
3214     # This happens at least with the AIX C compiler.
3215     : > sub/conftest.c
3216     for i in 1 2 3 4 5 6; do
3217       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3218       : > sub/conftst$i.h
3219     done
3220     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3221
3222     case $depmode in
3223     nosideeffect)
3224       # after this tag, mechanisms are not by side-effect, so they'll
3225       # only be used when explicitly requested
3226       if test "x$enable_dependency_tracking" = xyes; then
3227         continue
3228       else
3229         break
3230       fi
3231       ;;
3232     none) break ;;
3233     esac
3234     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3235     # mode.  It turns out that the SunPro C++ compiler does not properly
3236     # handle `-M -o', and we need to detect this.
3237     if depmode=$depmode \
3238        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3239        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3240        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3241          >/dev/null 2>conftest.err &&
3242        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3243        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3244        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3245       # icc doesn't choke on unknown options, it will just issue warnings
3246       # (even with -Werror).  So we grep stderr for any message
3247       # that says an option was ignored.
3248       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3249         am_cv_CC_dependencies_compiler_type=$depmode
3250         break
3251       fi
3252     fi
3253   done
3254
3255   cd ..
3256   rm -rf conftest.dir
3257 else
3258   am_cv_CC_dependencies_compiler_type=none
3259 fi
3260
3261 fi
3262 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3265
3266
3267
3268 if
3269   test "x$enable_dependency_tracking" != xno \
3270   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271   am__fastdepCC_TRUE=
3272   am__fastdepCC_FALSE='#'
3273 else
3274   am__fastdepCC_TRUE='#'
3275   am__fastdepCC_FALSE=
3276 fi
3277
3278
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3289   CPP=
3290 fi
3291 if test -z "$CPP"; then
3292   if test "${ac_cv_prog_CPP+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295       # Double quotes because CPP needs to be expanded
3296     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3297     do
3298       ac_preproc_ok=false
3299 for ac_c_preproc_warn_flag in '' yes
3300 do
3301   # Use a header file that comes with gcc, so configuring glibc
3302   # with a fresh cross-compiler works.
3303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304   # <limits.h> exists even on freestanding compilers.
3305   # On the NeXT, cc -E runs the code through the compiler's parser,
3306   # not just through cpp. "Syntax error" is here to catch this case.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #ifdef __STDC__
3314 # include <limits.h>
3315 #else
3316 # include <assert.h>
3317 #endif
3318                      Syntax error
3319 _ACEOF
3320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } >/dev/null; then
3328   if test -s conftest.err; then
3329     ac_cpp_err=$ac_c_preproc_warn_flag
3330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331   else
3332     ac_cpp_err=
3333   fi
3334 else
3335   ac_cpp_err=yes
3336 fi
3337 if test -z "$ac_cpp_err"; then
3338   :
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343   # Broken: fails on valid input.
3344 continue
3345 fi
3346 rm -f conftest.err conftest.$ac_ext
3347
3348   # OK, works on sane cases.  Now check whether non-existent headers
3349   # can be detected and how.
3350   cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h.  */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h.  */
3356 #include <ac_nonexistent.h>
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   # Broken: success on invalid input.
3377 continue
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382   # Passes both tests.
3383 ac_preproc_ok=:
3384 break
3385 fi
3386 rm -f conftest.err conftest.$ac_ext
3387
3388 done
3389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390 rm -f conftest.err conftest.$ac_ext
3391 if $ac_preproc_ok; then
3392   break
3393 fi
3394
3395     done
3396     ac_cv_prog_CPP=$CPP
3397
3398 fi
3399   CPP=$ac_cv_prog_CPP
3400 else
3401   ac_cv_prog_CPP=$CPP
3402 fi
3403 echo "$as_me:$LINENO: result: $CPP" >&5
3404 echo "${ECHO_T}$CPP" >&6
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3407 do
3408   # Use a header file that comes with gcc, so configuring glibc
3409   # with a fresh cross-compiler works.
3410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411   # <limits.h> exists even on freestanding compilers.
3412   # On the NeXT, cc -E runs the code through the compiler's parser,
3413   # not just through cpp. "Syntax error" is here to catch this case.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425                      Syntax error
3426 _ACEOF
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } >/dev/null; then
3435   if test -s conftest.err; then
3436     ac_cpp_err=$ac_c_preproc_warn_flag
3437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438   else
3439     ac_cpp_err=
3440   fi
3441 else
3442   ac_cpp_err=yes
3443 fi
3444 if test -z "$ac_cpp_err"; then
3445   :
3446 else
3447   echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450   # Broken: fails on valid input.
3451 continue
3452 fi
3453 rm -f conftest.err conftest.$ac_ext
3454
3455   # OK, works on sane cases.  Now check whether non-existent headers
3456   # can be detected and how.
3457   cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #include <ac_nonexistent.h>
3464 _ACEOF
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } >/dev/null; then
3473   if test -s conftest.err; then
3474     ac_cpp_err=$ac_c_preproc_warn_flag
3475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476   else
3477     ac_cpp_err=
3478   fi
3479 else
3480   ac_cpp_err=yes
3481 fi
3482 if test -z "$ac_cpp_err"; then
3483   # Broken: success on invalid input.
3484 continue
3485 else
3486   echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489   # Passes both tests.
3490 ac_preproc_ok=:
3491 break
3492 fi
3493 rm -f conftest.err conftest.$ac_ext
3494
3495 done
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3499   :
3500 else
3501   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3502 See \`config.log' for more details." >&5
3503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3504 See \`config.log' for more details." >&2;}
3505    { (exit 1); exit 1; }; }
3506 fi
3507
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513
3514
3515 echo "$as_me:$LINENO: checking for egrep" >&5
3516 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3517 if test "${ac_cv_prog_egrep+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3521     then ac_cv_prog_egrep='grep -E'
3522     else ac_cv_prog_egrep='egrep'
3523     fi
3524 fi
3525 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3526 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3527  EGREP=$ac_cv_prog_egrep
3528
3529
3530 if test $ac_cv_c_compiler_gnu = yes; then
3531     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3532 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3533 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536     ac_pattern="Autoconf.*'x'"
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <sgtty.h>
3544 Autoconf TIOCGETP
3545 _ACEOF
3546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3547   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3548   ac_cv_prog_gcc_traditional=yes
3549 else
3550   ac_cv_prog_gcc_traditional=no
3551 fi
3552 rm -f conftest*
3553
3554
3555   if test $ac_cv_prog_gcc_traditional = no; then
3556     cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #include <termio.h>
3563 Autoconf TCGETA
3564 _ACEOF
3565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3566   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3567   ac_cv_prog_gcc_traditional=yes
3568 fi
3569 rm -f conftest*
3570
3571   fi
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3574 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3575   if test $ac_cv_prog_gcc_traditional = yes; then
3576     CC="$CC -traditional"
3577   fi
3578 fi
3579
3580 # Find a good install program.  We prefer a C program (faster),
3581 # so one script is as good as another.  But avoid the broken or
3582 # incompatible versions:
3583 # SysV /etc/install, /usr/sbin/install
3584 # SunOS /usr/etc/install
3585 # IRIX /sbin/install
3586 # AIX /bin/install
3587 # AmigaOS /C/install, which installs bootblocks on floppy discs
3588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3591 # OS/2's system install, which has a completely different semantic
3592 # ./install, which can be erroneously created by make from ./install.sh.
3593 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3594 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3595 if test -z "$INSTALL"; then
3596 if test "${ac_cv_path_install+set}" = set; then
3597   echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604   # Account for people who put trailing slashes in PATH elements.
3605 case $as_dir/ in
3606   ./ | .// | /cC/* | \
3607   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3608   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3609   /usr/ucb/* ) ;;
3610   *)
3611     # OSF1 and SCO ODT 3.0 have their own names for install.
3612     # Don't use installbsd from OSF since it installs stuff as root
3613     # by default.
3614     for ac_prog in ginstall scoinst install; do
3615       for ac_exec_ext in '' $ac_executable_extensions; do
3616         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3617           if test $ac_prog = install &&
3618             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3619             # AIX install.  It has an incompatible calling convention.
3620             :
3621           elif test $ac_prog = install &&
3622             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3623             # program-specific install script used by HP pwplus--don't use.
3624             :
3625           else
3626             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3627             break 3
3628           fi
3629         fi
3630       done
3631     done
3632     ;;
3633 esac
3634 done
3635
3636
3637 fi
3638   if test "${ac_cv_path_install+set}" = set; then
3639     INSTALL=$ac_cv_path_install
3640   else
3641     # As a last resort, use the slow shell script.  We don't cache a
3642     # path for INSTALL within a source directory, because that will
3643     # break other packages using the cache if that directory is
3644     # removed, or if the path is relative.
3645     INSTALL=$ac_install_sh
3646   fi
3647 fi
3648 echo "$as_me:$LINENO: result: $INSTALL" >&5
3649 echo "${ECHO_T}$INSTALL" >&6
3650
3651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3652 # It thinks the first close brace ends the variable substitution.
3653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3654
3655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3656
3657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3658
3659 for ac_prog in gawk mawk nawk awk
3660 do
3661   # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 echo "$as_me:$LINENO: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665 if test "${ac_cv_prog_AWK+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   if test -n "$AWK"; then
3669   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676   for ac_exec_ext in '' $ac_executable_extensions; do
3677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678     ac_cv_prog_AWK="$ac_prog"
3679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680     break 2
3681   fi
3682 done
3683 done
3684
3685 fi
3686 fi
3687 AWK=$ac_cv_prog_AWK
3688 if test -n "$AWK"; then
3689   echo "$as_me:$LINENO: result: $AWK" >&5
3690 echo "${ECHO_T}$AWK" >&6
3691 else
3692   echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3694 fi
3695
3696   test -n "$AWK" && break
3697 done
3698
3699 if test -n "$ac_tool_prefix"; then
3700   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_RANLIB+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if test -n "$RANLIB"; then
3708   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724 fi
3725 fi
3726 RANLIB=$ac_cv_prog_RANLIB
3727 if test -n "$RANLIB"; then
3728   echo "$as_me:$LINENO: result: $RANLIB" >&5
3729 echo "${ECHO_T}$RANLIB" >&6
3730 else
3731   echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 fi
3734
3735 fi
3736 if test -z "$ac_cv_prog_RANLIB"; then
3737   ac_ct_RANLIB=$RANLIB
3738   # Extract the first word of "ranlib", so it can be a program name with args.
3739 set dummy ranlib; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   if test -n "$ac_ct_RANLIB"; then
3746   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755     ac_cv_prog_ac_ct_RANLIB="ranlib"
3756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760 done
3761
3762   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3763 fi
3764 fi
3765 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3766 if test -n "$ac_ct_RANLIB"; then
3767   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3768 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773
3774   RANLIB=$ac_ct_RANLIB
3775 else
3776   RANLIB="$ac_cv_prog_RANLIB"
3777 fi
3778
3779 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3780 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3781 LN_S=$as_ln_s
3782 if test "$LN_S" = "ln -s"; then
3783   echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6
3785 else
3786   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3787 echo "${ECHO_T}no, using $LN_S" >&6
3788 fi
3789
3790 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3791 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3792 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3793 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   cat > conftest.$ac_ext <<EOF
3797 int main() {return 0;}
3798 EOF
3799 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3800     if test -s conftest.out; then
3801         eval "timidity_cv_ccoption_$ac_ccoption=no"
3802     else
3803         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3804     fi
3805 else
3806     eval "timidity_cv_ccoption_$ac_ccoption=no"
3807 fi
3808
3809 fi
3810
3811 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3812   echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3814
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818
3819 fi
3820
3821
3822 # Checks for target dependencies
3823
3824
3825 # Check whether --with-elf or --without-elf was given.
3826 if test "${with_elf+set}" = set; then
3827   withval="$with_elf"
3828    ELFFORMAT=$withval
3829 else
3830    ELFFORMAT="yes"
3831 fi;
3832
3833 # AC_ARG_WITH(simd,
3834 #  [  --with-simd             create SIMD friendly binary (default is no) ],
3835 #  [ SIMD=$withval ], [ SIMD="no" ])
3836
3837 case "$target" in
3838   *-*-hpux*)
3839     EXTRADEFS="-DHPUX"
3840     test -n "$SHLD" || SHLD="ld -b"
3841     so="sl"
3842     ;;
3843   *-sgi-irix*)
3844         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3845     test -n "$SHLD" || SHLD="cc -shared -all"
3846     so="so"
3847     ;;
3848   *-*-netbsd*)
3849     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3850     so="so"
3851     ;;
3852
3853   *-*-freebsd2*)
3854         test -n "$SHLD" || SHLD="ld -Bshareable"
3855     so="so"
3856     ;;
3857   *-*-freebsd*)
3858     if test "$ELFFORMAT" = yes; then
3859         test -n "$SHLD" || SHLD="ld -Bshareable"
3860     else
3861         SHCFLAGS=-aou
3862         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3863         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3864     fi
3865         so="so"
3866     ;;
3867
3868 #  *-*-freebsd*)
3869 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3870 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3871 #    so="so"
3872 #  ;;
3873
3874   *-*-cygwin*)
3875     EXTRADEFS="-D__W32__"
3876     # ??
3877     case "x${CC} " in
3878       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3879       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3880       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3881       *) test -n "$SHLD" || SHLD="unknown" ;;
3882     esac
3883     so="dll"
3884     CYGNUS=yes
3885     lib_user32_test=-luser32
3886     ;;
3887   *-*-mingw*)
3888     EXTRADEFS="-D__W32__"
3889     # ??
3890     case "x${CC} " in
3891       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3892       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3893       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3894       *) test -n "$SHLD" || SHLD="unknown" ;;
3895     esac
3896     so="dll"
3897     MINGW=yes
3898     lib_user32_test=-luser32
3899     ;;
3900   *-dec-*)
3901     EXTRADEFS="-DDEC"
3902     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3903     so="so"
3904     ;;
3905   *-*-solaris*)
3906     EXTRADEFS="-DSOLARIS"
3907     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3908     so="so"
3909     ;;
3910   *-*-nextstep*)
3911     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3912     so="so"
3913     ;;
3914   *-*-darwin*)
3915     if test "x$SIMD" = "xyes"; then
3916
3917 cat >>confdefs.h <<\_ACEOF
3918 #define USE_ALTIVEC 1
3919 _ACEOF
3920
3921        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3922        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3923     else
3924
3925 cat >>confdefs.h <<\_ACEOF
3926 #define USE_ALTIVEC 0
3927 _ACEOF
3928
3929     fi
3930     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3931     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3932     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3933     so="bundle"
3934     ;;
3935   *)
3936     test -n "$SHLD" || \
3937       if test "x$GCC" = xyes; then
3938         SHLD="$CC -shared"
3939       else
3940         SHLD="ld -Bdynamic -G"
3941       fi
3942     so="so"
3943     ;;
3944 esac
3945
3946
3947 # Checks for libraries.
3948
3949 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3950 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3951 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   ac_check_lib_save_LIBS=$LIBS
3955 LIBS="-lm  $LIBS"
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962
3963 /* Override any gcc2 internal prototype to avoid an error.  */
3964 #ifdef __cplusplus
3965 extern "C"
3966 #endif
3967 /* We use char because int might match the return type of a gcc2
3968    builtin and then its argument prototype would still apply.  */
3969 char sqrt ();
3970 int
3971 main ()
3972 {
3973 sqrt ();
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980   (eval $ac_link) 2>conftest.er1
3981   ac_status=$?
3982   grep -v '^ *+' conftest.er1 >conftest.err
3983   rm -f conftest.er1
3984   cat conftest.err >&5
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } &&
3987          { ac_try='test -z "$ac_c_werror_flag"
3988                          || test ! -s conftest.err'
3989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990   (eval $ac_try) 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); }; } &&
3994          { ac_try='test -s conftest$ac_exeext'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; }; then
4000   ac_cv_lib_m_sqrt=yes
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 ac_cv_lib_m_sqrt=no
4006 fi
4007 rm -f conftest.err conftest.$ac_objext \
4008       conftest$ac_exeext conftest.$ac_ext
4009 LIBS=$ac_check_lib_save_LIBS
4010 fi
4011 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4012 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4013 if test $ac_cv_lib_m_sqrt = yes; then
4014   cat >>confdefs.h <<_ACEOF
4015 #define HAVE_LIBM 1
4016 _ACEOF
4017
4018   LIBS="-lm $LIBS"
4019
4020 fi
4021
4022
4023 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4024 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4025 if test "${ac_cv_lib_socket_socket+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   ac_check_lib_save_LIBS=$LIBS
4029 LIBS="-lsocket  $LIBS"
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036
4037 /* Override any gcc2 internal prototype to avoid an error.  */
4038 #ifdef __cplusplus
4039 extern "C"
4040 #endif
4041 /* We use char because int might match the return type of a gcc2
4042    builtin and then its argument prototype would still apply.  */
4043 char socket ();
4044 int
4045 main ()
4046 {
4047 socket ();
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054   (eval $ac_link) 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } &&
4061          { ac_try='test -z "$ac_c_werror_flag"
4062                          || test ! -s conftest.err'
4063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064   (eval $ac_try) 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }; } &&
4068          { ac_try='test -s conftest$ac_exeext'
4069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070   (eval $ac_try) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; }; then
4074   ac_cv_lib_socket_socket=yes
4075 else
4076   echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 ac_cv_lib_socket_socket=no
4080 fi
4081 rm -f conftest.err conftest.$ac_objext \
4082       conftest$ac_exeext conftest.$ac_ext
4083 LIBS=$ac_check_lib_save_LIBS
4084 fi
4085 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4086 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4087 if test $ac_cv_lib_socket_socket = yes; then
4088   cat >>confdefs.h <<_ACEOF
4089 #define HAVE_LIBSOCKET 1
4090 _ACEOF
4091
4092   LIBS="-lsocket $LIBS"
4093
4094 fi
4095
4096 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   ac_check_lib_save_LIBS=$LIBS
4102 LIBS="-ldl  $LIBS"
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109
4110 /* Override any gcc2 internal prototype to avoid an error.  */
4111 #ifdef __cplusplus
4112 extern "C"
4113 #endif
4114 /* We use char because int might match the return type of a gcc2
4115    builtin and then its argument prototype would still apply.  */
4116 char dlopen ();
4117 int
4118 main ()
4119 {
4120 dlopen ();
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127   (eval $ac_link) 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } &&
4134          { ac_try='test -z "$ac_c_werror_flag"
4135                          || test ! -s conftest.err'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest$ac_exeext'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147   ac_cv_lib_dl_dlopen=yes
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ac_cv_lib_dl_dlopen=no
4153 fi
4154 rm -f conftest.err conftest.$ac_objext \
4155       conftest$ac_exeext conftest.$ac_ext
4156 LIBS=$ac_check_lib_save_LIBS
4157 fi
4158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4160 if test $ac_cv_lib_dl_dlopen = yes; then
4161   lib_dl_opt=-ldl
4162 fi
4163
4164 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4165 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4166 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   ac_check_lib_save_LIBS=$LIBS
4170 LIBS="-lobjc  $LIBS"
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177
4178 /* Override any gcc2 internal prototype to avoid an error.  */
4179 #ifdef __cplusplus
4180 extern "C"
4181 #endif
4182 /* We use char because int might match the return type of a gcc2
4183    builtin and then its argument prototype would still apply.  */
4184 char NSLinkModule ();
4185 int
4186 main ()
4187 {
4188 NSLinkModule ();
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195   (eval $ac_link) 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } &&
4202          { ac_try='test -z "$ac_c_werror_flag"
4203                          || test ! -s conftest.err'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; } &&
4209          { ac_try='test -s conftest$ac_exeext'
4210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211   (eval $ac_try) 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; }; then
4215   ac_cv_lib_objc_NSLinkModule=yes
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 ac_cv_lib_objc_NSLinkModule=no
4221 fi
4222 rm -f conftest.err conftest.$ac_objext \
4223       conftest$ac_exeext conftest.$ac_ext
4224 LIBS=$ac_check_lib_save_LIBS
4225 fi
4226 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4227 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4228 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4229   lib_dl_opt=-lobjc
4230 fi
4231  # Mac OS X need this.
4232
4233 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4234 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4235 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   ac_check_lib_save_LIBS=$LIBS
4239 LIBS="-lxpg4  $LIBS"
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246
4247 /* Override any gcc2 internal prototype to avoid an error.  */
4248 #ifdef __cplusplus
4249 extern "C"
4250 #endif
4251 /* We use char because int might match the return type of a gcc2
4252    builtin and then its argument prototype would still apply.  */
4253 char setlocale ();
4254 int
4255 main ()
4256 {
4257 setlocale ();
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264   (eval $ac_link) 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } &&
4271          { ac_try='test -z "$ac_c_werror_flag"
4272                          || test ! -s conftest.err'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest$ac_exeext'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   ac_cv_lib_xpg4_setlocale=yes
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289 ac_cv_lib_xpg4_setlocale=no
4290 fi
4291 rm -f conftest.err conftest.$ac_objext \
4292       conftest$ac_exeext conftest.$ac_ext
4293 LIBS=$ac_check_lib_save_LIBS
4294 fi
4295 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4296 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4297 if test $ac_cv_lib_xpg4_setlocale = yes; then
4298   cat >>confdefs.h <<_ACEOF
4299 #define HAVE_LIBXPG4 1
4300 _ACEOF
4301
4302   LIBS="-lxpg4 $LIBS"
4303
4304 fi
4305  # Mac OS X (and maybe NetBSD) need this.
4306
4307 for ac_func in gethostbyname
4308 do
4309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4310 echo "$as_me:$LINENO: checking for $ac_func" >&5
4311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4312 if eval "test \"\${$as_ac_var+set}\" = set"; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h.  */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h.  */
4321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4323 #define $ac_func innocuous_$ac_func
4324
4325 /* System header to define __stub macros and hopefully few prototypes,
4326     which can conflict with char $ac_func (); below.
4327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328     <limits.h> exists even on freestanding compilers.  */
4329
4330 #ifdef __STDC__
4331 # include <limits.h>
4332 #else
4333 # include <assert.h>
4334 #endif
4335
4336 #undef $ac_func
4337
4338 /* Override any gcc2 internal prototype to avoid an error.  */
4339 #ifdef __cplusplus
4340 extern "C"
4341 {
4342 #endif
4343 /* We use char because int might match the return type of a gcc2
4344    builtin and then its argument prototype would still apply.  */
4345 char $ac_func ();
4346 /* The GNU C library defines this for functions which it implements
4347     to always fail with ENOSYS.  Some functions are actually named
4348     something starting with __ and the normal name is an alias.  */
4349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4350 choke me
4351 #else
4352 char (*f) () = $ac_func;
4353 #endif
4354 #ifdef __cplusplus
4355 }
4356 #endif
4357
4358 int
4359 main ()
4360 {
4361 return f != $ac_func;
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext conftest$ac_exeext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4368   (eval $ac_link) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } &&
4375          { ac_try='test -z "$ac_c_werror_flag"
4376                          || test ! -s conftest.err'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; } &&
4382          { ac_try='test -s conftest$ac_exeext'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   eval "$as_ac_var=yes"
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 eval "$as_ac_var=no"
4394 fi
4395 rm -f conftest.err conftest.$ac_objext \
4396       conftest$ac_exeext conftest.$ac_ext
4397 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4400 if test `eval echo '${'$as_ac_var'}'` = yes; then
4401   cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 else
4406
4407 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4408 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4409 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   ac_check_lib_save_LIBS=$LIBS
4413 LIBS="-lnsl  $LIBS"
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420
4421 /* Override any gcc2 internal prototype to avoid an error.  */
4422 #ifdef __cplusplus
4423 extern "C"
4424 #endif
4425 /* We use char because int might match the return type of a gcc2
4426    builtin and then its argument prototype would still apply.  */
4427 char gethostbyname ();
4428 int
4429 main ()
4430 {
4431 gethostbyname ();
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438   (eval $ac_link) 2>conftest.er1
4439   ac_status=$?
4440   grep -v '^ *+' conftest.er1 >conftest.err
4441   rm -f conftest.er1
4442   cat conftest.err >&5
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); } &&
4445          { ac_try='test -z "$ac_c_werror_flag"
4446                          || test ! -s conftest.err'
4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448   (eval $ac_try) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; } &&
4452          { ac_try='test -s conftest$ac_exeext'
4453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454   (eval $ac_try) 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; }; then
4458   ac_cv_lib_nsl_gethostbyname=yes
4459 else
4460   echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 ac_cv_lib_nsl_gethostbyname=no
4464 fi
4465 rm -f conftest.err conftest.$ac_objext \
4466       conftest$ac_exeext conftest.$ac_ext
4467 LIBS=$ac_check_lib_save_LIBS
4468 fi
4469 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4470 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4471 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4472   cat >>confdefs.h <<_ACEOF
4473 #define HAVE_LIBNSL 1
4474 _ACEOF
4475
4476   LIBS="-lnsl $LIBS"
4477
4478 fi
4479
4480 fi
4481 done
4482
4483 echo "$as_me:$LINENO: checking for X" >&5
4484 echo $ECHO_N "checking for X... $ECHO_C" >&6
4485
4486
4487 # Check whether --with-x or --without-x was given.
4488 if test "${with_x+set}" = set; then
4489   withval="$with_x"
4490
4491 fi;
4492 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4493 if test "x$with_x" = xno; then
4494   # The user explicitly disabled X.
4495   have_x=disabled
4496 else
4497   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4498     # Both variables are already set.
4499     have_x=yes
4500   else
4501     if test "${ac_cv_have_x+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   # One or both of the vars are not set, and there is no cached value.
4505 ac_x_includes=no ac_x_libraries=no
4506 rm -fr conftest.dir
4507 if mkdir conftest.dir; then
4508   cd conftest.dir
4509   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4510   cat >Imakefile <<'_ACEOF'
4511 acfindx:
4512         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4513 _ACEOF
4514   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4515     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4516     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4517     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4518     for ac_extension in a so sl; do
4519       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4520          test -f $ac_im_libdir/libX11.$ac_extension; then
4521         ac_im_usrlibdir=$ac_im_libdir; break
4522       fi
4523     done
4524     # Screen out bogus values from the imake configuration.  They are
4525     # bogus both because they are the default anyway, and because
4526     # using them would break gcc on systems where it needs fixed includes.
4527     case $ac_im_incroot in
4528         /usr/include) ;;
4529         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4530     esac
4531     case $ac_im_usrlibdir in
4532         /usr/lib | /lib) ;;
4533         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4534     esac
4535   fi
4536   cd ..
4537   rm -fr conftest.dir
4538 fi
4539
4540 # Standard set of common directories for X headers.
4541 # Check X11 before X11Rn because it is often a symlink to the current release.
4542 ac_x_header_dirs='
4543 /usr/X11/include
4544 /usr/X11R6/include
4545 /usr/X11R5/include
4546 /usr/X11R4/include
4547
4548 /usr/include/X11
4549 /usr/include/X11R6
4550 /usr/include/X11R5
4551 /usr/include/X11R4
4552
4553 /usr/local/X11/include
4554 /usr/local/X11R6/include
4555 /usr/local/X11R5/include
4556 /usr/local/X11R4/include
4557
4558 /usr/local/include/X11
4559 /usr/local/include/X11R6
4560 /usr/local/include/X11R5
4561 /usr/local/include/X11R4
4562
4563 /usr/X386/include
4564 /usr/x386/include
4565 /usr/XFree86/include/X11
4566
4567 /usr/include
4568 /usr/local/include
4569 /usr/unsupported/include
4570 /usr/athena/include
4571 /usr/local/x11r5/include
4572 /usr/lpp/Xamples/include
4573
4574 /usr/openwin/include
4575 /usr/openwin/share/include'
4576
4577 if test "$ac_x_includes" = no; then
4578   # Guess where to find include files, by looking for Intrinsic.h.
4579   # First, try using that file with no special directory specified.
4580   cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586 #include <X11/Intrinsic.h>
4587 _ACEOF
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4590   ac_status=$?
4591   grep -v '^ *+' conftest.er1 >conftest.err
4592   rm -f conftest.er1
4593   cat conftest.err >&5
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } >/dev/null; then
4596   if test -s conftest.err; then
4597     ac_cpp_err=$ac_c_preproc_warn_flag
4598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4599   else
4600     ac_cpp_err=
4601   fi
4602 else
4603   ac_cpp_err=yes
4604 fi
4605 if test -z "$ac_cpp_err"; then
4606   # We can compile using X headers with no special include directory.
4607 ac_x_includes=
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612   for ac_dir in $ac_x_header_dirs; do
4613   if test -r "$ac_dir/X11/Intrinsic.h"; then
4614     ac_x_includes=$ac_dir
4615     break
4616   fi
4617 done
4618 fi
4619 rm -f conftest.err conftest.$ac_ext
4620 fi # $ac_x_includes = no
4621
4622 if test "$ac_x_libraries" = no; then
4623   # Check for the libraries.
4624   # See if we find them without any special options.
4625   # Don't add to $LIBS permanently.
4626   ac_save_LIBS=$LIBS
4627   LIBS="-lXt $LIBS"
4628   cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <X11/Intrinsic.h>
4635 int
4636 main ()
4637 {
4638 XtMalloc (0)
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext conftest$ac_exeext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645   (eval $ac_link) 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -z "$ac_c_werror_flag"
4653                          || test ! -s conftest.err'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; } &&
4659          { ac_try='test -s conftest$ac_exeext'
4660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661   (eval $ac_try) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; }; then
4665   LIBS=$ac_save_LIBS
4666 # We can link X programs with no special library path.
4667 ac_x_libraries=
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 LIBS=$ac_save_LIBS
4673 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4674 do
4675   # Don't even attempt the hair of trying to link an X program!
4676   for ac_extension in a so sl; do
4677     if test -r $ac_dir/libXt.$ac_extension; then
4678       ac_x_libraries=$ac_dir
4679       break 2
4680     fi
4681   done
4682 done
4683 fi
4684 rm -f conftest.err conftest.$ac_objext \
4685       conftest$ac_exeext conftest.$ac_ext
4686 fi # $ac_x_libraries = no
4687
4688 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4689   # Didn't find X anywhere.  Cache the known absence of X.
4690   ac_cv_have_x="have_x=no"
4691 else
4692   # Record where we found X for the cache.
4693   ac_cv_have_x="have_x=yes \
4694                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4695 fi
4696 fi
4697
4698   fi
4699   eval "$ac_cv_have_x"
4700 fi # $with_x != no
4701
4702 if test "$have_x" != yes; then
4703   echo "$as_me:$LINENO: result: $have_x" >&5
4704 echo "${ECHO_T}$have_x" >&6
4705   no_x=yes
4706 else
4707   # If each of the values was on the command line, it overrides each guess.
4708   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4709   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4710   # Update the cache value to reflect the command line values.
4711   ac_cv_have_x="have_x=yes \
4712                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4713   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4714 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4715 fi
4716
4717 if test "$no_x" = yes; then
4718   # Not all programs may use this symbol, but it does not hurt to define it.
4719
4720 cat >>confdefs.h <<\_ACEOF
4721 #define X_DISPLAY_MISSING 1
4722 _ACEOF
4723
4724   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4725 else
4726   if test -n "$x_includes"; then
4727     X_CFLAGS="$X_CFLAGS -I$x_includes"
4728   fi
4729
4730   # It would also be nice to do this for all -L options, not just this one.
4731   if test -n "$x_libraries"; then
4732     X_LIBS="$X_LIBS -L$x_libraries"
4733     # For Solaris; some versions of Sun CC require a space after -R and
4734     # others require no space.  Words are not sufficient . . . .
4735     case `(uname -sr) 2>/dev/null` in
4736     "SunOS 5"*)
4737       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4738 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4739       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4740       cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746
4747 int
4748 main ()
4749 {
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757   (eval $ac_link) 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } &&
4764          { ac_try='test -z "$ac_c_werror_flag"
4765                          || test ! -s conftest.err'
4766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767   (eval $ac_try) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest$ac_exeext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   ac_R_nospace=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 ac_R_nospace=no
4783 fi
4784 rm -f conftest.err conftest.$ac_objext \
4785       conftest$ac_exeext conftest.$ac_ext
4786       if test $ac_R_nospace = yes; then
4787         echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4789         X_LIBS="$X_LIBS -R$x_libraries"
4790       else
4791         LIBS="$ac_xsave_LIBS -R $x_libraries"
4792         cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809   (eval $ac_link) 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -z "$ac_c_werror_flag"
4817                          || test ! -s conftest.err'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; } &&
4823          { ac_try='test -s conftest$ac_exeext'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; }; then
4829   ac_R_space=yes
4830 else
4831   echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ac_R_space=no
4835 fi
4836 rm -f conftest.err conftest.$ac_objext \
4837       conftest$ac_exeext conftest.$ac_ext
4838         if test $ac_R_space = yes; then
4839           echo "$as_me:$LINENO: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6
4841           X_LIBS="$X_LIBS -R $x_libraries"
4842         else
4843           echo "$as_me:$LINENO: result: neither works" >&5
4844 echo "${ECHO_T}neither works" >&6
4845         fi
4846       fi
4847       LIBS=$ac_xsave_LIBS
4848     esac
4849   fi
4850
4851   # Check for system-dependent libraries X programs must link with.
4852   # Do this before checking for the system-independent R6 libraries
4853   # (-lICE), since we may need -lsocket or whatever for X linking.
4854
4855   if test "$ISC" = yes; then
4856     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4857   else
4858     # Martyn Johnson says this is needed for Ultrix, if the X
4859     # libraries were built with DECnet support.  And Karl Berry says
4860     # the Alpha needs dnet_stub (dnet does not exist).
4861     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4862     cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868
4869 /* Override any gcc2 internal prototype to avoid an error.  */
4870 #ifdef __cplusplus
4871 extern "C"
4872 #endif
4873 /* We use char because int might match the return type of a gcc2
4874    builtin and then its argument prototype would still apply.  */
4875 char XOpenDisplay ();
4876 int
4877 main ()
4878 {
4879 XOpenDisplay ();
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886   (eval $ac_link) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"
4894                          || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest$ac_exeext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   :
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4912 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4913 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   ac_check_lib_save_LIBS=$LIBS
4917 LIBS="-ldnet  $LIBS"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924
4925 /* Override any gcc2 internal prototype to avoid an error.  */
4926 #ifdef __cplusplus
4927 extern "C"
4928 #endif
4929 /* We use char because int might match the return type of a gcc2
4930    builtin and then its argument prototype would still apply.  */
4931 char dnet_ntoa ();
4932 int
4933 main ()
4934 {
4935 dnet_ntoa ();
4936   ;
4937   return 0;
4938 }
4939 _ACEOF
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942   (eval $ac_link) 2>conftest.er1
4943   ac_status=$?
4944   grep -v '^ *+' conftest.er1 >conftest.err
4945   rm -f conftest.er1
4946   cat conftest.err >&5
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -z "$ac_c_werror_flag"
4950                          || test ! -s conftest.err'
4951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952   (eval $ac_try) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); }; } &&
4956          { ac_try='test -s conftest$ac_exeext'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; }; then
4962   ac_cv_lib_dnet_dnet_ntoa=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_cv_lib_dnet_dnet_ntoa=no
4968 fi
4969 rm -f conftest.err conftest.$ac_objext \
4970       conftest$ac_exeext conftest.$ac_ext
4971 LIBS=$ac_check_lib_save_LIBS
4972 fi
4973 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4974 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4975 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4976   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4977 fi
4978
4979     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4980       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4981 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4982 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4983   echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985   ac_check_lib_save_LIBS=$LIBS
4986 LIBS="-ldnet_stub  $LIBS"
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993
4994 /* Override any gcc2 internal prototype to avoid an error.  */
4995 #ifdef __cplusplus
4996 extern "C"
4997 #endif
4998 /* We use char because int might match the return type of a gcc2
4999    builtin and then its argument prototype would still apply.  */
5000 char dnet_ntoa ();
5001 int
5002 main ()
5003 {
5004 dnet_ntoa ();
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011   (eval $ac_link) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } &&
5018          { ac_try='test -z "$ac_c_werror_flag"
5019                          || test ! -s conftest.err'
5020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021   (eval $ac_try) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }; } &&
5025          { ac_try='test -s conftest$ac_exeext'
5026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027   (eval $ac_try) 2>&5
5028   ac_status=$?
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); }; }; then
5031   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5032 else
5033   echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 ac_cv_lib_dnet_stub_dnet_ntoa=no
5037 fi
5038 rm -f conftest.err conftest.$ac_objext \
5039       conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5041 fi
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5043 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5044 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5045   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5046 fi
5047
5048     fi
5049 fi
5050 rm -f conftest.err conftest.$ac_objext \
5051       conftest$ac_exeext conftest.$ac_ext
5052     LIBS="$ac_xsave_LIBS"
5053
5054     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5055     # to get the SysV transport functions.
5056     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5057     # needs -lnsl.
5058     # The nsl library prevents programs from opening the X display
5059     # on Irix 5.2, according to T.E. Dickey.
5060     # The functions gethostbyname, getservbyname, and inet_addr are
5061     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5062     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5063 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5064 if test "${ac_cv_func_gethostbyname+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5075 #define gethostbyname innocuous_gethostbyname
5076
5077 /* System header to define __stub macros and hopefully few prototypes,
5078     which can conflict with char gethostbyname (); below.
5079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080     <limits.h> exists even on freestanding compilers.  */
5081
5082 #ifdef __STDC__
5083 # include <limits.h>
5084 #else
5085 # include <assert.h>
5086 #endif
5087
5088 #undef gethostbyname
5089
5090 /* Override any gcc2 internal prototype to avoid an error.  */
5091 #ifdef __cplusplus
5092 extern "C"
5093 {
5094 #endif
5095 /* We use char because int might match the return type of a gcc2
5096    builtin and then its argument prototype would still apply.  */
5097 char gethostbyname ();
5098 /* The GNU C library defines this for functions which it implements
5099     to always fail with ENOSYS.  Some functions are actually named
5100     something starting with __ and the normal name is an alias.  */
5101 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5102 choke me
5103 #else
5104 char (*f) () = gethostbyname;
5105 #endif
5106 #ifdef __cplusplus
5107 }
5108 #endif
5109
5110 int
5111 main ()
5112 {
5113 return f != gethostbyname;
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120   (eval $ac_link) 2>conftest.er1
5121   ac_status=$?
5122   grep -v '^ *+' conftest.er1 >conftest.err
5123   rm -f conftest.er1
5124   cat conftest.err >&5
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } &&
5127          { ac_try='test -z "$ac_c_werror_flag"
5128                          || test ! -s conftest.err'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; } &&
5134          { ac_try='test -s conftest$ac_exeext'
5135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136   (eval $ac_try) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }; }; then
5140   ac_cv_func_gethostbyname=yes
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ac_cv_func_gethostbyname=no
5146 fi
5147 rm -f conftest.err conftest.$ac_objext \
5148       conftest$ac_exeext conftest.$ac_ext
5149 fi
5150 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5151 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5152
5153     if test $ac_cv_func_gethostbyname = no; then
5154       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5155 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5156 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   ac_check_lib_save_LIBS=$LIBS
5160 LIBS="-lnsl  $LIBS"
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167
5168 /* Override any gcc2 internal prototype to avoid an error.  */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 /* We use char because int might match the return type of a gcc2
5173    builtin and then its argument prototype would still apply.  */
5174 char gethostbyname ();
5175 int
5176 main ()
5177 {
5178 gethostbyname ();
5179   ;
5180   return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185   (eval $ac_link) 2>conftest.er1
5186   ac_status=$?
5187   grep -v '^ *+' conftest.er1 >conftest.err
5188   rm -f conftest.er1
5189   cat conftest.err >&5
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } &&
5192          { ac_try='test -z "$ac_c_werror_flag"
5193                          || test ! -s conftest.err'
5194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195   (eval $ac_try) 2>&5
5196   ac_status=$?
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); }; } &&
5199          { ac_try='test -s conftest$ac_exeext'
5200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201   (eval $ac_try) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; }; then
5205   ac_cv_lib_nsl_gethostbyname=yes
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_lib_nsl_gethostbyname=no
5211 fi
5212 rm -f conftest.err conftest.$ac_objext \
5213       conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5215 fi
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5217 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5218 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5219   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5220 fi
5221
5222       if test $ac_cv_lib_nsl_gethostbyname = no; then
5223         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5224 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5225 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lbsd  $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236
5237 /* Override any gcc2 internal prototype to avoid an error.  */
5238 #ifdef __cplusplus
5239 extern "C"
5240 #endif
5241 /* We use char because int might match the return type of a gcc2
5242    builtin and then its argument prototype would still apply.  */
5243 char gethostbyname ();
5244 int
5245 main ()
5246 {
5247 gethostbyname ();
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254   (eval $ac_link) 2>conftest.er1
5255   ac_status=$?
5256   grep -v '^ *+' conftest.er1 >conftest.err
5257   rm -f conftest.er1
5258   cat conftest.err >&5
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } &&
5261          { ac_try='test -z "$ac_c_werror_flag"
5262                          || test ! -s conftest.err'
5263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264   (eval $ac_try) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; } &&
5268          { ac_try='test -s conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   ac_cv_lib_bsd_gethostbyname=yes
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 ac_cv_lib_bsd_gethostbyname=no
5280 fi
5281 rm -f conftest.err conftest.$ac_objext \
5282       conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5284 fi
5285 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5286 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5287 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5288   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5289 fi
5290
5291       fi
5292     fi
5293
5294     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5295     # socket/setsockopt and other routines are undefined under SCO ODT
5296     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5297     # on later versions), says Simon Leinen: it contains gethostby*
5298     # variants that don't use the name server (or something).  -lsocket
5299     # must be given before -lnsl if both are needed.  We assume that
5300     # if connect needs -lnsl, so does gethostbyname.
5301     echo "$as_me:$LINENO: checking for connect" >&5
5302 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5303 if test "${ac_cv_func_connect+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h.  */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h.  */
5312 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5314 #define connect innocuous_connect
5315
5316 /* System header to define __stub macros and hopefully few prototypes,
5317     which can conflict with char connect (); below.
5318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319     <limits.h> exists even on freestanding compilers.  */
5320
5321 #ifdef __STDC__
5322 # include <limits.h>
5323 #else
5324 # include <assert.h>
5325 #endif
5326
5327 #undef connect
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 {
5333 #endif
5334 /* We use char because int might match the return type of a gcc2
5335    builtin and then its argument prototype would still apply.  */
5336 char connect ();
5337 /* The GNU C library defines this for functions which it implements
5338     to always fail with ENOSYS.  Some functions are actually named
5339     something starting with __ and the normal name is an alias.  */
5340 #if defined (__stub_connect) || defined (__stub___connect)
5341 choke me
5342 #else
5343 char (*f) () = connect;
5344 #endif
5345 #ifdef __cplusplus
5346 }
5347 #endif
5348
5349 int
5350 main ()
5351 {
5352 return f != connect;
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359   (eval $ac_link) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"
5367                          || test ! -s conftest.err'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_func_connect=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_cv_func_connect=no
5385 fi
5386 rm -f conftest.err conftest.$ac_objext \
5387       conftest$ac_exeext conftest.$ac_ext
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5390 echo "${ECHO_T}$ac_cv_func_connect" >&6
5391
5392     if test $ac_cv_func_connect = no; then
5393       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5395 if test "${ac_cv_lib_socket_connect+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 /* Override any gcc2 internal prototype to avoid an error.  */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412    builtin and then its argument prototype would still apply.  */
5413 char connect ();
5414 int
5415 main ()
5416 {
5417 connect ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424   (eval $ac_link) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -z "$ac_c_werror_flag"
5432                          || test ! -s conftest.err'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; } &&
5438          { ac_try='test -s conftest$ac_exeext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_cv_lib_socket_connect=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_cv_lib_socket_connect=no
5450 fi
5451 rm -f conftest.err conftest.$ac_objext \
5452       conftest$ac_exeext conftest.$ac_ext
5453 LIBS=$ac_check_lib_save_LIBS
5454 fi
5455 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5456 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5457 if test $ac_cv_lib_socket_connect = yes; then
5458   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5459 fi
5460
5461     fi
5462
5463     # Guillermo Gomez says -lposix is necessary on A/UX.
5464     echo "$as_me:$LINENO: checking for remove" >&5
5465 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5466 if test "${ac_cv_func_remove+set}" = set; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5477 #define remove innocuous_remove
5478
5479 /* System header to define __stub macros and hopefully few prototypes,
5480     which can conflict with char remove (); below.
5481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482     <limits.h> exists even on freestanding compilers.  */
5483
5484 #ifdef __STDC__
5485 # include <limits.h>
5486 #else
5487 # include <assert.h>
5488 #endif
5489
5490 #undef remove
5491
5492 /* Override any gcc2 internal prototype to avoid an error.  */
5493 #ifdef __cplusplus
5494 extern "C"
5495 {
5496 #endif
5497 /* We use char because int might match the return type of a gcc2
5498    builtin and then its argument prototype would still apply.  */
5499 char remove ();
5500 /* The GNU C library defines this for functions which it implements
5501     to always fail with ENOSYS.  Some functions are actually named
5502     something starting with __ and the normal name is an alias.  */
5503 #if defined (__stub_remove) || defined (__stub___remove)
5504 choke me
5505 #else
5506 char (*f) () = remove;
5507 #endif
5508 #ifdef __cplusplus
5509 }
5510 #endif
5511
5512 int
5513 main ()
5514 {
5515 return f != remove;
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext conftest$ac_exeext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522   (eval $ac_link) 2>conftest.er1
5523   ac_status=$?
5524   grep -v '^ *+' conftest.er1 >conftest.err
5525   rm -f conftest.er1
5526   cat conftest.err >&5
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } &&
5529          { ac_try='test -z "$ac_c_werror_flag"
5530                          || test ! -s conftest.err'
5531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532   (eval $ac_try) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); }; } &&
5536          { ac_try='test -s conftest$ac_exeext'
5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; }; then
5542   ac_cv_func_remove=yes
5543 else
5544   echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 ac_cv_func_remove=no
5548 fi
5549 rm -f conftest.err conftest.$ac_objext \
5550       conftest$ac_exeext conftest.$ac_ext
5551 fi
5552 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5553 echo "${ECHO_T}$ac_cv_func_remove" >&6
5554
5555     if test $ac_cv_func_remove = no; then
5556       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5557 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5558 if test "${ac_cv_lib_posix_remove+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lposix  $LIBS"
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h.  */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h.  */
5569
5570 /* Override any gcc2 internal prototype to avoid an error.  */
5571 #ifdef __cplusplus
5572 extern "C"
5573 #endif
5574 /* We use char because int might match the return type of a gcc2
5575    builtin and then its argument prototype would still apply.  */
5576 char remove ();
5577 int
5578 main ()
5579 {
5580 remove ();
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587   (eval $ac_link) 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -z "$ac_c_werror_flag"
5595                          || test ! -s conftest.err'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; } &&
5601          { ac_try='test -s conftest$ac_exeext'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   ac_cv_lib_posix_remove=yes
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612 ac_cv_lib_posix_remove=no
5613 fi
5614 rm -f conftest.err conftest.$ac_objext \
5615       conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5617 fi
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5619 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5620 if test $ac_cv_lib_posix_remove = yes; then
5621   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5622 fi
5623
5624     fi
5625
5626     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5627     echo "$as_me:$LINENO: checking for shmat" >&5
5628 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5629 if test "${ac_cv_func_shmat+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5640 #define shmat innocuous_shmat
5641
5642 /* System header to define __stub macros and hopefully few prototypes,
5643     which can conflict with char shmat (); below.
5644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645     <limits.h> exists even on freestanding compilers.  */
5646
5647 #ifdef __STDC__
5648 # include <limits.h>
5649 #else
5650 # include <assert.h>
5651 #endif
5652
5653 #undef shmat
5654
5655 /* Override any gcc2 internal prototype to avoid an error.  */
5656 #ifdef __cplusplus
5657 extern "C"
5658 {
5659 #endif
5660 /* We use char because int might match the return type of a gcc2
5661    builtin and then its argument prototype would still apply.  */
5662 char shmat ();
5663 /* The GNU C library defines this for functions which it implements
5664     to always fail with ENOSYS.  Some functions are actually named
5665     something starting with __ and the normal name is an alias.  */
5666 #if defined (__stub_shmat) || defined (__stub___shmat)
5667 choke me
5668 #else
5669 char (*f) () = shmat;
5670 #endif
5671 #ifdef __cplusplus
5672 }
5673 #endif
5674
5675 int
5676 main ()
5677 {
5678 return f != shmat;
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685   (eval $ac_link) 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -z "$ac_c_werror_flag"
5693                          || test ! -s conftest.err'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; } &&
5699          { ac_try='test -s conftest$ac_exeext'
5700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701   (eval $ac_try) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   ac_cv_func_shmat=yes
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 ac_cv_func_shmat=no
5711 fi
5712 rm -f conftest.err conftest.$ac_objext \
5713       conftest$ac_exeext conftest.$ac_ext
5714 fi
5715 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5716 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5717
5718     if test $ac_cv_func_shmat = no; then
5719       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5720 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5721 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   ac_check_lib_save_LIBS=$LIBS
5725 LIBS="-lipc  $LIBS"
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732
5733 /* Override any gcc2 internal prototype to avoid an error.  */
5734 #ifdef __cplusplus
5735 extern "C"
5736 #endif
5737 /* We use char because int might match the return type of a gcc2
5738    builtin and then its argument prototype would still apply.  */
5739 char shmat ();
5740 int
5741 main ()
5742 {
5743 shmat ();
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750   (eval $ac_link) 2>conftest.er1
5751   ac_status=$?
5752   grep -v '^ *+' conftest.er1 >conftest.err
5753   rm -f conftest.er1
5754   cat conftest.err >&5
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); } &&
5757          { ac_try='test -z "$ac_c_werror_flag"
5758                          || test ! -s conftest.err'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; } &&
5764          { ac_try='test -s conftest$ac_exeext'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; }; then
5770   ac_cv_lib_ipc_shmat=yes
5771 else
5772   echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 ac_cv_lib_ipc_shmat=no
5776 fi
5777 rm -f conftest.err conftest.$ac_objext \
5778       conftest$ac_exeext conftest.$ac_ext
5779 LIBS=$ac_check_lib_save_LIBS
5780 fi
5781 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5782 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5783 if test $ac_cv_lib_ipc_shmat = yes; then
5784   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5785 fi
5786
5787     fi
5788   fi
5789
5790   # Check for libraries that X11R6 Xt/Xaw programs need.
5791   ac_save_LDFLAGS=$LDFLAGS
5792   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5793   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5794   # check for ICE first), but we must link in the order -lSM -lICE or
5795   # we get undefined symbols.  So assume we have SM if we have ICE.
5796   # These have to be linked with before -lX11, unlike the other
5797   # libraries we check for below, so use a different variable.
5798   # John Interrante, Karl Berry
5799   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5800 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5801 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   ac_check_lib_save_LIBS=$LIBS
5805 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812
5813 /* Override any gcc2 internal prototype to avoid an error.  */
5814 #ifdef __cplusplus
5815 extern "C"
5816 #endif
5817 /* We use char because int might match the return type of a gcc2
5818    builtin and then its argument prototype would still apply.  */
5819 char IceConnectionNumber ();
5820 int
5821 main ()
5822 {
5823 IceConnectionNumber ();
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830   (eval $ac_link) 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_c_werror_flag"
5838                          || test ! -s conftest.err'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; } &&
5844          { ac_try='test -s conftest$ac_exeext'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_cv_lib_ICE_IceConnectionNumber=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_lib_ICE_IceConnectionNumber=no
5856 fi
5857 rm -f conftest.err conftest.$ac_objext \
5858       conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5862 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5863 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5864   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5865 fi
5866
5867   LDFLAGS=$ac_save_LDFLAGS
5868
5869 fi
5870
5871
5872 # Checks for X
5873 if test "x$with_x" = xyes; then
5874   if test "x$have_x" = xno; then
5875     if test "x$x_config_flag" = xyes; then
5876       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5877 echo "$as_me: error: Could not configure X" >&2;}
5878    { (exit 1); exit 1; }; }
5879     else
5880       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5881 echo "$as_me: WARNING: Could not configure X" >&2;}
5882     fi
5883   fi
5884 fi
5885 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5886   if test "x$x_libraries" != x; then
5887     ldflags_x_opt="-L$x_libraries"
5888     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5889     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5890   else
5891     ldflags_x_opt=
5892   fi
5893   if test "x$x_includes" != x; then
5894     CPPFLAGS="$CPPFLAGS -I$x_includes"
5895   fi
5896
5897
5898 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5899 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5900 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   ac_check_lib_save_LIBS=$LIBS
5904 LIBS="-lX11  $LIBS"
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911
5912 /* Override any gcc2 internal prototype to avoid an error.  */
5913 #ifdef __cplusplus
5914 extern "C"
5915 #endif
5916 /* We use char because int might match the return type of a gcc2
5917    builtin and then its argument prototype would still apply.  */
5918 char XOpenDisplay ();
5919 int
5920 main ()
5921 {
5922 XOpenDisplay ();
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929   (eval $ac_link) 2>conftest.er1
5930   ac_status=$?
5931   grep -v '^ *+' conftest.er1 >conftest.err
5932   rm -f conftest.er1
5933   cat conftest.err >&5
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -z "$ac_c_werror_flag"
5937                          || test ! -s conftest.err'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest$ac_exeext'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_cv_lib_X11_XOpenDisplay=yes
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_cv_lib_X11_XOpenDisplay=no
5955 fi
5956 rm -f conftest.err conftest.$ac_objext \
5957       conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5959 fi
5960 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5961 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5962 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5963   cat >>confdefs.h <<_ACEOF
5964 #define HAVE_LIBX11 1
5965 _ACEOF
5966
5967   LIBS="-lX11 $LIBS"
5968
5969 fi
5970
5971   echo "$as_me:$LINENO: checking X11 version 6" >&5
5972 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5973   if test "${timidity_cv_x11_version_6+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 #include <X11/Xlib.h>
5983 int
5984 main ()
5985 {
5986
5987 #if XlibSpecificationRelease < 6
5988 fail;
5989 #endif
5990
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997   (eval $ac_link) 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -z "$ac_c_werror_flag"
6005                          || test ! -s conftest.err'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; } &&
6011          { ac_try='test -s conftest$ac_exeext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   timidity_cv_x11_version_6=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 timidity_cv_x11_version_6=no
6023 fi
6024 rm -f conftest.err conftest.$ac_objext \
6025       conftest$ac_exeext conftest.$ac_ext
6026 fi
6027
6028   if test "$timidity_cv_x11_version_6" = "yes"; then
6029     echo "$as_me:$LINENO: result: 6 or newer" >&5
6030 echo "${ECHO_T}6 or newer" >&6
6031       else
6032     echo "$as_me:$LINENO: result: before 6" >&5
6033 echo "${ECHO_T}before 6" >&6
6034   fi
6035
6036     KEEPLIBS=$LIBS
6037   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6038 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6039 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lXext  $LIBS"
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050
6051 /* Override any gcc2 internal prototype to avoid an error.  */
6052 #ifdef __cplusplus
6053 extern "C"
6054 #endif
6055 /* We use char because int might match the return type of a gcc2
6056    builtin and then its argument prototype would still apply.  */
6057 char XShapeCombineMask ();
6058 int
6059 main ()
6060 {
6061 XShapeCombineMask ();
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068   (eval $ac_link) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } &&
6075          { ac_try='test -z "$ac_c_werror_flag"
6076                          || test ! -s conftest.err'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; } &&
6082          { ac_try='test -s conftest$ac_exeext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   ac_cv_lib_Xext_XShapeCombineMask=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_cv_lib_Xext_XShapeCombineMask=no
6094 fi
6095 rm -f conftest.err conftest.$ac_objext \
6096       conftest$ac_exeext conftest.$ac_ext
6097 LIBS=$ac_check_lib_save_LIBS
6098 fi
6099 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6100 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6101 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6102   have_xext=yes; LIBS="-lXext $LIBS"
6103 else
6104   have_xext=no
6105 fi
6106
6107
6108 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6109 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6110 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   ac_check_lib_save_LIBS=$LIBS
6114 LIBS="-lICE  $LIBS"
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121
6122 /* Override any gcc2 internal prototype to avoid an error.  */
6123 #ifdef __cplusplus
6124 extern "C"
6125 #endif
6126 /* We use char because int might match the return type of a gcc2
6127    builtin and then its argument prototype would still apply.  */
6128 char IceConnectionNumber ();
6129 int
6130 main ()
6131 {
6132 IceConnectionNumber ();
6133   ;
6134   return 0;
6135 }
6136 _ACEOF
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6139   (eval $ac_link) 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } &&
6146          { ac_try='test -z "$ac_c_werror_flag"
6147                          || test ! -s conftest.err'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; } &&
6153          { ac_try='test -s conftest$ac_exeext'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; }; then
6159   ac_cv_lib_ICE_IceConnectionNumber=yes
6160 else
6161   echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 ac_cv_lib_ICE_IceConnectionNumber=no
6165 fi
6166 rm -f conftest.err conftest.$ac_objext \
6167       conftest$ac_exeext conftest.$ac_ext
6168 LIBS=$ac_check_lib_save_LIBS
6169 fi
6170 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6171 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6172 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6173   cat >>confdefs.h <<_ACEOF
6174 #define HAVE_LIBICE 1
6175 _ACEOF
6176
6177   LIBS="-lICE $LIBS"
6178
6179 fi
6180
6181   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6182 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6183 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   ac_check_lib_save_LIBS=$LIBS
6187 LIBS="-lSM  $LIBS"
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194
6195 /* Override any gcc2 internal prototype to avoid an error.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 /* We use char because int might match the return type of a gcc2
6200    builtin and then its argument prototype would still apply.  */
6201 char SmcOpenConnection ();
6202 int
6203 main ()
6204 {
6205 SmcOpenConnection ();
6206   ;
6207   return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212   (eval $ac_link) 2>conftest.er1
6213   ac_status=$?
6214   grep -v '^ *+' conftest.er1 >conftest.err
6215   rm -f conftest.er1
6216   cat conftest.err >&5
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); } &&
6219          { ac_try='test -z "$ac_c_werror_flag"
6220                          || test ! -s conftest.err'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; } &&
6226          { ac_try='test -s conftest$ac_exeext'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; }; then
6232   ac_cv_lib_SM_SmcOpenConnection=yes
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 ac_cv_lib_SM_SmcOpenConnection=no
6238 fi
6239 rm -f conftest.err conftest.$ac_objext \
6240       conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6242 fi
6243 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6244 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6245 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6246   have_xprelibs=yes; LIBS="-lSM $LIBS"
6247 else
6248   have_xprelibs=no
6249 fi
6250
6251   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6252 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6253 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   ac_check_lib_save_LIBS=$LIBS
6257 LIBS="-lXt  $LIBS"
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264
6265 /* Override any gcc2 internal prototype to avoid an error.  */
6266 #ifdef __cplusplus
6267 extern "C"
6268 #endif
6269 /* We use char because int might match the return type of a gcc2
6270    builtin and then its argument prototype would still apply.  */
6271 char XtVaAppInitialize ();
6272 int
6273 main ()
6274 {
6275 XtVaAppInitialize ();
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282   (eval $ac_link) 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -z "$ac_c_werror_flag"
6290                          || test ! -s conftest.err'
6291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292   (eval $ac_try) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; } &&
6296          { ac_try='test -s conftest$ac_exeext'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   ac_cv_lib_Xt_XtVaAppInitialize=yes
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_cv_lib_Xt_XtVaAppInitialize=no
6308 fi
6309 rm -f conftest.err conftest.$ac_objext \
6310       conftest$ac_exeext conftest.$ac_ext
6311 LIBS=$ac_check_lib_save_LIBS
6312 fi
6313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6314 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6315 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6316   have_xt=yes; LIBS="-lXt $LIBS"
6317 else
6318   have_xt=no
6319 fi
6320
6321   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6322 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6323 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lXmu  $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334
6335 /* Override any gcc2 internal prototype to avoid an error.  */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 /* We use char because int might match the return type of a gcc2
6340    builtin and then its argument prototype would still apply.  */
6341 char XmuInternAtom ();
6342 int
6343 main ()
6344 {
6345 XmuInternAtom ();
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352   (eval $ac_link) 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } &&
6359          { ac_try='test -z "$ac_c_werror_flag"
6360                          || test ! -s conftest.err'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest$ac_exeext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_cv_lib_Xmu_XmuInternAtom=yes
6373 else
6374   echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 ac_cv_lib_Xmu_XmuInternAtom=no
6378 fi
6379 rm -f conftest.err conftest.$ac_objext \
6380       conftest$ac_exeext conftest.$ac_ext
6381 LIBS=$ac_check_lib_save_LIBS
6382 fi
6383 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6384 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6385 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6386   LIBS="-lXmu $LIBS"
6387 fi
6388
6389
6390 for ac_func in XmuRegisterExternalAgent
6391 do
6392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6393 echo "$as_me:$LINENO: checking for $ac_func" >&5
6394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_var+set}\" = set"; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6406 #define $ac_func innocuous_$ac_func
6407
6408 /* System header to define __stub macros and hopefully few prototypes,
6409     which can conflict with char $ac_func (); below.
6410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6411     <limits.h> exists even on freestanding compilers.  */
6412
6413 #ifdef __STDC__
6414 # include <limits.h>
6415 #else
6416 # include <assert.h>
6417 #endif
6418
6419 #undef $ac_func
6420
6421 /* Override any gcc2 internal prototype to avoid an error.  */
6422 #ifdef __cplusplus
6423 extern "C"
6424 {
6425 #endif
6426 /* We use char because int might match the return type of a gcc2
6427    builtin and then its argument prototype would still apply.  */
6428 char $ac_func ();
6429 /* The GNU C library defines this for functions which it implements
6430     to always fail with ENOSYS.  Some functions are actually named
6431     something starting with __ and the normal name is an alias.  */
6432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6433 choke me
6434 #else
6435 char (*f) () = $ac_func;
6436 #endif
6437 #ifdef __cplusplus
6438 }
6439 #endif
6440
6441 int
6442 main ()
6443 {
6444 return f != $ac_func;
6445   ;
6446   return 0;
6447 }
6448 _ACEOF
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451   (eval $ac_link) 2>conftest.er1
6452   ac_status=$?
6453   grep -v '^ *+' conftest.er1 >conftest.err
6454   rm -f conftest.er1
6455   cat conftest.err >&5
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); } &&
6458          { ac_try='test -z "$ac_c_werror_flag"
6459                          || test ! -s conftest.err'
6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461   (eval $ac_try) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; } &&
6465          { ac_try='test -s conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   eval "$as_ac_var=yes"
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 eval "$as_ac_var=no"
6477 fi
6478 rm -f conftest.err conftest.$ac_objext \
6479       conftest$ac_exeext conftest.$ac_ext
6480 fi
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6483 if test `eval echo '${'$as_ac_var'}'` = yes; then
6484   cat >>confdefs.h <<_ACEOF
6485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6486 _ACEOF
6487
6488 fi
6489 done
6490
6491   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6492 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6493 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lXaw3d  $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504
6505 /* Override any gcc2 internal prototype to avoid an error.  */
6506 #ifdef __cplusplus
6507 extern "C"
6508 #endif
6509 /* We use char because int might match the return type of a gcc2
6510    builtin and then its argument prototype would still apply.  */
6511 char XawInitializeWidgetSet ();
6512 int
6513 main ()
6514 {
6515 XawInitializeWidgetSet ();
6516   ;
6517   return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522   (eval $ac_link) 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -z "$ac_c_werror_flag"
6530                          || test ! -s conftest.err'
6531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; } &&
6536          { ac_try='test -s conftest$ac_exeext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6548 fi
6549 rm -f conftest.err conftest.$ac_objext \
6550       conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_check_lib_save_LIBS
6552 fi
6553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6554 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6555 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6556   have_xaw=3d
6557 else
6558    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6559 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6560 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   ac_check_lib_save_LIBS=$LIBS
6564 LIBS="-lXaw  $LIBS"
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571
6572 /* Override any gcc2 internal prototype to avoid an error.  */
6573 #ifdef __cplusplus
6574 extern "C"
6575 #endif
6576 /* We use char because int might match the return type of a gcc2
6577    builtin and then its argument prototype would still apply.  */
6578 char XawInitializeWidgetSet ();
6579 int
6580 main ()
6581 {
6582 XawInitializeWidgetSet ();
6583   ;
6584   return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589   (eval $ac_link) 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -z "$ac_c_werror_flag"
6597                          || test ! -s conftest.err'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6615 fi
6616 rm -f conftest.err conftest.$ac_objext \
6617       conftest$ac_exeext conftest.$ac_ext
6618 LIBS=$ac_check_lib_save_LIBS
6619 fi
6620 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6621 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6622 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6623   have_xaw=yes
6624 else
6625   have_xaw=no
6626 fi
6627
6628 fi
6629
6630   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6631 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6632 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   ac_check_lib_save_LIBS=$LIBS
6636 LIBS="-lXm  $LIBS"
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643
6644 /* Override any gcc2 internal prototype to avoid an error.  */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 /* We use char because int might match the return type of a gcc2
6649    builtin and then its argument prototype would still apply.  */
6650 char XmCreateForm ();
6651 int
6652 main ()
6653 {
6654 XmCreateForm ();
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 rm -f conftest.$ac_objext conftest$ac_exeext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661   (eval $ac_link) 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } &&
6668          { ac_try='test -z "$ac_c_werror_flag"
6669                          || test ! -s conftest.err'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; } &&
6675          { ac_try='test -s conftest$ac_exeext'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; }; then
6681   ac_cv_lib_Xm_XmCreateForm=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_cv_lib_Xm_XmCreateForm=no
6687 fi
6688 rm -f conftest.err conftest.$ac_objext \
6689       conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_check_lib_save_LIBS
6691 fi
6692 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6693 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6694 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6695   have_xm=yes
6696 else
6697   have_xm=no
6698 fi
6699
6700
6701 for ac_func in XShmCreatePixmap
6702 do
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h.  */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h.  */
6715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6717 #define $ac_func innocuous_$ac_func
6718
6719 /* System header to define __stub macros and hopefully few prototypes,
6720     which can conflict with char $ac_func (); below.
6721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722     <limits.h> exists even on freestanding compilers.  */
6723
6724 #ifdef __STDC__
6725 # include <limits.h>
6726 #else
6727 # include <assert.h>
6728 #endif
6729
6730 #undef $ac_func
6731
6732 /* Override any gcc2 internal prototype to avoid an error.  */
6733 #ifdef __cplusplus
6734 extern "C"
6735 {
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738    builtin and then its argument prototype would still apply.  */
6739 char $ac_func ();
6740 /* The GNU C library defines this for functions which it implements
6741     to always fail with ENOSYS.  Some functions are actually named
6742     something starting with __ and the normal name is an alias.  */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 choke me
6745 #else
6746 char (*f) () = $ac_func;
6747 #endif
6748 #ifdef __cplusplus
6749 }
6750 #endif
6751
6752 int
6753 main ()
6754 {
6755 return f != $ac_func;
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762   (eval $ac_link) 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } &&
6769          { ac_try='test -z "$ac_c_werror_flag"
6770                          || test ! -s conftest.err'
6771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772   (eval $ac_try) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; } &&
6776          { ac_try='test -s conftest$ac_exeext'
6777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778   (eval $ac_try) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); }; }; then
6782   eval "$as_ac_var=yes"
6783 else
6784   echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 eval "$as_ac_var=no"
6788 fi
6789 rm -f conftest.err conftest.$ac_objext \
6790       conftest$ac_exeext conftest.$ac_ext
6791 fi
6792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6794 if test `eval echo '${'$as_ac_var'}'` = yes; then
6795   cat >>confdefs.h <<_ACEOF
6796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6797 _ACEOF
6798
6799 fi
6800 done
6801
6802   LIBS=$KEEPLIBS
6803 fi
6804
6805 # Checks for header files.
6806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6808 if test "${ac_cv_header_stdc+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 #include <stdlib.h>
6818 #include <stdarg.h>
6819 #include <string.h>
6820 #include <float.h>
6821
6822 int
6823 main ()
6824 {
6825
6826   ;
6827   return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832   (eval $ac_compile) 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } &&
6839          { ac_try='test -z "$ac_c_werror_flag"
6840                          || test ! -s conftest.err'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_cv_header_stdc=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_cv_header_stdc=no
6858 fi
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860
6861 if test $ac_cv_header_stdc = yes; then
6862   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 #include <string.h>
6870
6871 _ACEOF
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873   $EGREP "memchr" >/dev/null 2>&1; then
6874   :
6875 else
6876   ac_cv_header_stdc=no
6877 fi
6878 rm -f conftest*
6879
6880 fi
6881
6882 if test $ac_cv_header_stdc = yes; then
6883   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6884   cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890 #include <stdlib.h>
6891
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894   $EGREP "free" >/dev/null 2>&1; then
6895   :
6896 else
6897   ac_cv_header_stdc=no
6898 fi
6899 rm -f conftest*
6900
6901 fi
6902
6903 if test $ac_cv_header_stdc = yes; then
6904   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6905   if test "$cross_compiling" = yes; then
6906   :
6907 else
6908   cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914 #include <ctype.h>
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 #else
6919 # define ISLOWER(c) \
6920                    (('a' <= (c) && (c) <= 'i') \
6921                      || ('j' <= (c) && (c) <= 'r') \
6922                      || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6924 #endif
6925
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6927 int
6928 main ()
6929 {
6930   int i;
6931   for (i = 0; i < 256; i++)
6932     if (XOR (islower (i), ISLOWER (i))
6933         || toupper (i) != TOUPPER (i))
6934       exit(2);
6935   exit (0);
6936 }
6937 _ACEOF
6938 rm -f conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940   (eval $ac_link) 2>&5
6941   ac_status=$?
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; }; then
6949   :
6950 else
6951   echo "$as_me: program exited with status $ac_status" >&5
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6954
6955 ( exit $ac_status )
6956 ac_cv_header_stdc=no
6957 fi
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 fi
6961 fi
6962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6964 if test $ac_cv_header_stdc = yes; then
6965
6966 cat >>confdefs.h <<\_ACEOF
6967 #define STDC_HEADERS 1
6968 _ACEOF
6969
6970 fi
6971
6972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6983                   inttypes.h stdint.h unistd.h
6984 do
6985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 $ac_includes_default
6998
6999 #include <$ac_header>
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003   (eval $ac_compile) 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -z "$ac_c_werror_flag"
7011                          || test ! -s conftest.err'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; } &&
7017          { ac_try='test -s conftest.$ac_objext'
7018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019   (eval $ac_try) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }; }; then
7023   eval "$as_ac_Header=yes"
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 eval "$as_ac_Header=no"
7029 fi
7030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7031 fi
7032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7035   cat >>confdefs.h <<_ACEOF
7036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7037 _ACEOF
7038
7039 fi
7040
7041 done
7042
7043
7044 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7045 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7046 if test "${ac_cv_header_stdbool_h+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055
7056 #include <stdbool.h>
7057 #ifndef bool
7058 # error bool is not defined
7059 #endif
7060 #ifndef false
7061 # error false is not defined
7062 #endif
7063 #if false
7064 # error false is not 0
7065 #endif
7066 #ifndef true
7067 # error true is not defined
7068 #endif
7069 #if true != 1
7070 # error true is not 1
7071 #endif
7072 #ifndef __bool_true_false_are_defined
7073 # error __bool_true_false_are_defined is not defined
7074 #endif
7075
7076         struct s { _Bool s: 1; _Bool t; } s;
7077
7078         char a[true == 1 ? 1 : -1];
7079         char b[false == 0 ? 1 : -1];
7080         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7081         char d[(bool) -0.5 == true ? 1 : -1];
7082         bool e = &s;
7083         char f[(_Bool) -0.0 == false ? 1 : -1];
7084         char g[true];
7085         char h[sizeof (_Bool)];
7086         char i[sizeof s.t];
7087
7088 int
7089 main ()
7090 {
7091  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7092   ;
7093   return 0;
7094 }
7095 _ACEOF
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098   (eval $ac_compile) 2>conftest.er1
7099   ac_status=$?
7100   grep -v '^ *+' conftest.er1 >conftest.err
7101   rm -f conftest.er1
7102   cat conftest.err >&5
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); } &&
7105          { ac_try='test -z "$ac_c_werror_flag"
7106                          || test ! -s conftest.err'
7107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108   (eval $ac_try) 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); }; } &&
7112          { ac_try='test -s conftest.$ac_objext'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; }; then
7118   ac_cv_header_stdbool_h=yes
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ac_cv_header_stdbool_h=no
7124 fi
7125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 fi
7127 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7128 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7129 echo "$as_me:$LINENO: checking for _Bool" >&5
7130 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7131 if test "${ac_cv_type__Bool+set}" = set; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134   cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h.  */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h.  */
7140 $ac_includes_default
7141 int
7142 main ()
7143 {
7144 if ((_Bool *) 0)
7145   return 0;
7146 if (sizeof (_Bool))
7147   return 0;
7148   ;
7149   return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154   (eval $ac_compile) 2>conftest.er1
7155   ac_status=$?
7156   grep -v '^ *+' conftest.er1 >conftest.err
7157   rm -f conftest.er1
7158   cat conftest.err >&5
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); } &&
7161          { ac_try='test -z "$ac_c_werror_flag"
7162                          || test ! -s conftest.err'
7163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164   (eval $ac_try) 2>&5
7165   ac_status=$?
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); }; } &&
7168          { ac_try='test -s conftest.$ac_objext'
7169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170   (eval $ac_try) 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; }; then
7174   ac_cv_type__Bool=yes
7175 else
7176   echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_type__Bool=no
7180 fi
7181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7184 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7185 if test $ac_cv_type__Bool = yes; then
7186
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE__BOOL 1
7189 _ACEOF
7190
7191
7192 fi
7193
7194 if test $ac_cv_header_stdbool_h = yes; then
7195
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_STDBOOL_H 1
7198 _ACEOF
7199
7200 fi
7201
7202 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7203 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7204 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213 #include <sys/types.h>
7214 #include <sys/wait.h>
7215 #ifndef WEXITSTATUS
7216 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7217 #endif
7218 #ifndef WIFEXITED
7219 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7220 #endif
7221
7222 int
7223 main ()
7224 {
7225   int s;
7226   wait (&s);
7227   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7228   ;
7229   return 0;
7230 }
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234   (eval $ac_compile) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } &&
7241          { ac_try='test -z "$ac_c_werror_flag"
7242                          || test ! -s conftest.err'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; } &&
7248          { ac_try='test -s conftest.$ac_objext'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; }; then
7254   ac_cv_header_sys_wait_h=yes
7255 else
7256   echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_cv_header_sys_wait_h=no
7260 fi
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 fi
7263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7264 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7265 if test $ac_cv_header_sys_wait_h = yes; then
7266
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_SYS_WAIT_H 1
7269 _ACEOF
7270
7271 fi
7272
7273 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7274 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7275 if test "${ac_cv_header_time+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 #include <sys/types.h>
7285 #include <sys/time.h>
7286 #include <time.h>
7287
7288 int
7289 main ()
7290 {
7291 if ((struct tm *) 0)
7292 return 0;
7293   ;
7294   return 0;
7295 }
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7299   (eval $ac_compile) 2>conftest.er1
7300   ac_status=$?
7301   grep -v '^ *+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } &&
7306          { ac_try='test -z "$ac_c_werror_flag"
7307                          || test ! -s conftest.err'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; } &&
7313          { ac_try='test -s conftest.$ac_objext'
7314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315   (eval $ac_try) 2>&5
7316   ac_status=$?
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); }; }; then
7319   ac_cv_header_time=yes
7320 else
7321   echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ac_cv_header_time=no
7325 fi
7326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 fi
7328 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7329 echo "${ECHO_T}$ac_cv_header_time" >&6
7330 if test $ac_cv_header_time = yes; then
7331
7332 cat >>confdefs.h <<\_ACEOF
7333 #define TIME_WITH_SYS_TIME 1
7334 _ACEOF
7335
7336 fi
7337
7338
7339
7340
7341
7342
7343 ac_header_dirent=no
7344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7345   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7346 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7347 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 #include <sys/types.h>
7358 #include <$ac_hdr>
7359
7360 int
7361 main ()
7362 {
7363 if ((DIR *) 0)
7364 return 0;
7365   ;
7366   return 0;
7367 }
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371   (eval $ac_compile) 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } &&
7378          { ac_try='test -z "$ac_c_werror_flag"
7379                          || test ! -s conftest.err'
7380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381   (eval $ac_try) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; } &&
7385          { ac_try='test -s conftest.$ac_objext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   eval "$as_ac_Header=yes"
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 eval "$as_ac_Header=no"
7397 fi
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403   cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 ac_header_dirent=$ac_hdr; break
7408 fi
7409
7410 done
7411 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7412 if test $ac_header_dirent = dirent.h; then
7413   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7415 if test "${ac_cv_search_opendir+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   ac_func_search_save_LIBS=$LIBS
7419 ac_cv_search_opendir=no
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 /* Override any gcc2 internal prototype to avoid an error.  */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 /* We use char because int might match the return type of a gcc2
7432    builtin and then its argument prototype would still apply.  */
7433 char opendir ();
7434 int
7435 main ()
7436 {
7437 opendir ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444   (eval $ac_link) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"
7452                          || test ! -s conftest.err'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; } &&
7458          { ac_try='test -s conftest$ac_exeext'
7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460   (eval $ac_try) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); }; }; then
7464   ac_cv_search_opendir="none required"
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 fi
7470 rm -f conftest.err conftest.$ac_objext \
7471       conftest$ac_exeext conftest.$ac_ext
7472 if test "$ac_cv_search_opendir" = no; then
7473   for ac_lib in dir; do
7474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7475     cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h.  */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h.  */
7481
7482 /* Override any gcc2 internal prototype to avoid an error.  */
7483 #ifdef __cplusplus
7484 extern "C"
7485 #endif
7486 /* We use char because int might match the return type of a gcc2
7487    builtin and then its argument prototype would still apply.  */
7488 char opendir ();
7489 int
7490 main ()
7491 {
7492 opendir ();
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499   (eval $ac_link) 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -z "$ac_c_werror_flag"
7507                          || test ! -s conftest.err'
7508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509   (eval $ac_try) 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; } &&
7513          { ac_try='test -s conftest$ac_exeext'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; }; then
7519   ac_cv_search_opendir="-l$ac_lib"
7520 break
7521 else
7522   echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 fi
7526 rm -f conftest.err conftest.$ac_objext \
7527       conftest$ac_exeext conftest.$ac_ext
7528   done
7529 fi
7530 LIBS=$ac_func_search_save_LIBS
7531 fi
7532 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7533 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7534 if test "$ac_cv_search_opendir" != no; then
7535   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7536
7537 fi
7538
7539 else
7540   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7542 if test "${ac_cv_search_opendir+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   ac_func_search_save_LIBS=$LIBS
7546 ac_cv_search_opendir=no
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h.  */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h.  */
7553
7554 /* Override any gcc2 internal prototype to avoid an error.  */
7555 #ifdef __cplusplus
7556 extern "C"
7557 #endif
7558 /* We use char because int might match the return type of a gcc2
7559    builtin and then its argument prototype would still apply.  */
7560 char opendir ();
7561 int
7562 main ()
7563 {
7564 opendir ();
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571   (eval $ac_link) 2>conftest.er1
7572   ac_status=$?
7573   grep -v '^ *+' conftest.er1 >conftest.err
7574   rm -f conftest.er1
7575   cat conftest.err >&5
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); } &&
7578          { ac_try='test -z "$ac_c_werror_flag"
7579                          || test ! -s conftest.err'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; } &&
7585          { ac_try='test -s conftest$ac_exeext'
7586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587   (eval $ac_try) 2>&5
7588   ac_status=$?
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); }; }; then
7591   ac_cv_search_opendir="none required"
7592 else
7593   echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596 fi
7597 rm -f conftest.err conftest.$ac_objext \
7598       conftest$ac_exeext conftest.$ac_ext
7599 if test "$ac_cv_search_opendir" = no; then
7600   for ac_lib in x; do
7601     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7602     cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608
7609 /* Override any gcc2 internal prototype to avoid an error.  */
7610 #ifdef __cplusplus
7611 extern "C"
7612 #endif
7613 /* We use char because int might match the return type of a gcc2
7614    builtin and then its argument prototype would still apply.  */
7615 char opendir ();
7616 int
7617 main ()
7618 {
7619 opendir ();
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>conftest.er1
7627   ac_status=$?
7628   grep -v '^ *+' conftest.er1 >conftest.err
7629   rm -f conftest.er1
7630   cat conftest.err >&5
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); } &&
7633          { ac_try='test -z "$ac_c_werror_flag"
7634                          || test ! -s conftest.err'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; } &&
7640          { ac_try='test -s conftest$ac_exeext'
7641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642   (eval $ac_try) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; }; then
7646   ac_cv_search_opendir="-l$ac_lib"
7647 break
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 fi
7653 rm -f conftest.err conftest.$ac_objext \
7654       conftest$ac_exeext conftest.$ac_ext
7655   done
7656 fi
7657 LIBS=$ac_func_search_save_LIBS
7658 fi
7659 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7660 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7661 if test "$ac_cv_search_opendir" != no; then
7662   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7663
7664 fi
7665
7666 fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 for ac_header in \
7707   arpa/inet.h \
7708   errno.h \
7709   getopt.h \
7710   glob.h \
7711   dlfcn.h \
7712   fcntl.h \
7713   inttypes.h \
7714   limits.h \
7715   machine/endian.h \
7716   malloc.h \
7717   memory.h \
7718   netdb.h \
7719   netinet/in.h \
7720   nlist.h \
7721   stddef.h \
7722   stdlib.h \
7723   stdint.h \
7724   string.h \
7725   strings.h \
7726   stropts.h \
7727   soundcard.h \
7728   alsa/asoundlib.h \
7729   sys/asoundlib.h \
7730   sys/audioio.h \
7731   sys/awe_voice.h\
7732   sys/ioctl.h \
7733   sys/ipc.h \
7734   sys/param.h \
7735   sys/shm.h \
7736   sys/socket.h \
7737   sys/soundcard.h \
7738   sys/param.h \
7739   sys/time.h \
7740   sys/types.h \
7741   sys/sysctl.h \
7742   termios.h \
7743   unistd.h \
7744   X11/Xlib.h
7745 do
7746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748   echo "$as_me:$LINENO: checking for $ac_header" >&5
7749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 fi
7753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7755 else
7756   # Is the header compilable?
7757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7759 cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765 $ac_includes_default
7766 #include <$ac_header>
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770   (eval $ac_compile) 2>conftest.er1
7771   ac_status=$?
7772   grep -v '^ *+' conftest.er1 >conftest.err
7773   rm -f conftest.er1
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } &&
7777          { ac_try='test -z "$ac_c_werror_flag"
7778                          || test ! -s conftest.err'
7779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780   (eval $ac_try) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); }; } &&
7784          { ac_try='test -s conftest.$ac_objext'
7785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786   (eval $ac_try) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; }; then
7790   ac_header_compiler=yes
7791 else
7792   echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ac_header_compiler=no
7796 fi
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7800
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810 #include <$ac_header>
7811 _ACEOF
7812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } >/dev/null; then
7820   if test -s conftest.err; then
7821     ac_cpp_err=$ac_c_preproc_warn_flag
7822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7823   else
7824     ac_cpp_err=
7825   fi
7826 else
7827   ac_cpp_err=yes
7828 fi
7829 if test -z "$ac_cpp_err"; then
7830   ac_header_preproc=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835   ac_header_preproc=no
7836 fi
7837 rm -f conftest.err conftest.$ac_ext
7838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839 echo "${ECHO_T}$ac_header_preproc" >&6
7840
7841 # So?  What about this header?
7842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843   yes:no: )
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848     ac_header_preproc=yes
7849     ;;
7850   no:yes:* )
7851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7863     (
7864       cat <<\_ASBOX
7865 ## ------------------------------- ##
7866 ## Report this to root@mput.dip.jp ##
7867 ## ------------------------------- ##
7868 _ASBOX
7869     ) |
7870       sed "s/^/$as_me: WARNING:     /" >&2
7871     ;;
7872 esac
7873 echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   eval "$as_ac_Header=\$ac_header_preproc"
7879 fi
7880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882
7883 fi
7884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885   cat >>confdefs.h <<_ACEOF
7886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 _ACEOF
7888
7889 fi
7890
7891 done
7892
7893
7894
7895 for ac_header in \
7896   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7897 do
7898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899 echo "$as_me:$LINENO: checking for $ac_header" >&5
7900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910
7911 #ifdef HAVE_X11_XLIB_H
7912 #include <X11/Xlib.h>
7913 #endif
7914
7915
7916 #include <$ac_header>
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920   (eval $ac_compile) 2>conftest.er1
7921   ac_status=$?
7922   grep -v '^ *+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -z "$ac_c_werror_flag"
7928                          || test ! -s conftest.err'
7929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930   (eval $ac_try) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; } &&
7934          { ac_try='test -s conftest.$ac_objext'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; }; then
7940   eval "$as_ac_Header=yes"
7941 else
7942   echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 eval "$as_ac_Header=no"
7946 fi
7947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7948 fi
7949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7952   cat >>confdefs.h <<_ACEOF
7953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7954 _ACEOF
7955
7956 fi
7957
7958 done
7959
7960 if test "${ac_cv_header_string_h+set}" = set; then
7961   echo "$as_me:$LINENO: checking for string.h" >&5
7962 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7963 if test "${ac_cv_header_string_h+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 fi
7966 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7967 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7968 else
7969   # Is the header compilable?
7970 echo "$as_me:$LINENO: checking string.h usability" >&5
7971 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h.  */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h.  */
7978 $ac_includes_default
7979 #include <string.h>
7980 _ACEOF
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983   (eval $ac_compile) 2>conftest.er1
7984   ac_status=$?
7985   grep -v '^ *+' conftest.er1 >conftest.err
7986   rm -f conftest.er1
7987   cat conftest.err >&5
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } &&
7990          { ac_try='test -z "$ac_c_werror_flag"
7991                          || test ! -s conftest.err'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest.$ac_objext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   ac_header_compiler=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 ac_header_compiler=no
8009 fi
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 echo "${ECHO_T}$ac_header_compiler" >&6
8013
8014 # Is the header present?
8015 echo "$as_me:$LINENO: checking string.h presence" >&5
8016 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023 #include <string.h>
8024 _ACEOF
8025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } >/dev/null; then
8033   if test -s conftest.err; then
8034     ac_cpp_err=$ac_c_preproc_warn_flag
8035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8036   else
8037     ac_cpp_err=
8038   fi
8039 else
8040   ac_cpp_err=yes
8041 fi
8042 if test -z "$ac_cpp_err"; then
8043   ac_header_preproc=yes
8044 else
8045   echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048   ac_header_preproc=no
8049 fi
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8053
8054 # So?  What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8056   yes:no: )
8057     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8061     ac_header_preproc=yes
8062     ;;
8063   no:yes:* )
8064     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8066     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8072     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8074     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8076     (
8077       cat <<\_ASBOX
8078 ## ------------------------------- ##
8079 ## Report this to root@mput.dip.jp ##
8080 ## ------------------------------- ##
8081 _ASBOX
8082     ) |
8083       sed "s/^/$as_me: WARNING:     /" >&2
8084     ;;
8085 esac
8086 echo "$as_me:$LINENO: checking for string.h" >&5
8087 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8088 if test "${ac_cv_header_string_h+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   ac_cv_header_string_h=$ac_header_preproc
8092 fi
8093 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8094 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8095
8096 fi
8097 if test $ac_cv_header_string_h = yes; then
8098   :
8099 else
8100
8101 cat >>confdefs.h <<\_ACEOF
8102 #define NO_STRING_H 1
8103 _ACEOF
8104
8105 fi
8106
8107
8108
8109 # Checks for typedefs, structures, and compiler characteristics.
8110 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8112 if test "${ac_cv_c_bigendian+set}" = set; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115   # See if sys/param.h defines the BYTE_ORDER macro.
8116 cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <sys/types.h>
8123 #include <sys/param.h>
8124
8125 int
8126 main ()
8127 {
8128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8129  bogus endian macros
8130 #endif
8131
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138   (eval $ac_compile) 2>conftest.er1
8139   ac_status=$?
8140   grep -v '^ *+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } &&
8145          { ac_try='test -z "$ac_c_werror_flag"
8146                          || test ! -s conftest.err'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; } &&
8152          { ac_try='test -s conftest.$ac_objext'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   # It does; now see whether it defined to BIG_ENDIAN or not.
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165 #include <sys/types.h>
8166 #include <sys/param.h>
8167
8168 int
8169 main ()
8170 {
8171 #if BYTE_ORDER != BIG_ENDIAN
8172  not big endian
8173 #endif
8174
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181   (eval $ac_compile) 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } &&
8188          { ac_try='test -z "$ac_c_werror_flag"
8189                          || test ! -s conftest.err'
8190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191   (eval $ac_try) 2>&5
8192   ac_status=$?
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); }; } &&
8195          { ac_try='test -s conftest.$ac_objext'
8196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197   (eval $ac_try) 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; }; then
8201   ac_cv_c_bigendian=yes
8202 else
8203   echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 ac_cv_c_bigendian=no
8207 fi
8208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 # It does not; compile a test program.
8214 if test "$cross_compiling" = yes; then
8215   # try to guess the endianness by grepping values into an object file
8216   ac_cv_c_bigendian=unknown
8217   cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8224 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8226 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8227 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8229 int
8230 main ()
8231 {
8232  _ascii (); _ebcdic ();
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239   (eval $ac_compile) 2>conftest.er1
8240   ac_status=$?
8241   grep -v '^ *+' conftest.er1 >conftest.err
8242   rm -f conftest.er1
8243   cat conftest.err >&5
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -z "$ac_c_werror_flag"
8247                          || test ! -s conftest.err'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; } &&
8253          { ac_try='test -s conftest.$ac_objext'
8254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255   (eval $ac_try) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); }; }; then
8259   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8260   ac_cv_c_bigendian=yes
8261 fi
8262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8263   if test "$ac_cv_c_bigendian" = unknown; then
8264     ac_cv_c_bigendian=no
8265   else
8266     # finding both strings is unlikely to happen, but who knows?
8267     ac_cv_c_bigendian=unknown
8268   fi
8269 fi
8270 else
8271   echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 fi
8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 else
8277   cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283 int
8284 main ()
8285 {
8286   /* Are we little or big endian?  From Harbison&Steele.  */
8287   union
8288   {
8289     long l;
8290     char c[sizeof (long)];
8291   } u;
8292   u.l = 1;
8293   exit (u.c[sizeof (long) - 1] == 1);
8294 }
8295 _ACEOF
8296 rm -f conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298   (eval $ac_link) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303   (eval $ac_try) 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); }; }; then
8307   ac_cv_c_bigendian=no
8308 else
8309   echo "$as_me: program exited with status $ac_status" >&5
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 ( exit $ac_status )
8314 ac_cv_c_bigendian=yes
8315 fi
8316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 fi
8319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8323 case $ac_cv_c_bigendian in
8324   yes)
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define WORDS_BIGENDIAN 1
8328 _ACEOF
8329  ;;
8330   no)
8331      ;;
8332   *)
8333     { { echo "$as_me:$LINENO: error: unknown endianness
8334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8335 echo "$as_me: error: unknown endianness
8336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8337    { (exit 1); exit 1; }; } ;;
8338 esac
8339
8340
8341 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8342 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8343 if test "${ac_cv_c_char_unsigned+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h.  */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h.  */
8352 $ac_includes_default
8353 int
8354 main ()
8355 {
8356 static int test_array [1 - 2 * !(((char) -1) < 0)];
8357 test_array [0] = 0
8358
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365   (eval $ac_compile) 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -z "$ac_c_werror_flag"
8373                          || test ! -s conftest.err'
8374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375   (eval $ac_try) 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; } &&
8379          { ac_try='test -s conftest.$ac_objext'
8380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381   (eval $ac_try) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; }; then
8385   ac_cv_c_char_unsigned=no
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 ac_cv_c_char_unsigned=yes
8391 fi
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8395 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8396 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8397   cat >>confdefs.h <<\_ACEOF
8398 #define __CHAR_UNSIGNED__ 1
8399 _ACEOF
8400
8401 fi
8402
8403 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8405 if test "${ac_cv_c_const+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414
8415 int
8416 main ()
8417 {
8418 /* FIXME: Include the comments suggested by Paul. */
8419 #ifndef __cplusplus
8420   /* Ultrix mips cc rejects this.  */
8421   typedef int charset[2];
8422   const charset x;
8423   /* SunOS 4.1.1 cc rejects this.  */
8424   char const *const *ccp;
8425   char **p;
8426   /* NEC SVR4.0.2 mips cc rejects this.  */
8427   struct point {int x, y;};
8428   static struct point const zero = {0,0};
8429   /* AIX XL C 1.02.0.0 rejects this.
8430      It does not let you subtract one const X* pointer from another in
8431      an arm of an if-expression whose if-part is not a constant
8432      expression */
8433   const char *g = "string";
8434   ccp = &g + (g ? g-g : 0);
8435   /* HPUX 7.0 cc rejects these. */
8436   ++ccp;
8437   p = (char**) ccp;
8438   ccp = (char const *const *) p;
8439   { /* SCO 3.2v4 cc rejects this.  */
8440     char *t;
8441     char const *s = 0 ? (char *) 0 : (char const *) 0;
8442
8443     *t++ = 0;
8444   }
8445   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8446     int x[] = {25, 17};
8447     const int *foo = &x[0];
8448     ++foo;
8449   }
8450   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8451     typedef const int *iptr;
8452     iptr p = 0;
8453     ++p;
8454   }
8455   { /* AIX XL C 1.02.0.0 rejects this saying
8456        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8457     struct s { int j; const int *ap[3]; };
8458     struct s *b; b->j = 5;
8459   }
8460   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8461     const int foo = 10;
8462   }
8463 #endif
8464
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471   (eval $ac_compile) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -z "$ac_c_werror_flag"
8479                          || test ! -s conftest.err'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; } &&
8485          { ac_try='test -s conftest.$ac_objext'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; }; then
8491   ac_cv_c_const=yes
8492 else
8493   echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_cv_c_const=no
8497 fi
8498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8501 echo "${ECHO_T}$ac_cv_c_const" >&6
8502 if test $ac_cv_c_const = no; then
8503
8504 cat >>confdefs.h <<\_ACEOF
8505 #define const
8506 _ACEOF
8507
8508 fi
8509
8510 echo "$as_me:$LINENO: checking for inline" >&5
8511 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8512 if test "${ac_cv_c_inline+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   ac_cv_c_inline=no
8516 for ac_kw in inline __inline__ __inline; do
8517   cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 #ifndef __cplusplus
8524 typedef int foo_t;
8525 static $ac_kw foo_t static_foo () {return 0; }
8526 $ac_kw foo_t foo () {return 0; }
8527 #endif
8528
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532   (eval $ac_compile) 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } &&
8539          { ac_try='test -z "$ac_c_werror_flag"
8540                          || test ! -s conftest.err'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_cv_c_inline=$ac_kw; break
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 fi
8558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559 done
8560
8561 fi
8562 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8563 echo "${ECHO_T}$ac_cv_c_inline" >&6
8564
8565
8566 case $ac_cv_c_inline in
8567   inline | yes) ;;
8568   *)
8569     case $ac_cv_c_inline in
8570       no) ac_val=;;
8571       *) ac_val=$ac_cv_c_inline;;
8572     esac
8573     cat >>confdefs.h <<_ACEOF
8574 #ifndef __cplusplus
8575 #define inline $ac_val
8576 #endif
8577 _ACEOF
8578     ;;
8579 esac
8580
8581 echo "$as_me:$LINENO: checking for working volatile" >&5
8582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8583 if test "${ac_cv_c_volatile+set}" = set; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h.  */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h.  */
8592
8593 int
8594 main ()
8595 {
8596
8597 volatile int x;
8598 int * volatile y;
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605   (eval $ac_compile) 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -z "$ac_c_werror_flag"
8613                          || test ! -s conftest.err'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest.$ac_objext'
8620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621   (eval $ac_try) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   ac_cv_c_volatile=yes
8626 else
8627   echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 ac_cv_c_volatile=no
8631 fi
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8635 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8636 if test $ac_cv_c_volatile = no; then
8637
8638 cat >>confdefs.h <<\_ACEOF
8639 #define volatile
8640 _ACEOF
8641
8642 fi
8643
8644 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8645 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8646 if test "${ac_cv_c_stringize+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h.  */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h.  */
8655 #define x(y) #y
8656
8657 char *s = x(teststring);
8658 _ACEOF
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660   $EGREP "#teststring" >/dev/null 2>&1; then
8661   ac_cv_c_stringize=no
8662 else
8663   ac_cv_c_stringize=yes
8664 fi
8665 rm -f conftest*
8666
8667 fi
8668 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8669 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8670 if test $ac_cv_c_stringize = yes; then
8671
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_STRINGIZE 1
8674 _ACEOF
8675
8676 fi
8677
8678 echo "$as_me:$LINENO: checking for function prototypes" >&5
8679 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8680 if test "$ac_cv_prog_cc_stdc" != no; then
8681   echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6
8683
8684 cat >>confdefs.h <<\_ACEOF
8685 #define PROTOTYPES 1
8686 _ACEOF
8687
8688
8689 cat >>confdefs.h <<\_ACEOF
8690 #define __PROTOTYPES 1
8691 _ACEOF
8692
8693 else
8694   echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6
8696 fi
8697
8698 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8699 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8700 if test "${ac_cv_struct_tm+set}" = set; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703   cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709 #include <sys/types.h>
8710 #include <time.h>
8711
8712 int
8713 main ()
8714 {
8715 struct tm *tp; tp->tm_sec;
8716   ;
8717   return 0;
8718 }
8719 _ACEOF
8720 rm -f conftest.$ac_objext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8722   (eval $ac_compile) 2>conftest.er1
8723   ac_status=$?
8724   grep -v '^ *+' conftest.er1 >conftest.err
8725   rm -f conftest.er1
8726   cat conftest.err >&5
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); } &&
8729          { ac_try='test -z "$ac_c_werror_flag"
8730                          || test ! -s conftest.err'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; } &&
8736          { ac_try='test -s conftest.$ac_objext'
8737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738   (eval $ac_try) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; }; then
8742   ac_cv_struct_tm=time.h
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747 ac_cv_struct_tm=sys/time.h
8748 fi
8749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8752 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8753 if test $ac_cv_struct_tm = sys/time.h; then
8754
8755 cat >>confdefs.h <<\_ACEOF
8756 #define TM_IN_SYS_TIME 1
8757 _ACEOF
8758
8759 fi
8760
8761 echo "$as_me:$LINENO: checking for size_t" >&5
8762 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8763 if test "${ac_cv_type_size_t+set}" = set; then
8764   echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766   cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h.  */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h.  */
8772 $ac_includes_default
8773 int
8774 main ()
8775 {
8776 if ((size_t *) 0)
8777   return 0;
8778 if (sizeof (size_t))
8779   return 0;
8780   ;
8781   return 0;
8782 }
8783 _ACEOF
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786   (eval $ac_compile) 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } &&
8793          { ac_try='test -z "$ac_c_werror_flag"
8794                          || test ! -s conftest.err'
8795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796   (eval $ac_try) 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); }; } &&
8800          { ac_try='test -s conftest.$ac_objext'
8801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802   (eval $ac_try) 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); }; }; then
8806   ac_cv_type_size_t=yes
8807 else
8808   echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 ac_cv_type_size_t=no
8812 fi
8813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8814 fi
8815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8817 if test $ac_cv_type_size_t = yes; then
8818   :
8819 else
8820
8821 cat >>confdefs.h <<_ACEOF
8822 #define size_t unsigned
8823 _ACEOF
8824
8825 fi
8826
8827 echo "$as_me:$LINENO: checking for off_t" >&5
8828 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8829 if test "${ac_cv_type_off_t+set}" = set; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   cat >conftest.$ac_ext <<_ACEOF
8833 /* confdefs.h.  */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h.  */
8838 $ac_includes_default
8839 int
8840 main ()
8841 {
8842 if ((off_t *) 0)
8843   return 0;
8844 if (sizeof (off_t))
8845   return 0;
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag"
8860                          || test ! -s conftest.err'
8861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_type_off_t=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_type_off_t=no
8878 fi
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8882 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8883 if test $ac_cv_type_off_t = yes; then
8884   :
8885 else
8886
8887 cat >>confdefs.h <<_ACEOF
8888 #define off_t long
8889 _ACEOF
8890
8891 fi
8892
8893 echo "$as_me:$LINENO: checking for pid_t" >&5
8894 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8895 if test "${ac_cv_type_pid_t+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904 $ac_includes_default
8905 int
8906 main ()
8907 {
8908 if ((pid_t *) 0)
8909   return 0;
8910 if (sizeof (pid_t))
8911   return 0;
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918   (eval $ac_compile) 2>conftest.er1
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
8922   cat conftest.err >&5
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -z "$ac_c_werror_flag"
8926                          || test ! -s conftest.err'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest.$ac_objext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_cv_type_pid_t=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_cv_type_pid_t=no
8944 fi
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8948 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8949 if test $ac_cv_type_pid_t = yes; then
8950   :
8951 else
8952
8953 cat >>confdefs.h <<_ACEOF
8954 #define pid_t int
8955 _ACEOF
8956
8957 fi
8958
8959
8960 echo "$as_me:$LINENO: checking volatile declaration" >&5
8961 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8962 if test "${timidity_cv_type_volatile+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971
8972 int
8973 main ()
8974 {
8975 volatile int x
8976   ;
8977   return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982   (eval $ac_compile) 2>conftest.er1
8983   ac_status=$?
8984   grep -v '^ *+' conftest.er1 >conftest.err
8985   rm -f conftest.er1
8986   cat conftest.err >&5
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); } &&
8989          { ac_try='test -z "$ac_c_werror_flag"
8990                          || test ! -s conftest.err'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; } &&
8996          { ac_try='test -s conftest.$ac_objext'
8997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998   (eval $ac_try) 2>&5
8999   ac_status=$?
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); }; }; then
9002   timidity_cv_type_volatile=yes
9003 else
9004   echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007 timidity_cv_type_volatile=no
9008 fi
9009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010 fi
9011 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9012 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9013 if test $timidity_cv_type_volatile = no; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define NO_VOLATILE 1
9017 _ACEOF
9018
9019 fi
9020
9021 echo "$as_me:$LINENO: checking union semun declaration" >&5
9022 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9023 if test "${timidity_cv_type_union_semun+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033 #include <sys/types.h>
9034 #include <sys/ipc.h>
9035 #include <sys/sem.h>
9036
9037 int
9038 main ()
9039 {
9040 union semun x
9041   ;
9042   return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047   (eval $ac_compile) 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -z "$ac_c_werror_flag"
9055                          || test ! -s conftest.err'
9056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057   (eval $ac_try) 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; } &&
9061          { ac_try='test -s conftest.$ac_objext'
9062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063   (eval $ac_try) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); }; }; then
9067   timidity_cv_type_union_semun=yes
9068 else
9069   echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 timidity_cv_type_union_semun=no
9073 fi
9074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9077 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9078 if test $timidity_cv_type_union_semun = yes; then
9079
9080 cat >>confdefs.h <<\_ACEOF
9081 #define HAVE_UNION_SEMUN 1
9082 _ACEOF
9083
9084 fi
9085
9086 if test "x$CYGNUS" = xyes; then
9087   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9088 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9089 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098
9099 #include <windows.h>
9100 #include <mmsystem.h>
9101
9102 int
9103 main ()
9104 {
9105 return WOM_OPEN != 0x3BB
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112   (eval $ac_compile) 2>conftest.er1
9113   ac_status=$?
9114   grep -v '^ *+' conftest.er1 >conftest.err
9115   rm -f conftest.er1
9116   cat conftest.err >&5
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } &&
9119          { ac_try='test -z "$ac_c_werror_flag"
9120                          || test ! -s conftest.err'
9121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122   (eval $ac_try) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); }; } &&
9126          { ac_try='test -s conftest.$ac_objext'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; }; then
9132   timidity_cv_header_new_mmsystem=yes
9133 else
9134   echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137 timidity_cv_header_new_mmsystem=no
9138 fi
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 fi
9141 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9142 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9143   if test $timidity_cv_header_new_mmsystem = yes; then
9144
9145 cat >>confdefs.h <<\_ACEOF
9146 #define HAVE_NEW_MMSYSTEM 1
9147 _ACEOF
9148
9149   fi
9150 fi
9151
9152 if test "x$MINGW" = xyes; then
9153   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9154 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9155 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164
9165 #include <windows.h>
9166 #include <mmsystem.h>
9167
9168 int
9169 main ()
9170 {
9171 return WOM_OPEN != 0x3BB
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178   (eval $ac_compile) 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } &&
9185          { ac_try='test -z "$ac_c_werror_flag"
9186                          || test ! -s conftest.err'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; } &&
9192          { ac_try='test -s conftest.$ac_objext'
9193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194   (eval $ac_try) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   timidity_cv_header_new_mmsystem=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 timidity_cv_header_new_mmsystem=no
9204 fi
9205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9206 fi
9207 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9208 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9209   if test $timidity_cv_header_new_mmsystem = yes; then
9210
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_NEW_MMSYSTEM 1
9213 _ACEOF
9214
9215   fi
9216 fi
9217
9218 # Checks for library functions.
9219 echo "$as_me:$LINENO: checking for error_at_line" >&5
9220 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9221 if test "${ac_cv_lib_error_at_line+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230 $ac_includes_default
9231 int
9232 main ()
9233 {
9234 error_at_line (0, 0, "", 0, "");
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241   (eval $ac_link) 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -z "$ac_c_werror_flag"
9249                          || test ! -s conftest.err'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest$ac_exeext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_lib_error_at_line=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_lib_error_at_line=no
9267 fi
9268 rm -f conftest.err conftest.$ac_objext \
9269       conftest$ac_exeext conftest.$ac_ext
9270 fi
9271 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9272 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9273 if test $ac_cv_lib_error_at_line = no; then
9274   case $LIBOBJS in
9275     "error.$ac_objext"   | \
9276   *" error.$ac_objext"   | \
9277     "error.$ac_objext "* | \
9278   *" error.$ac_objext "* ) ;;
9279   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9280 esac
9281
9282 fi
9283
9284
9285
9286 for ac_header in unistd.h vfork.h
9287 do
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290   echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 fi
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 else
9298   # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307 $ac_includes_default
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312   (eval $ac_compile) 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -z "$ac_c_werror_flag"
9320                          || test ! -s conftest.err'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; } &&
9326          { ac_try='test -s conftest.$ac_objext'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; }; then
9332   ac_header_compiler=yes
9333 else
9334   echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 ac_header_compiler=no
9338 fi
9339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9341 echo "${ECHO_T}$ac_header_compiler" >&6
9342
9343 # Is the header present?
9344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h.  */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h.  */
9352 #include <$ac_header>
9353 _ACEOF
9354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } >/dev/null; then
9362   if test -s conftest.err; then
9363     ac_cpp_err=$ac_c_preproc_warn_flag
9364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9365   else
9366     ac_cpp_err=
9367   fi
9368 else
9369   ac_cpp_err=yes
9370 fi
9371 if test -z "$ac_cpp_err"; then
9372   ac_header_preproc=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377   ac_header_preproc=no
9378 fi
9379 rm -f conftest.err conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9381 echo "${ECHO_T}$ac_header_preproc" >&6
9382
9383 # So?  What about this header?
9384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9385   yes:no: )
9386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9390     ac_header_preproc=yes
9391     ;;
9392   no:yes:* )
9393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9405     (
9406       cat <<\_ASBOX
9407 ## ------------------------------- ##
9408 ## Report this to root@mput.dip.jp ##
9409 ## ------------------------------- ##
9410 _ASBOX
9411     ) |
9412       sed "s/^/$as_me: WARNING:     /" >&2
9413     ;;
9414 esac
9415 echo "$as_me:$LINENO: checking for $ac_header" >&5
9416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   eval "$as_ac_Header=\$ac_header_preproc"
9421 fi
9422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9424
9425 fi
9426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9427   cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9429 _ACEOF
9430
9431 fi
9432
9433 done
9434
9435
9436
9437 for ac_func in fork vfork
9438 do
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445   cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9453 #define $ac_func innocuous_$ac_func
9454
9455 /* System header to define __stub macros and hopefully few prototypes,
9456     which can conflict with char $ac_func (); below.
9457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458     <limits.h> exists even on freestanding compilers.  */
9459
9460 #ifdef __STDC__
9461 # include <limits.h>
9462 #else
9463 # include <assert.h>
9464 #endif
9465
9466 #undef $ac_func
9467
9468 /* Override any gcc2 internal prototype to avoid an error.  */
9469 #ifdef __cplusplus
9470 extern "C"
9471 {
9472 #endif
9473 /* We use char because int might match the return type of a gcc2
9474    builtin and then its argument prototype would still apply.  */
9475 char $ac_func ();
9476 /* The GNU C library defines this for functions which it implements
9477     to always fail with ENOSYS.  Some functions are actually named
9478     something starting with __ and the normal name is an alias.  */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9480 choke me
9481 #else
9482 char (*f) () = $ac_func;
9483 #endif
9484 #ifdef __cplusplus
9485 }
9486 #endif
9487
9488 int
9489 main ()
9490 {
9491 return f != $ac_func;
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498   (eval $ac_link) 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -z "$ac_c_werror_flag"
9506                          || test ! -s conftest.err'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; } &&
9512          { ac_try='test -s conftest$ac_exeext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   eval "$as_ac_var=yes"
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 eval "$as_ac_var=no"
9524 fi
9525 rm -f conftest.err conftest.$ac_objext \
9526       conftest$ac_exeext conftest.$ac_ext
9527 fi
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531   cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533 _ACEOF
9534
9535 fi
9536 done
9537
9538 if test "x$ac_cv_func_fork" = xyes; then
9539   echo "$as_me:$LINENO: checking for working fork" >&5
9540 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9541 if test "${ac_cv_func_fork_works+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   if test "$cross_compiling" = yes; then
9545   ac_cv_func_fork_works=cross
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 /* By Ruediger Kuhlmann. */
9549       #include <sys/types.h>
9550       #if HAVE_UNISTD_H
9551       # include <unistd.h>
9552       #endif
9553       /* Some systems only have a dummy stub for fork() */
9554       int main ()
9555       {
9556         if (fork() < 0)
9557           exit (1);
9558         exit (0);
9559       }
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563   (eval $ac_link) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   ac_cv_func_fork_works=yes
9573 else
9574   echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 ( exit $ac_status )
9579 ac_cv_func_fork_works=no
9580 fi
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 fi
9584 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9585 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9586
9587 else
9588   ac_cv_func_fork_works=$ac_cv_func_fork
9589 fi
9590 if test "x$ac_cv_func_fork_works" = xcross; then
9591   case $host in
9592     *-*-amigaos* | *-*-msdosdjgpp*)
9593       # Override, as these systems have only a dummy fork() stub
9594       ac_cv_func_fork_works=no
9595       ;;
9596     *)
9597       ac_cv_func_fork_works=yes
9598       ;;
9599   esac
9600   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9601 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9602 fi
9603 ac_cv_func_vfork_works=$ac_cv_func_vfork
9604 if test "x$ac_cv_func_vfork" = xyes; then
9605   echo "$as_me:$LINENO: checking for working vfork" >&5
9606 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9607 if test "${ac_cv_func_vfork_works+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   if test "$cross_compiling" = yes; then
9611   ac_cv_func_vfork_works=cross
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 /* Thanks to Paul Eggert for this test.  */
9620 #include <stdio.h>
9621 #include <stdlib.h>
9622 #include <sys/types.h>
9623 #include <sys/stat.h>
9624 #include <sys/wait.h>
9625 #if HAVE_UNISTD_H
9626 # include <unistd.h>
9627 #endif
9628 #if HAVE_VFORK_H
9629 # include <vfork.h>
9630 #endif
9631 /* On some sparc systems, changes by the child to local and incoming
9632    argument registers are propagated back to the parent.  The compiler
9633    is told about this with #include <vfork.h>, but some compilers
9634    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9635    static variable whose address is put into a register that is
9636    clobbered by the vfork.  */
9637 static void
9638 #ifdef __cplusplus
9639 sparc_address_test (int arg)
9640 # else
9641 sparc_address_test (arg) int arg;
9642 #endif
9643 {
9644   static pid_t child;
9645   if (!child) {
9646     child = vfork ();
9647     if (child < 0) {
9648       perror ("vfork");
9649       _exit(2);
9650     }
9651     if (!child) {
9652       arg = getpid();
9653       write(-1, "", 0);
9654       _exit (arg);
9655     }
9656   }
9657 }
9658
9659 int
9660 main ()
9661 {
9662   pid_t parent = getpid ();
9663   pid_t child;
9664
9665   sparc_address_test (0);
9666
9667   child = vfork ();
9668
9669   if (child == 0) {
9670     /* Here is another test for sparc vfork register problems.  This
9671        test uses lots of local variables, at least as many local
9672        variables as main has allocated so far including compiler
9673        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9674        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9675        reuse the register of parent for one of the local variables,
9676        since it will think that parent can't possibly be used any more
9677        in this routine.  Assigning to the local variable will thus
9678        munge parent in the parent process.  */
9679     pid_t
9680       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9681       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9682     /* Convince the compiler that p..p7 are live; otherwise, it might
9683        use the same hardware register for all 8 local variables.  */
9684     if (p != p1 || p != p2 || p != p3 || p != p4
9685         || p != p5 || p != p6 || p != p7)
9686       _exit(1);
9687
9688     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9689        from child file descriptors.  If the child closes a descriptor
9690        before it execs or exits, this munges the parent's descriptor
9691        as well.  Test for this by closing stdout in the child.  */
9692     _exit(close(fileno(stdout)) != 0);
9693   } else {
9694     int status;
9695     struct stat st;
9696
9697     while (wait(&status) != child)
9698       ;
9699     exit(
9700          /* Was there some problem with vforking?  */
9701          child < 0
9702
9703          /* Did the child fail?  (This shouldn't happen.)  */
9704          || status
9705
9706          /* Did the vfork/compiler bug occur?  */
9707          || parent != getpid()
9708
9709          /* Did the file descriptor bug occur?  */
9710          || fstat(fileno(stdout), &st) != 0
9711          );
9712   }
9713 }
9714 _ACEOF
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717   (eval $ac_link) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_func_vfork_works=yes
9727 else
9728   echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 ( exit $ac_status )
9733 ac_cv_func_vfork_works=no
9734 fi
9735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9736 fi
9737 fi
9738 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9739 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9740
9741 fi;
9742 if test "x$ac_cv_func_fork_works" = xcross; then
9743   ac_cv_func_vfork_works=$ac_cv_func_vfork
9744   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9745 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9746 fi
9747
9748 if test "x$ac_cv_func_vfork_works" = xyes; then
9749
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_WORKING_VFORK 1
9752 _ACEOF
9753
9754 else
9755
9756 cat >>confdefs.h <<\_ACEOF
9757 #define vfork fork
9758 _ACEOF
9759
9760 fi
9761 if test "x$ac_cv_func_fork_works" = xyes; then
9762
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_WORKING_FORK 1
9765 _ACEOF
9766
9767 fi
9768
9769 echo "$as_me:$LINENO: checking for working memcmp" >&5
9770 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9771 if test "${ac_cv_func_memcmp_working+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   if test "$cross_compiling" = yes; then
9775   ac_cv_func_memcmp_working=no
9776 else
9777   cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h.  */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h.  */
9783 $ac_includes_default
9784 int
9785 main ()
9786 {
9787
9788   /* Some versions of memcmp are not 8-bit clean.  */
9789   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9790   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9791     exit (1);
9792
9793   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9794      or more and with at least one buffer not starting on a 4-byte boundary.
9795      William Lewis provided this test program.   */
9796   {
9797     char foo[21];
9798     char bar[21];
9799     int i;
9800     for (i = 0; i < 4; i++)
9801       {
9802         char *a = foo + i;
9803         char *b = bar + i;
9804         strcpy (a, "--------01111111");
9805         strcpy (b, "--------10000000");
9806         if (memcmp (a, b, 16) >= 0)
9807           exit (1);
9808       }
9809     exit (0);
9810   }
9811
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest$ac_exeext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818   (eval $ac_link) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; }; then
9827   ac_cv_func_memcmp_working=yes
9828 else
9829   echo "$as_me: program exited with status $ac_status" >&5
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 ( exit $ac_status )
9834 ac_cv_func_memcmp_working=no
9835 fi
9836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9837 fi
9838 fi
9839 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9840 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9841 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9842     "memcmp.$ac_objext"   | \
9843   *" memcmp.$ac_objext"   | \
9844     "memcmp.$ac_objext "* | \
9845   *" memcmp.$ac_objext "* ) ;;
9846   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9847 esac
9848
9849
9850
9851
9852 for ac_header in stdlib.h unistd.h
9853 do
9854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856   echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 fi
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9863 else
9864   # Is the header compilable?
9865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873 $ac_includes_default
9874 #include <$ac_header>
9875 _ACEOF
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878   (eval $ac_compile) 2>conftest.er1
9879   ac_status=$?
9880   grep -v '^ *+' conftest.er1 >conftest.err
9881   rm -f conftest.er1
9882   cat conftest.err >&5
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } &&
9885          { ac_try='test -z "$ac_c_werror_flag"
9886                          || test ! -s conftest.err'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; } &&
9892          { ac_try='test -s conftest.$ac_objext'
9893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894   (eval $ac_try) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_header_compiler=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_header_compiler=no
9904 fi
9905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9907 echo "${ECHO_T}$ac_header_compiler" >&6
9908
9909 # Is the header present?
9910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918 #include <$ac_header>
9919 _ACEOF
9920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } >/dev/null; then
9928   if test -s conftest.err; then
9929     ac_cpp_err=$ac_c_preproc_warn_flag
9930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9931   else
9932     ac_cpp_err=
9933   fi
9934 else
9935   ac_cpp_err=yes
9936 fi
9937 if test -z "$ac_cpp_err"; then
9938   ac_header_preproc=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943   ac_header_preproc=no
9944 fi
9945 rm -f conftest.err conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9947 echo "${ECHO_T}$ac_header_preproc" >&6
9948
9949 # So?  What about this header?
9950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9951   yes:no: )
9952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9956     ac_header_preproc=yes
9957     ;;
9958   no:yes:* )
9959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9961     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9962 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9963     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9965     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9966 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9969     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9971     (
9972       cat <<\_ASBOX
9973 ## ------------------------------- ##
9974 ## Report this to root@mput.dip.jp ##
9975 ## ------------------------------- ##
9976 _ASBOX
9977     ) |
9978       sed "s/^/$as_me: WARNING:     /" >&2
9979     ;;
9980 esac
9981 echo "$as_me:$LINENO: checking for $ac_header" >&5
9982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   eval "$as_ac_Header=\$ac_header_preproc"
9987 fi
9988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9990
9991 fi
9992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9993   cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9995 _ACEOF
9996
9997 fi
9998
9999 done
10000
10001
10002 for ac_func in getpagesize
10003 do
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10018 #define $ac_func innocuous_$ac_func
10019
10020 /* System header to define __stub macros and hopefully few prototypes,
10021     which can conflict with char $ac_func (); below.
10022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023     <limits.h> exists even on freestanding compilers.  */
10024
10025 #ifdef __STDC__
10026 # include <limits.h>
10027 #else
10028 # include <assert.h>
10029 #endif
10030
10031 #undef $ac_func
10032
10033 /* Override any gcc2 internal prototype to avoid an error.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 {
10037 #endif
10038 /* We use char because int might match the return type of a gcc2
10039    builtin and then its argument prototype would still apply.  */
10040 char $ac_func ();
10041 /* The GNU C library defines this for functions which it implements
10042     to always fail with ENOSYS.  Some functions are actually named
10043     something starting with __ and the normal name is an alias.  */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10045 choke me
10046 #else
10047 char (*f) () = $ac_func;
10048 #endif
10049 #ifdef __cplusplus
10050 }
10051 #endif
10052
10053 int
10054 main ()
10055 {
10056 return f != $ac_func;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_c_werror_flag"
10071                          || test ! -s conftest.err'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   eval "$as_ac_var=yes"
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 eval "$as_ac_var=no"
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095 if test `eval echo '${'$as_ac_var'}'` = yes; then
10096   cat >>confdefs.h <<_ACEOF
10097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10098 _ACEOF
10099
10100 fi
10101 done
10102
10103 echo "$as_me:$LINENO: checking for working mmap" >&5
10104 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10105 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   if test "$cross_compiling" = yes; then
10109   ac_cv_func_mmap_fixed_mapped=no
10110 else
10111   cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117 $ac_includes_default
10118 /* malloc might have been renamed as rpl_malloc. */
10119 #undef malloc
10120
10121 /* Thanks to Mike Haertel and Jim Avera for this test.
10122    Here is a matrix of mmap possibilities:
10123         mmap private not fixed
10124         mmap private fixed at somewhere currently unmapped
10125         mmap private fixed at somewhere already mapped
10126         mmap shared not fixed
10127         mmap shared fixed at somewhere currently unmapped
10128         mmap shared fixed at somewhere already mapped
10129    For private mappings, we should verify that changes cannot be read()
10130    back from the file, nor mmap's back from the file at a different
10131    address.  (There have been systems where private was not correctly
10132    implemented like the infamous i386 svr4.0, and systems where the
10133    VM page cache was not coherent with the file system buffer cache
10134    like early versions of FreeBSD and possibly contemporary NetBSD.)
10135    For shared mappings, we should conversely verify that changes get
10136    propagated back to all the places they're supposed to be.
10137
10138    Grep wants private fixed already mapped.
10139    The main things grep needs to know about mmap are:
10140    * does it exist and is it safe to write into the mmap'd area
10141    * how to use it (BSD variants)  */
10142
10143 #include <fcntl.h>
10144 #include <sys/mman.h>
10145
10146 #if !STDC_HEADERS && !HAVE_STDLIB_H
10147 char *malloc ();
10148 #endif
10149
10150 /* This mess was copied from the GNU getpagesize.h.  */
10151 #if !HAVE_GETPAGESIZE
10152 /* Assume that all systems that can run configure have sys/param.h.  */
10153 # if !HAVE_SYS_PARAM_H
10154 #  define HAVE_SYS_PARAM_H 1
10155 # endif
10156
10157 # ifdef _SC_PAGESIZE
10158 #  define getpagesize() sysconf(_SC_PAGESIZE)
10159 # else /* no _SC_PAGESIZE */
10160 #  if HAVE_SYS_PARAM_H
10161 #   include <sys/param.h>
10162 #   ifdef EXEC_PAGESIZE
10163 #    define getpagesize() EXEC_PAGESIZE
10164 #   else /* no EXEC_PAGESIZE */
10165 #    ifdef NBPG
10166 #     define getpagesize() NBPG * CLSIZE
10167 #     ifndef CLSIZE
10168 #      define CLSIZE 1
10169 #     endif /* no CLSIZE */
10170 #    else /* no NBPG */
10171 #     ifdef NBPC
10172 #      define getpagesize() NBPC
10173 #     else /* no NBPC */
10174 #      ifdef PAGESIZE
10175 #       define getpagesize() PAGESIZE
10176 #      endif /* PAGESIZE */
10177 #     endif /* no NBPC */
10178 #    endif /* no NBPG */
10179 #   endif /* no EXEC_PAGESIZE */
10180 #  else /* no HAVE_SYS_PARAM_H */
10181 #   define getpagesize() 8192   /* punt totally */
10182 #  endif /* no HAVE_SYS_PARAM_H */
10183 # endif /* no _SC_PAGESIZE */
10184
10185 #endif /* no HAVE_GETPAGESIZE */
10186
10187 int
10188 main ()
10189 {
10190   char *data, *data2, *data3;
10191   int i, pagesize;
10192   int fd;
10193
10194   pagesize = getpagesize ();
10195
10196   /* First, make a file with some known garbage in it. */
10197   data = (char *) malloc (pagesize);
10198   if (!data)
10199     exit (1);
10200   for (i = 0; i < pagesize; ++i)
10201     *(data + i) = rand ();
10202   umask (0);
10203   fd = creat ("conftest.mmap", 0600);
10204   if (fd < 0)
10205     exit (1);
10206   if (write (fd, data, pagesize) != pagesize)
10207     exit (1);
10208   close (fd);
10209
10210   /* Next, try to mmap the file at a fixed address which already has
10211      something else allocated at it.  If we can, also make sure that
10212      we see the same garbage.  */
10213   fd = open ("conftest.mmap", O_RDWR);
10214   if (fd < 0)
10215     exit (1);
10216   data2 = (char *) malloc (2 * pagesize);
10217   if (!data2)
10218     exit (1);
10219   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10220   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10221                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10222     exit (1);
10223   for (i = 0; i < pagesize; ++i)
10224     if (*(data + i) != *(data2 + i))
10225       exit (1);
10226
10227   /* Finally, make sure that changes to the mapped area do not
10228      percolate back to the file as seen by read().  (This is a bug on
10229      some variants of i386 svr4.0.)  */
10230   for (i = 0; i < pagesize; ++i)
10231     *(data2 + i) = *(data2 + i) + 1;
10232   data3 = (char *) malloc (pagesize);
10233   if (!data3)
10234     exit (1);
10235   if (read (fd, data3, pagesize) != pagesize)
10236     exit (1);
10237   for (i = 0; i < pagesize; ++i)
10238     if (*(data + i) != *(data3 + i))
10239       exit (1);
10240   close (fd);
10241   exit (0);
10242 }
10243 _ACEOF
10244 rm -f conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246   (eval $ac_link) 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_cv_func_mmap_fixed_mapped=yes
10256 else
10257   echo "$as_me: program exited with status $ac_status" >&5
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10260
10261 ( exit $ac_status )
10262 ac_cv_func_mmap_fixed_mapped=no
10263 fi
10264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10265 fi
10266 fi
10267 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10268 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10269 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10270
10271 cat >>confdefs.h <<\_ACEOF
10272 #define HAVE_MMAP 1
10273 _ACEOF
10274
10275 fi
10276 rm -f conftest.mmap
10277
10278 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10279 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10280 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10281   echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283   ac_cv_func_setvbuf_reversed=no
10284    cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <stdio.h>
10291 #         if PROTOTYPES
10292            int (setvbuf) (FILE *, int, char *, size_t);
10293 #         endif
10294 int
10295 main ()
10296 {
10297 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304   (eval $ac_link) 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -z "$ac_c_werror_flag"
10312                          || test ! -s conftest.err'
10313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314   (eval $ac_try) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest$ac_exeext'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; }; then
10324   cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330 #include <stdio.h>
10331 #            if PROTOTYPES
10332               int (setvbuf) (FILE *, int, char *, size_t);
10333 #            endif
10334 int
10335 main ()
10336 {
10337 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344   (eval $ac_link) 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -z "$ac_c_werror_flag"
10352                          || test ! -s conftest.err'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest$ac_exeext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   # It compiles and links either way, so it must not be declared
10365          # with a prototype and most likely this is a K&R C compiler.
10366          # Try running it.
10367          if test "$cross_compiling" = yes; then
10368   : # Assume setvbuf is not reversed when cross-compiling.
10369 else
10370   cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h.  */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h.  */
10376 #include <stdio.h>
10377 int
10378 main ()
10379 {
10380 /* This call has the arguments reversed.
10381                    A reversed system may check and see that the address of buf
10382                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10383                 char buf;
10384                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10385                   exit (1);
10386                 putchar ('\r');
10387                 exit (0); /* Non-reversed systems SEGV here.  */
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest$ac_exeext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394   (eval $ac_link) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399   (eval $ac_try) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; }; then
10403   ac_cv_func_setvbuf_reversed=yes
10404 else
10405   echo "$as_me: program exited with status $ac_status" >&5
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409 ( exit $ac_status )
10410 rm -f core *.core
10411 fi
10412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10413 fi
10414         ac_cv_func_setvbuf_reversed=yes
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 fi
10420 rm -f conftest.err conftest.$ac_objext \
10421       conftest$ac_exeext conftest.$ac_ext
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426 fi
10427 rm -f conftest.err conftest.$ac_objext \
10428       conftest$ac_exeext conftest.$ac_ext
10429 fi
10430 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10431 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10432 if test $ac_cv_func_setvbuf_reversed = yes; then
10433
10434 cat >>confdefs.h <<\_ACEOF
10435 #define SETVBUF_REVERSED 1
10436 _ACEOF
10437
10438 fi
10439
10440 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10442 if test "${ac_cv_type_signal+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451 #include <sys/types.h>
10452 #include <signal.h>
10453 #ifdef signal
10454 # undef signal
10455 #endif
10456 #ifdef __cplusplus
10457 extern "C" void (*signal (int, void (*)(int)))(int);
10458 #else
10459 void (*signal ()) ();
10460 #endif
10461
10462 int
10463 main ()
10464 {
10465 int i;
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472   (eval $ac_compile) 2>conftest.er1
10473   ac_status=$?
10474   grep -v '^ *+' conftest.er1 >conftest.err
10475   rm -f conftest.er1
10476   cat conftest.err >&5
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } &&
10479          { ac_try='test -z "$ac_c_werror_flag"
10480                          || test ! -s conftest.err'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; } &&
10486          { ac_try='test -s conftest.$ac_objext'
10487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488   (eval $ac_try) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; }; then
10492   ac_cv_type_signal=void
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 ac_cv_type_signal=int
10498 fi
10499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10502 echo "${ECHO_T}$ac_cv_type_signal" >&6
10503
10504 cat >>confdefs.h <<_ACEOF
10505 #define RETSIGTYPE $ac_cv_type_signal
10506 _ACEOF
10507
10508
10509
10510 for ac_func in vprintf
10511 do
10512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10513 echo "$as_me:$LINENO: checking for $ac_func" >&5
10514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_var+set}\" = set"; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10526 #define $ac_func innocuous_$ac_func
10527
10528 /* System header to define __stub macros and hopefully few prototypes,
10529     which can conflict with char $ac_func (); below.
10530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531     <limits.h> exists even on freestanding compilers.  */
10532
10533 #ifdef __STDC__
10534 # include <limits.h>
10535 #else
10536 # include <assert.h>
10537 #endif
10538
10539 #undef $ac_func
10540
10541 /* Override any gcc2 internal prototype to avoid an error.  */
10542 #ifdef __cplusplus
10543 extern "C"
10544 {
10545 #endif
10546 /* We use char because int might match the return type of a gcc2
10547    builtin and then its argument prototype would still apply.  */
10548 char $ac_func ();
10549 /* The GNU C library defines this for functions which it implements
10550     to always fail with ENOSYS.  Some functions are actually named
10551     something starting with __ and the normal name is an alias.  */
10552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10553 choke me
10554 #else
10555 char (*f) () = $ac_func;
10556 #endif
10557 #ifdef __cplusplus
10558 }
10559 #endif
10560
10561 int
10562 main ()
10563 {
10564 return f != $ac_func;
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571   (eval $ac_link) 2>conftest.er1
10572   ac_status=$?
10573   grep -v '^ *+' conftest.er1 >conftest.err
10574   rm -f conftest.er1
10575   cat conftest.err >&5
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } &&
10578          { ac_try='test -z "$ac_c_werror_flag"
10579                          || test ! -s conftest.err'
10580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581   (eval $ac_try) 2>&5
10582   ac_status=$?
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); }; } &&
10585          { ac_try='test -s conftest$ac_exeext'
10586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587   (eval $ac_try) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; }; then
10591   eval "$as_ac_var=yes"
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 eval "$as_ac_var=no"
10597 fi
10598 rm -f conftest.err conftest.$ac_objext \
10599       conftest$ac_exeext conftest.$ac_ext
10600 fi
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10603 if test `eval echo '${'$as_ac_var'}'` = yes; then
10604   cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10606 _ACEOF
10607
10608 echo "$as_me:$LINENO: checking for _doprnt" >&5
10609 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10610 if test "${ac_cv_func__doprnt+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10621 #define _doprnt innocuous__doprnt
10622
10623 /* System header to define __stub macros and hopefully few prototypes,
10624     which can conflict with char _doprnt (); below.
10625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626     <limits.h> exists even on freestanding compilers.  */
10627
10628 #ifdef __STDC__
10629 # include <limits.h>
10630 #else
10631 # include <assert.h>
10632 #endif
10633
10634 #undef _doprnt
10635
10636 /* Override any gcc2 internal prototype to avoid an error.  */
10637 #ifdef __cplusplus
10638 extern "C"
10639 {
10640 #endif
10641 /* We use char because int might match the return type of a gcc2
10642    builtin and then its argument prototype would still apply.  */
10643 char _doprnt ();
10644 /* The GNU C library defines this for functions which it implements
10645     to always fail with ENOSYS.  Some functions are actually named
10646     something starting with __ and the normal name is an alias.  */
10647 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10648 choke me
10649 #else
10650 char (*f) () = _doprnt;
10651 #endif
10652 #ifdef __cplusplus
10653 }
10654 #endif
10655
10656 int
10657 main ()
10658 {
10659 return f != _doprnt;
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666   (eval $ac_link) 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -z "$ac_c_werror_flag"
10674                          || test ! -s conftest.err'
10675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676   (eval $ac_try) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; } &&
10680          { ac_try='test -s conftest$ac_exeext'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; }; then
10686   ac_cv_func__doprnt=yes
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_cv_func__doprnt=no
10692 fi
10693 rm -f conftest.err conftest.$ac_objext \
10694       conftest$ac_exeext conftest.$ac_ext
10695 fi
10696 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10697 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10698 if test $ac_cv_func__doprnt = yes; then
10699
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_DOPRNT 1
10702 _ACEOF
10703
10704 fi
10705
10706 fi
10707 done
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743 for ac_func in \
10744   alarm \
10745   dup2 \
10746   floor \
10747   getcwd \
10748   getopt \
10749   gethostbyname \
10750   gettimeofday \
10751   getwd \
10752   isatty \
10753   memchr \
10754   memmove \
10755   memset \
10756   modf \
10757   munmap \
10758   popen \
10759   pow \
10760   select \
10761   signal \
10762   socket \
10763   sleep \
10764   vsnprintf \
10765   snprintf \
10766   sqrt \
10767   strchr \
10768   strdup \
10769   strstr \
10770   strerror \
10771   strcasecmp \
10772   strncasecmp \
10773   strrchr \
10774   strstr \
10775   strtol \
10776   usleep
10777 do
10778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10779 echo "$as_me:$LINENO: checking for $ac_func" >&5
10780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10781 if eval "test \"\${$as_ac_var+set}\" = set"; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h.  */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h.  */
10790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10792 #define $ac_func innocuous_$ac_func
10793
10794 /* System header to define __stub macros and hopefully few prototypes,
10795     which can conflict with char $ac_func (); below.
10796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10797     <limits.h> exists even on freestanding compilers.  */
10798
10799 #ifdef __STDC__
10800 # include <limits.h>
10801 #else
10802 # include <assert.h>
10803 #endif
10804
10805 #undef $ac_func
10806
10807 /* Override any gcc2 internal prototype to avoid an error.  */
10808 #ifdef __cplusplus
10809 extern "C"
10810 {
10811 #endif
10812 /* We use char because int might match the return type of a gcc2
10813    builtin and then its argument prototype would still apply.  */
10814 char $ac_func ();
10815 /* The GNU C library defines this for functions which it implements
10816     to always fail with ENOSYS.  Some functions are actually named
10817     something starting with __ and the normal name is an alias.  */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10819 choke me
10820 #else
10821 char (*f) () = $ac_func;
10822 #endif
10823 #ifdef __cplusplus
10824 }
10825 #endif
10826
10827 int
10828 main ()
10829 {
10830 return f != $ac_func;
10831   ;
10832   return 0;
10833 }
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837   (eval $ac_link) 2>conftest.er1
10838   ac_status=$?
10839   grep -v '^ *+' conftest.er1 >conftest.err
10840   rm -f conftest.er1
10841   cat conftest.err >&5
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -z "$ac_c_werror_flag"
10845                          || test ! -s conftest.err'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; } &&
10851          { ac_try='test -s conftest$ac_exeext'
10852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853   (eval $ac_try) 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   eval "$as_ac_var=yes"
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 eval "$as_ac_var=no"
10863 fi
10864 rm -f conftest.err conftest.$ac_objext \
10865       conftest$ac_exeext conftest.$ac_ext
10866 fi
10867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10869 if test `eval echo '${'$as_ac_var'}'` = yes; then
10870   cat >>confdefs.h <<_ACEOF
10871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10872 _ACEOF
10873
10874 fi
10875 done
10876
10877 echo "$as_me:$LINENO: checking for getopt_long" >&5
10878 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10879 if test "${ac_cv_func_getopt_long+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10890 #define getopt_long innocuous_getopt_long
10891
10892 /* System header to define __stub macros and hopefully few prototypes,
10893     which can conflict with char getopt_long (); below.
10894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895     <limits.h> exists even on freestanding compilers.  */
10896
10897 #ifdef __STDC__
10898 # include <limits.h>
10899 #else
10900 # include <assert.h>
10901 #endif
10902
10903 #undef getopt_long
10904
10905 /* Override any gcc2 internal prototype to avoid an error.  */
10906 #ifdef __cplusplus
10907 extern "C"
10908 {
10909 #endif
10910 /* We use char because int might match the return type of a gcc2
10911    builtin and then its argument prototype would still apply.  */
10912 char getopt_long ();
10913 /* The GNU C library defines this for functions which it implements
10914     to always fail with ENOSYS.  Some functions are actually named
10915     something starting with __ and the normal name is an alias.  */
10916 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10917 choke me
10918 #else
10919 char (*f) () = getopt_long;
10920 #endif
10921 #ifdef __cplusplus
10922 }
10923 #endif
10924
10925 int
10926 main ()
10927 {
10928 return f != getopt_long;
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935   (eval $ac_link) 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } &&
10942          { ac_try='test -z "$ac_c_werror_flag"
10943                          || test ! -s conftest.err'
10944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945   (eval $ac_try) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest$ac_exeext'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; }; then
10955   ac_cv_func_getopt_long=yes
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960 ac_cv_func_getopt_long=no
10961 fi
10962 rm -f conftest.err conftest.$ac_objext \
10963       conftest$ac_exeext conftest.$ac_ext
10964 fi
10965 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10966 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10967 if test $ac_cv_func_getopt_long = yes; then
10968
10969 cat >>confdefs.h <<\_ACEOF
10970 #define HAVE_GETOPT_LONG 1
10971 _ACEOF
10972
10973          tm_cv_needgetopt="no"
10974 else
10975   tm_cv_needgetopt="yes"
10976 fi
10977
10978
10979
10980 if test "x$tm_cv_needgetopt" = "xyes"; then
10981   NEEDGETOPT_TRUE=
10982   NEEDGETOPT_FALSE='#'
10983 else
10984   NEEDGETOPT_TRUE='#'
10985   NEEDGETOPT_FALSE=
10986 fi
10987
10988
10989 # Checks on cygnus
10990 if test "x$CYGNUS" = xyes; then
10991   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
10992   *yes*)
10993     echo "$as_me:$LINENO: checking for opendir" >&5
10994 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10995 if test "${ac_cv_func_opendir+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11006 #define opendir innocuous_opendir
11007
11008 /* System header to define __stub macros and hopefully few prototypes,
11009     which can conflict with char opendir (); below.
11010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11011     <limits.h> exists even on freestanding compilers.  */
11012
11013 #ifdef __STDC__
11014 # include <limits.h>
11015 #else
11016 # include <assert.h>
11017 #endif
11018
11019 #undef opendir
11020
11021 /* Override any gcc2 internal prototype to avoid an error.  */
11022 #ifdef __cplusplus
11023 extern "C"
11024 {
11025 #endif
11026 /* We use char because int might match the return type of a gcc2
11027    builtin and then its argument prototype would still apply.  */
11028 char opendir ();
11029 /* The GNU C library defines this for functions which it implements
11030     to always fail with ENOSYS.  Some functions are actually named
11031     something starting with __ and the normal name is an alias.  */
11032 #if defined (__stub_opendir) || defined (__stub___opendir)
11033 choke me
11034 #else
11035 char (*f) () = opendir;
11036 #endif
11037 #ifdef __cplusplus
11038 }
11039 #endif
11040
11041 int
11042 main ()
11043 {
11044 return f != opendir;
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051   (eval $ac_link) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -z "$ac_c_werror_flag"
11059                          || test ! -s conftest.err'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; } &&
11065          { ac_try='test -s conftest$ac_exeext'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071   ac_cv_func_opendir=yes
11072 else
11073   echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 ac_cv_func_opendir=no
11077 fi
11078 rm -f conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11082 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11083 if test $ac_cv_func_opendir = yes; then
11084   :
11085 else
11086    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11087     W32READDIR=yes
11088 fi
11089
11090     ;;
11091   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11092     W32READDIR=yes
11093     ;;
11094   esac
11095   if test "x$enable_network" = "xyes"; then
11096     echo "$as_me:$LINENO: checking for socket" >&5
11097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11098 if test "${ac_cv_func_socket+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11109 #define socket innocuous_socket
11110
11111 /* System header to define __stub macros and hopefully few prototypes,
11112     which can conflict with char socket (); below.
11113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114     <limits.h> exists even on freestanding compilers.  */
11115
11116 #ifdef __STDC__
11117 # include <limits.h>
11118 #else
11119 # include <assert.h>
11120 #endif
11121
11122 #undef socket
11123
11124 /* Override any gcc2 internal prototype to avoid an error.  */
11125 #ifdef __cplusplus
11126 extern "C"
11127 {
11128 #endif
11129 /* We use char because int might match the return type of a gcc2
11130    builtin and then its argument prototype would still apply.  */
11131 char socket ();
11132 /* The GNU C library defines this for functions which it implements
11133     to always fail with ENOSYS.  Some functions are actually named
11134     something starting with __ and the normal name is an alias.  */
11135 #if defined (__stub_socket) || defined (__stub___socket)
11136 choke me
11137 #else
11138 char (*f) () = socket;
11139 #endif
11140 #ifdef __cplusplus
11141 }
11142 #endif
11143
11144 int
11145 main ()
11146 {
11147 return f != socket;
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154   (eval $ac_link) 2>conftest.er1
11155   ac_status=$?
11156   grep -v '^ *+' conftest.er1 >conftest.err
11157   rm -f conftest.er1
11158   cat conftest.err >&5
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); } &&
11161          { ac_try='test -z "$ac_c_werror_flag"
11162                          || test ! -s conftest.err'
11163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164   (eval $ac_try) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; } &&
11168          { ac_try='test -s conftest$ac_exeext'
11169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170   (eval $ac_try) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   ac_cv_func_socket=yes
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 ac_cv_func_socket=no
11180 fi
11181 rm -f conftest.err conftest.$ac_objext \
11182       conftest$ac_exeext conftest.$ac_ext
11183 fi
11184 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11185 echo "${ECHO_T}$ac_cv_func_socket" >&6
11186 if test $ac_cv_func_socket = yes; then
11187   :
11188 else
11189   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11190 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11191 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11192 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   ac_save_LIBS="$LIBS"
11196 LIBS="-lwsock32  $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 #include <windows.h>
11204 #include <winsock.h>
11205
11206 int
11207 main ()
11208 {
11209 WSAStartup(0,0);
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216   (eval $ac_link) 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } &&
11223          { ac_try='test -z "$ac_c_werror_flag"
11224                          || test ! -s conftest.err'
11225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226   (eval $ac_try) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; } &&
11230          { ac_try='test -s conftest$ac_exeext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   eval "wapi_cv_lib_$ac_lib_var=yes"
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 eval "wapi_cv_lib_$ac_lib_var=no"
11242 fi
11243 rm -f conftest.err conftest.$ac_objext \
11244       conftest$ac_exeext conftest.$ac_ext
11245 LIBS="$ac_save_LIBS"
11246
11247 fi
11248 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11249   echo "$as_me:$LINENO: result: yes" >&5
11250 echo "${ECHO_T}yes" >&6
11251    EXTRALIBS="$EXTRALIBS -lwsock32"
11252     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11253 else
11254   echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11256 fi
11257
11258 fi
11259
11260   fi
11261 fi
11262
11263 # Checks on Mingw
11264 if test "x$CYGWIN" = xyes; then
11265   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
11266   *yes*)
11267     echo "$as_me:$LINENO: checking for opendir" >&5
11268 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11269 if test "${ac_cv_func_opendir+set}" = set; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11280 #define opendir innocuous_opendir
11281
11282 /* System header to define __stub macros and hopefully few prototypes,
11283     which can conflict with char opendir (); below.
11284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285     <limits.h> exists even on freestanding compilers.  */
11286
11287 #ifdef __STDC__
11288 # include <limits.h>
11289 #else
11290 # include <assert.h>
11291 #endif
11292
11293 #undef opendir
11294
11295 /* Override any gcc2 internal prototype to avoid an error.  */
11296 #ifdef __cplusplus
11297 extern "C"
11298 {
11299 #endif
11300 /* We use char because int might match the return type of a gcc2
11301    builtin and then its argument prototype would still apply.  */
11302 char opendir ();
11303 /* The GNU C library defines this for functions which it implements
11304     to always fail with ENOSYS.  Some functions are actually named
11305     something starting with __ and the normal name is an alias.  */
11306 #if defined (__stub_opendir) || defined (__stub___opendir)
11307 choke me
11308 #else
11309 char (*f) () = opendir;
11310 #endif
11311 #ifdef __cplusplus
11312 }
11313 #endif
11314
11315 int
11316 main ()
11317 {
11318 return f != opendir;
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11325   (eval $ac_link) 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } &&
11332          { ac_try='test -z "$ac_c_werror_flag"
11333                          || test ! -s conftest.err'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; } &&
11339          { ac_try='test -s conftest$ac_exeext'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; }; then
11345   ac_cv_func_opendir=yes
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_cv_func_opendir=no
11351 fi
11352 rm -f conftest.err conftest.$ac_objext \
11353       conftest$ac_exeext conftest.$ac_ext
11354 fi
11355 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11356 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11357 if test $ac_cv_func_opendir = yes; then
11358   :
11359 else
11360    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11361     W32READDIR=yes
11362 fi
11363
11364     ;;
11365   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11366     W32READDIR=yes
11367     ;;
11368   esac
11369   if test "x$enable_network" = "xyes"; then
11370     echo "$as_me:$LINENO: checking for socket" >&5
11371 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11372 if test "${ac_cv_func_socket+set}" = set; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375   cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11383 #define socket innocuous_socket
11384
11385 /* System header to define __stub macros and hopefully few prototypes,
11386     which can conflict with char socket (); below.
11387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388     <limits.h> exists even on freestanding compilers.  */
11389
11390 #ifdef __STDC__
11391 # include <limits.h>
11392 #else
11393 # include <assert.h>
11394 #endif
11395
11396 #undef socket
11397
11398 /* Override any gcc2 internal prototype to avoid an error.  */
11399 #ifdef __cplusplus
11400 extern "C"
11401 {
11402 #endif
11403 /* We use char because int might match the return type of a gcc2
11404    builtin and then its argument prototype would still apply.  */
11405 char socket ();
11406 /* The GNU C library defines this for functions which it implements
11407     to always fail with ENOSYS.  Some functions are actually named
11408     something starting with __ and the normal name is an alias.  */
11409 #if defined (__stub_socket) || defined (__stub___socket)
11410 choke me
11411 #else
11412 char (*f) () = socket;
11413 #endif
11414 #ifdef __cplusplus
11415 }
11416 #endif
11417
11418 int
11419 main ()
11420 {
11421 return f != socket;
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428   (eval $ac_link) 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -z "$ac_c_werror_flag"
11436                          || test ! -s conftest.err'
11437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438   (eval $ac_try) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; } &&
11442          { ac_try='test -s conftest$ac_exeext'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }; then
11448   ac_cv_func_socket=yes
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_func_socket=no
11454 fi
11455 rm -f conftest.err conftest.$ac_objext \
11456       conftest$ac_exeext conftest.$ac_ext
11457 fi
11458 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11459 echo "${ECHO_T}$ac_cv_func_socket" >&6
11460 if test $ac_cv_func_socket = yes; then
11461   :
11462 else
11463   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11464 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11465 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11466 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   ac_save_LIBS="$LIBS"
11470 LIBS="-lwsock32  $LIBS"
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 #include <windows.h>
11478 #include <winsock.h>
11479
11480 int
11481 main ()
11482 {
11483 WSAStartup(0,0);
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490   (eval $ac_link) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -z "$ac_c_werror_flag"
11498                          || test ! -s conftest.err'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   eval "wapi_cv_lib_$ac_lib_var=yes"
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 eval "wapi_cv_lib_$ac_lib_var=no"
11516 fi
11517 rm -f conftest.err conftest.$ac_objext \
11518       conftest$ac_exeext conftest.$ac_ext
11519 LIBS="$ac_save_LIBS"
11520
11521 fi
11522 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11523   echo "$as_me:$LINENO: result: yes" >&5
11524 echo "${ECHO_T}yes" >&6
11525    EXTRALIBS="$EXTRALIBS -lwsock32"
11526     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11527 else
11528   echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6
11530 fi
11531
11532 fi
11533
11534   fi
11535 fi
11536
11537 # Checks on extra paths
11538
11539
11540 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11541 if test "${with_tcl_includes+set}" = set; then
11542   withval="$with_tcl_includes"
11543    if test ! -d $withval; then
11544       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11545 echo "$as_me: WARNING: $withval is not found." >&2;}
11546     fi
11547     tcl_include_dir="-I$withval"
11548
11549 fi;
11550
11551 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11552 if test "${with_tcl_libs+set}" = set; then
11553   withval="$with_tcl_libs"
11554    if test ! -d $withval; then
11555       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11556 echo "$as_me: WARNING: $withval is not found." >&2;}
11557     fi
11558     tcl_libdir="-L$withval"
11559 fi;
11560
11561 # Check whether --with-tk-includes or --without-tk-includes was given.
11562 if test "${with_tk_includes+set}" = set; then
11563   withval="$with_tk_includes"
11564    if test ! -d $withval; then
11565       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11566 echo "$as_me: WARNING: $withval is not found." >&2;}
11567     fi
11568     tk_includes="-I$withval"
11569 fi;
11570
11571 # Check whether --with-tk-libs or --without-tk-libs was given.
11572 if test "${with_tk_libs+set}" = set; then
11573   withval="$with_tk_libs"
11574    if test ! -d $withval; then
11575       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11576 echo "$as_me: WARNING: $withval is not found." >&2;}
11577     fi
11578     tk_libdir="-L$withval"
11579 fi;
11580
11581
11582 # Check whether --with-offix-includes or --without-offix-includes was given.
11583 if test "${with_offix_includes+set}" = set; then
11584   withval="$with_offix_includes"
11585    if test ! -d $withval; then
11586       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11587 echo "$as_me: WARNING: $withval is not found." >&2;}
11588     fi
11589     offix_include_dir="-I$withval"
11590 fi;
11591
11592 # Check whether --with-offix-libs or --without-offix-libs was given.
11593 if test "${with_offix_libs+set}" = set; then
11594   withval="$with_offix_libs"
11595    if test ! -d $withval; then
11596       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11597 echo "$as_me: WARNING: $withval is not found." >&2;}
11598     fi
11599     offix_lib_dir="-L$withval"
11600 fi;
11601
11602
11603 #
11604 # audio section
11605 #
11606
11607 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11608
11609
11610 # Check whether --with-nas-library or --without-nas-library was given.
11611 if test "${with_nas_library+set}" = set; then
11612   withval="$with_nas_library"
11613
11614 fi;
11615
11616 # Check whether --with-nas-includes or --without-nas-includes was given.
11617 if test "${with_nas_includes+set}" = set; then
11618   withval="$with_nas_includes"
11619
11620 fi;
11621
11622
11623 # Check whether --enable-audio or --disable-audio was given.
11624 if test "${enable_audio+set}" = set; then
11625   enableval="$enable_audio"
11626    enable_audio=$enableval
11627     have_audio_opt=yes
11628 else
11629    enable_audio=yes
11630     have_audio_opt=no
11631 fi;
11632
11633 test "x$enable_audio" = xyes && enable_audio=default
11634
11635 if test "x$enable_audio" != xno; then
11636   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11637     eval "au_enable_$i=yes"
11638   done
11639 fi
11640
11641 DEFAULT_PLAYMODE=
11642
11643 # Check whether --with-default-output or --without-default-output was given.
11644 if test "${with_default_output+set}" = set; then
11645   withval="$with_default_output"
11646    if test "$enable_audio" != no; then
11647     DEFAULT_PLAYMODE=$withval
11648     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11649   else
11650     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11651 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11652   fi
11653 fi;
11654
11655
11656 if test "x$au_enable_default" = xyes; then
11657   case "$target" in
11658   *-*-linux*|*-*-freebsd*)
11659     au_enable_oss=yes
11660     ;;
11661   *-*-bsdi2.0)
11662     au_enable_sb_dsp=yes
11663     ;;
11664   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11665     au_enable_oss=yes
11666     ;;
11667   *-*-hpux*)
11668     au_enable_hpux=yes
11669     ;;
11670   *-dec-*)
11671     au_enable_mme=yes
11672     ;;
11673   *irix*)
11674     au_enable_irix=yes
11675     ;;
11676   *-*-sunos4*)
11677     au_enable_sun=yes
11678     ;;
11679   *-*-solaris*)
11680     au_enable_sun=yes
11681     ;;
11682   *-*-netbsd*)
11683     au_enable_sun=yes
11684     ;;
11685   *-*-cygwin*)
11686     au_enable_w32=yes
11687     ;;
11688   *-*-mingw*)
11689     au_enable_w32=yes
11690     ;;
11691   *-*-darwin*)
11692     au_enable_darwin=yes
11693     ;;
11694   *)
11695     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11696 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11697     ;;
11698   esac
11699 fi
11700
11701
11702 # Each audio mode's configurations
11703 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11704 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11705 if test "x$au_enable_oss" = xyes; then
11706   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11707   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11708   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11709     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11710 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11711   else
11712     case "$target" in
11713       *linux*|*freebsd*)
11714                 echo "$as_me:$LINENO: result: yes" >&5
11715 echo "${ECHO_T}yes" >&6
11716         ;;
11717       *)
11718         if test "x$ac_cv_header_soundcard_h" = xyes; then
11719           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11720 echo "${ECHO_T}yes - <soundcard.h>" >&6
11721         else
11722           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11723 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11724         fi
11725         ;;
11726     esac
11727   fi
11728
11729 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11730 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11731 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   ac_check_lib_save_LIBS=$LIBS
11735 LIBS="-lossaudio  $LIBS"
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742
11743 /* Override any gcc2 internal prototype to avoid an error.  */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 /* We use char because int might match the return type of a gcc2
11748    builtin and then its argument prototype would still apply.  */
11749 char open ();
11750 int
11751 main ()
11752 {
11753 open ();
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760   (eval $ac_link) 2>conftest.er1
11761   ac_status=$?
11762   grep -v '^ *+' conftest.er1 >conftest.err
11763   rm -f conftest.er1
11764   cat conftest.err >&5
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -z "$ac_c_werror_flag"
11768                          || test ! -s conftest.err'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; } &&
11774          { ac_try='test -s conftest$ac_exeext'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; }; then
11780   ac_cv_lib_ossaudio_open=yes
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_cv_lib_ossaudio_open=no
11786 fi
11787 rm -f conftest.err conftest.$ac_objext \
11788       conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11790 fi
11791 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11792 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11793 if test $ac_cv_lib_ossaudio_open = yes; then
11794   cat >>confdefs.h <<_ACEOF
11795 #define HAVE_LIBOSSAUDIO 1
11796 _ACEOF
11797
11798   LIBS="-lossaudio $LIBS"
11799
11800 fi
11801
11802
11803     case "$target" in
11804     *openbsd*)
11805       if test ! -e "/dev/dsp"; then
11806         oss_device=/dev/audio
11807       fi
11808       ;;
11809   esac
11810 else
11811   echo "$as_me:$LINENO: result: no" >&5
11812 echo "${ECHO_T}no" >&6
11813 fi
11814
11815 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11816 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11817 if test "x$au_enable_sun" = xyes; then
11818   case "$target" in
11819     *-*-sunos4*)
11820       if test -f /usr/demo/SOUND/libaudio.a; then
11821         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11822         echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6
11824       else
11825         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11826 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11827       fi
11828       ;;
11829     *-*-solaris*)
11830       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11831         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11832         echo "$as_me:$LINENO: result: yes" >&5
11833 echo "${ECHO_T}yes" >&6
11834       else
11835         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11836 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11837       fi
11838       ;;
11839     *)   echo "$as_me:$LINENO: result: yes" >&5
11840 echo "${ECHO_T}yes" >&6
11841       ;;
11842   esac
11843   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11844   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11845 else
11846   echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11848 fi
11849
11850 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11851 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11852 if test "x$au_enable_hpux" = xyes; then
11853   case "$target" in
11854     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6 ;;
11856     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11857 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11858   esac
11859   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11860   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11861 else
11862   echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11864 fi
11865
11866 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11867 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11868 if test "x$au_enable_irix" = xyes; then
11869   case "$target" in
11870     *-sgi-irix5*|*-sgi-irix6.2)
11871       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11872       echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6
11874       ;;
11875     *-sgi-irix6*)
11876       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11877       echo "$as_me:$LINENO: result: yes" >&5
11878 echo "${ECHO_T}yes" >&6
11879       ;;
11880     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11881 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11882   esac
11883   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11884   EXTRALIBS="$EXTRASLIBS -laudio"
11885 else
11886   echo "$as_me:$LINENO: result: no" >&5
11887 echo "${ECHO_T}no" >&6
11888 fi
11889
11890 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11891 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11892 if test "x$au_enable_mme" = xyes; then
11893   case "$target" in
11894     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11895 echo "${ECHO_T}yes" >&6 ;;
11896     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11897 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11898   esac
11899   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11900   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11901   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11902   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11903 else
11904   echo "$as_me:$LINENO: result: no" >&5
11905 echo "${ECHO_T}no" >&6
11906 fi
11907
11908 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11909 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11910 if test "x$au_enable_sb_dsp" = xyes; then
11911   case "$target" in
11912     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6 ;;
11914     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11915 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11916   esac
11917   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11918   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11919 else
11920   echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11922 fi
11923
11924 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11925 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11926 if test "x$au_enable_w32" = xyes; then
11927   case "$target" in
11928     *-*-cygwin*)
11929      echo "$as_me:$LINENO: result: yes" >&5
11930 echo "${ECHO_T}yes" >&6
11931      ;;
11932     *-*-mingw32)
11933      echo "$as_me:$LINENO: result: yes" >&5
11934 echo "${ECHO_T}yes" >&6
11935      ;;
11936     *)
11937      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11938 echo "$as_me: WARNING: may not work on $target" >&2;}
11939      ;;
11940   esac
11941   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11942   EXTRALIBS="$EXTRALIBS -lwinmm"
11943   EXTRADEFS="$EXTRADEFS -DAU_W32"
11944 else
11945   echo "$as_me:$LINENO: result: no" >&5
11946 echo "${ECHO_T}no" >&6
11947 fi
11948
11949 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11950 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11951 if test "x$au_enable_darwin" = xyes; then
11952   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11953   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11954   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11955     case "$target" in
11956     *-*-darwin*)
11957      echo "$as_me:$LINENO: result: yes" >&5
11958 echo "${ECHO_T}yes" >&6;;
11959    *)
11960      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11961 echo "$as_me: WARNING: may not work on $target" >&2;}
11962      ;;
11963   esac
11964 else
11965   echo "$as_me:$LINENO: result: no" >&5
11966 echo "${ECHO_T}no" >&6
11967 fi
11968
11969
11970 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11971 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11972 if test "x$au_enable_alsa" = xyes; then
11973   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11974 echo "${ECHO_T}yes, configuring alsa" >&6
11975   KEEPCFLAGS=$CFLAGS
11976   KEEPLIBS=$LIBS
11977   KEEPLDFLAGS=$LDFLAGS
11978   alsa_save_CFLAGS="$CFLAGS"
11979 alsa_save_LDFLAGS="$LDFLAGS"
11980 alsa_save_LIBS="$LIBS"
11981 alsa_found=yes
11982
11983
11984 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11985 if test "${with_alsa_prefix+set}" = set; then
11986   withval="$with_alsa_prefix"
11987   alsa_prefix="$withval"
11988 else
11989   alsa_prefix=""
11990 fi;
11991
11992
11993 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11994 if test "${with_alsa_inc_prefix+set}" = set; then
11995   withval="$with_alsa_inc_prefix"
11996   alsa_inc_prefix="$withval"
11997 else
11998   alsa_inc_prefix=""
11999 fi;
12000
12001 # Check whether --enable-alsatest or --disable-alsatest was given.
12002 if test "${enable_alsatest+set}" = set; then
12003   enableval="$enable_alsatest"
12004   enable_alsatest=no
12005 else
12006   enable_alsatest=yes
12007 fi;
12008
12009 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12010 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12011 if test "$alsa_inc_prefix" != "" ; then
12012         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12013         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12014 fi
12015 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12016 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12017
12018 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12019 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12020 if test "$alsa_prefix" != "" ; then
12021         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12022         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12023 fi
12024
12025 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12026 LIBS=`echo $LIBS | sed 's/-lm//'`
12027 LIBS=`echo $LIBS | sed 's/-ldl//'`
12028 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12029 LIBS=`echo $LIBS | sed 's/  //'`
12030 LIBS="$ALSA_LIBS $LIBS"
12031 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12032 echo "${ECHO_T}$ALSA_LIBS" >&6
12033
12034 min_alsa_version=0.1.1
12035 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12036 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12037 no_alsa=""
12038     alsa_min_major_version=`echo $min_alsa_version | \
12039            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12040     alsa_min_minor_version=`echo $min_alsa_version | \
12041            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12042     alsa_min_micro_version=`echo $min_alsa_version | \
12043            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12044
12045
12046
12047
12048 ac_ext=c
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060
12061 #include <alsa/asoundlib.h>
12062
12063 int
12064 main ()
12065 {
12066
12067 /* ensure backward compatibility */
12068 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12069 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12070 #endif
12071 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12072 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12073 #endif
12074 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12075 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12076 #endif
12077
12078 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12079   exit(0);
12080 #  else
12081 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12082 #       error not present
12083 #    endif
12084
12085 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12086   exit(0);
12087 #   else
12088 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12089 #          error not present
12090 #      endif
12091
12092 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12093 #        error not present
12094 #      endif
12095 #    endif
12096 #  endif
12097 exit(0);
12098
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105   (eval $ac_compile) 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -z "$ac_c_werror_flag"
12113                          || test ! -s conftest.err'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest.$ac_objext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   echo "$as_me:$LINENO: result: found." >&5
12126 echo "${ECHO_T}found." >&6
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h.  */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h.  */
12137
12138 #include <sys/asoundlib.h>
12139
12140 int
12141 main ()
12142 {
12143
12144 /* ensure backward compatibility */
12145 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12146 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12147 #endif
12148 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12149 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12150 #endif
12151 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12152 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12153 #endif
12154
12155 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12156   exit(0);
12157 #  else
12158 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12159 #       error not present
12160 #    endif
12161
12162 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12163   exit(0);
12164 #   else
12165 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12166 #          error not present
12167 #      endif
12168
12169 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12170 #        error not present
12171 #      endif
12172 #    endif
12173 #  endif
12174 exit(0);
12175
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182   (eval $ac_compile) 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag"
12190                          || test ! -s conftest.err'
12191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192   (eval $ac_try) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest.$ac_objext'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; }; then
12202   echo "$as_me:$LINENO: result: found." >&5
12203 echo "${ECHO_T}found." >&6
12204 else
12205   echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 echo "$as_me:$LINENO: result: not present." >&5
12209 echo "${ECHO_T}not present." >&6
12210    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12211 echo "${ECHO_T}libasound was not found anywhere." >&6
12212    alsa_found=no
12213 fi
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12216 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12217
12218 fi
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 ac_ext=c
12221 ac_cpp='$CPP $CPPFLAGS'
12222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12225
12226
12227
12228 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12229 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12230 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lasound  $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241
12242 /* Override any gcc2 internal prototype to avoid an error.  */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 /* We use char because int might match the return type of a gcc2
12247    builtin and then its argument prototype would still apply.  */
12248 char snd_ctl_open ();
12249 int
12250 main ()
12251 {
12252 snd_ctl_open ();
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259   (eval $ac_link) 2>conftest.er1
12260   ac_status=$?
12261   grep -v '^ *+' conftest.er1 >conftest.err
12262   rm -f conftest.er1
12263   cat conftest.err >&5
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); } &&
12266          { ac_try='test -z "$ac_c_werror_flag"
12267                          || test ! -s conftest.err'
12268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269   (eval $ac_try) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; } &&
12273          { ac_try='test -s conftest$ac_exeext'
12274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275   (eval $ac_try) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); }; }; then
12279   ac_cv_lib_asound_snd_ctl_open=yes
12280 else
12281   echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ac_cv_lib_asound_snd_ctl_open=no
12285 fi
12286 rm -f conftest.err conftest.$ac_objext \
12287       conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12289 fi
12290 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12291 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12292 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12293   cat >>confdefs.h <<_ACEOF
12294 #define HAVE_LIBASOUND 1
12295 _ACEOF
12296
12297   LIBS="-lasound $LIBS"
12298
12299 else
12300   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12301 echo "${ECHO_T}No linkable libasound was found." >&6
12302    alsa_found=no
12303
12304 fi
12305
12306
12307 if test "x$alsa_found" = "xyes" ; then
12308    :
12309    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12310    LIBS=`echo $LIBS | sed 's/  //'`
12311    LIBS="-lasound $LIBS"
12312 else
12313    :
12314    CFLAGS="$alsa_save_CFLAGS"
12315    LDFLAGS="$alsa_save_LDFLAGS"
12316    LIBS="$alsa_save_LIBS"
12317    ALSA_CFLAGS=""
12318    ALSA_LIBS=""
12319 fi
12320
12321
12322
12323
12324   if test "x$alsa_found" = "xyes" ; then
12325         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12326     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12327     for f in $ALSA_CFLAGS; do
12328     case ".$f" in
12329         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12330         *)              CFLAGS="$CPPFLAGS $f" ;;
12331     esac
12332 done
12333
12334     LIBS="$KEEPLIBS $ALSA_LIBS"
12335
12336 for ac_func in snd_seq_port_info_set_timestamping
12337 do
12338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12339 echo "$as_me:$LINENO: checking for $ac_func" >&5
12340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12341 if eval "test \"\${$as_ac_var+set}\" = set"; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12352 #define $ac_func innocuous_$ac_func
12353
12354 /* System header to define __stub macros and hopefully few prototypes,
12355     which can conflict with char $ac_func (); below.
12356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12357     <limits.h> exists even on freestanding compilers.  */
12358
12359 #ifdef __STDC__
12360 # include <limits.h>
12361 #else
12362 # include <assert.h>
12363 #endif
12364
12365 #undef $ac_func
12366
12367 /* Override any gcc2 internal prototype to avoid an error.  */
12368 #ifdef __cplusplus
12369 extern "C"
12370 {
12371 #endif
12372 /* We use char because int might match the return type of a gcc2
12373    builtin and then its argument prototype would still apply.  */
12374 char $ac_func ();
12375 /* The GNU C library defines this for functions which it implements
12376     to always fail with ENOSYS.  Some functions are actually named
12377     something starting with __ and the normal name is an alias.  */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12379 choke me
12380 #else
12381 char (*f) () = $ac_func;
12382 #endif
12383 #ifdef __cplusplus
12384 }
12385 #endif
12386
12387 int
12388 main ()
12389 {
12390 return f != $ac_func;
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397   (eval $ac_link) 2>conftest.er1
12398   ac_status=$?
12399   grep -v '^ *+' conftest.er1 >conftest.err
12400   rm -f conftest.er1
12401   cat conftest.err >&5
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } &&
12404          { ac_try='test -z "$ac_c_werror_flag"
12405                          || test ! -s conftest.err'
12406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407   (eval $ac_try) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; } &&
12411          { ac_try='test -s conftest$ac_exeext'
12412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413   (eval $ac_try) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; }; then
12417   eval "$as_ac_var=yes"
12418 else
12419   echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422 eval "$as_ac_var=no"
12423 fi
12424 rm -f conftest.err conftest.$ac_objext \
12425       conftest$ac_exeext conftest.$ac_ext
12426 fi
12427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12429 if test `eval echo '${'$as_ac_var'}'` = yes; then
12430   cat >>confdefs.h <<_ACEOF
12431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12432 _ACEOF
12433
12434 fi
12435 done
12436
12437   else
12438     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12439 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12440     CFLAGS=$KEEPCFLAGS
12441     LIBS=$KEEPLIBS
12442     LDFLAGS=$KEEPLDFLAGS
12443   fi
12444 else
12445   echo "$as_me:$LINENO: result: no" >&5
12446 echo "${ECHO_T}no" >&6
12447 fi
12448
12449 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12450 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12451 if test "x$au_enable_alib" = xyes; then
12452   case "$target" in
12453     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12454 echo "${ECHO_T}yes" >&6 ;;
12455     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12456 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12457   esac
12458   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12459   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12460   if test -d /opt/audio/include; then
12461     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12462   fi
12463   if test -d /opt/audio/lib; then
12464     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12465   fi
12466   EXTRALIBS="$EXTRALIBS -lAlib"
12467 else
12468   echo "$as_me:$LINENO: result: no" >&5
12469 echo "${ECHO_T}no" >&6
12470 fi
12471
12472 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12473 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12474 if test "x$au_enable_nas" = xyes; then
12475   if test "x$with_x" != xyes; then
12476     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12477 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12478    { (exit 1); exit 1; }; }
12479   fi
12480   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12481   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12482
12483
12484   if test "x$with_nas_library" != x; then
12485     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12486 echo "${ECHO_T}$with_nas_library" >&6;
12487     EXTRALIBS="$EXTRALIBS $with_nas_library"
12488   else
12489     echo "$as_me:$LINENO: result: " >&5
12490 echo "${ECHO_T}" >&6
12491     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12492 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12493 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   ac_func_search_save_LIBS="$LIBS"
12497 timidity_cv_search_AuOpenServer="no"
12498 for i in $x_libraries/libaudio.a \
12499          /usr/lib/libaudio.so \
12500          /usr/lib/libaudio.a ; do
12501   LIBS="$i  $ac_func_search_save_LIBS"
12502   cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h.  */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h.  */
12508
12509 /* Override any gcc2 internal prototype to avoid an error.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 /* We use char because int might match the return type of a gcc2
12514    builtin and then its argument prototype would still apply.  */
12515 char AuOpenServer ();
12516 int
12517 main ()
12518 {
12519 AuOpenServer ();
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526   (eval $ac_link) 2>conftest.er1
12527   ac_status=$?
12528   grep -v '^ *+' conftest.er1 >conftest.err
12529   rm -f conftest.er1
12530   cat conftest.err >&5
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -z "$ac_c_werror_flag"
12534                          || test ! -s conftest.err'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   timidity_cv_search_AuOpenServer="$i"; break
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554 done
12555 LIBS="$ac_func_search_save_LIBS"
12556 fi
12557 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12558 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12559 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12560    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12561 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12562           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12563 else :
12564   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12565 echo "$as_me: WARNING: NAS library is not found." >&2;}
12566 fi
12567   fi
12568   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12569   lib_xt_opt=-lXt
12570   if test "x$have_xext" = xyes; then
12571     lib_xext_opt=-lXext
12572   fi
12573   if test "x$have_xprelibs" = xyes; then
12574     lib_xprelibs_opt='-lSM -lICE'
12575   fi
12576 else
12577   echo "$as_me:$LINENO: result: no" >&5
12578 echo "${ECHO_T}no" >&6
12579 fi
12580
12581 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12582 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12583 if test "x$au_enable_arts" = xyes; then
12584   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12585 echo "${ECHO_T}yes, configuring aRts" >&6
12586   KEEPCFLAGS=$CFLAGS
12587   KEEPLIBS=$LIBS
12588   KEEPLDFLAGS=$LDFLAGS
12589
12590 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12591 if test "${with_arts_prefix+set}" = set; then
12592   withval="$with_arts_prefix"
12593   arts_prefix="$withval"
12594 else
12595   arts_prefix=""
12596 fi;
12597 # Check whether --enable-artstest or --disable-artstest was given.
12598 if test "${enable_artstest+set}" = set; then
12599   enableval="$enable_artstest"
12600
12601 else
12602   enable_artstest=yes
12603 fi;
12604
12605   if test x$arts_prefix != x ; then
12606      arts_args="$arts_args --prefix=$arts_prefix"
12607      if test x${ARTS_CONFIG+set} != xset ; then
12608         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12609      fi
12610   fi
12611
12612   # Extract the first word of "artsc-config", so it can be a program name with args.
12613 set dummy artsc-config; ac_word=$2
12614 echo "$as_me:$LINENO: checking for $ac_word" >&5
12615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12616 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   case $ARTS_CONFIG in
12620   [\\/]* | ?:[\\/]*)
12621   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12622   ;;
12623   *)
12624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627   IFS=$as_save_IFS
12628   test -z "$as_dir" && as_dir=.
12629   for ac_exec_ext in '' $ac_executable_extensions; do
12630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12633     break 2
12634   fi
12635 done
12636 done
12637
12638   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12639   ;;
12640 esac
12641 fi
12642 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12643
12644 if test -n "$ARTS_CONFIG"; then
12645   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12646 echo "${ECHO_T}$ARTS_CONFIG" >&6
12647 else
12648   echo "$as_me:$LINENO: result: no" >&5
12649 echo "${ECHO_T}no" >&6
12650 fi
12651
12652   min_arts_version=0.9.5
12653   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12654 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12655   no_arts=""
12656   if test "$ARTS_CONFIG" = "no" ; then
12657     no_arts=yes
12658   else
12659     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12660     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12661
12662     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12663            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12664     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12665            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12666     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12667            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12668     if test "x$enable_artstest" = "xyes" ; then
12669       ac_save_CFLAGS="$CFLAGS"
12670       ac_save_LIBS="$LIBS"
12671       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12672       LIBS="$LIBS $ARTS_LIBS"
12673       rm -f conf.artstest
12674       if test "$cross_compiling" = yes; then
12675   echo $ac_n "cross compiling; assumed OK... $ac_c"
12676 else
12677   cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683
12684 #include <stdio.h>
12685 #include <stdlib.h>
12686 #include <string.h>
12687 #include <artsc.h>
12688
12689 char*
12690 my_strdup (char *str)
12691 {
12692   char *new_str;
12693
12694   if (str)
12695     {
12696       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12697       strcpy (new_str, str);
12698     }
12699   else
12700     new_str = NULL;
12701
12702   return new_str;
12703 }
12704
12705 int main ()
12706 {
12707   int major, minor, micro;
12708   char *tmp_version;
12709
12710   system ("touch conf.artstest");
12711
12712   /* HP/UX 9 (%@#!) writes to sscanf strings */
12713   tmp_version = my_strdup("$min_arts_version");
12714   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12715      printf("%s, bad version string\n", "$min_arts_version");
12716      exit(1);
12717    }
12718
12719    if (($arts_major_version > major) ||
12720       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12721       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12722     {
12723       return 0;
12724     }
12725   else
12726     {
12727       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12728       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12729       printf("*** best to upgrade to the required version.\n");
12730       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12731       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12732       printf("*** config.cache before re-running configure\n");
12733       return 1;
12734     }
12735 }
12736
12737
12738 _ACEOF
12739 rm -f conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741   (eval $ac_link) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; }; then
12750   :
12751 else
12752   echo "$as_me: program exited with status $ac_status" >&5
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ( exit $ac_status )
12757 no_arts=yes
12758 fi
12759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12760 fi
12761        CFLAGS="$ac_save_CFLAGS"
12762        LIBS="$ac_save_LIBS"
12763      fi
12764   fi
12765   if test "x$no_arts" = x ; then
12766      echo "$as_me:$LINENO: result: yes" >&5
12767 echo "${ECHO_T}yes" >&6
12768      :
12769   else
12770      echo "$as_me:$LINENO: result: no" >&5
12771 echo "${ECHO_T}no" >&6
12772      if test "$ARTS_CONFIG" = "no" ; then
12773        echo "*** The artsc-config script installed by ARTS could not be found"
12774        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12775        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12776        echo "*** full path to artsc-config."
12777      else
12778        if test -f conf.artstest ; then
12779         :
12780        else
12781           echo "*** Could not run ARTS test program, checking why..."
12782           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12783           LIBS="$LIBS $ARTS_LIBS"
12784           cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12790
12791 #include <stdio.h>
12792 #include <artsc.h>
12793
12794 int
12795 main ()
12796 {
12797  return 0;
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804   (eval $ac_link) 2>conftest.er1
12805   ac_status=$?
12806   grep -v '^ *+' conftest.er1 >conftest.err
12807   rm -f conftest.er1
12808   cat conftest.err >&5
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } &&
12811          { ac_try='test -z "$ac_c_werror_flag"
12812                          || test ! -s conftest.err'
12813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814   (eval $ac_try) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; } &&
12818          { ac_try='test -s conftest$ac_exeext'
12819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820   (eval $ac_try) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; }; then
12824    echo "*** The test program compiled, but did not run. This usually means"
12825           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12826           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12827           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12828           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12829           echo "*** is required on your system"
12830           echo "***"
12831           echo "*** If you have an old version installed, it is best to remove it, although"
12832           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12833 else
12834   echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837  echo "*** The test program failed to compile or link. See the file config.log for the"
12838           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12839           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12840           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12841 fi
12842 rm -f conftest.err conftest.$ac_objext \
12843       conftest$ac_exeext conftest.$ac_ext
12844           CFLAGS="$ac_save_CFLAGS"
12845           LIBS="$ac_save_LIBS"
12846        fi
12847      fi
12848      ARTS_CFLAGS=""
12849      ARTS_LIBS=""
12850      :
12851   fi
12852
12853
12854   rm -f conf.artstest
12855
12856   CFLAGS=$KEEPCFLAGS
12857   LIBS=$KEEPLIBS
12858   LDFLAGS=$KEEPLDFLAGS
12859   if test "x$no_arts" = x; then
12860         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12861     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12862     for f in $ARTS_CFLAGS; do
12863     case ".$f" in
12864         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12865         *)              CFLAGS="$CPPFLAGS $f" ;;
12866     esac
12867 done
12868
12869     LIBS="$LIBS $ARTS_LIBS"
12870   else
12871     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12872 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12873   fi
12874 else
12875   echo "$as_me:$LINENO: result: no" >&5
12876 echo "${ECHO_T}no" >&6
12877 fi
12878
12879 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12880 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12881 if test "x$au_enable_esd" = xyes; then
12882   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12883 echo "${ECHO_T}yes, configuring esd" >&6
12884   KEEPCFLAGS=$CFLAGS
12885   KEEPLIBS=$LIBS
12886   KEEPLDFLAGS=$LDFLAGS
12887
12888 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12889 if test "${with_esd_prefix+set}" = set; then
12890   withval="$with_esd_prefix"
12891   esd_prefix="$withval"
12892 else
12893   esd_prefix=""
12894 fi;
12895
12896 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12897 if test "${with_esd_exec_prefix+set}" = set; then
12898   withval="$with_esd_exec_prefix"
12899   esd_exec_prefix="$withval"
12900 else
12901   esd_exec_prefix=""
12902 fi;
12903 # Check whether --enable-esdtest or --disable-esdtest was given.
12904 if test "${enable_esdtest+set}" = set; then
12905   enableval="$enable_esdtest"
12906
12907 else
12908   enable_esdtest=yes
12909 fi;
12910
12911   if test x$esd_exec_prefix != x ; then
12912      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12913      if test x${ESD_CONFIG+set} != xset ; then
12914         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12915      fi
12916   fi
12917   if test x$esd_prefix != x ; then
12918      esd_args="$esd_args --prefix=$esd_prefix"
12919      if test x${ESD_CONFIG+set} != xset ; then
12920         ESD_CONFIG=$esd_prefix/bin/esd-config
12921      fi
12922   fi
12923
12924   # Extract the first word of "esd-config", so it can be a program name with args.
12925 set dummy esd-config; ac_word=$2
12926 echo "$as_me:$LINENO: checking for $ac_word" >&5
12927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12928 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12929   echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931   case $ESD_CONFIG in
12932   [\\/]* | ?:[\\/]*)
12933   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12934   ;;
12935   *)
12936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12938 do
12939   IFS=$as_save_IFS
12940   test -z "$as_dir" && as_dir=.
12941   for ac_exec_ext in '' $ac_executable_extensions; do
12942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12945     break 2
12946   fi
12947 done
12948 done
12949
12950   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12951   ;;
12952 esac
12953 fi
12954 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12955
12956 if test -n "$ESD_CONFIG"; then
12957   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12958 echo "${ECHO_T}$ESD_CONFIG" >&6
12959 else
12960   echo "$as_me:$LINENO: result: no" >&5
12961 echo "${ECHO_T}no" >&6
12962 fi
12963
12964   min_esd_version=0.2.7
12965   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12966 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12967   no_esd=""
12968   if test "$ESD_CONFIG" = "no" ; then
12969     no_esd=yes
12970   else
12971
12972
12973     ac_ext=c
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978
12979     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12980     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12981
12982     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12983            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12984     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12985            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12986     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12987            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12988     if test "x$enable_esdtest" = "xyes" ; then
12989       ac_save_CFLAGS="$CFLAGS"
12990       ac_save_LIBS="$LIBS"
12991       CFLAGS="$CFLAGS $ESD_CFLAGS"
12992       LIBS="$LIBS $ESD_LIBS"
12993       rm -f conf.esdtest
12994       if test "$cross_compiling" = yes; then
12995   echo $ac_n "cross compiling; assumed OK... $ac_c"
12996 else
12997   cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h.  */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h.  */
13003
13004 #include <stdio.h>
13005 #include <stdlib.h>
13006 #include <string.h>
13007 #include <esd.h>
13008
13009 char*
13010 my_strdup (char *str)
13011 {
13012   char *new_str;
13013
13014   if (str)
13015     {
13016       new_str = malloc ((strlen (str) + 1) * sizeof(char));
13017       strcpy (new_str, str);
13018     }
13019   else
13020     new_str = NULL;
13021
13022   return new_str;
13023 }
13024
13025 int main ()
13026 {
13027   int major, minor, micro;
13028   char *tmp_version;
13029
13030   system ("touch conf.esdtest");
13031
13032   /* HP/UX 9 (%@#!) writes to sscanf strings */
13033   tmp_version = my_strdup("$min_esd_version");
13034   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13035      printf("%s, bad version string\n", "$min_esd_version");
13036      exit(1);
13037    }
13038
13039    if (($esd_major_version > major) ||
13040       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13041       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13042     {
13043       return 0;
13044     }
13045   else
13046     {
13047       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13048       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13049       printf("*** best to upgrade to the required version.\n");
13050       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13051       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13052       printf("*** config.cache before re-running configure\n");
13053       return 1;
13054     }
13055 }
13056
13057
13058 _ACEOF
13059 rm -f conftest$ac_exeext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061   (eval $ac_link) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066   (eval $ac_try) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; }; then
13070   :
13071 else
13072   echo "$as_me: program exited with status $ac_status" >&5
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ( exit $ac_status )
13077 no_esd=yes
13078 fi
13079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13080 fi
13081        CFLAGS="$ac_save_CFLAGS"
13082        LIBS="$ac_save_LIBS"
13083        ac_ext=c
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089      fi
13090   fi
13091   if test "x$no_esd" = x ; then
13092      echo "$as_me:$LINENO: result: yes" >&5
13093 echo "${ECHO_T}yes" >&6
13094      :
13095   else
13096      echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6
13098      if test "$ESD_CONFIG" = "no" ; then
13099        echo "*** The esd-config script installed by ESD could not be found"
13100        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13101        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13102        echo "*** full path to esd-config."
13103      else
13104        if test -f conf.esdtest ; then
13105         :
13106        else
13107           echo "*** Could not run ESD test program, checking why..."
13108           CFLAGS="$CFLAGS $ESD_CFLAGS"
13109           LIBS="$LIBS $ESD_LIBS"
13110
13111
13112           ac_ext=c
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13117
13118           cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124
13125 #include <stdio.h>
13126 #include <esd.h>
13127
13128 int
13129 main ()
13130 {
13131  return 0;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138   (eval $ac_link) 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } &&
13145          { ac_try='test -z "$ac_c_werror_flag"
13146                          || test ! -s conftest.err'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest$ac_exeext'
13153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154   (eval $ac_try) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158    echo "*** The test program compiled, but did not run. This usually means"
13159           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13160           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13161           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13162           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13163           echo "*** is required on your system"
13164           echo "***"
13165           echo "*** If you have an old version installed, it is best to remove it, although"
13166           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13167 else
13168   echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171  echo "*** The test program failed to compile or link. See the file config.log for the"
13172           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13173           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13174           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13175 fi
13176 rm -f conftest.err conftest.$ac_objext \
13177       conftest$ac_exeext conftest.$ac_ext
13178           CFLAGS="$ac_save_CFLAGS"
13179           LIBS="$ac_save_LIBS"
13180           ac_ext=c
13181 ac_cpp='$CPP $CPPFLAGS'
13182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13185
13186        fi
13187      fi
13188      ESD_CFLAGS=""
13189      ESD_LIBS=""
13190      :
13191   fi
13192
13193
13194   rm -f conf.esdtest
13195
13196   CFLAGS=$KEEPCFLAGS
13197   LIBS=$KEEPLIBS
13198   LDFLAGS=$KEEPLDFLAGS
13199   if test "x$no_esd" = x; then
13200         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13201     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13202     for f in $ESD_CFLAGS; do
13203     case ".$f" in
13204         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13205         *)              CFLAGS="$CPPFLAGS $f" ;;
13206     esac
13207 done
13208
13209     LIBS="$LIBS $ESD_LIBS"
13210   else
13211     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13212 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13213   fi
13214 else
13215   echo "$as_me:$LINENO: result: no" >&5
13216 echo "${ECHO_T}no" >&6
13217 fi
13218
13219 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13220 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13221 if test "x$au_enable_portaudio" = xyes; then
13222   echo "$as_me:$LINENO: result: yes" >&5
13223 echo "${ECHO_T}yes" >&6
13224   SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13225   EXTRALIBS="$EXTRALIBS -lportaudio"
13226   EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13227 else
13228   echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6
13230 fi
13231
13232 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13233 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13234 if test "x$au_enable_jack" = xyes; then
13235   echo "$as_me:$LINENO: result: yes" >&5
13236 echo "${ECHO_T}yes" >&6
13237   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13238   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13239   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13240 else
13241   echo "$as_me:$LINENO: result: no" >&5
13242 echo "${ECHO_T}no" >&6
13243 fi
13244
13245 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13246 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13247 if test "x$au_enable_ao" = xyes; then
13248   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
13249 echo "${ECHO_T}yes, configuring alsa" >&6
13250   KEEPCFLAGS=$CFLAGS
13251   KEEPLIBS=$LIBS
13252   KEEPLDFLAGS=$LDFLAGS
13253
13254 # Check whether --with-ao or --without-ao was given.
13255 if test "${with_ao+set}" = set; then
13256   withval="$with_ao"
13257   ao_prefix="$withval"
13258 else
13259   ao_prefix=""
13260 fi;
13261
13262 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13263 if test "${with_ao_libraries+set}" = set; then
13264   withval="$with_ao_libraries"
13265   ao_libraries="$withval"
13266 else
13267   ao_libraries=""
13268 fi;
13269
13270 # Check whether --with-ao-includes or --without-ao-includes was given.
13271 if test "${with_ao_includes+set}" = set; then
13272   withval="$with_ao_includes"
13273   ao_includes="$withval"
13274 else
13275   ao_includes=""
13276 fi;
13277 # Check whether --enable-aotest or --disable-aotest was given.
13278 if test "${enable_aotest+set}" = set; then
13279   enableval="$enable_aotest"
13280
13281 else
13282   enable_aotest=yes
13283 fi;
13284
13285
13286   if test "x$ao_libraries" != "x" ; then
13287     AO_LIBS="-L$ao_libraries"
13288   elif test "x$ao_prefix" != "x"; then
13289     AO_LIBS="-L$ao_prefix/lib"
13290   elif test "x$prefix" != "xNONE"; then
13291     AO_LIBS="-L$prefix/lib"
13292   fi
13293
13294   if test "x$ao_includes" != "x" ; then
13295     AO_CFLAGS="-I$ao_includes"
13296   elif test "x$ao_prefix" != "x"; then
13297     AO_CFLAGS="-I$ao_prefix/include"
13298   elif test "x$prefix" != "xNONE"; then
13299     AO_CFLAGS="-I$prefix/include"
13300   fi
13301
13302   # see where dl* and friends live
13303
13304 for ac_func in dlopen
13305 do
13306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13307 echo "$as_me:$LINENO: checking for $ac_func" >&5
13308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13309 if eval "test \"\${$as_ac_var+set}\" = set"; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312   cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13320 #define $ac_func innocuous_$ac_func
13321
13322 /* System header to define __stub macros and hopefully few prototypes,
13323     which can conflict with char $ac_func (); below.
13324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13325     <limits.h> exists even on freestanding compilers.  */
13326
13327 #ifdef __STDC__
13328 # include <limits.h>
13329 #else
13330 # include <assert.h>
13331 #endif
13332
13333 #undef $ac_func
13334
13335 /* Override any gcc2 internal prototype to avoid an error.  */
13336 #ifdef __cplusplus
13337 extern "C"
13338 {
13339 #endif
13340 /* We use char because int might match the return type of a gcc2
13341    builtin and then its argument prototype would still apply.  */
13342 char $ac_func ();
13343 /* The GNU C library defines this for functions which it implements
13344     to always fail with ENOSYS.  Some functions are actually named
13345     something starting with __ and the normal name is an alias.  */
13346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13347 choke me
13348 #else
13349 char (*f) () = $ac_func;
13350 #endif
13351 #ifdef __cplusplus
13352 }
13353 #endif
13354
13355 int
13356 main ()
13357 {
13358 return f != $ac_func;
13359   ;
13360   return 0;
13361 }
13362 _ACEOF
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365   (eval $ac_link) 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } &&
13372          { ac_try='test -z "$ac_c_werror_flag"
13373                          || test ! -s conftest.err'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; } &&
13379          { ac_try='test -s conftest$ac_exeext'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; }; then
13385   eval "$as_ac_var=yes"
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390 eval "$as_ac_var=no"
13391 fi
13392 rm -f conftest.err conftest.$ac_objext \
13393       conftest$ac_exeext conftest.$ac_ext
13394 fi
13395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13397 if test `eval echo '${'$as_ac_var'}'` = yes; then
13398   cat >>confdefs.h <<_ACEOF
13399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13400 _ACEOF
13401  AO_DL_LIBS=""
13402 else
13403
13404     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13405 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13407   echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409   ac_check_lib_save_LIBS=$LIBS
13410 LIBS="-ldl  $LIBS"
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417
13418 /* Override any gcc2 internal prototype to avoid an error.  */
13419 #ifdef __cplusplus
13420 extern "C"
13421 #endif
13422 /* We use char because int might match the return type of a gcc2
13423    builtin and then its argument prototype would still apply.  */
13424 char dlopen ();
13425 int
13426 main ()
13427 {
13428 dlopen ();
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435   (eval $ac_link) 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_c_werror_flag"
13443                          || test ! -s conftest.err'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; } &&
13449          { ac_try='test -s conftest$ac_exeext'
13450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451   (eval $ac_try) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; }; then
13455   ac_cv_lib_dl_dlopen=yes
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 ac_cv_lib_dl_dlopen=no
13461 fi
13462 rm -f conftest.err conftest.$ac_objext \
13463       conftest$ac_exeext conftest.$ac_ext
13464 LIBS=$ac_check_lib_save_LIBS
13465 fi
13466 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13467 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13468 if test $ac_cv_lib_dl_dlopen = yes; then
13469   AO_DL_LIBS="-ldl"
13470 else
13471
13472       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13473       your system may not be supported." >&5
13474 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13475       your system may not be supported." >&2;}
13476
13477 fi
13478
13479
13480 fi
13481 done
13482
13483
13484   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13485
13486   echo "$as_me:$LINENO: checking for ao" >&5
13487 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13488   no_ao=""
13489
13490
13491   if test "x$enable_aotest" = "xyes" ; then
13492     ac_save_CFLAGS="$CFLAGS"
13493     ac_save_LIBS="$LIBS"
13494     CFLAGS="$CFLAGS $AO_CFLAGS"
13495     LIBS="$LIBS $AO_LIBS"
13496       rm -f conf.aotest
13497       if test "$cross_compiling" = yes; then
13498   echo $ac_n "cross compiling; assumed OK... $ac_c"
13499 else
13500   cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506
13507 #include <stdio.h>
13508 #include <stdlib.h>
13509 #include <string.h>
13510 #include <ao/ao.h>
13511
13512 int main ()
13513 {
13514   system("touch conf.aotest");
13515   return 0;
13516 }
13517
13518
13519 _ACEOF
13520 rm -f conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522   (eval $ac_link) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   :
13532 else
13533   echo "$as_me: program exited with status $ac_status" >&5
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 ( exit $ac_status )
13538 no_ao=yes
13539 fi
13540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13541 fi
13542        CFLAGS="$ac_save_CFLAGS"
13543        LIBS="$ac_save_LIBS"
13544   fi
13545
13546   if test "x$no_ao" = "x" ; then
13547      echo "$as_me:$LINENO: result: yes" >&5
13548 echo "${ECHO_T}yes" >&6
13549      :
13550   else
13551      echo "$as_me:$LINENO: result: no" >&5
13552 echo "${ECHO_T}no" >&6
13553      if test -f conf.aotest ; then
13554        :
13555      else
13556        echo "*** Could not run ao test program, checking why..."
13557        CFLAGS="$CFLAGS $AO_CFLAGS"
13558        LIBS="$LIBS $AO_LIBS"
13559        cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h.  */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h.  */
13565
13566 #include <stdio.h>
13567 #include <ao/ao.h>
13568
13569 int
13570 main ()
13571 {
13572  return 0;
13573   ;
13574   return 0;
13575 }
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579   (eval $ac_link) 2>conftest.er1
13580   ac_status=$?
13581   grep -v '^ *+' conftest.er1 >conftest.err
13582   rm -f conftest.er1
13583   cat conftest.err >&5
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); } &&
13586          { ac_try='test -z "$ac_c_werror_flag"
13587                          || test ! -s conftest.err'
13588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589   (eval $ac_try) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; } &&
13593          { ac_try='test -s conftest$ac_exeext'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; }; then
13599    echo "*** The test program compiled, but did not run. This usually means"
13600        echo "*** that the run-time linker is not finding ao or finding the wrong"
13601        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13602        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13603        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13604        echo "*** is required on your system"
13605        echo "***"
13606        echo "*** If you have an old version installed, it is best to remove it, although"
13607        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13608 else
13609   echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612  echo "*** The test program failed to compile or link. See the file config.log for the"
13613        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13614        echo "*** or that you have moved ao since it was installed."
13615 fi
13616 rm -f conftest.err conftest.$ac_objext \
13617       conftest$ac_exeext conftest.$ac_ext
13618        CFLAGS="$ac_save_CFLAGS"
13619        LIBS="$ac_save_LIBS"
13620      fi
13621      AO_CFLAGS=""
13622      AO_LIBS=""
13623      :
13624   fi
13625
13626
13627   rm -f conf.aotest
13628
13629   if test "x$no_ao" = "x" ; then
13630         EXTRADEFS="$EXTRADEFS -DAU_AO"
13631     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13632     for f in $AO_CFLAGS; do
13633     case ".$f" in
13634         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13635         *)              CFLAGS="$CPPFLAGS $f" ;;
13636     esac
13637 done
13638
13639     LIBS="$KEEPLIBS $AO_LIBS"
13640
13641 for ac_func in snd_seq_port_info_set_timestamping
13642 do
13643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13644 echo "$as_me:$LINENO: checking for $ac_func" >&5
13645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13646 if eval "test \"\${$as_ac_var+set}\" = set"; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h.  */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h.  */
13655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13657 #define $ac_func innocuous_$ac_func
13658
13659 /* System header to define __stub macros and hopefully few prototypes,
13660     which can conflict with char $ac_func (); below.
13661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13662     <limits.h> exists even on freestanding compilers.  */
13663
13664 #ifdef __STDC__
13665 # include <limits.h>
13666 #else
13667 # include <assert.h>
13668 #endif
13669
13670 #undef $ac_func
13671
13672 /* Override any gcc2 internal prototype to avoid an error.  */
13673 #ifdef __cplusplus
13674 extern "C"
13675 {
13676 #endif
13677 /* We use char because int might match the return type of a gcc2
13678    builtin and then its argument prototype would still apply.  */
13679 char $ac_func ();
13680 /* The GNU C library defines this for functions which it implements
13681     to always fail with ENOSYS.  Some functions are actually named
13682     something starting with __ and the normal name is an alias.  */
13683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13684 choke me
13685 #else
13686 char (*f) () = $ac_func;
13687 #endif
13688 #ifdef __cplusplus
13689 }
13690 #endif
13691
13692 int
13693 main ()
13694 {
13695 return f != $ac_func;
13696   ;
13697   return 0;
13698 }
13699 _ACEOF
13700 rm -f conftest.$ac_objext conftest$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702   (eval $ac_link) 2>conftest.er1
13703   ac_status=$?
13704   grep -v '^ *+' conftest.er1 >conftest.err
13705   rm -f conftest.er1
13706   cat conftest.err >&5
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); } &&
13709          { ac_try='test -z "$ac_c_werror_flag"
13710                          || test ! -s conftest.err'
13711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712   (eval $ac_try) 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; } &&
13716          { ac_try='test -s conftest$ac_exeext'
13717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718   (eval $ac_try) 2>&5
13719   ac_status=$?
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); }; }; then
13722   eval "$as_ac_var=yes"
13723 else
13724   echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13726
13727 eval "$as_ac_var=no"
13728 fi
13729 rm -f conftest.err conftest.$ac_objext \
13730       conftest$ac_exeext conftest.$ac_ext
13731 fi
13732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13734 if test `eval echo '${'$as_ac_var'}'` = yes; then
13735   cat >>confdefs.h <<_ACEOF
13736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13737 _ACEOF
13738
13739 fi
13740 done
13741
13742   else
13743     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13744 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13745     CFLAGS=$KEEPCFLAGS
13746     LIBS=$KEEPLIBS
13747     LDFLAGS=$KEEPLDFLAGS
13748   fi
13749 else
13750   echo "$as_me:$LINENO: result: no" >&5
13751 echo "${ECHO_T}no" >&6
13752 fi
13753
13754 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13755 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13756 if test "x$au_enable_vorbis" = xyes; then
13757   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13758 echo "${ECHO_T}yes, configuring vorbis" >&6
13759
13760 # Check whether --with-ogg or --without-ogg was given.
13761 if test "${with_ogg+set}" = set; then
13762   withval="$with_ogg"
13763   ogg_prefix="$withval"
13764 else
13765   ogg_prefix=""
13766 fi;
13767
13768 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13769 if test "${with_ogg_libraries+set}" = set; then
13770   withval="$with_ogg_libraries"
13771   ogg_libraries="$withval"
13772 else
13773   ogg_libraries=""
13774 fi;
13775
13776 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13777 if test "${with_ogg_includes+set}" = set; then
13778   withval="$with_ogg_includes"
13779   ogg_includes="$withval"
13780 else
13781   ogg_includes=""
13782 fi;
13783 # Check whether --enable-oggtest or --disable-oggtest was given.
13784 if test "${enable_oggtest+set}" = set; then
13785   enableval="$enable_oggtest"
13786
13787 else
13788   enable_oggtest=yes
13789 fi;
13790
13791   if test "x$ogg_libraries" != "x" ; then
13792     OGG_LIBS="-L$ogg_libraries"
13793   elif test "x$ogg_prefix" != "x" ; then
13794     OGG_LIBS="-L$ogg_prefix/lib"
13795   elif test "x$prefix" != "xNONE" ; then
13796     OGG_LIBS="-L$prefix/lib"
13797   fi
13798
13799   OGG_LIBS="$OGG_LIBS -logg"
13800
13801   if test "x$ogg_includes" != "x" ; then
13802     OGG_CFLAGS="-I$ogg_includes"
13803   elif test "x$ogg_prefix" != "x" ; then
13804     OGG_CFLAGS="-I$ogg_prefix/include"
13805   elif test "x$prefix" != "xNONE"; then
13806     OGG_CFLAGS="-I$prefix/include"
13807   fi
13808
13809   echo "$as_me:$LINENO: checking for Ogg" >&5
13810 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13811   no_ogg=""
13812
13813
13814   if test "x$enable_oggtest" = "xyes" ; then
13815     ac_save_CFLAGS="$CFLAGS"
13816     ac_save_LIBS="$LIBS"
13817     CFLAGS="$CFLAGS $OGG_CFLAGS"
13818     LIBS="$LIBS $OGG_LIBS"
13819       rm -f conf.oggtest
13820       if test "$cross_compiling" = yes; then
13821   echo $ac_n "cross compiling; assumed OK... $ac_c"
13822 else
13823   cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829
13830 #include <stdio.h>
13831 #include <stdlib.h>
13832 #include <string.h>
13833 #include <ogg/ogg.h>
13834
13835 int main ()
13836 {
13837   system("touch conf.oggtest");
13838   return 0;
13839 }
13840
13841
13842 _ACEOF
13843 rm -f conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845   (eval $ac_link) 2>&5
13846   ac_status=$?
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850   (eval $ac_try) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; }; then
13854   :
13855 else
13856   echo "$as_me: program exited with status $ac_status" >&5
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860 ( exit $ac_status )
13861 no_ogg=yes
13862 fi
13863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13864 fi
13865        CFLAGS="$ac_save_CFLAGS"
13866        LIBS="$ac_save_LIBS"
13867   fi
13868
13869   if test "x$no_ogg" = "x" ; then
13870      echo "$as_me:$LINENO: result: yes" >&5
13871 echo "${ECHO_T}yes" >&6
13872
13873
13874 # Check whether --with-vorbis or --without-vorbis was given.
13875 if test "${with_vorbis+set}" = set; then
13876   withval="$with_vorbis"
13877   vorbis_prefix="$withval"
13878 else
13879   vorbis_prefix=""
13880 fi;
13881
13882 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13883 if test "${with_vorbis_libraries+set}" = set; then
13884   withval="$with_vorbis_libraries"
13885   vorbis_libraries="$withval"
13886 else
13887   vorbis_libraries=""
13888 fi;
13889
13890 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13891 if test "${with_vorbis_includes+set}" = set; then
13892   withval="$with_vorbis_includes"
13893   vorbis_includes="$withval"
13894 else
13895   vorbis_includes=""
13896 fi;
13897 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13898 if test "${enable_vorbistest+set}" = set; then
13899   enableval="$enable_vorbistest"
13900
13901 else
13902   enable_vorbistest=yes
13903 fi;
13904
13905   if test "x$vorbis_libraries" != "x" ; then
13906     VORBIS_LIBS="-L$vorbis_libraries"
13907   elif test "x$vorbis_prefix" != "x" ; then
13908     VORBIS_LIBS="-L$vorbis_prefix/lib"
13909   elif test "x$prefix" != "xNONE"; then
13910     VORBIS_LIBS="-L$prefix/lib"
13911   fi
13912
13913   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13914   VORBISFILE_LIBS="-lvorbisfile"
13915   VORBISENC_LIBS="-lvorbisenc"
13916
13917   if test "x$vorbis_includes" != "x" ; then
13918     VORBIS_CFLAGS="-I$vorbis_includes"
13919   elif test "x$vorbis_prefix" != "x" ; then
13920     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13921   elif test "x$prefix" != "xNONE"; then
13922     VORBIS_CFLAGS="-I$prefix/include"
13923   fi
13924
13925
13926   echo "$as_me:$LINENO: checking for Vorbis" >&5
13927 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13928   no_vorbis=""
13929
13930
13931   if test "x$enable_vorbistest" = "xyes" ; then
13932     ac_save_CFLAGS="$CFLAGS"
13933     ac_save_LIBS="$LIBS"
13934     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13935     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13936       rm -f conf.vorbistest
13937       if test "$cross_compiling" = yes; then
13938   echo $ac_n "cross compiling; assumed OK... $ac_c"
13939 else
13940   cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h.  */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h.  */
13946
13947 #include <stdio.h>
13948 #include <stdlib.h>
13949 #include <string.h>
13950 #include <vorbis/codec.h>
13951
13952 int main ()
13953 {
13954   system("touch conf.vorbistest");
13955   return 0;
13956 }
13957
13958
13959 _ACEOF
13960 rm -f conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962   (eval $ac_link) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   :
13972 else
13973   echo "$as_me: program exited with status $ac_status" >&5
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ( exit $ac_status )
13978 no_vorbis=yes
13979 fi
13980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13981 fi
13982        CFLAGS="$ac_save_CFLAGS"
13983        LIBS="$ac_save_LIBS"
13984   fi
13985
13986   if test "x$no_vorbis" = "x" ; then
13987      echo "$as_me:$LINENO: result: yes" >&5
13988 echo "${ECHO_T}yes" >&6
13989
13990       have_vorbis=yes
13991       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13992       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13993       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13994       if test "x$CYGNUS" = "xyes"; then
13995       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13996           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13997       fi
13998       if test "x$MINGW" = "xyes"; then
13999       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
14000           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14001       fi
14002
14003   else
14004      echo "$as_me:$LINENO: result: no" >&5
14005 echo "${ECHO_T}no" >&6
14006      if test -f conf.vorbistest ; then
14007        :
14008      else
14009        echo "*** Could not run Vorbis test program, checking why..."
14010        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14011        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14012        cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h.  */
14018
14019 #include <stdio.h>
14020 #include <vorbis/codec.h>
14021
14022 int
14023 main ()
14024 {
14025  return 0;
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032   (eval $ac_link) 2>conftest.er1
14033   ac_status=$?
14034   grep -v '^ *+' conftest.er1 >conftest.err
14035   rm -f conftest.er1
14036   cat conftest.err >&5
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } &&
14039          { ac_try='test -z "$ac_c_werror_flag"
14040                          || test ! -s conftest.err'
14041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042   (eval $ac_try) 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); }; } &&
14046          { ac_try='test -s conftest$ac_exeext'
14047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048   (eval $ac_try) 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); }; }; then
14052    echo "*** The test program compiled, but did not run. This usually means"
14053        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14054        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14055        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14056        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14057        echo "*** is required on your system"
14058        echo "***"
14059        echo "*** If you have an old version installed, it is best to remove it, although"
14060        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14061 else
14062   echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065  echo "*** The test program failed to compile or link. See the file config.log for the"
14066        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14067        echo "*** or that you have moved Vorbis since it was installed."
14068 fi
14069 rm -f conftest.err conftest.$ac_objext \
14070       conftest$ac_exeext conftest.$ac_ext
14071        CFLAGS="$ac_save_CFLAGS"
14072        LIBS="$ac_save_LIBS"
14073      fi
14074      VORBIS_CFLAGS=""
14075      VORBIS_LIBS=""
14076      VORBISFILE_LIBS=""
14077      VORBISENC_LIBS=""
14078
14079       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14080 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14081
14082   fi
14083
14084
14085
14086
14087   rm -f conf.vorbistest
14088
14089
14090   else
14091      echo "$as_me:$LINENO: result: no" >&5
14092 echo "${ECHO_T}no" >&6
14093      if test -f conf.oggtest ; then
14094        :
14095      else
14096        echo "*** Could not run Ogg test program, checking why..."
14097        CFLAGS="$CFLAGS $OGG_CFLAGS"
14098        LIBS="$LIBS $OGG_LIBS"
14099        cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105
14106 #include <stdio.h>
14107 #include <ogg/ogg.h>
14108
14109 int
14110 main ()
14111 {
14112  return 0;
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 rm -f conftest.$ac_objext conftest$ac_exeext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14119   (eval $ac_link) 2>conftest.er1
14120   ac_status=$?
14121   grep -v '^ *+' conftest.er1 >conftest.err
14122   rm -f conftest.er1
14123   cat conftest.err >&5
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); } &&
14126          { ac_try='test -z "$ac_c_werror_flag"
14127                          || test ! -s conftest.err'
14128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129   (eval $ac_try) 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); }; } &&
14133          { ac_try='test -s conftest$ac_exeext'
14134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135   (eval $ac_try) 2>&5
14136   ac_status=$?
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); }; }; then
14139    echo "*** The test program compiled, but did not run. This usually means"
14140        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14141        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14142        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14143        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14144        echo "*** is required on your system"
14145        echo "***"
14146        echo "*** If you have an old version installed, it is best to remove it, although"
14147        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14148 else
14149   echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14151
14152  echo "*** The test program failed to compile or link. See the file config.log for the"
14153        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14154        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14155        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14156 fi
14157 rm -f conftest.err conftest.$ac_objext \
14158       conftest$ac_exeext conftest.$ac_ext
14159        CFLAGS="$ac_save_CFLAGS"
14160        LIBS="$ac_save_LIBS"
14161      fi
14162      OGG_CFLAGS=""
14163      OGG_LIBS=""
14164
14165     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14166 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14167     have_vorbis=no
14168
14169   fi
14170
14171
14172   rm -f conf.oggtest
14173
14174 else
14175   echo "$as_me:$LINENO: result: no" >&5
14176 echo "${ECHO_T}no" >&6
14177 fi
14178
14179 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14180 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14181 if test "x$au_enable_flac" = xyes; then
14182   echo "$as_me:$LINENO: result: yes" >&5
14183 echo "${ECHO_T}yes" >&6
14184   SYSEXTRAS="$SYSEXTRAS flac_a.c"
14185   EXTRALIBS="$EXTRALIBS -lOggFLAC -lFLAC -logg"
14186   EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_OGGFLAC"
14187 else
14188   echo "$as_me:$LINENO: result: no" >&5
14189 echo "${ECHO_T}no" >&6
14190 fi
14191
14192 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14193 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14194 if test "x$au_enable_gogo" = xyes; then
14195   if test "x$CYGNUS" = "xyes"; then
14196     echo "$as_me:$LINENO: result: yes" >&5
14197 echo "${ECHO_T}yes" >&6
14198   else
14199     if test "x$MINGW" = "xyes"; then
14200     echo "$as_me:$LINENO: result: yes" >&5
14201 echo "${ECHO_T}yes" >&6
14202     else
14203       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14204 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14205     fi
14206   fi
14207   have_gogo=yes
14208   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14209   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14210   EXTRALIBS="$EXTRALIBS -lgogo"
14211 else
14212   echo "$as_me:$LINENO: result: no" >&5
14213 echo "${ECHO_T}no" >&6
14214 fi
14215
14216 if test "x$au_enable_none" = xyes; then
14217     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14218     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14219 fi
14220 echo "$as_me:$LINENO: checking default output mode" >&5
14221 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14222 if test "x$DEFAULT_PLAYMODE" = x; then
14223   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14224 fi
14225 case ".$DEFAULT_PLAYMODE" in
14226   .default)  TIMIDITY_OUTPUT_ID=d ;;
14227   .oss)      TIMIDITY_OUTPUT_ID=d ;;
14228   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
14229   .sun)      TIMIDITY_OUTPUT_ID=d ;;
14230   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
14231   .irix)     TIMIDITY_OUTPUT_ID=d ;;
14232   .mme)      TIMIDITY_OUTPUT_ID=d ;;
14233   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
14234   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
14235   .w32)      TIMIDITY_OUTPUT_ID=d ;;
14236   .alib)     TIMIDITY_OUTPUT_ID=A ;;
14237   .nas)      TIMIDITY_OUTPUT_ID=n ;;
14238   .arts)     TIMIDITY_OUTPUT_ID=R ;;
14239   .esd)      TIMIDITY_OUTPUT_ID=e ;;
14240   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
14241   .wav)      TIMIDITY_OUTPUT_ID=w ;;
14242   .au)       TIMIDITY_OUTPUT_ID=u ;;
14243   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
14244   .list)     TIMIDITY_OUTPUT_ID=l ;;
14245   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
14246   .flac)     TIMIDITY_OUTPUT_ID=F ;;
14247   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
14248   .jack)     TIMIDITY_OUTPUT_ID=j ;;
14249   *)         TIMIDITY_OUTPUT_ID= ;;
14250 esac
14251 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14252 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14253
14254 #
14255 # Interface Section
14256 #
14257
14258 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14259
14260 # Check whether --enable-interface or --disable-interface was given.
14261 if test "${enable_interface+set}" = set; then
14262   enableval="$enable_interface"
14263    for i in `echo $enableval | sed 's/,/ /g'`; do
14264       eval "enable_$i=yes"
14265     done
14266 fi;
14267
14268 #  Dynamic link configuration
14269 # Check whether --enable-dynamic or --disable-dynamic was given.
14270 if test "${enable_dynamic+set}" = set; then
14271   enableval="$enable_dynamic"
14272        if test "x$enable_dynamic" = xyes; then
14273       enable_dynamic=dynamic
14274     elif test "x$enable_dynamic" != xno; then
14275       for i in `echo $enableval | sed 's/,/ /g'`; do
14276         eval "enable_$i=dynamic"
14277       done
14278     fi
14279 fi;
14280
14281 join_targets=
14282 for i in $interface_targets; do
14283   eval "join_targets=$join_targets\$enable_$i"
14284 done
14285
14286 case ".$join_targets" in
14287 .*dynamic*) NEEDDLOPEN=yes;;
14288 *)          NEEDDLOPEN=no;;
14289 esac
14290
14291 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14292 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14293
14294 if test "$NEEDDLOPEN" = "yes"; then
14295   have_dl=no
14296
14297   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14298 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14299 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308 #include <windows.h>
14309
14310
14311 int
14312 main ()
14313 {
14314 LoadLibrary(0);
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321   (eval $ac_link) 2>conftest.er1
14322   ac_status=$?
14323   grep -v '^ *+' conftest.er1 >conftest.err
14324   rm -f conftest.er1
14325   cat conftest.err >&5
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } &&
14328          { ac_try='test -z "$ac_c_werror_flag"
14329                          || test ! -s conftest.err'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; } &&
14335          { ac_try='test -s conftest$ac_exeext'
14336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337   (eval $ac_try) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341   wapi_cv_func_LoadLibrary=yes
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 wapi_cv_func_LoadLibrary=no
14347 fi
14348 rm -f conftest.err conftest.$ac_objext \
14349       conftest$ac_exeext conftest.$ac_ext
14350 fi
14351
14352 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14353   echo "$as_me:$LINENO: result: yes" >&5
14354 echo "${ECHO_T}yes" >&6
14355   have_dl=w32
14356 else
14357   echo "$as_me:$LINENO: result: no" >&5
14358 echo "${ECHO_T}no" >&6
14359 fi
14360
14361   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14362
14363   if test "$have_dl" = "no"; then
14364     echo "$as_me:$LINENO: checking for shl_load" >&5
14365 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14366 if test "${ac_cv_func_shl_load+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h.  */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h.  */
14375 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14377 #define shl_load innocuous_shl_load
14378
14379 /* System header to define __stub macros and hopefully few prototypes,
14380     which can conflict with char shl_load (); below.
14381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14382     <limits.h> exists even on freestanding compilers.  */
14383
14384 #ifdef __STDC__
14385 # include <limits.h>
14386 #else
14387 # include <assert.h>
14388 #endif
14389
14390 #undef shl_load
14391
14392 /* Override any gcc2 internal prototype to avoid an error.  */
14393 #ifdef __cplusplus
14394 extern "C"
14395 {
14396 #endif
14397 /* We use char because int might match the return type of a gcc2
14398    builtin and then its argument prototype would still apply.  */
14399 char shl_load ();
14400 /* The GNU C library defines this for functions which it implements
14401     to always fail with ENOSYS.  Some functions are actually named
14402     something starting with __ and the normal name is an alias.  */
14403 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14404 choke me
14405 #else
14406 char (*f) () = shl_load;
14407 #endif
14408 #ifdef __cplusplus
14409 }
14410 #endif
14411
14412 int
14413 main ()
14414 {
14415 return f != shl_load;
14416   ;
14417   return 0;
14418 }
14419 _ACEOF
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14422   (eval $ac_link) 2>conftest.er1
14423   ac_status=$?
14424   grep -v '^ *+' conftest.er1 >conftest.err
14425   rm -f conftest.er1
14426   cat conftest.err >&5
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); } &&
14429          { ac_try='test -z "$ac_c_werror_flag"
14430                          || test ! -s conftest.err'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; } &&
14436          { ac_try='test -s conftest$ac_exeext'
14437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438   (eval $ac_try) 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; }; then
14442   ac_cv_func_shl_load=yes
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_cv_func_shl_load=no
14448 fi
14449 rm -f conftest.err conftest.$ac_objext \
14450       conftest$ac_exeext conftest.$ac_ext
14451 fi
14452 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14453 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14454 if test $ac_cv_func_shl_load = yes; then
14455   have_dl=hpux
14456 fi
14457
14458   fi
14459   if test "$have_dl" = "no"; then
14460             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14461 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14462 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14463   echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465   cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h.  */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h.  */
14471 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14473 #define NSLinkModule innocuous_NSLinkModule
14474
14475 /* System header to define __stub macros and hopefully few prototypes,
14476     which can conflict with char NSLinkModule (); below.
14477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14478     <limits.h> exists even on freestanding compilers.  */
14479
14480 #ifdef __STDC__
14481 # include <limits.h>
14482 #else
14483 # include <assert.h>
14484 #endif
14485
14486 #undef NSLinkModule
14487
14488 /* Override any gcc2 internal prototype to avoid an error.  */
14489 #ifdef __cplusplus
14490 extern "C"
14491 {
14492 #endif
14493 /* We use char because int might match the return type of a gcc2
14494    builtin and then its argument prototype would still apply.  */
14495 char NSLinkModule ();
14496 /* The GNU C library defines this for functions which it implements
14497     to always fail with ENOSYS.  Some functions are actually named
14498     something starting with __ and the normal name is an alias.  */
14499 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14500 choke me
14501 #else
14502 char (*f) () = NSLinkModule;
14503 #endif
14504 #ifdef __cplusplus
14505 }
14506 #endif
14507
14508 int
14509 main ()
14510 {
14511 return f != NSLinkModule;
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518   (eval $ac_link) 2>conftest.er1
14519   ac_status=$?
14520   grep -v '^ *+' conftest.er1 >conftest.err
14521   rm -f conftest.er1
14522   cat conftest.err >&5
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); } &&
14525          { ac_try='test -z "$ac_c_werror_flag"
14526                          || test ! -s conftest.err'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; } &&
14532          { ac_try='test -s conftest$ac_exeext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   ac_cv_func_NSLinkModule=yes
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14542
14543 ac_cv_func_NSLinkModule=no
14544 fi
14545 rm -f conftest.err conftest.$ac_objext \
14546       conftest$ac_exeext conftest.$ac_ext
14547 fi
14548 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14549 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14550 if test $ac_cv_func_NSLinkModule = yes; then
14551   have_dl=dyld
14552 fi
14553
14554   fi
14555   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14556     have_dl=dlopen
14557   fi
14558   if test "$have_dl" = "no"; then
14559     echo "$as_me:$LINENO: checking for dlopen" >&5
14560 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14561 if test "${ac_cv_func_dlopen+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14572 #define dlopen innocuous_dlopen
14573
14574 /* System header to define __stub macros and hopefully few prototypes,
14575     which can conflict with char dlopen (); below.
14576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14577     <limits.h> exists even on freestanding compilers.  */
14578
14579 #ifdef __STDC__
14580 # include <limits.h>
14581 #else
14582 # include <assert.h>
14583 #endif
14584
14585 #undef dlopen
14586
14587 /* Override any gcc2 internal prototype to avoid an error.  */
14588 #ifdef __cplusplus
14589 extern "C"
14590 {
14591 #endif
14592 /* We use char because int might match the return type of a gcc2
14593    builtin and then its argument prototype would still apply.  */
14594 char dlopen ();
14595 /* The GNU C library defines this for functions which it implements
14596     to always fail with ENOSYS.  Some functions are actually named
14597     something starting with __ and the normal name is an alias.  */
14598 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14599 choke me
14600 #else
14601 char (*f) () = dlopen;
14602 #endif
14603 #ifdef __cplusplus
14604 }
14605 #endif
14606
14607 int
14608 main ()
14609 {
14610 return f != dlopen;
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14617   (eval $ac_link) 2>conftest.er1
14618   ac_status=$?
14619   grep -v '^ *+' conftest.er1 >conftest.err
14620   rm -f conftest.er1
14621   cat conftest.err >&5
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -z "$ac_c_werror_flag"
14625                          || test ! -s conftest.err'
14626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627   (eval $ac_try) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; } &&
14631          { ac_try='test -s conftest$ac_exeext'
14632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633   (eval $ac_try) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; }; then
14637   ac_cv_func_dlopen=yes
14638 else
14639   echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 ac_cv_func_dlopen=no
14643 fi
14644 rm -f conftest.err conftest.$ac_objext \
14645       conftest$ac_exeext conftest.$ac_ext
14646 fi
14647 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14648 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14649 if test $ac_cv_func_dlopen = yes; then
14650   have_dl=dlopen
14651 fi
14652
14653   fi
14654   if test "$have_dl" = "no"; then
14655     echo "$as_me:$LINENO: checking for dld_init" >&5
14656 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
14657 if test "${ac_cv_func_dld_init+set}" = set; then
14658   echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660   cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h.  */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h.  */
14666 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
14667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14668 #define dld_init innocuous_dld_init
14669
14670 /* System header to define __stub macros and hopefully few prototypes,
14671     which can conflict with char dld_init (); below.
14672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14673     <limits.h> exists even on freestanding compilers.  */
14674
14675 #ifdef __STDC__
14676 # include <limits.h>
14677 #else
14678 # include <assert.h>
14679 #endif
14680
14681 #undef dld_init
14682
14683 /* Override any gcc2 internal prototype to avoid an error.  */
14684 #ifdef __cplusplus
14685 extern "C"
14686 {
14687 #endif
14688 /* We use char because int might match the return type of a gcc2
14689    builtin and then its argument prototype would still apply.  */
14690 char dld_init ();
14691 /* The GNU C library defines this for functions which it implements
14692     to always fail with ENOSYS.  Some functions are actually named
14693     something starting with __ and the normal name is an alias.  */
14694 #if defined (__stub_dld_init) || defined (__stub___dld_init)
14695 choke me
14696 #else
14697 char (*f) () = dld_init;
14698 #endif
14699 #ifdef __cplusplus
14700 }
14701 #endif
14702
14703 int
14704 main ()
14705 {
14706 return f != dld_init;
14707   ;
14708   return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713   (eval $ac_link) 2>conftest.er1
14714   ac_status=$?
14715   grep -v '^ *+' conftest.er1 >conftest.err
14716   rm -f conftest.er1
14717   cat conftest.err >&5
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); } &&
14720          { ac_try='test -z "$ac_c_werror_flag"
14721                          || test ! -s conftest.err'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; } &&
14727          { ac_try='test -s conftest$ac_exeext'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; }; then
14733   ac_cv_func_dld_init=yes
14734 else
14735   echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738 ac_cv_func_dld_init=no
14739 fi
14740 rm -f conftest.err conftest.$ac_objext \
14741       conftest$ac_exeext conftest.$ac_ext
14742 fi
14743 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
14744 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
14745 if test $ac_cv_func_dld_init = yes; then
14746   have_dl=dld
14747 fi
14748
14749   fi
14750   if test "$have_dl" = "no"; then
14751     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
14752 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
14753 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756   ac_check_lib_save_LIBS=$LIBS
14757 LIBS="-ldld  $LIBS"
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764
14765 /* Override any gcc2 internal prototype to avoid an error.  */
14766 #ifdef __cplusplus
14767 extern "C"
14768 #endif
14769 /* We use char because int might match the return type of a gcc2
14770    builtin and then its argument prototype would still apply.  */
14771 char dld_init ();
14772 int
14773 main ()
14774 {
14775 dld_init ();
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782   (eval $ac_link) 2>conftest.er1
14783   ac_status=$?
14784   grep -v '^ *+' conftest.er1 >conftest.err
14785   rm -f conftest.er1
14786   cat conftest.err >&5
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } &&
14789          { ac_try='test -z "$ac_c_werror_flag"
14790                          || test ! -s conftest.err'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; } &&
14796          { ac_try='test -s conftest$ac_exeext'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   ac_cv_lib_dld_dld_init=yes
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 ac_cv_lib_dld_dld_init=no
14808 fi
14809 rm -f conftest.err conftest.$ac_objext \
14810       conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_check_lib_save_LIBS
14812 fi
14813 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
14814 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
14815 if test $ac_cv_lib_dld_dld_init = yes; then
14816   have_dl=dld;lib_dl_opt=-ldld
14817 fi
14818
14819   fi
14820
14821   echo "$as_me:$LINENO: checking dynamic link method" >&5
14822 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
14823   case "$have_dl" in
14824     dlopen)
14825       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
14826 echo "${ECHO_T}use dl_dlopen.c" >&6
14827       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
14828       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
14829 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
14830 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
14831   echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833   case "$ac_cv_header_dlfcn_h" in
14834 yes) i_dlfcn=define;;
14835 *)   i_dlfcn=undef;;
14836 esac
14837 cat > dyna.c <<EOM
14838 fred () { }
14839 EOM
14840
14841 cat > fred.c <<EOM
14842 #include <stdio.h>
14843 #$i_dlfcn I_DLFCN
14844 #ifdef I_DLFCN
14845 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
14846 #else
14847 #include <sys/types.h>
14848 #include <nlist.h>
14849 #include <link.h>
14850 #endif
14851
14852 extern int fred() ;
14853
14854 main()
14855 {
14856     void * handle ;
14857     void * symbol ;
14858 #ifndef RTLD_LAZY
14859     int mode = 1 ;
14860 #else
14861     int mode = RTLD_LAZY ;
14862 #endif
14863     handle = dlopen("./dyna.$so", mode) ;
14864     if (handle == NULL) {
14865         printf ("1\n") ;
14866         fflush (stdout) ;
14867         exit(0);
14868     }
14869     symbol = dlsym(handle, "fred") ;
14870     if (symbol == NULL) {
14871         /* try putting a leading underscore */
14872         symbol = dlsym(handle, "_fred") ;
14873         if (symbol == NULL) {
14874             printf ("2\n") ;
14875             fflush (stdout) ;
14876             exit(0);
14877         }
14878         printf ("3\n") ;
14879     }
14880     else
14881         printf ("4\n") ;
14882     fflush (stdout) ;
14883     exit(0);
14884 }
14885 EOM
14886 : Call the object file tmp-dyna.o in case dlext=o.
14887 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
14888         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
14889         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
14890         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
14891         xxx=`./fred`
14892         case $xxx in
14893         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
14894 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
14895                 ;;
14896         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
14897 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
14898                 ;;
14899         3)      timidity_cv_func_dlsym_underscore=yes
14900                 ;;
14901         4)      timidity_cv_func_dlsym_underscore=no
14902                 ;;
14903         esac
14904 else
14905         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
14906 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
14907 fi
14908 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
14909
14910 fi
14911
14912 case "x$timidity_cv_func_dlsym_underscore" in
14913 xyes)
14914 cat >>confdefs.h <<\_ACEOF
14915 #define DLSYM_NEEDS_UNDERSCORE 1
14916 _ACEOF
14917
14918         echo "$as_me:$LINENO: result: yes" >&5
14919 echo "${ECHO_T}yes" >&6
14920         ;;
14921 xno)
14922         echo "$as_me:$LINENO: result: no" >&5
14923 echo "${ECHO_T}no" >&6
14924         ;;
14925 esac
14926
14927       ;;
14928     dld)
14929       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
14930 echo "${ECHO_T}use dl_dld.c" >&6
14931       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
14932       ;;
14933     hpux)
14934       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
14935 echo "${ECHO_T}use dl_hpux.c" >&6
14936       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
14937       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
14938       ;;
14939     w32)
14940       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
14941 echo "${ECHO_T}use dl_w32.c" >&6
14942       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
14943       ;;
14944     dyld)
14945       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
14946 echo "${ECHO_T}use dl_dyld.c" >&6
14947       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
14948       ;;
14949     *)
14950       NEEDDLOPEN="no"
14951       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
14952 echo "$as_me: WARNING: no method to open a shared object" >&2;}
14953       ;;
14954   esac
14955 fi
14956
14957 if test "$NEEDDLOPEN" = "yes"; then
14958   cat >> confdefs.h <<EOF
14959 #define IA_DYNAMIC 1
14960 EOF
14961
14962
14963 cat >>confdefs.h <<_ACEOF
14964 #define SHARED_LIB_EXT ".$so"
14965 _ACEOF
14966
14967       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
14968 fi
14969
14970
14971
14972 if test "$NEEDDLOPEN" = "yes"; then
14973   NEEDDLOPEN_TRUE=
14974   NEEDDLOPEN_FALSE='#'
14975 else
14976   NEEDDLOPEN_TRUE='#'
14977   NEEDDLOPEN_FALSE=
14978 fi
14979
14980
14981
14982
14983
14984 if false; then
14985   ENABLE_NCURSES_TRUE=
14986   ENABLE_NCURSES_FALSE='#'
14987 else
14988   ENABLE_NCURSES_TRUE='#'
14989   ENABLE_NCURSES_FALSE=
14990 fi
14991
14992 # Check whether --enable-ncurses or --disable-ncurses was given.
14993 if test "${enable_ncurses+set}" = set; then
14994   enableval="$enable_ncurses"
14995   case "x$enable_ncurses" in xyes|xdynamic)
14996
14997
14998 for ac_header in ncurses.h ncurses/curses.h curses.h
14999 do
15000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15002   echo "$as_me:$LINENO: checking for $ac_header" >&5
15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 fi
15007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15009 else
15010   # Is the header compilable?
15011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h.  */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h.  */
15019 $ac_includes_default
15020 #include <$ac_header>
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024   (eval $ac_compile) 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } &&
15031          { ac_try='test -z "$ac_c_werror_flag"
15032                          || test ! -s conftest.err'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; } &&
15038          { ac_try='test -s conftest.$ac_objext'
15039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040   (eval $ac_try) 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044   ac_header_compiler=yes
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 ac_header_compiler=no
15050 fi
15051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15053 echo "${ECHO_T}$ac_header_compiler" >&6
15054
15055 # Is the header present?
15056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 #include <$ac_header>
15065 _ACEOF
15066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15068   ac_status=$?
15069   grep -v '^ *+' conftest.er1 >conftest.err
15070   rm -f conftest.er1
15071   cat conftest.err >&5
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } >/dev/null; then
15074   if test -s conftest.err; then
15075     ac_cpp_err=$ac_c_preproc_warn_flag
15076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15077   else
15078     ac_cpp_err=
15079   fi
15080 else
15081   ac_cpp_err=yes
15082 fi
15083 if test -z "$ac_cpp_err"; then
15084   ac_header_preproc=yes
15085 else
15086   echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089   ac_header_preproc=no
15090 fi
15091 rm -f conftest.err conftest.$ac_ext
15092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15093 echo "${ECHO_T}$ac_header_preproc" >&6
15094
15095 # So?  What about this header?
15096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15097   yes:no: )
15098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15102     ac_header_preproc=yes
15103     ;;
15104   no:yes:* )
15105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15117     (
15118       cat <<\_ASBOX
15119 ## ------------------------------- ##
15120 ## Report this to root@mput.dip.jp ##
15121 ## ------------------------------- ##
15122 _ASBOX
15123     ) |
15124       sed "s/^/$as_me: WARNING:     /" >&2
15125     ;;
15126 esac
15127 echo "$as_me:$LINENO: checking for $ac_header" >&5
15128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15130   echo $ECHO_N "(cached) $ECHO_C" >&6
15131 else
15132   eval "$as_ac_Header=\$ac_header_preproc"
15133 fi
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15136
15137 fi
15138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15139   cat >>confdefs.h <<_ACEOF
15140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15141 _ACEOF
15142
15143 fi
15144
15145 done
15146
15147
15148
15149   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15150     *yes*);;
15151     *)  for i in /usr/include /usr/local/include; do
15152           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15153             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15154 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15155             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15156             break
15157           fi
15158         done
15159         ;;
15160     esac
15161
15162     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15163 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15164 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15165   echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167   ac_check_lib_save_LIBS=$LIBS
15168 LIBS="-lncurses  $LIBS"
15169 cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h.  */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h.  */
15175
15176 /* Override any gcc2 internal prototype to avoid an error.  */
15177 #ifdef __cplusplus
15178 extern "C"
15179 #endif
15180 /* We use char because int might match the return type of a gcc2
15181    builtin and then its argument prototype would still apply.  */
15182 char initscr ();
15183 int
15184 main ()
15185 {
15186 initscr ();
15187   ;
15188   return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193   (eval $ac_link) 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -z "$ac_c_werror_flag"
15201                          || test ! -s conftest.err'
15202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203   (eval $ac_try) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); }; } &&
15207          { ac_try='test -s conftest$ac_exeext'
15208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209   (eval $ac_try) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); }; }; then
15213   ac_cv_lib_ncurses_initscr=yes
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_cv_lib_ncurses_initscr=no
15219 fi
15220 rm -f conftest.err conftest.$ac_objext \
15221       conftest$ac_exeext conftest.$ac_ext
15222 LIBS=$ac_check_lib_save_LIBS
15223 fi
15224 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15225 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15226 if test $ac_cv_lib_ncurses_initscr = yes; then
15227   lib_curses_opt=-lncurses
15228 else
15229         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15230 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15231 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15232   echo $ECHO_N "(cached) $ECHO_C" >&6
15233 else
15234   ac_check_lib_save_LIBS=$LIBS
15235 LIBS="-lcurses $lib_user32_test $LIBS"
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h.  */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h.  */
15242
15243 /* Override any gcc2 internal prototype to avoid an error.  */
15244 #ifdef __cplusplus
15245 extern "C"
15246 #endif
15247 /* We use char because int might match the return type of a gcc2
15248    builtin and then its argument prototype would still apply.  */
15249 char PDC_set_ctrl_break ();
15250 int
15251 main ()
15252 {
15253 PDC_set_ctrl_break ();
15254   ;
15255   return 0;
15256 }
15257 _ACEOF
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260   (eval $ac_link) 2>conftest.er1
15261   ac_status=$?
15262   grep -v '^ *+' conftest.er1 >conftest.err
15263   rm -f conftest.er1
15264   cat conftest.err >&5
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); } &&
15267          { ac_try='test -z "$ac_c_werror_flag"
15268                          || test ! -s conftest.err'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; } &&
15274          { ac_try='test -s conftest$ac_exeext'
15275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276   (eval $ac_try) 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; }; then
15280   ac_cv_lib_curses_PDC_set_ctrl_break=yes
15281 else
15282   echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 ac_cv_lib_curses_PDC_set_ctrl_break=no
15286 fi
15287 rm -f conftest.err conftest.$ac_objext \
15288       conftest$ac_exeext conftest.$ac_ext
15289 LIBS=$ac_check_lib_save_LIBS
15290 fi
15291 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15292 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15293 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15294    lib_curses_opt=-lcurses
15295
15296 cat >>confdefs.h <<\_ACEOF
15297 #define USE_PDCURSES 1
15298 _ACEOF
15299
15300             lib_user32_opt="$lib_user32_test"
15301
15302 else
15303             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15304 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15305 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   ac_check_lib_save_LIBS=$LIBS
15309 LIBS="-lpdcurses  $LIBS"
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h.  */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h.  */
15316
15317 /* Override any gcc2 internal prototype to avoid an error.  */
15318 #ifdef __cplusplus
15319 extern "C"
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322    builtin and then its argument prototype would still apply.  */
15323 char PDC_set_ctrl_break ();
15324 int
15325 main ()
15326 {
15327 PDC_set_ctrl_break ();
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334   (eval $ac_link) 2>conftest.er1
15335   ac_status=$?
15336   grep -v '^ *+' conftest.er1 >conftest.err
15337   rm -f conftest.er1
15338   cat conftest.err >&5
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); } &&
15341          { ac_try='test -z "$ac_c_werror_flag"
15342                          || test ! -s conftest.err'
15343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344   (eval $ac_try) 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); }; } &&
15348          { ac_try='test -s conftest$ac_exeext'
15349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350   (eval $ac_try) 2>&5
15351   ac_status=$?
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); }; }; then
15354   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15360 fi
15361 rm -f conftest.err conftest.$ac_objext \
15362       conftest$ac_exeext conftest.$ac_ext
15363 LIBS=$ac_check_lib_save_LIBS
15364 fi
15365 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15366 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15367 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15368    lib_curses_opt=-lpdcurses
15369
15370 cat >>confdefs.h <<\_ACEOF
15371 #define USE_PDCURSES 1
15372 _ACEOF
15373
15374               lib_user32_opt="$lib_user32_test"
15375
15376 else
15377               case "$target" in
15378                 *openbsd*)
15379                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15380 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15381 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   ac_check_lib_save_LIBS=$LIBS
15385 LIBS="-lcurses  $LIBS"
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392
15393 /* Override any gcc2 internal prototype to avoid an error.  */
15394 #ifdef __cplusplus
15395 extern "C"
15396 #endif
15397 /* We use char because int might match the return type of a gcc2
15398    builtin and then its argument prototype would still apply.  */
15399 char initscr ();
15400 int
15401 main ()
15402 {
15403 initscr ();
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410   (eval $ac_link) 2>conftest.er1
15411   ac_status=$?
15412   grep -v '^ *+' conftest.er1 >conftest.err
15413   rm -f conftest.er1
15414   cat conftest.err >&5
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); } &&
15417          { ac_try='test -z "$ac_c_werror_flag"
15418                          || test ! -s conftest.err'
15419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420   (eval $ac_try) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; } &&
15424          { ac_try='test -s conftest$ac_exeext'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   ac_cv_lib_curses_initscr=yes
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435 ac_cv_lib_curses_initscr=no
15436 fi
15437 rm -f conftest.err conftest.$ac_objext \
15438       conftest$ac_exeext conftest.$ac_ext
15439 LIBS=$ac_check_lib_save_LIBS
15440 fi
15441 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15442 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15443 if test $ac_cv_lib_curses_initscr = yes; then
15444   lib_curses_opt=-lcurses
15445 else
15446    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15447 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15448                       enable_ncurses=no
15449 fi
15450
15451                   ;;
15452                 *)
15453                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15454 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15455                   enable_ncurses=no
15456                   ;;
15457               esac
15458
15459 fi
15460
15461
15462 fi
15463
15464
15465 fi
15466
15467    ;; esac
15468 fi;
15469 case "x$enable_ncurses" in
15470 xyes)
15471   cat >> confdefs.h <<EOF
15472 #define IA_NCURSES 1
15473 EOF
15474
15475
15476
15477 if true; then
15478   ENABLE_NCURSES_TRUE=
15479   ENABLE_NCURSES_FALSE='#'
15480 else
15481   ENABLE_NCURSES_TRUE='#'
15482   ENABLE_NCURSES_FALSE=
15483 fi
15484
15485    LIBS="$LIBS $lib_curses_opt"
15486     case "$target" in
15487        *-*-freebsd123*)
15488          EXTRALIBS="$EXTRALIBS -lmytinfo"
15489          ;;
15490      esac
15491     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15492
15493   ;;
15494 xdynamic)
15495   dynamic_targets="$dynamic_targets interface_n.\$(so)"
15496    n_so_libs="$lib_curses_opt"
15497     case "$target" in
15498        *-*-freebsd123*)
15499          EXTRALIBS="$EXTRALIBS -lmytinfo"
15500          ;;
15501      esac
15502   ;;
15503 *)
15504
15505   ;;
15506 esac
15507
15508
15509
15510
15511
15512 if false; then
15513   ENABLE_SLANG_TRUE=
15514   ENABLE_SLANG_FALSE='#'
15515 else
15516   ENABLE_SLANG_TRUE='#'
15517   ENABLE_SLANG_FALSE=
15518 fi
15519
15520 # Check whether --enable-slang or --disable-slang was given.
15521 if test "${enable_slang+set}" = set; then
15522   enableval="$enable_slang"
15523   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15524 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15525 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   ac_check_lib_save_LIBS=$LIBS
15529 LIBS="-lslang  $LIBS"
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536
15537 /* Override any gcc2 internal prototype to avoid an error.  */
15538 #ifdef __cplusplus
15539 extern "C"
15540 #endif
15541 /* We use char because int might match the return type of a gcc2
15542    builtin and then its argument prototype would still apply.  */
15543 char SLang_init_tty ();
15544 int
15545 main ()
15546 {
15547 SLang_init_tty ();
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554   (eval $ac_link) 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_c_werror_flag"
15562                          || test ! -s conftest.err'
15563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564   (eval $ac_try) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; } &&
15568          { ac_try='test -s conftest$ac_exeext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_cv_lib_slang_SLang_init_tty=yes
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 ac_cv_lib_slang_SLang_init_tty=no
15580 fi
15581 rm -f conftest.err conftest.$ac_objext \
15582       conftest$ac_exeext conftest.$ac_ext
15583 LIBS=$ac_check_lib_save_LIBS
15584 fi
15585 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15586 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15587 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15588   :
15589 else
15590    enable_slang=no
15591       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15592 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15593
15594 fi
15595
15596
15597
15598 for ac_header in slang/slang.h slang.h
15599 do
15600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602   echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 fi
15607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15609 else
15610   # Is the header compilable?
15611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h.  */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h.  */
15619 $ac_includes_default
15620 #include <$ac_header>
15621 _ACEOF
15622 rm -f conftest.$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624   (eval $ac_compile) 2>conftest.er1
15625   ac_status=$?
15626   grep -v '^ *+' conftest.er1 >conftest.err
15627   rm -f conftest.er1
15628   cat conftest.err >&5
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } &&
15631          { ac_try='test -z "$ac_c_werror_flag"
15632                          || test ! -s conftest.err'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; } &&
15638          { ac_try='test -s conftest.$ac_objext'
15639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640   (eval $ac_try) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; }; then
15644   ac_header_compiler=yes
15645 else
15646   echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ac_header_compiler=no
15650 fi
15651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15653 echo "${ECHO_T}$ac_header_compiler" >&6
15654
15655 # Is the header present?
15656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h.  */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h.  */
15664 #include <$ac_header>
15665 _ACEOF
15666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } >/dev/null; then
15674   if test -s conftest.err; then
15675     ac_cpp_err=$ac_c_preproc_warn_flag
15676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15677   else
15678     ac_cpp_err=
15679   fi
15680 else
15681   ac_cpp_err=yes
15682 fi
15683 if test -z "$ac_cpp_err"; then
15684   ac_header_preproc=yes
15685 else
15686   echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15688
15689   ac_header_preproc=no
15690 fi
15691 rm -f conftest.err conftest.$ac_ext
15692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15693 echo "${ECHO_T}$ac_header_preproc" >&6
15694
15695 # So?  What about this header?
15696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15697   yes:no: )
15698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15702     ac_header_preproc=yes
15703     ;;
15704   no:yes:* )
15705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15717     (
15718       cat <<\_ASBOX
15719 ## ------------------------------- ##
15720 ## Report this to root@mput.dip.jp ##
15721 ## ------------------------------- ##
15722 _ASBOX
15723     ) |
15724       sed "s/^/$as_me: WARNING:     /" >&2
15725     ;;
15726 esac
15727 echo "$as_me:$LINENO: checking for $ac_header" >&5
15728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732   eval "$as_ac_Header=\$ac_header_preproc"
15733 fi
15734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15736
15737 fi
15738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15739   cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15741 _ACEOF
15742
15743 fi
15744
15745 done
15746
15747    ;; esac
15748 fi;
15749 case "x$enable_slang" in
15750 xyes)
15751   cat >> confdefs.h <<EOF
15752 #define IA_SLANG 1
15753 EOF
15754
15755
15756
15757 if true; then
15758   ENABLE_SLANG_TRUE=
15759   ENABLE_SLANG_FALSE='#'
15760 else
15761   ENABLE_SLANG_TRUE='#'
15762   ENABLE_SLANG_FALSE=
15763 fi
15764
15765    LIBS="$LIBS -lslang"
15766     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
15767
15768   ;;
15769 xdynamic)
15770   dynamic_targets="$dynamic_targets interface_s.\$(so)"
15771    s_so_libs="-lslang"
15772     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
15773 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
15774 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-ltermcap  $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785
15786 /* Override any gcc2 internal prototype to avoid an error.  */
15787 #ifdef __cplusplus
15788 extern "C"
15789 #endif
15790 /* We use char because int might match the return type of a gcc2
15791    builtin and then its argument prototype would still apply.  */
15792 char initscr ();
15793 int
15794 main ()
15795 {
15796 initscr ();
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803   (eval $ac_link) 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } &&
15810          { ac_try='test -z "$ac_c_werror_flag"
15811                          || test ! -s conftest.err'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; } &&
15817          { ac_try='test -s conftest$ac_exeext'
15818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819   (eval $ac_try) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); }; }; then
15823   ac_cv_lib_termcap_initscr=yes
15824 else
15825   echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15827
15828 ac_cv_lib_termcap_initscr=no
15829 fi
15830 rm -f conftest.err conftest.$ac_objext \
15831       conftest$ac_exeext conftest.$ac_ext
15832 LIBS=$ac_check_lib_save_LIBS
15833 fi
15834 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
15835 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
15836 if test $ac_cv_lib_termcap_initscr = yes; then
15837   s_so_libs="$s_so_libs -ltermcap"
15838 fi
15839
15840
15841   ;;
15842 *)
15843
15844   ;;
15845 esac
15846
15847
15848
15849
15850
15851 if false; then
15852   ENABLE_MOTIF_TRUE=
15853   ENABLE_MOTIF_FALSE='#'
15854 else
15855   ENABLE_MOTIF_TRUE='#'
15856   ENABLE_MOTIF_FALSE=
15857 fi
15858
15859 # Check whether --enable-motif or --disable-motif was given.
15860 if test "${enable_motif+set}" = set; then
15861   enableval="$enable_motif"
15862   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15863         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
15864 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
15865    { (exit 1); exit 1; }; }
15866     fi
15867     if test "x$have_xm" != xyes; then
15868       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
15869 echo "$as_me: WARNING: Motif library is not found." >&2;}
15870       enable_motif=no
15871     fi
15872    ;; esac
15873 fi;
15874 case "x$enable_motif" in
15875 xyes)
15876   cat >> confdefs.h <<EOF
15877 #define IA_MOTIF 1
15878 EOF
15879
15880
15881
15882 if true; then
15883   ENABLE_MOTIF_TRUE=
15884   ENABLE_MOTIF_FALSE='#'
15885 else
15886   ENABLE_MOTIF_TRUE='#'
15887   ENABLE_MOTIF_FALSE=
15888 fi
15889
15890    lib_xm_opt=-lXm
15891     lib_xt_opt=-lXt
15892     lib_xext_opt=-lXext
15893     if test "x$have_xprelibs" = xyes; then
15894         lib_xprelibs_opt='-lSM -lICE'
15895     fi
15896     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
15897
15898   ;;
15899 xdynamic)
15900   dynamic_targets="$dynamic_targets interface_m.\$(so)"
15901    if test x$have_xprelibs = xyes; then
15902       m_so_libs="-lXext -lSM -lICE"
15903     fi
15904     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
15905
15906   ;;
15907 *)
15908
15909   ;;
15910 esac
15911
15912
15913
15914
15915
15916 if false; then
15917   ENABLE_TCLTK_TRUE=
15918   ENABLE_TCLTK_FALSE='#'
15919 else
15920   ENABLE_TCLTK_TRUE='#'
15921   ENABLE_TCLTK_FALSE=
15922 fi
15923
15924 # Check whether --enable-tcltk or --disable-tcltk was given.
15925 if test "${enable_tcltk+set}" = set; then
15926   enableval="$enable_tcltk"
15927   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15928         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
15929 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
15930    { (exit 1); exit 1; }; }
15931     fi
15932
15933         KEEPCPPFLAGS=$CPPFLAGS
15934     KEEPLDFLAGS=$LDFLAGS
15935     KEEPLIBS=$LIBS
15936
15937     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
15938     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
15939     LIBS="$LIBS $lib_dl_opt"
15940
15941     tcl_lib=
15942     tk_lib=
15943     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
15944       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
15945 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
15946 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
15947 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15948   echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950   ac_check_lib_save_LIBS=$LIBS
15951 LIBS="-l$l  $LIBS"
15952 cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958
15959 /* Override any gcc2 internal prototype to avoid an error.  */
15960 #ifdef __cplusplus
15961 extern "C"
15962 #endif
15963 /* We use char because int might match the return type of a gcc2
15964    builtin and then its argument prototype would still apply.  */
15965 char Tcl_Init ();
15966 int
15967 main ()
15968 {
15969 Tcl_Init ();
15970   ;
15971   return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15976   (eval $ac_link) 2>conftest.er1
15977   ac_status=$?
15978   grep -v '^ *+' conftest.er1 >conftest.err
15979   rm -f conftest.er1
15980   cat conftest.err >&5
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } &&
15983          { ac_try='test -z "$ac_c_werror_flag"
15984                          || test ! -s conftest.err'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; } &&
15990          { ac_try='test -s conftest$ac_exeext'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; }; then
15996   eval "$as_ac_Lib=yes"
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001 eval "$as_ac_Lib=no"
16002 fi
16003 rm -f conftest.err conftest.$ac_objext \
16004       conftest$ac_exeext conftest.$ac_ext
16005 LIBS=$ac_check_lib_save_LIBS
16006 fi
16007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16008 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16009 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16010   tcl_lib=-l$l
16011 fi
16012 ;; esac
16013     done
16014     LIBS="$LIBS $tcl_lib"
16015     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16016       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16017 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16018 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16019 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16020   echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022   ac_check_lib_save_LIBS=$LIBS
16023 LIBS="-l$l  $LIBS"
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030
16031 /* Override any gcc2 internal prototype to avoid an error.  */
16032 #ifdef __cplusplus
16033 extern "C"
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036    builtin and then its argument prototype would still apply.  */
16037 char Tk_Init ();
16038 int
16039 main ()
16040 {
16041 Tk_Init ();
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048   (eval $ac_link) 2>conftest.er1
16049   ac_status=$?
16050   grep -v '^ *+' conftest.er1 >conftest.err
16051   rm -f conftest.er1
16052   cat conftest.err >&5
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); } &&
16055          { ac_try='test -z "$ac_c_werror_flag"
16056                          || test ! -s conftest.err'
16057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058   (eval $ac_try) 2>&5
16059   ac_status=$?
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); }; } &&
16062          { ac_try='test -s conftest$ac_exeext'
16063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064   (eval $ac_try) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; }; then
16068   eval "$as_ac_Lib=yes"
16069 else
16070   echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16072
16073 eval "$as_ac_Lib=no"
16074 fi
16075 rm -f conftest.err conftest.$ac_objext \
16076       conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16078 fi
16079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16080 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16081 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16082   tk_lib=-l$l
16083 fi
16084 ;; esac
16085     done
16086
16087     LIBS=$KEEPLIBS
16088     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16089       CPPFLAGS=$KEEPCPPFLAGS
16090       LDFLAGS=$KEEPLDFLAGS
16091       enable_tcltk=no
16092       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16093 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16094     else
16095       tcltk_dep='tclIndex'
16096     fi
16097    ;; esac
16098 fi;
16099 case "x$enable_tcltk" in
16100 xyes)
16101   cat >> confdefs.h <<EOF
16102 #define IA_TCLTK 1
16103 EOF
16104
16105
16106
16107 if true; then
16108   ENABLE_TCLTK_TRUE=
16109   ENABLE_TCLTK_FALSE='#'
16110 else
16111   ENABLE_TCLTK_TRUE='#'
16112   ENABLE_TCLTK_FALSE=
16113 fi
16114
16115    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16116     case "$target" in
16117       *-*-bsdi*)
16118         EXTRALIBS="$EXTRALIBS -lipc"
16119         ;;
16120     esac
16121     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16122
16123   ;;
16124 xdynamic)
16125   dynamic_targets="$dynamic_targets interface_k.\$(so)"
16126    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16127     case "$target" in
16128       *-*-bsdi*)
16129         k_so_libs="$k_so_libs -lipc"
16130         ;;
16131     esac
16132     k_so_libs="$k_so_libs -lX11 -lm"
16133
16134   ;;
16135 *)
16136
16137   ;;
16138 esac
16139
16140
16141
16142
16143 if test "x$enable_tcltk" = "xdynamic"; then
16144   ENABLE_DYNAMIC_TCLTK_TRUE=
16145   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16146 else
16147   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16148   ENABLE_DYNAMIC_TCLTK_FALSE=
16149 fi
16150
16151
16152
16153
16154 if false; then
16155   ENABLE_EMACS_TRUE=
16156   ENABLE_EMACS_FALSE='#'
16157 else
16158   ENABLE_EMACS_TRUE='#'
16159   ENABLE_EMACS_FALSE=
16160 fi
16161
16162 # Check whether --enable-emacs or --disable-emacs was given.
16163 if test "${enable_emacs+set}" = set; then
16164   enableval="$enable_emacs"
16165   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16166 fi;
16167 case "x$enable_emacs" in
16168 xyes)
16169   cat >> confdefs.h <<EOF
16170 #define IA_EMACS 1
16171 EOF
16172
16173
16174
16175 if true; then
16176   ENABLE_EMACS_TRUE=
16177   ENABLE_EMACS_FALSE='#'
16178 else
16179   ENABLE_EMACS_TRUE='#'
16180   ENABLE_EMACS_FALSE=
16181 fi
16182
16183    ELFILES="$ELFILES timidity.el"
16184     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16185
16186   ;;
16187 xdynamic)
16188   dynamic_targets="$dynamic_targets interface_e.\$(so)"
16189    ELFILES="$ELFILES timidity.el"
16190   ;;
16191 *)
16192
16193   ;;
16194 esac
16195
16196
16197
16198
16199
16200 if false; then
16201   ENABLE_VT100_TRUE=
16202   ENABLE_VT100_FALSE='#'
16203 else
16204   ENABLE_VT100_TRUE='#'
16205   ENABLE_VT100_FALSE=
16206 fi
16207
16208 # Check whether --enable-vt100 or --disable-vt100 was given.
16209 if test "${enable_vt100+set}" = set; then
16210   enableval="$enable_vt100"
16211   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
16212 fi;
16213 case "x$enable_vt100" in
16214 xyes)
16215   cat >> confdefs.h <<EOF
16216 #define IA_VT100 1
16217 EOF
16218
16219
16220
16221 if true; then
16222   ENABLE_VT100_TRUE=
16223   ENABLE_VT100_FALSE='#'
16224 else
16225   ENABLE_VT100_TRUE='#'
16226   ENABLE_VT100_FALSE=
16227 fi
16228
16229    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16230   ;;
16231 xdynamic)
16232   dynamic_targets="$dynamic_targets interface_T.\$(so)"
16233
16234   ;;
16235 *)
16236
16237   ;;
16238 esac
16239
16240
16241
16242
16243
16244 if false; then
16245   ENABLE_XAW_TRUE=
16246   ENABLE_XAW_FALSE='#'
16247 else
16248   ENABLE_XAW_TRUE='#'
16249   ENABLE_XAW_FALSE=
16250 fi
16251
16252 # Check whether --enable-xaw or --disable-xaw was given.
16253 if test "${enable_xaw+set}" = set; then
16254   enableval="$enable_xaw"
16255   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16256         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16257 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16258    { (exit 1); exit 1; }; }
16259     fi
16260     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16261       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16262 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16263       enable_xaw=no
16264     fi  ;; esac
16265 fi;
16266 case "x$enable_xaw" in
16267 xyes)
16268   cat >> confdefs.h <<EOF
16269 #define IA_XAW 1
16270 EOF
16271
16272
16273
16274 if true; then
16275   ENABLE_XAW_TRUE=
16276   ENABLE_XAW_FALSE='#'
16277 else
16278   ENABLE_XAW_TRUE='#'
16279   ENABLE_XAW_FALSE=
16280 fi
16281
16282        if test "x$have_xext" = xyes; then
16283       lib_xext_opt=-lXext
16284     fi
16285     if test "x$have_xprelibs" = xyes; then
16286       lib_xprelibs_opt='-lSM -lICE'
16287     fi
16288     lib_xmu_opt=-lXmu
16289     lib_xt_opt=-lXt
16290     if test "x$have_xaw" = x3d; then
16291
16292 cat >>confdefs.h <<\_ACEOF
16293 #define XAW3D 1
16294 _ACEOF
16295
16296       lib_xaw_opt=-lXaw3d
16297     else
16298       lib_xaw_opt=-lXaw
16299     fi
16300     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16301
16302   ;;
16303 xdynamic)
16304   dynamic_targets="$dynamic_targets interface_a.\$(so)"
16305    if test "x$have_xext" = xyes; then
16306       a_so_libs="-lXext -lX11"
16307     else
16308       a_so_libs="-lX11"
16309     fi
16310     case "$target" in
16311       *darwin*)
16312         a_so_libs="$a_so_libs -lcc_dynamic"
16313         ;;
16314     esac
16315     if test "x$have_xprelibs" = xyes; then
16316       a_so_libs="-lSM -lICE $a_so_libs"
16317     fi
16318     if test "x$have_xaw" = xyes; then
16319       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16320     elif test "x$have_xaw" = x3d; then
16321
16322 cat >>confdefs.h <<\_ACEOF
16323 #define XAW3D 1
16324 _ACEOF
16325
16326       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16327     fi
16328     a_so_libs="$ldflags_x_opt $a_so_libs"
16329
16330   ;;
16331 *)
16332
16333   ;;
16334 esac
16335
16336
16337
16338
16339 if test "x$enable_xaw" = "xdynamic"; then
16340   ENABLE_DYNAMIC_XAW_TRUE=
16341   ENABLE_DYNAMIC_XAW_FALSE='#'
16342 else
16343   ENABLE_DYNAMIC_XAW_TRUE='#'
16344   ENABLE_DYNAMIC_XAW_FALSE=
16345 fi
16346
16347
16348
16349
16350 if false; then
16351   ENABLE_XSKIN_TRUE=
16352   ENABLE_XSKIN_FALSE='#'
16353 else
16354   ENABLE_XSKIN_TRUE='#'
16355   ENABLE_XSKIN_FALSE=
16356 fi
16357
16358 # Check whether --enable-xskin or --disable-xskin was given.
16359 if test "${enable_xskin+set}" = set; then
16360   enableval="$enable_xskin"
16361   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16362         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16363 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16364    { (exit 1); exit 1; }; }
16365     fi
16366    ;; esac
16367 fi;
16368 case "x$enable_xskin" in
16369 xyes)
16370   cat >> confdefs.h <<EOF
16371 #define IA_XSKIN 1
16372 EOF
16373
16374
16375
16376 if true; then
16377   ENABLE_XSKIN_TRUE=
16378   ENABLE_XSKIN_FALSE='#'
16379 else
16380   ENABLE_XSKIN_TRUE='#'
16381   ENABLE_XSKIN_FALSE=
16382 fi
16383
16384    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16385   ;;
16386 xdynamic)
16387   dynamic_targets="$dynamic_targets interface_i.\$(so)"
16388    i_so_libs="$ldflags_x_opt -lX11"
16389   ;;
16390 *)
16391
16392   ;;
16393 esac
16394
16395
16396
16397
16398
16399 if false; then
16400   ENABLE_GTK_TRUE=
16401   ENABLE_GTK_FALSE='#'
16402 else
16403   ENABLE_GTK_TRUE='#'
16404   ENABLE_GTK_FALSE=
16405 fi
16406
16407 # Check whether --enable-gtk or --disable-gtk was given.
16408 if test "${enable_gtk+set}" = set; then
16409   enableval="$enable_gtk"
16410   case "x$enable_gtk" in xyes|xdynamic)
16411 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16412 if test "${with_gtk_prefix+set}" = set; then
16413   withval="$with_gtk_prefix"
16414   gtk_config_prefix="$withval"
16415 else
16416   gtk_config_prefix=""
16417 fi;
16418
16419 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16420 if test "${with_gtk_exec_prefix+set}" = set; then
16421   withval="$with_gtk_exec_prefix"
16422   gtk_config_exec_prefix="$withval"
16423 else
16424   gtk_config_exec_prefix=""
16425 fi;
16426 # Check whether --enable-gtktest or --disable-gtktest was given.
16427 if test "${enable_gtktest+set}" = set; then
16428   enableval="$enable_gtktest"
16429
16430 else
16431   enable_gtktest=yes
16432 fi;
16433
16434   for module in .
16435   do
16436       case "$module" in
16437          gthread)
16438              gtk_config_args="$gtk_config_args gthread"
16439          ;;
16440       esac
16441   done
16442
16443   if test x$gtk_config_exec_prefix != x ; then
16444      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16445      if test x${GTK_CONFIG+set} != xset ; then
16446         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16447      fi
16448   fi
16449   if test x$gtk_config_prefix != x ; then
16450      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16451      if test x${GTK_CONFIG+set} != xset ; then
16452         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16453      fi
16454   fi
16455
16456   # Extract the first word of "gtk-config", so it can be a program name with args.
16457 set dummy gtk-config; ac_word=$2
16458 echo "$as_me:$LINENO: checking for $ac_word" >&5
16459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16460 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16461   echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463   case $GTK_CONFIG in
16464   [\\/]* | ?:[\\/]*)
16465   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16466   ;;
16467   *)
16468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16469 for as_dir in $PATH
16470 do
16471   IFS=$as_save_IFS
16472   test -z "$as_dir" && as_dir=.
16473   for ac_exec_ext in '' $ac_executable_extensions; do
16474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16475     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16477     break 2
16478   fi
16479 done
16480 done
16481
16482   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16483   ;;
16484 esac
16485 fi
16486 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16487
16488 if test -n "$GTK_CONFIG"; then
16489   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16490 echo "${ECHO_T}$GTK_CONFIG" >&6
16491 else
16492   echo "$as_me:$LINENO: result: no" >&5
16493 echo "${ECHO_T}no" >&6
16494 fi
16495
16496   min_gtk_version=1.1.3
16497   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16498 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16499   no_gtk=""
16500   if test "$GTK_CONFIG" = "no" ; then
16501     no_gtk=yes
16502   else
16503     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16504     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16505     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16506            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16507     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16508            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16509     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16510            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16511     if test "x$enable_gtktest" = "xyes" ; then
16512       ac_save_CFLAGS="$CFLAGS"
16513       ac_save_LIBS="$LIBS"
16514       CFLAGS="$CFLAGS $GTK_CFLAGS"
16515       LIBS="$GTK_LIBS $LIBS"
16516       rm -f conf.gtktest
16517       if test "$cross_compiling" = yes; then
16518   echo $ac_n "cross compiling; assumed OK... $ac_c"
16519 else
16520   cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h.  */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h.  */
16526
16527 #include <gtk/gtk.h>
16528 #include <stdio.h>
16529 #include <stdlib.h>
16530
16531 int
16532 main ()
16533 {
16534   int major, minor, micro;
16535   char *tmp_version;
16536
16537   system ("touch conf.gtktest");
16538
16539   /* HP/UX 9 (%@#!) writes to sscanf strings */
16540   tmp_version = g_strdup("$min_gtk_version");
16541   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16542      printf("%s, bad version string\n", "$min_gtk_version");
16543      exit(1);
16544    }
16545
16546   if ((gtk_major_version != $gtk_config_major_version) ||
16547       (gtk_minor_version != $gtk_config_minor_version) ||
16548       (gtk_micro_version != $gtk_config_micro_version))
16549     {
16550       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16551              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16552              gtk_major_version, gtk_minor_version, gtk_micro_version);
16553       printf ("*** was found! If gtk-config was correct, then it is best\n");
16554       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16555       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16556       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16557       printf("*** required on your system.\n");
16558       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16559       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16560       printf("*** before re-running configure\n");
16561     }
16562 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16563   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16564            (gtk_minor_version != GTK_MINOR_VERSION) ||
16565            (gtk_micro_version != GTK_MICRO_VERSION))
16566     {
16567       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16568              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16569       printf("*** library (version %d.%d.%d)\n",
16570              gtk_major_version, gtk_minor_version, gtk_micro_version);
16571     }
16572 #endif /* defined (GTK_MAJOR_VERSION) ... */
16573   else
16574     {
16575       if ((gtk_major_version > major) ||
16576         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16577         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16578       {
16579         return 0;
16580        }
16581      else
16582       {
16583         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16584                gtk_major_version, gtk_minor_version, gtk_micro_version);
16585         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16586                major, minor, micro);
16587         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16588         printf("***\n");
16589         printf("*** If you have already installed a sufficiently new version, this error\n");
16590         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16591         printf("*** being found. The easiest way to fix this is to remove the old version\n");
16592         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16593         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16594         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16595         printf("*** so that the correct libraries are found at run-time))\n");
16596       }
16597     }
16598   return 1;
16599 }
16600
16601 _ACEOF
16602 rm -f conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604   (eval $ac_link) 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   :
16614 else
16615   echo "$as_me: program exited with status $ac_status" >&5
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 ( exit $ac_status )
16620 no_gtk=yes
16621 fi
16622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16623 fi
16624        CFLAGS="$ac_save_CFLAGS"
16625        LIBS="$ac_save_LIBS"
16626      fi
16627   fi
16628   if test "x$no_gtk" = x ; then
16629      echo "$as_me:$LINENO: result: yes" >&5
16630 echo "${ECHO_T}yes" >&6
16631      :
16632   else
16633      echo "$as_me:$LINENO: result: no" >&5
16634 echo "${ECHO_T}no" >&6
16635      if test "$GTK_CONFIG" = "no" ; then
16636        echo "*** The gtk-config script installed by GTK could not be found"
16637        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16638        echo "*** your path, or set the GTK_CONFIG environment variable to the"
16639        echo "*** full path to gtk-config."
16640      else
16641        if test -f conf.gtktest ; then
16642         :
16643        else
16644           echo "*** Could not run GTK test program, checking why..."
16645           CFLAGS="$CFLAGS $GTK_CFLAGS"
16646           LIBS="$LIBS $GTK_LIBS"
16647           cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h.  */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h.  */
16653
16654 #include <gtk/gtk.h>
16655 #include <stdio.h>
16656
16657 int
16658 main ()
16659 {
16660  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
16661   ;
16662   return 0;
16663 }
16664 _ACEOF
16665 rm -f conftest.$ac_objext conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667   (eval $ac_link) 2>conftest.er1
16668   ac_status=$?
16669   grep -v '^ *+' conftest.er1 >conftest.err
16670   rm -f conftest.er1
16671   cat conftest.err >&5
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } &&
16674          { ac_try='test -z "$ac_c_werror_flag"
16675                          || test ! -s conftest.err'
16676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677   (eval $ac_try) 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); }; } &&
16681          { ac_try='test -s conftest$ac_exeext'
16682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683   (eval $ac_try) 2>&5
16684   ac_status=$?
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); }; }; then
16687    echo "*** The test program compiled, but did not run. This usually means"
16688           echo "*** that the run-time linker is not finding GTK or finding the wrong"
16689           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
16690           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16691           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
16692           echo "*** is required on your system"
16693           echo "***"
16694           echo "*** If you have an old version installed, it is best to remove it, although"
16695           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16696           echo "***"
16697           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
16698           echo "*** came with the system with the command"
16699           echo "***"
16700           echo "***    rpm --erase --nodeps gtk gtk-devel"
16701 else
16702   echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16704
16705  echo "*** The test program failed to compile or link. See the file config.log for the"
16706           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
16707           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
16708           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
16709 fi
16710 rm -f conftest.err conftest.$ac_objext \
16711       conftest$ac_exeext conftest.$ac_ext
16712           CFLAGS="$ac_save_CFLAGS"
16713           LIBS="$ac_save_LIBS"
16714        fi
16715      fi
16716      GTK_CFLAGS=""
16717      GTK_LIBS=""
16718      enable_gtk=no
16719   fi
16720
16721
16722   rm -f conf.gtktest
16723   ;; esac
16724 fi;
16725 case "x$enable_gtk" in
16726 xyes)
16727   cat >> confdefs.h <<EOF
16728 #define IA_GTK 1
16729 EOF
16730
16731
16732
16733 if true; then
16734   ENABLE_GTK_TRUE=
16735   ENABLE_GTK_FALSE='#'
16736 else
16737   ENABLE_GTK_TRUE='#'
16738   ENABLE_GTK_FALSE=
16739 fi
16740
16741    LIBS="$LIBS $GTK_LIBS"
16742     for f in $GTK_CFLAGS; do
16743     case ".$f" in
16744         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
16745         *)              CFLAGS="$CPPFLAGS $f" ;;
16746     esac
16747 done
16748
16749     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
16750
16751   ;;
16752 xdynamic)
16753   dynamic_targets="$dynamic_targets interface_g.\$(so)"
16754    if test "x$GCC" = xyes; then
16755                 for i in $GTK_LIBS; do
16756             case "x$i" in
16757                 x-rdynamic) ;;
16758                 *) g_so_libs="$g_so_libs $i" ;;
16759             esac
16760         done
16761     else
16762         g_so_libs="$GTK_LIBS"
16763     fi
16764     for f in $GTK_CFLAGS; do
16765     case ".$f" in
16766         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
16767         *)              CFLAGS="$CPPFLAGS $f" ;;
16768     esac
16769 done
16770
16771   ;;
16772 *)
16773
16774   ;;
16775 esac
16776
16777
16778
16779
16780
16781 if false; then
16782   ENABLE_SERVER_TRUE=
16783   ENABLE_SERVER_FALSE='#'
16784 else
16785   ENABLE_SERVER_TRUE='#'
16786   ENABLE_SERVER_FALSE=
16787 fi
16788
16789 # Check whether --enable-server or --disable-server was given.
16790 if test "${enable_server+set}" = set; then
16791   enableval="$enable_server"
16792   case "x$enable_server" in xyes|xdynamic)  ;; esac
16793 fi;
16794 case "x$enable_server" in
16795 xyes)
16796   cat >> confdefs.h <<EOF
16797 #define IA_SERVER 1
16798 EOF
16799
16800
16801
16802 if true; then
16803   ENABLE_SERVER_TRUE=
16804   ENABLE_SERVER_FALSE='#'
16805 else
16806   ENABLE_SERVER_TRUE='#'
16807   ENABLE_SERVER_FALSE=
16808 fi
16809
16810    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
16811
16812 for ac_header in sys/soundcard.h
16813 do
16814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16816   echo "$as_me:$LINENO: checking for $ac_header" >&5
16817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16819   echo $ECHO_N "(cached) $ECHO_C" >&6
16820 fi
16821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16823 else
16824   # Is the header compilable?
16825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 $ac_includes_default
16834 #include <$ac_header>
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838   (eval $ac_compile) 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } &&
16845          { ac_try='test -z "$ac_c_werror_flag"
16846                          || test ! -s conftest.err'
16847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848   (eval $ac_try) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; } &&
16852          { ac_try='test -s conftest.$ac_objext'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; }; then
16858   ac_header_compiler=yes
16859 else
16860   echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_header_compiler=no
16864 fi
16865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16867 echo "${ECHO_T}$ac_header_compiler" >&6
16868
16869 # Is the header present?
16870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878 #include <$ac_header>
16879 _ACEOF
16880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16882   ac_status=$?
16883   grep -v '^ *+' conftest.er1 >conftest.err
16884   rm -f conftest.er1
16885   cat conftest.err >&5
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); } >/dev/null; then
16888   if test -s conftest.err; then
16889     ac_cpp_err=$ac_c_preproc_warn_flag
16890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16891   else
16892     ac_cpp_err=
16893   fi
16894 else
16895   ac_cpp_err=yes
16896 fi
16897 if test -z "$ac_cpp_err"; then
16898   ac_header_preproc=yes
16899 else
16900   echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903   ac_header_preproc=no
16904 fi
16905 rm -f conftest.err conftest.$ac_ext
16906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16907 echo "${ECHO_T}$ac_header_preproc" >&6
16908
16909 # So?  What about this header?
16910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16911   yes:no: )
16912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16916     ac_header_preproc=yes
16917     ;;
16918   no:yes:* )
16919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16931     (
16932       cat <<\_ASBOX
16933 ## ------------------------------- ##
16934 ## Report this to root@mput.dip.jp ##
16935 ## ------------------------------- ##
16936 _ASBOX
16937     ) |
16938       sed "s/^/$as_me: WARNING:     /" >&2
16939     ;;
16940 esac
16941 echo "$as_me:$LINENO: checking for $ac_header" >&5
16942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16944   echo $ECHO_N "(cached) $ECHO_C" >&6
16945 else
16946   eval "$as_ac_Header=\$ac_header_preproc"
16947 fi
16948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16950
16951 fi
16952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16953   cat >>confdefs.h <<_ACEOF
16954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16955 _ACEOF
16956
16957 fi
16958
16959 done
16960
16961
16962   ;;
16963 xdynamic)
16964   dynamic_targets="$dynamic_targets interface_r.\$(so)"
16965
16966   ;;
16967 *)
16968
16969   ;;
16970 esac
16971
16972
16973
16974
16975
16976 if false; then
16977   ENABLE_ALSASEQ_TRUE=
16978   ENABLE_ALSASEQ_FALSE='#'
16979 else
16980   ENABLE_ALSASEQ_TRUE='#'
16981   ENABLE_ALSASEQ_FALSE=
16982 fi
16983
16984 # Check whether --enable-alsaseq or --disable-alsaseq was given.
16985 if test "${enable_alsaseq+set}" = set; then
16986   enableval="$enable_alsaseq"
16987   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
16988 fi;
16989 case "x$enable_alsaseq" in
16990 xyes)
16991   cat >> confdefs.h <<EOF
16992 #define IA_ALSASEQ 1
16993 EOF
16994
16995
16996
16997 if true; then
16998   ENABLE_ALSASEQ_TRUE=
16999   ENABLE_ALSASEQ_FALSE='#'
17000 else
17001   ENABLE_ALSASEQ_TRUE='#'
17002   ENABLE_ALSASEQ_FALSE=
17003 fi
17004
17005    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17006     alsa_save_CFLAGS="$CFLAGS"
17007 alsa_save_LDFLAGS="$LDFLAGS"
17008 alsa_save_LIBS="$LIBS"
17009 alsa_found=yes
17010
17011
17012 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17013 if test "${with_alsa_prefix+set}" = set; then
17014   withval="$with_alsa_prefix"
17015   alsa_prefix="$withval"
17016 else
17017   alsa_prefix=""
17018 fi;
17019
17020
17021 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17022 if test "${with_alsa_inc_prefix+set}" = set; then
17023   withval="$with_alsa_inc_prefix"
17024   alsa_inc_prefix="$withval"
17025 else
17026   alsa_inc_prefix=""
17027 fi;
17028
17029 # Check whether --enable-alsatest or --disable-alsatest was given.
17030 if test "${enable_alsatest+set}" = set; then
17031   enableval="$enable_alsatest"
17032   enable_alsatest=no
17033 else
17034   enable_alsatest=yes
17035 fi;
17036
17037 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17038 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17039 if test "$alsa_inc_prefix" != "" ; then
17040         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17041         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17042 fi
17043 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17044 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17045
17046 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17047 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17048 if test "$alsa_prefix" != "" ; then
17049         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17050         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17051 fi
17052
17053 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17054 LIBS=`echo $LIBS | sed 's/-lm//'`
17055 LIBS=`echo $LIBS | sed 's/-ldl//'`
17056 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17057 LIBS=`echo $LIBS | sed 's/  //'`
17058 LIBS="$ALSA_LIBS $LIBS"
17059 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17060 echo "${ECHO_T}$ALSA_LIBS" >&6
17061
17062 min_alsa_version=0.1.1
17063 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17064 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17065 no_alsa=""
17066     alsa_min_major_version=`echo $min_alsa_version | \
17067            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17068     alsa_min_minor_version=`echo $min_alsa_version | \
17069            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17070     alsa_min_micro_version=`echo $min_alsa_version | \
17071            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17072
17073
17074
17075
17076 ac_ext=c
17077 ac_cpp='$CPP $CPPFLAGS'
17078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17081
17082 cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h.  */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h.  */
17088
17089 #include <alsa/asoundlib.h>
17090
17091 int
17092 main ()
17093 {
17094
17095 /* ensure backward compatibility */
17096 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17097 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17098 #endif
17099 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17100 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17101 #endif
17102 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17103 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17104 #endif
17105
17106 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17107   exit(0);
17108 #  else
17109 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17110 #       error not present
17111 #    endif
17112
17113 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17114   exit(0);
17115 #   else
17116 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17117 #          error not present
17118 #      endif
17119
17120 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17121 #        error not present
17122 #      endif
17123 #    endif
17124 #  endif
17125 exit(0);
17126
17127   ;
17128   return 0;
17129 }
17130 _ACEOF
17131 rm -f conftest.$ac_objext
17132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133   (eval $ac_compile) 2>conftest.er1
17134   ac_status=$?
17135   grep -v '^ *+' conftest.er1 >conftest.err
17136   rm -f conftest.er1
17137   cat conftest.err >&5
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); } &&
17140          { ac_try='test -z "$ac_c_werror_flag"
17141                          || test ! -s conftest.err'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; } &&
17147          { ac_try='test -s conftest.$ac_objext'
17148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149   (eval $ac_try) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; }; then
17153   echo "$as_me:$LINENO: result: found." >&5
17154 echo "${ECHO_T}found." >&6
17155 else
17156   echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165
17166 #include <sys/asoundlib.h>
17167
17168 int
17169 main ()
17170 {
17171
17172 /* ensure backward compatibility */
17173 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17174 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17175 #endif
17176 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17177 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17178 #endif
17179 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17180 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17181 #endif
17182
17183 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17184   exit(0);
17185 #  else
17186 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17187 #       error not present
17188 #    endif
17189
17190 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17191   exit(0);
17192 #   else
17193 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17194 #          error not present
17195 #      endif
17196
17197 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17198 #        error not present
17199 #      endif
17200 #    endif
17201 #  endif
17202 exit(0);
17203
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210   (eval $ac_compile) 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag"
17218                          || test ! -s conftest.err'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; } &&
17224          { ac_try='test -s conftest.$ac_objext'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   echo "$as_me:$LINENO: result: found." >&5
17231 echo "${ECHO_T}found." >&6
17232 else
17233   echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17235
17236 echo "$as_me:$LINENO: result: not present." >&5
17237 echo "${ECHO_T}not present." >&6
17238    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17239 echo "${ECHO_T}libasound was not found anywhere." >&6
17240    alsa_found=no
17241 fi
17242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17243    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17244 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17245
17246 fi
17247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17248 ac_ext=c
17249 ac_cpp='$CPP $CPPFLAGS'
17250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17253
17254
17255
17256 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17257 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17258 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17259   echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261   ac_check_lib_save_LIBS=$LIBS
17262 LIBS="-lasound  $LIBS"
17263 cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h.  */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h.  */
17269
17270 /* Override any gcc2 internal prototype to avoid an error.  */
17271 #ifdef __cplusplus
17272 extern "C"
17273 #endif
17274 /* We use char because int might match the return type of a gcc2
17275    builtin and then its argument prototype would still apply.  */
17276 char snd_ctl_open ();
17277 int
17278 main ()
17279 {
17280 snd_ctl_open ();
17281   ;
17282   return 0;
17283 }
17284 _ACEOF
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287   (eval $ac_link) 2>conftest.er1
17288   ac_status=$?
17289   grep -v '^ *+' conftest.er1 >conftest.err
17290   rm -f conftest.er1
17291   cat conftest.err >&5
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -z "$ac_c_werror_flag"
17295                          || test ! -s conftest.err'
17296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297   (eval $ac_try) 2>&5
17298   ac_status=$?
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); }; } &&
17301          { ac_try='test -s conftest$ac_exeext'
17302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303   (eval $ac_try) 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); }; }; then
17307   ac_cv_lib_asound_snd_ctl_open=yes
17308 else
17309   echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_cv_lib_asound_snd_ctl_open=no
17313 fi
17314 rm -f conftest.err conftest.$ac_objext \
17315       conftest$ac_exeext conftest.$ac_ext
17316 LIBS=$ac_check_lib_save_LIBS
17317 fi
17318 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17319 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17320 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17321   cat >>confdefs.h <<_ACEOF
17322 #define HAVE_LIBASOUND 1
17323 _ACEOF
17324
17325   LIBS="-lasound $LIBS"
17326
17327 else
17328   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17329 echo "${ECHO_T}No linkable libasound was found." >&6
17330    alsa_found=no
17331
17332 fi
17333
17334
17335 if test "x$alsa_found" = "xyes" ; then
17336    :
17337    LIBS=`echo $LIBS | sed 's/-lasound//g'`
17338    LIBS=`echo $LIBS | sed 's/  //'`
17339    LIBS="-lasound $LIBS"
17340 else
17341    :
17342    CFLAGS="$alsa_save_CFLAGS"
17343    LDFLAGS="$alsa_save_LDFLAGS"
17344    LIBS="$alsa_save_LIBS"
17345    ALSA_CFLAGS=""
17346    ALSA_LIBS=""
17347 fi
17348
17349
17350
17351
17352
17353   ;;
17354 xdynamic)
17355   dynamic_targets="$dynamic_targets interface_A.\$(so)"
17356
17357   ;;
17358 *)
17359
17360   ;;
17361 esac
17362
17363
17364
17365
17366
17367 if false; then
17368   ENABLE_WINSYN_TRUE=
17369   ENABLE_WINSYN_FALSE='#'
17370 else
17371   ENABLE_WINSYN_TRUE='#'
17372   ENABLE_WINSYN_FALSE=
17373 fi
17374
17375 # Check whether --enable-winsyn or --disable-winsyn was given.
17376 if test "${enable_winsyn+set}" = set; then
17377   enableval="$enable_winsyn"
17378   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
17379 fi;
17380 case "x$enable_winsyn" in
17381 xyes)
17382   cat >> confdefs.h <<EOF
17383 #define IA_WINSYN 1
17384 EOF
17385
17386
17387
17388 if true; then
17389   ENABLE_WINSYN_TRUE=
17390   ENABLE_WINSYN_FALSE='#'
17391 else
17392   ENABLE_WINSYN_TRUE='#'
17393   ENABLE_WINSYN_FALSE=
17394 fi
17395
17396    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17397   ;;
17398 xdynamic)
17399   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17400
17401   ;;
17402 *)
17403
17404   ;;
17405 esac
17406
17407
17408
17409
17410
17411 if false; then
17412   ENABLE_PORTMIDISYN_TRUE=
17413   ENABLE_PORTMIDISYN_FALSE='#'
17414 else
17415   ENABLE_PORTMIDISYN_TRUE='#'
17416   ENABLE_PORTMIDISYN_FALSE=
17417 fi
17418
17419 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17420 if test "${enable_portmidisyn+set}" = set; then
17421   enableval="$enable_portmidisyn"
17422   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
17423 fi;
17424 case "x$enable_portmidisyn" in
17425 xyes)
17426   cat >> confdefs.h <<EOF
17427 #define IA_PORTMIDISYN 1
17428 EOF
17429
17430
17431
17432 if true; then
17433   ENABLE_PORTMIDISYN_TRUE=
17434   ENABLE_PORTMIDISYN_FALSE='#'
17435 else
17436   ENABLE_PORTMIDISYN_TRUE='#'
17437   ENABLE_PORTMIDISYN_FALSE=
17438 fi
17439
17440    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17441   ;;
17442 xdynamic)
17443   dynamic_targets="$dynamic_targets interface_P.\$(so)"
17444
17445   ;;
17446 *)
17447
17448   ;;
17449 esac
17450
17451
17452
17453
17454
17455 if false; then
17456   ENABLE_W32G_SYN_TRUE=
17457   ENABLE_W32G_SYN_FALSE='#'
17458 else
17459   ENABLE_W32G_SYN_TRUE='#'
17460   ENABLE_W32G_SYN_FALSE=
17461 fi
17462
17463 # Check whether --enable-winsyng or --disable-winsyng was given.
17464 if test "${enable_winsyng+set}" = set; then
17465   enableval="$enable_winsyng"
17466   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
17467 fi;
17468 case "x$enable_winsyng" in
17469 xyes)
17470   cat >> confdefs.h <<EOF
17471 #define IA_W32G_SYN 1
17472 EOF
17473
17474
17475
17476 if true; then
17477   ENABLE_W32G_SYN_TRUE=
17478   ENABLE_W32G_SYN_FALSE='#'
17479 else
17480   ENABLE_W32G_SYN_TRUE='#'
17481   ENABLE_W32G_SYN_FALSE=
17482 fi
17483
17484    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17485     lib_user32_opt='-luser32'
17486     LDFLAGS="-mwindows $LDFLAGS"
17487     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"
17488
17489   ;;
17490 xdynamic)
17491   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17492
17493   ;;
17494 *)
17495
17496   ;;
17497 esac
17498
17499
17500
17501
17502
17503
17504 if false; then
17505   ENABLE_W32GUI_TRUE=
17506   ENABLE_W32GUI_FALSE='#'
17507 else
17508   ENABLE_W32GUI_TRUE='#'
17509   ENABLE_W32GUI_FALSE=
17510 fi
17511
17512 # Check whether --enable-w32gui or --disable-w32gui was given.
17513 if test "${enable_w32gui+set}" = set; then
17514   enableval="$enable_w32gui"
17515   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
17516 fi;
17517 case "x$enable_w32gui" in
17518 xyes)
17519   cat >> confdefs.h <<EOF
17520 #define IA_W32GUI 1
17521 EOF
17522
17523
17524
17525 if true; then
17526   ENABLE_W32GUI_TRUE=
17527   ENABLE_W32GUI_FALSE='#'
17528 else
17529   ENABLE_W32GUI_TRUE='#'
17530   ENABLE_W32GUI_FALSE=
17531 fi
17532
17533    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17534     lib_user32_opt='-luser32'
17535     LDFLAGS="-mwindows $LDFLAGS"
17536     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"
17537
17538   ;;
17539 xdynamic)
17540   dynamic_targets="$dynamic_targets interface_w.\$(so)"
17541
17542   ;;
17543 *)
17544
17545   ;;
17546 esac
17547
17548
17549
17550
17551
17552 if false; then
17553   ENABLE_PLUGIN_TRUE=
17554   ENABLE_PLUGIN_FALSE='#'
17555 else
17556   ENABLE_PLUGIN_TRUE='#'
17557   ENABLE_PLUGIN_FALSE=
17558 fi
17559
17560 # Check whether --enable-ump or --disable-ump was given.
17561 if test "${enable_ump+set}" = set; then
17562   enableval="$enable_ump"
17563   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
17564         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
17565 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
17566    { (exit 1); exit 1; }; }
17567     fi
17568     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17569   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17570 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17571 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17572   echo $ECHO_N "(cached) $ECHO_C" >&6
17573 fi
17574 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17575 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17576 else
17577   # Is the header compilable?
17578 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17579 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17580 cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586 $ac_includes_default
17587 #include <X11/xpm.h>
17588 _ACEOF
17589 rm -f conftest.$ac_objext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17591   (eval $ac_compile) 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } &&
17598          { ac_try='test -z "$ac_c_werror_flag"
17599                          || test ! -s conftest.err'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; } &&
17605          { ac_try='test -s conftest.$ac_objext'
17606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607   (eval $ac_try) 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   ac_header_compiler=yes
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 ac_header_compiler=no
17617 fi
17618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17620 echo "${ECHO_T}$ac_header_compiler" >&6
17621
17622 # Is the header present?
17623 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17624 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h.  */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h.  */
17631 #include <X11/xpm.h>
17632 _ACEOF
17633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } >/dev/null; then
17641   if test -s conftest.err; then
17642     ac_cpp_err=$ac_c_preproc_warn_flag
17643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17644   else
17645     ac_cpp_err=
17646   fi
17647 else
17648   ac_cpp_err=yes
17649 fi
17650 if test -z "$ac_cpp_err"; then
17651   ac_header_preproc=yes
17652 else
17653   echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656   ac_header_preproc=no
17657 fi
17658 rm -f conftest.err conftest.$ac_ext
17659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17660 echo "${ECHO_T}$ac_header_preproc" >&6
17661
17662 # So?  What about this header?
17663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17664   yes:no: )
17665     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17666 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17667     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
17668 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
17669     ac_header_preproc=yes
17670     ;;
17671   no:yes:* )
17672     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
17673 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
17674     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
17675 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
17676     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
17677 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
17678     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
17679 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17680     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
17681 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
17682     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
17683 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
17684     (
17685       cat <<\_ASBOX
17686 ## ------------------------------- ##
17687 ## Report this to root@mput.dip.jp ##
17688 ## ------------------------------- ##
17689 _ASBOX
17690     ) |
17691       sed "s/^/$as_me: WARNING:     /" >&2
17692     ;;
17693 esac
17694 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17695 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17696 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   ac_cv_header_X11_xpm_h=$ac_header_preproc
17700 fi
17701 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17702 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17703
17704 fi
17705 if test $ac_cv_header_X11_xpm_h = yes; then
17706   :
17707 else
17708   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
17709 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
17710    { (exit 1); exit 1; }; }
17711 fi
17712
17713
17714     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17715 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
17716 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17717   echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719   ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-lXpm  $LIBS"
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727
17728 /* Override any gcc2 internal prototype to avoid an error.  */
17729 #ifdef __cplusplus
17730 extern "C"
17731 #endif
17732 /* We use char because int might match the return type of a gcc2
17733    builtin and then its argument prototype would still apply.  */
17734 char XpmCreatePixmapFromData ();
17735 int
17736 main ()
17737 {
17738 XpmCreatePixmapFromData ();
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745   (eval $ac_link) 2>conftest.er1
17746   ac_status=$?
17747   grep -v '^ *+' conftest.er1 >conftest.err
17748   rm -f conftest.er1
17749   cat conftest.err >&5
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); } &&
17752          { ac_try='test -z "$ac_c_werror_flag"
17753                          || test ! -s conftest.err'
17754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755   (eval $ac_try) 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; } &&
17759          { ac_try='test -s conftest$ac_exeext'
17760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761   (eval $ac_try) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17766 else
17767   echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17771 fi
17772 rm -f conftest.err conftest.$ac_objext \
17773       conftest$ac_exeext conftest.$ac_ext
17774 LIBS=$ac_check_lib_save_LIBS
17775 fi
17776 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17777 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
17778 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17779   :
17780 else
17781   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
17782 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
17783    { (exit 1); exit 1; }; }
17784 fi
17785
17786     if test "x$have_xext" = xyes; then
17787       lib_xext_opt=-lXext
17788     fi
17789     if test "x$have_xprelibs" = xyes; then
17790       lib_xprelibs_opt='-lSM -lICE'
17791     fi
17792     lib_xmu_opt=-lXmu
17793     lib_xt_opt=-lXt
17794    ;; esac
17795 fi;
17796 case "x$enable_ump" in
17797 xyes)
17798   cat >> confdefs.h <<EOF
17799 #define IA_PLUGIN 1
17800 EOF
17801
17802
17803
17804 if true; then
17805   ENABLE_PLUGIN_TRUE=
17806   ENABLE_PLUGIN_FALSE='#'
17807 else
17808   ENABLE_PLUGIN_TRUE='#'
17809   ENABLE_PLUGIN_FALSE=
17810 fi
17811
17812
17813   ;;
17814 xdynamic)
17815   dynamic_targets="$dynamic_targets interface_p.\$(so)"
17816
17817   ;;
17818 *)
17819
17820   ;;
17821 esac
17822
17823
17824
17825
17826 # Check whether --enable-offix or --disable-offix was given.
17827 if test "${enable_offix+set}" = set; then
17828   enableval="$enable_offix"
17829    if test "$enableval" = "yes"; then
17830       KEEPCPPFLAGS=$CPPFLAGS
17831       KEEPLIBS=$LIBS
17832       KEEPLDFLAGS=$LDFLAGS
17833       CPPFLAGS="$CPPFLAGS $offix_include_dir"
17834       LDFLAGS="$LDFLAGS $offix_lib_dir"
17835       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
17836       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
17837 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
17838 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
17839   echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841   ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-lDnd  $LIBS"
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849
17850 /* Override any gcc2 internal prototype to avoid an error.  */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 /* We use char because int might match the return type of a gcc2
17855    builtin and then its argument prototype would still apply.  */
17856 char DndInitialize ();
17857 int
17858 main ()
17859 {
17860 DndInitialize ();
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867   (eval $ac_link) 2>conftest.er1
17868   ac_status=$?
17869   grep -v '^ *+' conftest.er1 >conftest.err
17870   rm -f conftest.er1
17871   cat conftest.err >&5
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } &&
17874          { ac_try='test -z "$ac_c_werror_flag"
17875                          || test ! -s conftest.err'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; } &&
17881          { ac_try='test -s conftest$ac_exeext'
17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883   (eval $ac_try) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; }; then
17887   ac_cv_lib_Dnd_DndInitialize=yes
17888 else
17889   echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 ac_cv_lib_Dnd_DndInitialize=no
17893 fi
17894 rm -f conftest.err conftest.$ac_objext \
17895       conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17897 fi
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
17899 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
17900 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
17901
17902         LIBS=$KEEPLIBS
17903         lib_offix_opt="-lDnd"
17904
17905 cat >>confdefs.h <<\_ACEOF
17906 #define OFFIX 1
17907 _ACEOF
17908
17909
17910 else
17911    LDFLAGS=$KEEPLDFLAGS
17912         CPPFLAGS=$KEEPCPPFLAGS
17913         LIBS=$KEEPLIBS
17914
17915 fi
17916
17917     fi
17918
17919 fi;
17920
17921 # Check whether --enable-network or --disable-network was given.
17922 if test "${enable_network+set}" = set; then
17923   enableval="$enable_network"
17924    if test "$enableval" = "yes"; then
17925
17926 cat >>confdefs.h <<\_ACEOF
17927 #define SUPPORT_SOCKET 1
17928 _ACEOF
17929
17930     fi
17931 fi;
17932
17933
17934 if test "x$enable_network" = "xyes"; then
17935   ENABLE_NETWORK_TRUE=
17936   ENABLE_NETWORK_FALSE='#'
17937 else
17938   ENABLE_NETWORK_TRUE='#'
17939   ENABLE_NETWORK_FALSE=
17940 fi
17941
17942
17943 # Check whether --enable-spectrogram or --disable-spectrogram was given.
17944 if test "${enable_spectrogram+set}" = set; then
17945   enableval="$enable_spectrogram"
17946    if test "$enableval" = "yes"; then
17947       if test "x$with_x" != xyes; then
17948         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
17949 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
17950    { (exit 1); exit 1; }; }
17951       fi
17952
17953 cat >>confdefs.h <<\_ACEOF
17954 #define SUPPORT_SOUNDSPEC 1
17955 _ACEOF
17956
17957     fi
17958 fi;
17959
17960
17961 if test "x$enable_spectrogram" = "xyes"; then
17962   ENABLE_SOUND_SPEC_TRUE=
17963   ENABLE_SOUND_SPEC_FALSE='#'
17964 else
17965   ENABLE_SOUND_SPEC_TRUE='#'
17966   ENABLE_SOUND_SPEC_FALSE=
17967 fi
17968
17969
17970 # Check whether --enable-spline or --disable-spline was given.
17971 if test "${enable_spline+set}" = set; then
17972   enableval="$enable_spline"
17973    case "x$enableval" in
17974       xlinear)
17975
17976 cat >>confdefs.h <<\_ACEOF
17977 #define LINEAR_INTERPOLATION 1
17978 _ACEOF
17979
17980         ;;
17981       xcubic)
17982
17983 cat >>confdefs.h <<\_ACEOF
17984 #define CSPLINE_INTERPOLATION 1
17985 _ACEOF
17986
17987         ;;
17988       xlagrange)
17989
17990 cat >>confdefs.h <<\_ACEOF
17991 #define LAGRANGE_INTERPOLATION 1
17992 _ACEOF
17993
17994         ;;
17995       xnewton)
17996
17997 cat >>confdefs.h <<\_ACEOF
17998 #define NEWTON_INTERPOLATION 1
17999 _ACEOF
18000
18001         ;;
18002       xgauss)
18003
18004 cat >>confdefs.h <<\_ACEOF
18005 #define GAUSS_INTERPOLATION 1
18006 _ACEOF
18007
18008         ;;
18009       xno)
18010
18011 cat >>confdefs.h <<\_ACEOF
18012 #define NO_INTERPOLATION 1
18013 _ACEOF
18014
18015         ;;
18016       *)
18017         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18018 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18019    { (exit 1); exit 1; }; }
18020         ;;
18021     esac
18022 fi;
18023
18024 # Check whether --enable-wrd or --disable-wrd was given.
18025 if test "${enable_wrd+set}" = set; then
18026   enableval="$enable_wrd"
18027    if test "$enableval" = "yes"; then
18028       if test "x$with_x" != xyes; then
18029         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18030 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18031    { (exit 1); exit 1; }; }
18032       fi
18033
18034 cat >>confdefs.h <<\_ACEOF
18035 #define WRDT_X 1
18036 _ACEOF
18037
18038       enable_sherry_wrd=yes
18039       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18040 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18041 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18042   echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044   ac_check_lib_save_LIBS=$LIBS
18045 LIBS="-lz  $LIBS"
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h.  */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h.  */
18052
18053 /* Override any gcc2 internal prototype to avoid an error.  */
18054 #ifdef __cplusplus
18055 extern "C"
18056 #endif
18057 /* We use char because int might match the return type of a gcc2
18058    builtin and then its argument prototype would still apply.  */
18059 char zlibVersion ();
18060 int
18061 main ()
18062 {
18063 zlibVersion ();
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070   (eval $ac_link) 2>conftest.er1
18071   ac_status=$?
18072   grep -v '^ *+' conftest.er1 >conftest.err
18073   rm -f conftest.er1
18074   cat conftest.err >&5
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); } &&
18077          { ac_try='test -z "$ac_c_werror_flag"
18078                          || test ! -s conftest.err'
18079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080   (eval $ac_try) 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest$ac_exeext'
18085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086   (eval $ac_try) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; }; then
18090   ac_cv_lib_z_zlibVersion=yes
18091 else
18092   echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 ac_cv_lib_z_zlibVersion=no
18096 fi
18097 rm -f conftest.err conftest.$ac_objext \
18098       conftest$ac_exeext conftest.$ac_ext
18099 LIBS=$ac_check_lib_save_LIBS
18100 fi
18101 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18102 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18103 if test $ac_cv_lib_z_zlibVersion = yes; then
18104   :
18105 else
18106   enable_sherry_wrd=no
18107 fi
18108
18109       if test "${ac_cv_header_png_h+set}" = set; then
18110   echo "$as_me:$LINENO: checking for png.h" >&5
18111 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18112 if test "${ac_cv_header_png_h+set}" = set; then
18113   echo $ECHO_N "(cached) $ECHO_C" >&6
18114 fi
18115 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18116 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18117 else
18118   # Is the header compilable?
18119 echo "$as_me:$LINENO: checking png.h usability" >&5
18120 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18121 cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h.  */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h.  */
18127 $ac_includes_default
18128 #include <png.h>
18129 _ACEOF
18130 rm -f conftest.$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132   (eval $ac_compile) 2>conftest.er1
18133   ac_status=$?
18134   grep -v '^ *+' conftest.er1 >conftest.err
18135   rm -f conftest.er1
18136   cat conftest.err >&5
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); } &&
18139          { ac_try='test -z "$ac_c_werror_flag"
18140                          || test ! -s conftest.err'
18141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142   (eval $ac_try) 2>&5
18143   ac_status=$?
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); }; } &&
18146          { ac_try='test -s conftest.$ac_objext'
18147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148   (eval $ac_try) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); }; }; then
18152   ac_header_compiler=yes
18153 else
18154   echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18156
18157 ac_header_compiler=no
18158 fi
18159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18161 echo "${ECHO_T}$ac_header_compiler" >&6
18162
18163 # Is the header present?
18164 echo "$as_me:$LINENO: checking png.h presence" >&5
18165 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172 #include <png.h>
18173 _ACEOF
18174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18176   ac_status=$?
18177   grep -v '^ *+' conftest.er1 >conftest.err
18178   rm -f conftest.er1
18179   cat conftest.err >&5
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); } >/dev/null; then
18182   if test -s conftest.err; then
18183     ac_cpp_err=$ac_c_preproc_warn_flag
18184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18185   else
18186     ac_cpp_err=
18187   fi
18188 else
18189   ac_cpp_err=yes
18190 fi
18191 if test -z "$ac_cpp_err"; then
18192   ac_header_preproc=yes
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197   ac_header_preproc=no
18198 fi
18199 rm -f conftest.err conftest.$ac_ext
18200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18201 echo "${ECHO_T}$ac_header_preproc" >&6
18202
18203 # So?  What about this header?
18204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18205   yes:no: )
18206     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18207 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18208     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18209 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18210     ac_header_preproc=yes
18211     ;;
18212   no:yes:* )
18213     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18214 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18215     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
18216 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
18217     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18218 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18219     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
18220 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18221     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18222 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18223     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18224 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18225     (
18226       cat <<\_ASBOX
18227 ## ------------------------------- ##
18228 ## Report this to root@mput.dip.jp ##
18229 ## ------------------------------- ##
18230 _ASBOX
18231     ) |
18232       sed "s/^/$as_me: WARNING:     /" >&2
18233     ;;
18234 esac
18235 echo "$as_me:$LINENO: checking for png.h" >&5
18236 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18237 if test "${ac_cv_header_png_h+set}" = set; then
18238   echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240   ac_cv_header_png_h=$ac_header_preproc
18241 fi
18242 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18243 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18244
18245 fi
18246 if test $ac_cv_header_png_h = yes; then
18247   :
18248 else
18249   enable_sherry_wrd=no
18250 fi
18251
18252
18253       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18254 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18255 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18256   echo $ECHO_N "(cached) $ECHO_C" >&6
18257 else
18258   ac_check_lib_save_LIBS=$LIBS
18259 LIBS="-lpng -lz $LIBS"
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266
18267 /* Override any gcc2 internal prototype to avoid an error.  */
18268 #ifdef __cplusplus
18269 extern "C"
18270 #endif
18271 /* We use char because int might match the return type of a gcc2
18272    builtin and then its argument prototype would still apply.  */
18273 char png_init_io ();
18274 int
18275 main ()
18276 {
18277 png_init_io ();
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18284   (eval $ac_link) 2>conftest.er1
18285   ac_status=$?
18286   grep -v '^ *+' conftest.er1 >conftest.err
18287   rm -f conftest.er1
18288   cat conftest.err >&5
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); } &&
18291          { ac_try='test -z "$ac_c_werror_flag"
18292                          || test ! -s conftest.err'
18293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294   (eval $ac_try) 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; } &&
18298          { ac_try='test -s conftest$ac_exeext'
18299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300   (eval $ac_try) 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; }; then
18304   ac_cv_lib_png_png_init_io=yes
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309 ac_cv_lib_png_png_init_io=no
18310 fi
18311 rm -f conftest.err conftest.$ac_objext \
18312       conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18314 fi
18315 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18316 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18317 if test $ac_cv_lib_png_png_init_io = yes; then
18318   :
18319 else
18320   enable_sherry_wrd=no
18321 fi
18322
18323       if test "$enable_sherry_wrd" = yes; then
18324
18325 cat >>confdefs.h <<\_ACEOF
18326 #define ENABLE_SHERRY 1
18327 _ACEOF
18328
18329         lib_zip_opt=-lz
18330         lib_png_opt=-lpng
18331       else
18332          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18333 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18334       fi
18335       if test "x$have_xext" = xyes; then
18336         lib_xext_opt=-lXext
18337       fi
18338     fi
18339 fi;
18340
18341
18342
18343 #
18344 # Finish up
18345 #
18346
18347
18348
18349 if test "x$enable_wrd" = "xyes"; then
18350   ENABLE_WRD_TRUE=
18351   ENABLE_WRD_FALSE='#'
18352 else
18353   ENABLE_WRD_TRUE='#'
18354   ENABLE_WRD_FALSE=
18355 fi
18356
18357
18358
18359
18360 if test "x$CYGNUS" = xyes; then
18361   CYGNUS_TRUE=
18362   CYGNUS_FALSE='#'
18363 else
18364   CYGNUS_TRUE='#'
18365   CYGNUS_FALSE=
18366 fi
18367
18368
18369
18370 if test "x$MINGW" = xyes; then
18371   MINGW_TRUE=
18372   MINGW_FALSE='#'
18373 else
18374   MINGW_TRUE='#'
18375   MINGW_FALSE=
18376 fi
18377
18378
18379
18380 if test "x$W32READDIR" = "xyes"; then
18381   W32READDIR_TRUE=
18382   W32READDIR_FALSE='#'
18383 else
18384   W32READDIR_TRUE='#'
18385   W32READDIR_FALSE=
18386 fi
18387
18388
18389 rm -f wordtmp >/dev/null 2>&1
18390 val=''
18391 for f in $LDFLAGS; do
18392   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18393   :
18394 else
18395   echo $f >>wordtmp; val="$val $f"
18396 fi
18397
18398 done
18399 LDFLAGS="$val"
18400 rm -f wordtmp >/dev/null 2>&1
18401
18402 rm -f wordtmp >/dev/null 2>&1
18403 val=''
18404 for f in $SHLDFLAGS; do
18405   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18406   :
18407 else
18408   echo $f >>wordtmp; val="$val $f"
18409 fi
18410
18411 done
18412 SHLDFLAGS="$val"
18413 rm -f wordtmp >/dev/null 2>&1
18414
18415 rm -f wordtmp >/dev/null 2>&1
18416 val=''
18417 for f in $EXTRACFLAGS $CFLAGS; do
18418   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18419   :
18420 else
18421   echo $f >>wordtmp; val="$val $f"
18422 fi
18423
18424 done
18425 CFLAGS="$val"
18426 rm -f wordtmp >/dev/null 2>&1
18427
18428 rm -f wordtmp >/dev/null 2>&1
18429 val=''
18430 for f in $CPPFLAGS $EXTRADEFS; do
18431   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18432   :
18433 else
18434   echo $f >>wordtmp; val="$val $f"
18435 fi
18436
18437 done
18438 CPPFLAGS="$val"
18439 rm -f wordtmp >/dev/null 2>&1
18440
18441
18442 if test "x$oss_device" != x; then
18443
18444 cat >>confdefs.h <<_ACEOF
18445 #define OSS_DEVICE "$oss_device"
18446 _ACEOF
18447
18448 fi
18449
18450 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18451
18452 cat >>confdefs.h <<_ACEOF
18453 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18454 _ACEOF
18455
18456 fi
18457
18458 if test "x$with_x" = xyes; then
18459     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/"`
18460 fi
18461 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18462 SHLD="$SHLD $SHLDFLAGS"
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482                                                                                                                                                                                     ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
18483
18484 cat >confcache <<\_ACEOF
18485 # This file is a shell script that caches the results of configure
18486 # tests run on this system so they can be shared between configure
18487 # scripts and configure runs, see configure's option --config-cache.
18488 # It is not useful on other systems.  If it contains results you don't
18489 # want to keep, you may remove or edit it.
18490 #
18491 # config.status only pays attention to the cache file if you give it
18492 # the --recheck option to rerun configure.
18493 #
18494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18496 # following values.
18497
18498 _ACEOF
18499
18500 # The following way of writing the cache mishandles newlines in values,
18501 # but we know of no workaround that is simple, portable, and efficient.
18502 # So, don't put newlines in cache variables' values.
18503 # Ultrix sh set writes to stderr and can't be redirected directly,
18504 # and sets the high bit in the cache file unless we assign to the vars.
18505 {
18506   (set) 2>&1 |
18507     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18508     *ac_space=\ *)
18509       # `set' does not quote correctly, so add quotes (double-quote
18510       # substitution turns \\\\ into \\, and sed turns \\ into \).
18511       sed -n \
18512         "s/'/'\\\\''/g;
18513           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18514       ;;
18515     *)
18516       # `set' quotes correctly as required by POSIX, so do not add quotes.
18517       sed -n \
18518         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18519       ;;
18520     esac;
18521 } |
18522   sed '
18523      t clear
18524      : clear
18525      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18526      t end
18527      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18528      : end' >>confcache
18529 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18530   if test -w $cache_file; then
18531     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18532     cat confcache >$cache_file
18533   else
18534     echo "not updating unwritable cache $cache_file"
18535   fi
18536 fi
18537 rm -f confcache
18538
18539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18540 # Let make expand exec_prefix.
18541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18542
18543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18545 # trailing colons and then remove the whole line if VPATH becomes empty
18546 # (actually we leave an empty line to preserve line numbers).
18547 if test "x$srcdir" = x.; then
18548   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18549 s/:*\$(srcdir):*/:/;
18550 s/:*\${srcdir}:*/:/;
18551 s/:*@srcdir@:*/:/;
18552 s/^\([^=]*=[     ]*\):*/\1/;
18553 s/:*$//;
18554 s/^[^=]*=[       ]*$//;
18555 }'
18556 fi
18557
18558 DEFS=-DHAVE_CONFIG_H
18559
18560 ac_libobjs=
18561 ac_ltlibobjs=
18562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18563   # 1. Remove the extension, and $U if already installed.
18564   ac_i=`echo "$ac_i" |
18565          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18566   # 2. Add them.
18567   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18568   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18569 done
18570 LIBOBJS=$ac_libobjs
18571
18572 LTLIBOBJS=$ac_ltlibobjs
18573
18574
18575 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18576   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18577 Usually this means the macro was only invoked conditionally." >&5
18578 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18579 Usually this means the macro was only invoked conditionally." >&2;}
18580    { (exit 1); exit 1; }; }
18581 fi
18582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18583   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18584 Usually this means the macro was only invoked conditionally." >&5
18585 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18586 Usually this means the macro was only invoked conditionally." >&2;}
18587    { (exit 1); exit 1; }; }
18588 fi
18589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18590   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18591 Usually this means the macro was only invoked conditionally." >&5
18592 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18593 Usually this means the macro was only invoked conditionally." >&2;}
18594    { (exit 1); exit 1; }; }
18595 fi
18596 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18597   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18598 Usually this means the macro was only invoked conditionally." >&5
18599 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18600 Usually this means the macro was only invoked conditionally." >&2;}
18601    { (exit 1); exit 1; }; }
18602 fi
18603 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18604   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18605 Usually this means the macro was only invoked conditionally." >&5
18606 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18607 Usually this means the macro was only invoked conditionally." >&2;}
18608    { (exit 1); exit 1; }; }
18609 fi
18610 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18611   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18612 Usually this means the macro was only invoked conditionally." >&5
18613 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18614 Usually this means the macro was only invoked conditionally." >&2;}
18615    { (exit 1); exit 1; }; }
18616 fi
18617 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18618   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18619 Usually this means the macro was only invoked conditionally." >&5
18620 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18621 Usually this means the macro was only invoked conditionally." >&2;}
18622    { (exit 1); exit 1; }; }
18623 fi
18624 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18625   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18626 Usually this means the macro was only invoked conditionally." >&5
18627 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18628 Usually this means the macro was only invoked conditionally." >&2;}
18629    { (exit 1); exit 1; }; }
18630 fi
18631 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18632   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18633 Usually this means the macro was only invoked conditionally." >&5
18634 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18635 Usually this means the macro was only invoked conditionally." >&2;}
18636    { (exit 1); exit 1; }; }
18637 fi
18638 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18639   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18640 Usually this means the macro was only invoked conditionally." >&5
18641 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18642 Usually this means the macro was only invoked conditionally." >&2;}
18643    { (exit 1); exit 1; }; }
18644 fi
18645 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18646   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18647 Usually this means the macro was only invoked conditionally." >&5
18648 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18649 Usually this means the macro was only invoked conditionally." >&2;}
18650    { (exit 1); exit 1; }; }
18651 fi
18652 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18653   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18654 Usually this means the macro was only invoked conditionally." >&5
18655 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18656 Usually this means the macro was only invoked conditionally." >&2;}
18657    { (exit 1); exit 1; }; }
18658 fi
18659 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18660   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18661 Usually this means the macro was only invoked conditionally." >&5
18662 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18663 Usually this means the macro was only invoked conditionally." >&2;}
18664    { (exit 1); exit 1; }; }
18665 fi
18666 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
18667   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18668 Usually this means the macro was only invoked conditionally." >&5
18669 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18670 Usually this means the macro was only invoked conditionally." >&2;}
18671    { (exit 1); exit 1; }; }
18672 fi
18673 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18674   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18675 Usually this means the macro was only invoked conditionally." >&5
18676 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18677 Usually this means the macro was only invoked conditionally." >&2;}
18678    { (exit 1); exit 1; }; }
18679 fi
18680 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18681   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18682 Usually this means the macro was only invoked conditionally." >&5
18683 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18684 Usually this means the macro was only invoked conditionally." >&2;}
18685    { (exit 1); exit 1; }; }
18686 fi
18687 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18688   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18689 Usually this means the macro was only invoked conditionally." >&5
18690 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18691 Usually this means the macro was only invoked conditionally." >&2;}
18692    { (exit 1); exit 1; }; }
18693 fi
18694 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18695   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18696 Usually this means the macro was only invoked conditionally." >&5
18697 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18698 Usually this means the macro was only invoked conditionally." >&2;}
18699    { (exit 1); exit 1; }; }
18700 fi
18701 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18702   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18703 Usually this means the macro was only invoked conditionally." >&5
18704 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18705 Usually this means the macro was only invoked conditionally." >&2;}
18706    { (exit 1); exit 1; }; }
18707 fi
18708 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18709   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18710 Usually this means the macro was only invoked conditionally." >&5
18711 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18712 Usually this means the macro was only invoked conditionally." >&2;}
18713    { (exit 1); exit 1; }; }
18714 fi
18715 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
18716   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18717 Usually this means the macro was only invoked conditionally." >&5
18718 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18719 Usually this means the macro was only invoked conditionally." >&2;}
18720    { (exit 1); exit 1; }; }
18721 fi
18722 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18723   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18724 Usually this means the macro was only invoked conditionally." >&5
18725 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18726 Usually this means the macro was only invoked conditionally." >&2;}
18727    { (exit 1); exit 1; }; }
18728 fi
18729 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18730   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18731 Usually this means the macro was only invoked conditionally." >&5
18732 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18733 Usually this means the macro was only invoked conditionally." >&2;}
18734    { (exit 1); exit 1; }; }
18735 fi
18736 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18737   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18738 Usually this means the macro was only invoked conditionally." >&5
18739 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18740 Usually this means the macro was only invoked conditionally." >&2;}
18741    { (exit 1); exit 1; }; }
18742 fi
18743 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18744   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18745 Usually this means the macro was only invoked conditionally." >&5
18746 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18747 Usually this means the macro was only invoked conditionally." >&2;}
18748    { (exit 1); exit 1; }; }
18749 fi
18750 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18751   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18752 Usually this means the macro was only invoked conditionally." >&5
18753 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18754 Usually this means the macro was only invoked conditionally." >&2;}
18755    { (exit 1); exit 1; }; }
18756 fi
18757 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18758   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18759 Usually this means the macro was only invoked conditionally." >&5
18760 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18761 Usually this means the macro was only invoked conditionally." >&2;}
18762    { (exit 1); exit 1; }; }
18763 fi
18764 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18765   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18766 Usually this means the macro was only invoked conditionally." >&5
18767 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18768 Usually this means the macro was only invoked conditionally." >&2;}
18769    { (exit 1); exit 1; }; }
18770 fi
18771 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18772   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18773 Usually this means the macro was only invoked conditionally." >&5
18774 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18775 Usually this means the macro was only invoked conditionally." >&2;}
18776    { (exit 1); exit 1; }; }
18777 fi
18778 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18779   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18780 Usually this means the macro was only invoked conditionally." >&5
18781 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18782 Usually this means the macro was only invoked conditionally." >&2;}
18783    { (exit 1); exit 1; }; }
18784 fi
18785 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18786   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18787 Usually this means the macro was only invoked conditionally." >&5
18788 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18789 Usually this means the macro was only invoked conditionally." >&2;}
18790    { (exit 1); exit 1; }; }
18791 fi
18792 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18793   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18794 Usually this means the macro was only invoked conditionally." >&5
18795 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18796 Usually this means the macro was only invoked conditionally." >&2;}
18797    { (exit 1); exit 1; }; }
18798 fi
18799 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18800   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18801 Usually this means the macro was only invoked conditionally." >&5
18802 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18803 Usually this means the macro was only invoked conditionally." >&2;}
18804    { (exit 1); exit 1; }; }
18805 fi
18806 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18807   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18808 Usually this means the macro was only invoked conditionally." >&5
18809 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18810 Usually this means the macro was only invoked conditionally." >&2;}
18811    { (exit 1); exit 1; }; }
18812 fi
18813 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18814   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18815 Usually this means the macro was only invoked conditionally." >&5
18816 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18817 Usually this means the macro was only invoked conditionally." >&2;}
18818    { (exit 1); exit 1; }; }
18819 fi
18820 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18821   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18822 Usually this means the macro was only invoked conditionally." >&5
18823 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18824 Usually this means the macro was only invoked conditionally." >&2;}
18825    { (exit 1); exit 1; }; }
18826 fi
18827 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18828   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18829 Usually this means the macro was only invoked conditionally." >&5
18830 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18831 Usually this means the macro was only invoked conditionally." >&2;}
18832    { (exit 1); exit 1; }; }
18833 fi
18834 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18835   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18836 Usually this means the macro was only invoked conditionally." >&5
18837 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18838 Usually this means the macro was only invoked conditionally." >&2;}
18839    { (exit 1); exit 1; }; }
18840 fi
18841 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18842   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18843 Usually this means the macro was only invoked conditionally." >&5
18844 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18845 Usually this means the macro was only invoked conditionally." >&2;}
18846    { (exit 1); exit 1; }; }
18847 fi
18848 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
18849   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
18850 Usually this means the macro was only invoked conditionally." >&5
18851 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
18852 Usually this means the macro was only invoked conditionally." >&2;}
18853    { (exit 1); exit 1; }; }
18854 fi
18855 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
18856   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18857 Usually this means the macro was only invoked conditionally." >&5
18858 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18859 Usually this means the macro was only invoked conditionally." >&2;}
18860    { (exit 1); exit 1; }; }
18861 fi
18862 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
18863   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
18864 Usually this means the macro was only invoked conditionally." >&5
18865 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
18866 Usually this means the macro was only invoked conditionally." >&2;}
18867    { (exit 1); exit 1; }; }
18868 fi
18869 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
18870   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
18871 Usually this means the macro was only invoked conditionally." >&5
18872 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
18873 Usually this means the macro was only invoked conditionally." >&2;}
18874    { (exit 1); exit 1; }; }
18875 fi
18876 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18877   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
18878 Usually this means the macro was only invoked conditionally." >&5
18879 echo "$as_me: error: conditional \"MINGW\" was never defined.
18880 Usually this means the macro was only invoked conditionally." >&2;}
18881    { (exit 1); exit 1; }; }
18882 fi
18883 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
18884   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
18885 Usually this means the macro was only invoked conditionally." >&5
18886 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
18887 Usually this means the macro was only invoked conditionally." >&2;}
18888    { (exit 1); exit 1; }; }
18889 fi
18890
18891 : ${CONFIG_STATUS=./config.status}
18892 ac_clean_files_save=$ac_clean_files
18893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18894 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18895 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18896 cat >$CONFIG_STATUS <<_ACEOF
18897 #! $SHELL
18898 # Generated by $as_me.
18899 # Run this file to recreate the current configuration.
18900 # Compiler output produced by configure, useful for debugging
18901 # configure, is in config.log if it exists.
18902
18903 debug=false
18904 ac_cs_recheck=false
18905 ac_cs_silent=false
18906 SHELL=\${CONFIG_SHELL-$SHELL}
18907 _ACEOF
18908
18909 cat >>$CONFIG_STATUS <<\_ACEOF
18910 ## --------------------- ##
18911 ## M4sh Initialization.  ##
18912 ## --------------------- ##
18913
18914 # Be Bourne compatible
18915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18916   emulate sh
18917   NULLCMD=:
18918   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18919   # is contrary to our usage.  Disable this feature.
18920   alias -g '${1+"$@"}'='"$@"'
18921 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18922   set -o posix
18923 fi
18924 DUALCASE=1; export DUALCASE # for MKS sh
18925
18926 # Support unset when possible.
18927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18928   as_unset=unset
18929 else
18930   as_unset=false
18931 fi
18932
18933
18934 # Work around bugs in pre-3.0 UWIN ksh.
18935 $as_unset ENV MAIL MAILPATH
18936 PS1='$ '
18937 PS2='> '
18938 PS4='+ '
18939
18940 # NLS nuisances.
18941 for as_var in \
18942   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18943   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18944   LC_TELEPHONE LC_TIME
18945 do
18946   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18947     eval $as_var=C; export $as_var
18948   else
18949     $as_unset $as_var
18950   fi
18951 done
18952
18953 # Required to use basename.
18954 if expr a : '\(a\)' >/dev/null 2>&1; then
18955   as_expr=expr
18956 else
18957   as_expr=false
18958 fi
18959
18960 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18961   as_basename=basename
18962 else
18963   as_basename=false
18964 fi
18965
18966
18967 # Name of the executable.
18968 as_me=`$as_basename "$0" ||
18969 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18970          X"$0" : 'X\(//\)$' \| \
18971          X"$0" : 'X\(/\)$' \| \
18972          .     : '\(.\)' 2>/dev/null ||
18973 echo X/"$0" |
18974     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18975           /^X\/\(\/\/\)$/{ s//\1/; q; }
18976           /^X\/\(\/\).*/{ s//\1/; q; }
18977           s/.*/./; q'`
18978
18979
18980 # PATH needs CR, and LINENO needs CR and PATH.
18981 # Avoid depending upon Character Ranges.
18982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18985 as_cr_digits='0123456789'
18986 as_cr_alnum=$as_cr_Letters$as_cr_digits
18987
18988 # The user is always right.
18989 if test "${PATH_SEPARATOR+set}" != set; then
18990   echo "#! /bin/sh" >conf$$.sh
18991   echo  "exit 0"   >>conf$$.sh
18992   chmod +x conf$$.sh
18993   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18994     PATH_SEPARATOR=';'
18995   else
18996     PATH_SEPARATOR=:
18997   fi
18998   rm -f conf$$.sh
18999 fi
19000
19001
19002   as_lineno_1=$LINENO
19003   as_lineno_2=$LINENO
19004   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19005   test "x$as_lineno_1" != "x$as_lineno_2" &&
19006   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19007   # Find who we are.  Look in the path if we contain no path at all
19008   # relative or not.
19009   case $0 in
19010     *[\\/]* ) as_myself=$0 ;;
19011     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19012 for as_dir in $PATH
19013 do
19014   IFS=$as_save_IFS
19015   test -z "$as_dir" && as_dir=.
19016   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19017 done
19018
19019        ;;
19020   esac
19021   # We did not find ourselves, most probably we were run as `sh COMMAND'
19022   # in which case we are not to be found in the path.
19023   if test "x$as_myself" = x; then
19024     as_myself=$0
19025   fi
19026   if test ! -f "$as_myself"; then
19027     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19028 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19029    { (exit 1); exit 1; }; }
19030   fi
19031   case $CONFIG_SHELL in
19032   '')
19033     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19035 do
19036   IFS=$as_save_IFS
19037   test -z "$as_dir" && as_dir=.
19038   for as_base in sh bash ksh sh5; do
19039          case $as_dir in
19040          /*)
19041            if ("$as_dir/$as_base" -c '
19042   as_lineno_1=$LINENO
19043   as_lineno_2=$LINENO
19044   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19045   test "x$as_lineno_1" != "x$as_lineno_2" &&
19046   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19047              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19048              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19049              CONFIG_SHELL=$as_dir/$as_base
19050              export CONFIG_SHELL
19051              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19052            fi;;
19053          esac
19054        done
19055 done
19056 ;;
19057   esac
19058
19059   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19060   # uniformly replaced by the line number.  The first 'sed' inserts a
19061   # line-number line before each line; the second 'sed' does the real
19062   # work.  The second script uses 'N' to pair each line-number line
19063   # with the numbered line, and appends trailing '-' during
19064   # substitution so that $LINENO is not a special case at line end.
19065   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19066   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19067   sed '=' <$as_myself |
19068     sed '
19069       N
19070       s,$,-,
19071       : loop
19072       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19073       t loop
19074       s,-$,,
19075       s,^['$as_cr_digits']*\n,,
19076     ' >$as_me.lineno &&
19077   chmod +x $as_me.lineno ||
19078     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19079 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19080    { (exit 1); exit 1; }; }
19081
19082   # Don't try to exec as it changes $[0], causing all sort of problems
19083   # (the dirname of $[0] is not the place where we might find the
19084   # original and so on.  Autoconf is especially sensible to this).
19085   . ./$as_me.lineno
19086   # Exit status is that of the last command.
19087   exit
19088 }
19089
19090
19091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19092   *c*,-n*) ECHO_N= ECHO_C='
19093 ' ECHO_T='      ' ;;
19094   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19095   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19096 esac
19097
19098 if expr a : '\(a\)' >/dev/null 2>&1; then
19099   as_expr=expr
19100 else
19101   as_expr=false
19102 fi
19103
19104 rm -f conf$$ conf$$.exe conf$$.file
19105 echo >conf$$.file
19106 if ln -s conf$$.file conf$$ 2>/dev/null; then
19107   # We could just check for DJGPP; but this test a) works b) is more generic
19108   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19109   if test -f conf$$.exe; then
19110     # Don't use ln at all; we don't have any links
19111     as_ln_s='cp -p'
19112   else
19113     as_ln_s='ln -s'
19114   fi
19115 elif ln conf$$.file conf$$ 2>/dev/null; then
19116   as_ln_s=ln
19117 else
19118   as_ln_s='cp -p'
19119 fi
19120 rm -f conf$$ conf$$.exe conf$$.file
19121
19122 if mkdir -p . 2>/dev/null; then
19123   as_mkdir_p=:
19124 else
19125   test -d ./-p && rmdir ./-p
19126   as_mkdir_p=false
19127 fi
19128
19129 as_executable_p="test -f"
19130
19131 # Sed expression to map a string onto a valid CPP name.
19132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19133
19134 # Sed expression to map a string onto a valid variable name.
19135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19136
19137
19138 # IFS
19139 # We need space, tab and new line, in precisely that order.
19140 as_nl='
19141 '
19142 IFS="   $as_nl"
19143
19144 # CDPATH.
19145 $as_unset CDPATH
19146
19147 exec 6>&1
19148
19149 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19150 # report actual input values of CONFIG_FILES etc. instead of their
19151 # values after options handling.  Logging --version etc. is OK.
19152 exec 5>>config.log
19153 {
19154   echo
19155   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19156 ## Running $as_me. ##
19157 _ASBOX
19158 } >&5
19159 cat >&5 <<_CSEOF
19160
19161 This file was extended by TiMidity++ $as_me current, which was
19162 generated by GNU Autoconf 2.59.  Invocation command line was
19163
19164   CONFIG_FILES    = $CONFIG_FILES
19165   CONFIG_HEADERS  = $CONFIG_HEADERS
19166   CONFIG_LINKS    = $CONFIG_LINKS
19167   CONFIG_COMMANDS = $CONFIG_COMMANDS
19168   $ $0 $@
19169
19170 _CSEOF
19171 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19172 echo >&5
19173 _ACEOF
19174
19175 # Files that config.status was made for.
19176 if test -n "$ac_config_files"; then
19177   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19178 fi
19179
19180 if test -n "$ac_config_headers"; then
19181   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19182 fi
19183
19184 if test -n "$ac_config_links"; then
19185   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19186 fi
19187
19188 if test -n "$ac_config_commands"; then
19189   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19190 fi
19191
19192 cat >>$CONFIG_STATUS <<\_ACEOF
19193
19194 ac_cs_usage="\
19195 \`$as_me' instantiates files from templates according to the
19196 current configuration.
19197
19198 Usage: $0 [OPTIONS] [FILE]...
19199
19200   -h, --help       print this help, then exit
19201   -V, --version    print version number, then exit
19202   -q, --quiet      do not print progress messages
19203   -d, --debug      don't remove temporary files
19204       --recheck    update $as_me by reconfiguring in the same conditions
19205   --file=FILE[:TEMPLATE]
19206                    instantiate the configuration file FILE
19207   --header=FILE[:TEMPLATE]
19208                    instantiate the configuration header FILE
19209
19210 Configuration files:
19211 $config_files
19212
19213 Configuration headers:
19214 $config_headers
19215
19216 Configuration commands:
19217 $config_commands
19218
19219 Report bugs to <bug-autoconf@gnu.org>."
19220 _ACEOF
19221
19222 cat >>$CONFIG_STATUS <<_ACEOF
19223 ac_cs_version="\\
19224 TiMidity++ config.status current
19225 configured by $0, generated by GNU Autoconf 2.59,
19226   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19227
19228 Copyright (C) 2003 Free Software Foundation, Inc.
19229 This config.status script is free software; the Free Software Foundation
19230 gives unlimited permission to copy, distribute and modify it."
19231 srcdir=$srcdir
19232 INSTALL="$INSTALL"
19233 _ACEOF
19234
19235 cat >>$CONFIG_STATUS <<\_ACEOF
19236 # If no file are specified by the user, then we need to provide default
19237 # value.  By we need to know if files were specified by the user.
19238 ac_need_defaults=:
19239 while test $# != 0
19240 do
19241   case $1 in
19242   --*=*)
19243     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19244     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19245     ac_shift=:
19246     ;;
19247   -*)
19248     ac_option=$1
19249     ac_optarg=$2
19250     ac_shift=shift
19251     ;;
19252   *) # This is not an option, so the user has probably given explicit
19253      # arguments.
19254      ac_option=$1
19255      ac_need_defaults=false;;
19256   esac
19257
19258   case $ac_option in
19259   # Handling of the options.
19260 _ACEOF
19261 cat >>$CONFIG_STATUS <<\_ACEOF
19262   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19263     ac_cs_recheck=: ;;
19264   --version | --vers* | -V )
19265     echo "$ac_cs_version"; exit 0 ;;
19266   --he | --h)
19267     # Conflict between --help and --header
19268     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19269 Try \`$0 --help' for more information." >&5
19270 echo "$as_me: error: ambiguous option: $1
19271 Try \`$0 --help' for more information." >&2;}
19272    { (exit 1); exit 1; }; };;
19273   --help | --hel | -h )
19274     echo "$ac_cs_usage"; exit 0 ;;
19275   --debug | --d* | -d )
19276     debug=: ;;
19277   --file | --fil | --fi | --f )
19278     $ac_shift
19279     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19280     ac_need_defaults=false;;
19281   --header | --heade | --head | --hea )
19282     $ac_shift
19283     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19284     ac_need_defaults=false;;
19285   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19286   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19287     ac_cs_silent=: ;;
19288
19289   # This is an error.
19290   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19291 Try \`$0 --help' for more information." >&5
19292 echo "$as_me: error: unrecognized option: $1
19293 Try \`$0 --help' for more information." >&2;}
19294    { (exit 1); exit 1; }; } ;;
19295
19296   *) ac_config_targets="$ac_config_targets $1" ;;
19297
19298   esac
19299   shift
19300 done
19301
19302 ac_configure_extra_args=
19303
19304 if $ac_cs_silent; then
19305   exec 6>/dev/null
19306   ac_configure_extra_args="$ac_configure_extra_args --silent"
19307 fi
19308
19309 _ACEOF
19310 cat >>$CONFIG_STATUS <<_ACEOF
19311 if \$ac_cs_recheck; then
19312   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19313   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19314 fi
19315
19316 _ACEOF
19317
19318 cat >>$CONFIG_STATUS <<_ACEOF
19319 #
19320 # INIT-COMMANDS section.
19321 #
19322
19323 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19324
19325 _ACEOF
19326
19327
19328
19329 cat >>$CONFIG_STATUS <<\_ACEOF
19330 for ac_config_target in $ac_config_targets
19331 do
19332   case "$ac_config_target" in
19333   # Handling of arguments.
19334   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19335   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19336   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19337   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19338   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19339   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19340   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19341   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19342   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19343   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19344   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19345   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19346   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19347   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19348   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19349   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19350   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19351   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19352   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19353   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19354   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19355   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19356 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19357    { (exit 1); exit 1; }; };;
19358   esac
19359 done
19360
19361 # If the user did not use the arguments to specify the items to instantiate,
19362 # then the envvar interface is used.  Set only those that are not.
19363 # We use the long form for the default assignment because of an extremely
19364 # bizarre bug on SunOS 4.1.3.
19365 if $ac_need_defaults; then
19366   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19367   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19368   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19369 fi
19370
19371 # Have a temporary directory for convenience.  Make it in the build tree
19372 # simply because there is no reason to put it here, and in addition,
19373 # creating and moving files from /tmp can sometimes cause problems.
19374 # Create a temporary directory, and hook for its removal unless debugging.
19375 $debug ||
19376 {
19377   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19378   trap '{ (exit 1); exit 1; }' 1 2 13 15
19379 }
19380
19381 # Create a (secure) tmp directory for tmp files.
19382
19383 {
19384   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19385   test -n "$tmp" && test -d "$tmp"
19386 }  ||
19387 {
19388   tmp=./confstat$$-$RANDOM
19389   (umask 077 && mkdir $tmp)
19390 } ||
19391 {
19392    echo "$me: cannot create a temporary directory in ." >&2
19393    { (exit 1); exit 1; }
19394 }
19395
19396 _ACEOF
19397
19398 cat >>$CONFIG_STATUS <<_ACEOF
19399
19400 #
19401 # CONFIG_FILES section.
19402 #
19403
19404 # No need to generate the scripts if there are no CONFIG_FILES.
19405 # This happens for instance when ./config.status config.h
19406 if test -n "\$CONFIG_FILES"; then
19407   # Protect against being on the right side of a sed subst in config.status.
19408   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19409    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19410 s,@SHELL@,$SHELL,;t t
19411 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19412 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19413 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19414 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19415 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19416 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19417 s,@exec_prefix@,$exec_prefix,;t t
19418 s,@prefix@,$prefix,;t t
19419 s,@program_transform_name@,$program_transform_name,;t t
19420 s,@bindir@,$bindir,;t t
19421 s,@sbindir@,$sbindir,;t t
19422 s,@libexecdir@,$libexecdir,;t t
19423 s,@datadir@,$datadir,;t t
19424 s,@sysconfdir@,$sysconfdir,;t t
19425 s,@sharedstatedir@,$sharedstatedir,;t t
19426 s,@localstatedir@,$localstatedir,;t t
19427 s,@libdir@,$libdir,;t t
19428 s,@includedir@,$includedir,;t t
19429 s,@oldincludedir@,$oldincludedir,;t t
19430 s,@infodir@,$infodir,;t t
19431 s,@mandir@,$mandir,;t t
19432 s,@build_alias@,$build_alias,;t t
19433 s,@host_alias@,$host_alias,;t t
19434 s,@target_alias@,$target_alias,;t t
19435 s,@DEFS@,$DEFS,;t t
19436 s,@ECHO_C@,$ECHO_C,;t t
19437 s,@ECHO_N@,$ECHO_N,;t t
19438 s,@ECHO_T@,$ECHO_T,;t t
19439 s,@LIBS@,$LIBS,;t t
19440 s,@build@,$build,;t t
19441 s,@build_cpu@,$build_cpu,;t t
19442 s,@build_vendor@,$build_vendor,;t t
19443 s,@build_os@,$build_os,;t t
19444 s,@host@,$host,;t t
19445 s,@host_cpu@,$host_cpu,;t t
19446 s,@host_vendor@,$host_vendor,;t t
19447 s,@host_os@,$host_os,;t t
19448 s,@target@,$target,;t t
19449 s,@target_cpu@,$target_cpu,;t t
19450 s,@target_vendor@,$target_vendor,;t t
19451 s,@target_os@,$target_os,;t t
19452 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19453 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19454 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19455 s,@CYGPATH_W@,$CYGPATH_W,;t t
19456 s,@PACKAGE@,$PACKAGE,;t t
19457 s,@VERSION@,$VERSION,;t t
19458 s,@ACLOCAL@,$ACLOCAL,;t t
19459 s,@AUTOCONF@,$AUTOCONF,;t t
19460 s,@AUTOMAKE@,$AUTOMAKE,;t t
19461 s,@AUTOHEADER@,$AUTOHEADER,;t t
19462 s,@MAKEINFO@,$MAKEINFO,;t t
19463 s,@AMTAR@,$AMTAR,;t t
19464 s,@install_sh@,$install_sh,;t t
19465 s,@STRIP@,$STRIP,;t t
19466 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19467 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19468 s,@AWK@,$AWK,;t t
19469 s,@SET_MAKE@,$SET_MAKE,;t t
19470 s,@am__leading_dot@,$am__leading_dot,;t t
19471 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19472 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19473 s,@MAINT@,$MAINT,;t t
19474 s,@EMACS@,$EMACS,;t t
19475 s,@lispdir@,$lispdir,;t t
19476 s,@CC@,$CC,;t t
19477 s,@CFLAGS@,$CFLAGS,;t t
19478 s,@LDFLAGS@,$LDFLAGS,;t t
19479 s,@CPPFLAGS@,$CPPFLAGS,;t t
19480 s,@ac_ct_CC@,$ac_ct_CC,;t t
19481 s,@EXEEXT@,$EXEEXT,;t t
19482 s,@OBJEXT@,$OBJEXT,;t t
19483 s,@DEPDIR@,$DEPDIR,;t t
19484 s,@am__include@,$am__include,;t t
19485 s,@am__quote@,$am__quote,;t t
19486 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19487 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19488 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19489 s,@CCDEPMODE@,$CCDEPMODE,;t t
19490 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19491 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19492 s,@CPP@,$CPP,;t t
19493 s,@EGREP@,$EGREP,;t t
19494 s,@RANLIB@,$RANLIB,;t t
19495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19496 s,@LN_S@,$LN_S,;t t
19497 s,@X_CFLAGS@,$X_CFLAGS,;t t
19498 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19499 s,@X_LIBS@,$X_LIBS,;t t
19500 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19501 s,@LIBOBJS@,$LIBOBJS,;t t
19502 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19503 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19504 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19505 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19506 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19507 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19508 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19509 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19510 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19511 s,@ESD_LIBS@,$ESD_LIBS,;t t
19512 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19513 s,@AO_LIBS@,$AO_LIBS,;t t
19514 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19515 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19516 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19517 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19518 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19519 s,@OGG_LIBS@,$OGG_LIBS,;t t
19520 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19521 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19522 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19523 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19524 s,@n_so_libs@,$n_so_libs,;t t
19525 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19526 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19527 s,@s_so_libs@,$s_so_libs,;t t
19528 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19529 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19530 s,@m_so_libs@,$m_so_libs,;t t
19531 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19532 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19533 s,@k_so_libs@,$k_so_libs,;t t
19534 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19535 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19536 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19537 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19538 s,@e_so_libs@,$e_so_libs,;t t
19539 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19540 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19541 s,@T_so_libs@,$T_so_libs,;t t
19542 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19543 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19544 s,@a_so_libs@,$a_so_libs,;t t
19545 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19546 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19547 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19548 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19549 s,@i_so_libs@,$i_so_libs,;t t
19550 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19551 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19552 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19553 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19554 s,@GTK_LIBS@,$GTK_LIBS,;t t
19555 s,@g_so_libs@,$g_so_libs,;t t
19556 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19557 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19558 s,@r_so_libs@,$r_so_libs,;t t
19559 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19560 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19561 s,@A_so_libs@,$A_so_libs,;t t
19562 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19563 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19564 s,@W_so_libs@,$W_so_libs,;t t
19565 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19566 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19567 s,@P_so_libs@,$P_so_libs,;t t
19568 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19569 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19570 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19571 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19572 s,@w_so_libs@,$w_so_libs,;t t
19573 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19574 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19575 s,@p_so_libs@,$p_so_libs,;t t
19576 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19577 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19578 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19579 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19580 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19581 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19582 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19583 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19584 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19585 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19586 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19587 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19588 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19589 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19590 s,@EXTRALIBS@,$EXTRALIBS,;t t
19591 s,@NETSRCS@,$NETSRCS,;t t
19592 s,@ELFILES@,$ELFILES,;t t
19593 s,@SHLD@,$SHLD,;t t
19594 s,@SHCFLAGS@,$SHCFLAGS,;t t
19595 s,@dynamic_targets@,$dynamic_targets,;t t
19596 s,@so@,$so,;t t
19597 s,@WISH@,$WISH,;t t
19598 s,@tcltk_dep@,$tcltk_dep,;t t
19599 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19600 s,@pkgdatadir@,$pkgdatadir,;t t
19601 s,@pkglibdir@,$pkglibdir,;t t
19602 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19603 CEOF
19604
19605 _ACEOF
19606
19607   cat >>$CONFIG_STATUS <<\_ACEOF
19608   # Split the substitutions into bite-sized pieces for seds with
19609   # small command number limits, like on Digital OSF/1 and HP-UX.
19610   ac_max_sed_lines=48
19611   ac_sed_frag=1 # Number of current file.
19612   ac_beg=1 # First line for current file.
19613   ac_end=$ac_max_sed_lines # Line after last line for current file.
19614   ac_more_lines=:
19615   ac_sed_cmds=
19616   while $ac_more_lines; do
19617     if test $ac_beg -gt 1; then
19618       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19619     else
19620       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19621     fi
19622     if test ! -s $tmp/subs.frag; then
19623       ac_more_lines=false
19624     else
19625       # The purpose of the label and of the branching condition is to
19626       # speed up the sed processing (if there are no `@' at all, there
19627       # is no need to browse any of the substitutions).
19628       # These are the two extra sed commands mentioned above.
19629       (echo ':t
19630   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19631       if test -z "$ac_sed_cmds"; then
19632         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19633       else
19634         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19635       fi
19636       ac_sed_frag=`expr $ac_sed_frag + 1`
19637       ac_beg=$ac_end
19638       ac_end=`expr $ac_end + $ac_max_sed_lines`
19639     fi
19640   done
19641   if test -z "$ac_sed_cmds"; then
19642     ac_sed_cmds=cat
19643   fi
19644 fi # test -n "$CONFIG_FILES"
19645
19646 _ACEOF
19647 cat >>$CONFIG_STATUS <<\_ACEOF
19648 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19649   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19650   case $ac_file in
19651   - | *:- | *:-:* ) # input from stdin
19652         cat >$tmp/stdin
19653         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19654         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19655   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19656         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19657   * )   ac_file_in=$ac_file.in ;;
19658   esac
19659
19660   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19661   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19663          X"$ac_file" : 'X\(//\)[^/]' \| \
19664          X"$ac_file" : 'X\(//\)$' \| \
19665          X"$ac_file" : 'X\(/\)' \| \
19666          .     : '\(.\)' 2>/dev/null ||
19667 echo X"$ac_file" |
19668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19669           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19670           /^X\(\/\/\)$/{ s//\1/; q; }
19671           /^X\(\/\).*/{ s//\1/; q; }
19672           s/.*/./; q'`
19673   { if $as_mkdir_p; then
19674     mkdir -p "$ac_dir"
19675   else
19676     as_dir="$ac_dir"
19677     as_dirs=
19678     while test ! -d "$as_dir"; do
19679       as_dirs="$as_dir $as_dirs"
19680       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19682          X"$as_dir" : 'X\(//\)[^/]' \| \
19683          X"$as_dir" : 'X\(//\)$' \| \
19684          X"$as_dir" : 'X\(/\)' \| \
19685          .     : '\(.\)' 2>/dev/null ||
19686 echo X"$as_dir" |
19687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19689           /^X\(\/\/\)$/{ s//\1/; q; }
19690           /^X\(\/\).*/{ s//\1/; q; }
19691           s/.*/./; q'`
19692     done
19693     test ! -n "$as_dirs" || mkdir $as_dirs
19694   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19696    { (exit 1); exit 1; }; }; }
19697
19698   ac_builddir=.
19699
19700 if test "$ac_dir" != .; then
19701   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19702   # A "../" for each directory in $ac_dir_suffix.
19703   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19704 else
19705   ac_dir_suffix= ac_top_builddir=
19706 fi
19707
19708 case $srcdir in
19709   .)  # No --srcdir option.  We are building in place.
19710     ac_srcdir=.
19711     if test -z "$ac_top_builddir"; then
19712        ac_top_srcdir=.
19713     else
19714        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19715     fi ;;
19716   [\\/]* | ?:[\\/]* )  # Absolute path.
19717     ac_srcdir=$srcdir$ac_dir_suffix;
19718     ac_top_srcdir=$srcdir ;;
19719   *) # Relative path.
19720     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19721     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19722 esac
19723
19724 # Do not use `cd foo && pwd` to compute absolute paths, because
19725 # the directories may not exist.
19726 case `pwd` in
19727 .) ac_abs_builddir="$ac_dir";;
19728 *)
19729   case "$ac_dir" in
19730   .) ac_abs_builddir=`pwd`;;
19731   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19732   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19733   esac;;
19734 esac
19735 case $ac_abs_builddir in
19736 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19737 *)
19738   case ${ac_top_builddir}. in
19739   .) ac_abs_top_builddir=$ac_abs_builddir;;
19740   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19741   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19742   esac;;
19743 esac
19744 case $ac_abs_builddir in
19745 .) ac_abs_srcdir=$ac_srcdir;;
19746 *)
19747   case $ac_srcdir in
19748   .) ac_abs_srcdir=$ac_abs_builddir;;
19749   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19750   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19751   esac;;
19752 esac
19753 case $ac_abs_builddir in
19754 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19755 *)
19756   case $ac_top_srcdir in
19757   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19758   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19759   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19760   esac;;
19761 esac
19762
19763
19764   case $INSTALL in
19765   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19766   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19767   esac
19768
19769   if test x"$ac_file" != x-; then
19770     { echo "$as_me:$LINENO: creating $ac_file" >&5
19771 echo "$as_me: creating $ac_file" >&6;}
19772     rm -f "$ac_file"
19773   fi
19774   # Let's still pretend it is `configure' which instantiates (i.e., don't
19775   # use $as_me), people would be surprised to read:
19776   #    /* config.h.  Generated by config.status.  */
19777   if test x"$ac_file" = x-; then
19778     configure_input=
19779   else
19780     configure_input="$ac_file.  "
19781   fi
19782   configure_input=$configure_input"Generated from `echo $ac_file_in |
19783                                      sed 's,.*/,,'` by configure."
19784
19785   # First look for the input files in the build tree, otherwise in the
19786   # src tree.
19787   ac_file_inputs=`IFS=:
19788     for f in $ac_file_in; do
19789       case $f in
19790       -) echo $tmp/stdin ;;
19791       [\\/$]*)
19792          # Absolute (can't be DOS-style, as IFS=:)
19793          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19794 echo "$as_me: error: cannot find input file: $f" >&2;}
19795    { (exit 1); exit 1; }; }
19796          echo "$f";;
19797       *) # Relative
19798          if test -f "$f"; then
19799            # Build tree
19800            echo "$f"
19801          elif test -f "$srcdir/$f"; then
19802            # Source tree
19803            echo "$srcdir/$f"
19804          else
19805            # /dev/null tree
19806            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19807 echo "$as_me: error: cannot find input file: $f" >&2;}
19808    { (exit 1); exit 1; }; }
19809          fi;;
19810       esac
19811     done` || { (exit 1); exit 1; }
19812 _ACEOF
19813 cat >>$CONFIG_STATUS <<_ACEOF
19814   sed "$ac_vpsub
19815 $extrasub
19816 _ACEOF
19817 cat >>$CONFIG_STATUS <<\_ACEOF
19818 :t
19819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19820 s,@configure_input@,$configure_input,;t t
19821 s,@srcdir@,$ac_srcdir,;t t
19822 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19823 s,@top_srcdir@,$ac_top_srcdir,;t t
19824 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19825 s,@builddir@,$ac_builddir,;t t
19826 s,@abs_builddir@,$ac_abs_builddir,;t t
19827 s,@top_builddir@,$ac_top_builddir,;t t
19828 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19829 s,@INSTALL@,$ac_INSTALL,;t t
19830 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19831   rm -f $tmp/stdin
19832   if test x"$ac_file" != x-; then
19833     mv $tmp/out $ac_file
19834   else
19835     cat $tmp/out
19836     rm -f $tmp/out
19837   fi
19838
19839 done
19840 _ACEOF
19841 cat >>$CONFIG_STATUS <<\_ACEOF
19842
19843 #
19844 # CONFIG_HEADER section.
19845 #
19846
19847 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19848 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19849 #
19850 # ac_d sets the value in "#define NAME VALUE" lines.
19851 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
19852 ac_dB='[         ].*$,\1#\2'
19853 ac_dC=' '
19854 ac_dD=',;t'
19855 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19856 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19857 ac_uB='$,\1#\2define\3'
19858 ac_uC=' '
19859 ac_uD=',;t'
19860
19861 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19862   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19863   case $ac_file in
19864   - | *:- | *:-:* ) # input from stdin
19865         cat >$tmp/stdin
19866         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19867         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19868   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19869         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19870   * )   ac_file_in=$ac_file.in ;;
19871   esac
19872
19873   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19874 echo "$as_me: creating $ac_file" >&6;}
19875
19876   # First look for the input files in the build tree, otherwise in the
19877   # src tree.
19878   ac_file_inputs=`IFS=:
19879     for f in $ac_file_in; do
19880       case $f in
19881       -) echo $tmp/stdin ;;
19882       [\\/$]*)
19883          # Absolute (can't be DOS-style, as IFS=:)
19884          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19885 echo "$as_me: error: cannot find input file: $f" >&2;}
19886    { (exit 1); exit 1; }; }
19887          # Do quote $f, to prevent DOS paths from being IFS'd.
19888          echo "$f";;
19889       *) # Relative
19890          if test -f "$f"; then
19891            # Build tree
19892            echo "$f"
19893          elif test -f "$srcdir/$f"; then
19894            # Source tree
19895            echo "$srcdir/$f"
19896          else
19897            # /dev/null tree
19898            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19899 echo "$as_me: error: cannot find input file: $f" >&2;}
19900    { (exit 1); exit 1; }; }
19901          fi;;
19902       esac
19903     done` || { (exit 1); exit 1; }
19904   # Remove the trailing spaces.
19905   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
19906
19907 _ACEOF
19908
19909 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19910 # `conftest.undefs', that substitutes the proper values into
19911 # config.h.in to produce config.h.  The first handles `#define'
19912 # templates, and the second `#undef' templates.
19913 # And first: Protect against being on the right side of a sed subst in
19914 # config.status.  Protect against being in an unquoted here document
19915 # in config.status.
19916 rm -f conftest.defines conftest.undefs
19917 # Using a here document instead of a string reduces the quoting nightmare.
19918 # Putting comments in sed scripts is not portable.
19919 #
19920 # `end' is used to avoid that the second main sed command (meant for
19921 # 0-ary CPP macros) applies to n-ary macro definitions.
19922 # See the Autoconf documentation for `clear'.
19923 cat >confdef2sed.sed <<\_ACEOF
19924 s/[\\&,]/\\&/g
19925 s,[\\$`],\\&,g
19926 t clear
19927 : clear
19928 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19929 t end
19930 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19931 : end
19932 _ACEOF
19933 # If some macros were called several times there might be several times
19934 # the same #defines, which is useless.  Nevertheless, we may not want to
19935 # sort them, since we want the *last* AC-DEFINE to be honored.
19936 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19937 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19938 rm -f confdef2sed.sed
19939
19940 # This sed command replaces #undef with comments.  This is necessary, for
19941 # example, in the case of _POSIX_SOURCE, which is predefined and required
19942 # on some systems where configure will not decide to define it.
19943 cat >>conftest.undefs <<\_ACEOF
19944 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19945 _ACEOF
19946
19947 # Break up conftest.defines because some shells have a limit on the size
19948 # of here documents, and old seds have small limits too (100 cmds).
19949 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19950 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19951 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19952 echo '  :' >>$CONFIG_STATUS
19953 rm -f conftest.tail
19954 while grep . conftest.defines >/dev/null
19955 do
19956   # Write a limited-size here document to $tmp/defines.sed.
19957   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19958   # Speed up: don't consider the non `#define' lines.
19959   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
19960   # Work around the forget-to-reset-the-flag bug.
19961   echo 't clr' >>$CONFIG_STATUS
19962   echo ': clr' >>$CONFIG_STATUS
19963   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19964   echo 'CEOF
19965   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19966   rm -f $tmp/in
19967   mv $tmp/out $tmp/in
19968 ' >>$CONFIG_STATUS
19969   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19970   rm -f conftest.defines
19971   mv conftest.tail conftest.defines
19972 done
19973 rm -f conftest.defines
19974 echo '  fi # grep' >>$CONFIG_STATUS
19975 echo >>$CONFIG_STATUS
19976
19977 # Break up conftest.undefs because some shells have a limit on the size
19978 # of here documents, and old seds have small limits too (100 cmds).
19979 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19980 rm -f conftest.tail
19981 while grep . conftest.undefs >/dev/null
19982 do
19983   # Write a limited-size here document to $tmp/undefs.sed.
19984   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19985   # Speed up: don't consider the non `#undef'
19986   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19987   # Work around the forget-to-reset-the-flag bug.
19988   echo 't clr' >>$CONFIG_STATUS
19989   echo ': clr' >>$CONFIG_STATUS
19990   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19991   echo 'CEOF
19992   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19993   rm -f $tmp/in
19994   mv $tmp/out $tmp/in
19995 ' >>$CONFIG_STATUS
19996   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19997   rm -f conftest.undefs
19998   mv conftest.tail conftest.undefs
19999 done
20000 rm -f conftest.undefs
20001
20002 cat >>$CONFIG_STATUS <<\_ACEOF
20003   # Let's still pretend it is `configure' which instantiates (i.e., don't
20004   # use $as_me), people would be surprised to read:
20005   #    /* config.h.  Generated by config.status.  */
20006   if test x"$ac_file" = x-; then
20007     echo "/* Generated by configure.  */" >$tmp/config.h
20008   else
20009     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20010   fi
20011   cat $tmp/in >>$tmp/config.h
20012   rm -f $tmp/in
20013   if test x"$ac_file" != x-; then
20014     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20015       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20016 echo "$as_me: $ac_file is unchanged" >&6;}
20017     else
20018       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20020          X"$ac_file" : 'X\(//\)[^/]' \| \
20021          X"$ac_file" : 'X\(//\)$' \| \
20022          X"$ac_file" : 'X\(/\)' \| \
20023          .     : '\(.\)' 2>/dev/null ||
20024 echo X"$ac_file" |
20025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20026           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20027           /^X\(\/\/\)$/{ s//\1/; q; }
20028           /^X\(\/\).*/{ s//\1/; q; }
20029           s/.*/./; q'`
20030       { if $as_mkdir_p; then
20031     mkdir -p "$ac_dir"
20032   else
20033     as_dir="$ac_dir"
20034     as_dirs=
20035     while test ! -d "$as_dir"; do
20036       as_dirs="$as_dir $as_dirs"
20037       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20039          X"$as_dir" : 'X\(//\)[^/]' \| \
20040          X"$as_dir" : 'X\(//\)$' \| \
20041          X"$as_dir" : 'X\(/\)' \| \
20042          .     : '\(.\)' 2>/dev/null ||
20043 echo X"$as_dir" |
20044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20045           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20046           /^X\(\/\/\)$/{ s//\1/; q; }
20047           /^X\(\/\).*/{ s//\1/; q; }
20048           s/.*/./; q'`
20049     done
20050     test ! -n "$as_dirs" || mkdir $as_dirs
20051   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20053    { (exit 1); exit 1; }; }; }
20054
20055       rm -f $ac_file
20056       mv $tmp/config.h $ac_file
20057     fi
20058   else
20059     cat $tmp/config.h
20060     rm -f $tmp/config.h
20061   fi
20062 # Compute $ac_file's index in $config_headers.
20063 _am_stamp_count=1
20064 for _am_header in $config_headers :; do
20065   case $_am_header in
20066     $ac_file | $ac_file:* )
20067       break ;;
20068     * )
20069       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20070   esac
20071 done
20072 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20073 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20074          X$ac_file : 'X\(//\)[^/]' \| \
20075          X$ac_file : 'X\(//\)$' \| \
20076          X$ac_file : 'X\(/\)' \| \
20077          .     : '\(.\)' 2>/dev/null ||
20078 echo X$ac_file |
20079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20081           /^X\(\/\/\)$/{ s//\1/; q; }
20082           /^X\(\/\).*/{ s//\1/; q; }
20083           s/.*/./; q'`/stamp-h$_am_stamp_count
20084 done
20085 _ACEOF
20086 cat >>$CONFIG_STATUS <<\_ACEOF
20087
20088 #
20089 # CONFIG_COMMANDS section.
20090 #
20091 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20092   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20093   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20094   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20095 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20096          X"$ac_dest" : 'X\(//\)[^/]' \| \
20097          X"$ac_dest" : 'X\(//\)$' \| \
20098          X"$ac_dest" : 'X\(/\)' \| \
20099          .     : '\(.\)' 2>/dev/null ||
20100 echo X"$ac_dest" |
20101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20103           /^X\(\/\/\)$/{ s//\1/; q; }
20104           /^X\(\/\).*/{ s//\1/; q; }
20105           s/.*/./; q'`
20106   { if $as_mkdir_p; then
20107     mkdir -p "$ac_dir"
20108   else
20109     as_dir="$ac_dir"
20110     as_dirs=
20111     while test ! -d "$as_dir"; do
20112       as_dirs="$as_dir $as_dirs"
20113       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20115          X"$as_dir" : 'X\(//\)[^/]' \| \
20116          X"$as_dir" : 'X\(//\)$' \| \
20117          X"$as_dir" : 'X\(/\)' \| \
20118          .     : '\(.\)' 2>/dev/null ||
20119 echo X"$as_dir" |
20120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20122           /^X\(\/\/\)$/{ s//\1/; q; }
20123           /^X\(\/\).*/{ s//\1/; q; }
20124           s/.*/./; q'`
20125     done
20126     test ! -n "$as_dirs" || mkdir $as_dirs
20127   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20129    { (exit 1); exit 1; }; }; }
20130
20131   ac_builddir=.
20132
20133 if test "$ac_dir" != .; then
20134   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20135   # A "../" for each directory in $ac_dir_suffix.
20136   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20137 else
20138   ac_dir_suffix= ac_top_builddir=
20139 fi
20140
20141 case $srcdir in
20142   .)  # No --srcdir option.  We are building in place.
20143     ac_srcdir=.
20144     if test -z "$ac_top_builddir"; then
20145        ac_top_srcdir=.
20146     else
20147        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20148     fi ;;
20149   [\\/]* | ?:[\\/]* )  # Absolute path.
20150     ac_srcdir=$srcdir$ac_dir_suffix;
20151     ac_top_srcdir=$srcdir ;;
20152   *) # Relative path.
20153     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20154     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20155 esac
20156
20157 # Do not use `cd foo && pwd` to compute absolute paths, because
20158 # the directories may not exist.
20159 case `pwd` in
20160 .) ac_abs_builddir="$ac_dir";;
20161 *)
20162   case "$ac_dir" in
20163   .) ac_abs_builddir=`pwd`;;
20164   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20165   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20166   esac;;
20167 esac
20168 case $ac_abs_builddir in
20169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20170 *)
20171   case ${ac_top_builddir}. in
20172   .) ac_abs_top_builddir=$ac_abs_builddir;;
20173   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20174   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20175   esac;;
20176 esac
20177 case $ac_abs_builddir in
20178 .) ac_abs_srcdir=$ac_srcdir;;
20179 *)
20180   case $ac_srcdir in
20181   .) ac_abs_srcdir=$ac_abs_builddir;;
20182   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20183   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20184   esac;;
20185 esac
20186 case $ac_abs_builddir in
20187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20188 *)
20189   case $ac_top_srcdir in
20190   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20191   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20192   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20193   esac;;
20194 esac
20195
20196
20197   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20198 echo "$as_me: executing $ac_dest commands" >&6;}
20199   case $ac_dest in
20200     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20201   # Strip MF so we end up with the name of the file.
20202   mf=`echo "$mf" | sed -e 's/:.*$//'`
20203   # Check whether this is an Automake generated Makefile or not.
20204   # We used to match only the files named `Makefile.in', but
20205   # some people rename them; so instead we look at the file content.
20206   # Grep'ing the first line is not enough: some people post-process
20207   # each Makefile.in and add a new line on top of each file to say so.
20208   # So let's grep whole file.
20209   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20210     dirpart=`(dirname "$mf") 2>/dev/null ||
20211 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20212          X"$mf" : 'X\(//\)[^/]' \| \
20213          X"$mf" : 'X\(//\)$' \| \
20214          X"$mf" : 'X\(/\)' \| \
20215          .     : '\(.\)' 2>/dev/null ||
20216 echo X"$mf" |
20217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20218           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20219           /^X\(\/\/\)$/{ s//\1/; q; }
20220           /^X\(\/\).*/{ s//\1/; q; }
20221           s/.*/./; q'`
20222   else
20223     continue
20224   fi
20225   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20226   # Extract the definition of DEP_FILES from the Makefile without
20227   # running `make'.
20228   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20229   test -z "$DEPDIR" && continue
20230   # When using ansi2knr, U may be empty or an underscore; expand it
20231   U=`sed -n -e '/^U = / s///p' < "$mf"`
20232   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20233   # We invoke sed twice because it is the simplest approach to
20234   # changing $(DEPDIR) to its actual value in the expansion.
20235   for file in `sed -n -e '
20236     /^DEP_FILES = .*\\\\$/ {
20237       s/^DEP_FILES = //
20238       :loop
20239         s/\\\\$//
20240         p
20241         n
20242         /\\\\$/ b loop
20243       p
20244     }
20245     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20246        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20247     # Make sure the directory exists.
20248     test -f "$dirpart/$file" && continue
20249     fdir=`(dirname "$file") 2>/dev/null ||
20250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20251          X"$file" : 'X\(//\)[^/]' \| \
20252          X"$file" : 'X\(//\)$' \| \
20253          X"$file" : 'X\(/\)' \| \
20254          .     : '\(.\)' 2>/dev/null ||
20255 echo X"$file" |
20256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20257           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20258           /^X\(\/\/\)$/{ s//\1/; q; }
20259           /^X\(\/\).*/{ s//\1/; q; }
20260           s/.*/./; q'`
20261     { if $as_mkdir_p; then
20262     mkdir -p $dirpart/$fdir
20263   else
20264     as_dir=$dirpart/$fdir
20265     as_dirs=
20266     while test ! -d "$as_dir"; do
20267       as_dirs="$as_dir $as_dirs"
20268       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270          X"$as_dir" : 'X\(//\)[^/]' \| \
20271          X"$as_dir" : 'X\(//\)$' \| \
20272          X"$as_dir" : 'X\(/\)' \| \
20273          .     : '\(.\)' 2>/dev/null ||
20274 echo X"$as_dir" |
20275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20277           /^X\(\/\/\)$/{ s//\1/; q; }
20278           /^X\(\/\).*/{ s//\1/; q; }
20279           s/.*/./; q'`
20280     done
20281     test ! -n "$as_dirs" || mkdir $as_dirs
20282   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20283 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20284    { (exit 1); exit 1; }; }; }
20285
20286     # echo "creating $dirpart/$file"
20287     echo '# dummy' > "$dirpart/$file"
20288   done
20289 done
20290  ;;
20291   esac
20292 done
20293 _ACEOF
20294
20295 cat >>$CONFIG_STATUS <<\_ACEOF
20296
20297 { (exit 0); exit 0; }
20298 _ACEOF
20299 chmod +x $CONFIG_STATUS
20300 ac_clean_files=$ac_clean_files_save
20301
20302
20303 # configure is writing to config.log, and then calls config.status.
20304 # config.status does its own redirection, appending to config.log.
20305 # Unfortunately, on DOS this fails, as config.log is still kept open
20306 # by configure, so config.status won't be able to write to it; its
20307 # output is simply discarded.  So we exec the FD to /dev/null,
20308 # effectively closing config.log, so it can be properly (re)opened and
20309 # appended to by config.status.  When coming back to configure, we
20310 # need to make the FD available again.
20311 if test "$no_create" != yes; then
20312   ac_cs_success=:
20313   ac_config_status_args=
20314   test "$silent" = yes &&
20315     ac_config_status_args="$ac_config_status_args --quiet"
20316   exec 5>/dev/null
20317   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20318   exec 5>>config.log
20319   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20320   # would make configure fail if this is the last instruction.
20321   $ac_cs_success || { (exit 1); exit 1; }
20322 fi
20323