OSDN Git Service

Applied autoconf & automake.
[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++ 2.13.2.
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='2.13.2'
273 PACKAGE_STRING='TiMidity++ 2.13.2'
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 mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS EMACSLOADPATH 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 ARTSCCONFIG ARTSLIBS ARTSINCL ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE PKG_CONFIG 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 W32G_GUI_TRUE W32G_GUI_FALSE WINDRV_TRUE WINDRV_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE WATCOM_C_TRUE WATCOM_C_FALSE DMC_TRUE DMC_FALSE MINGWGCC_TRUE MINGWGCC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_LDFLAGS DMC_LDFLAGS VCPP_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_EMACS_set=${EMACS+set}
756 ac_env_EMACS_value=$EMACS
757 ac_cv_env_EMACS_set=${EMACS+set}
758 ac_cv_env_EMACS_value=$EMACS
759 ac_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
760 ac_env_EMACSLOADPATH_value=$EMACSLOADPATH
761 ac_cv_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
762 ac_cv_env_EMACSLOADPATH_value=$EMACSLOADPATH
763 ac_env_CC_set=${CC+set}
764 ac_env_CC_value=$CC
765 ac_cv_env_CC_set=${CC+set}
766 ac_cv_env_CC_value=$CC
767 ac_env_CFLAGS_set=${CFLAGS+set}
768 ac_env_CFLAGS_value=$CFLAGS
769 ac_cv_env_CFLAGS_set=${CFLAGS+set}
770 ac_cv_env_CFLAGS_value=$CFLAGS
771 ac_env_LDFLAGS_set=${LDFLAGS+set}
772 ac_env_LDFLAGS_value=$LDFLAGS
773 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
774 ac_cv_env_LDFLAGS_value=$LDFLAGS
775 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
776 ac_env_CPPFLAGS_value=$CPPFLAGS
777 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
778 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788   # Omit some internal or obsolete options to make the list less imposing.
789   # This message is too long to be a string in the A/UX 3.1 sh.
790   cat <<_ACEOF
791 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
792
793 Usage: $0 [OPTION]... [VAR=VALUE]...
794
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798 Defaults for the options are specified in brackets.
799
800 Configuration:
801   -h, --help              display this help and exit
802       --help=short        display options specific to this package
803       --help=recursive    display the short help of all the included packages
804   -V, --version           display version information and exit
805   -q, --quiet, --silent   do not print \`checking...' messages
806       --cache-file=FILE   cache test results in FILE [disabled]
807   -C, --config-cache      alias for \`--cache-file=config.cache'
808   -n, --no-create         do not create output files
809       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811 _ACEOF
812
813   cat <<_ACEOF
814 Installation directories:
815   --prefix=PREFIX         install architecture-independent files in PREFIX
816                           [$ac_default_prefix]
817   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                           [PREFIX]
819
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
824
825 For better control, use the options below.
826
827 Fine tuning of the installation directories:
828   --bindir=DIR           user executables [EPREFIX/bin]
829   --sbindir=DIR          system admin executables [EPREFIX/sbin]
830   --libexecdir=DIR       program executables [EPREFIX/libexec]
831   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835   --libdir=DIR           object code libraries [EPREFIX/lib]
836   --includedir=DIR       C header files [PREFIX/include]
837   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838   --infodir=DIR          info documentation [PREFIX/info]
839   --mandir=DIR           man documentation [PREFIX/man]
840 _ACEOF
841
842   cat <<\_ACEOF
843
844 Program names:
845   --program-prefix=PREFIX            prepend PREFIX to installed program names
846   --program-suffix=SUFFIX            append SUFFIX to installed program names
847   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849 X features:
850   --x-includes=DIR    X include files are in DIR
851   --x-libraries=DIR   X library files are in DIR
852
853 System types:
854   --build=BUILD     configure for building on BUILD [guessed]
855   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
856   --target=TARGET   configure for building compilers for TARGET [HOST]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861   case $ac_init_help in
862      short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
863    esac
864   cat <<\_ACEOF
865
866 Optional Features:
867   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
868   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
869   --enable-maintainer-mode  enable make rules and dependencies not useful
870                           (and sometimes confusing) to the casual installer
871   --enable-debug          Build a debugging version.
872   --disable-dependency-tracking  speeds up one-time build
873   --enable-dependency-tracking   do not reject slow dependency extractors
874   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
875                               default:   Automatically select audio device.
876                               oss:       OSS /dev/dsp
877                               sun:       SunOS /dev/audio
878                               hpux:      HPUX /dev/audio
879                               irix:      IRIX audio library
880                               mme:       OSF/1 MME
881                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
882                               w32:       Windows MMS
883                               darwin:    Darwin CoreAudio
884                               alsa:      ALSA pcm device
885                               alib:      HPUX network audio (Alib)
886                               nas:       NAS - Network Audio System
887                               arts:      aRts
888                               esd:       EsounD - Enlightened Sound Daemon
889                               portaudio: PortAudio
890                               jack:      JACK
891                               ao:        Libao
892                               vorbis:    Ogg Vorbis
893                               flac:      FLAC / OggFLAC
894                               speex:     Ogg Speex
895                               gogo:      MP3 GOGO (Only Windows is supported)
896   --disable-alsatest      Do not try to compile and run a test Alsa program
897   --disable-esdtest       Do not try to compile and run a test ESD program
898   --disable-aotest       Do not try to compile and run a test ao program
899   --disable-oggtest       Do not try to compile and run a test Ogg program
900   --disable-vorbistest       Do not try to compile and run a test Vorbis program
901   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
902   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
903   --enable-interface=interface_list
904                           Comma separated interface list
905   --enable-dynamic        Enable dynamic link interface   (default is no)
906   --enable-dynamic=dynamic_list
907                           Comma separated dynamic interface list
908   --enable-ncurses        Enable ncurses interface        (default is no)
909   --enable-slang          Enable slang interface          (default is no)
910   --enable-motif          Enable motif interface          (default is no)
911   --enable-tcltk          Enable tcltk interface          (default is no)
912   --enable-emacs          Enable emacs interface          (default is no)
913   --enable-vt100          Enable VT100 interface          (default is no)
914   --enable-xaw            Enable athena interface         (default is no)
915   --enable-xskin          Enable X skin interface         (default is no)
916   --enable-gtk            Enable GTK+ interface           (default is no)
917   --disable-gtktest       do not try to compile and run a test GTK+ program
918   --disable-gtktest       Do not try to compile and run a test GTK program
919   --enable-server         Enable server interface         (default is no)
920   --enable-alsaseq        Enable ALSA sequencer server interface
921                                                           (default is no)
922   --enable-winsyn        Enable Windows Synthesizer interface
923                                                           (default is no)
924   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
925                                                           (default is no)
926   --enable-winsyng        Enable Windows GUI Synthesizer interface
927                                                           (default is no)
928   --enable-w32gui         Enable Windows GUI interface    (default is no)
929   --enable-ump            UMP configuration               (default is no)
930   --enable-windrv         Windows Driver interface(requires winsyn)
931   --enable-offix          Enable offix support            (default is no)
932   --enable-network        Enable network support          (default is no)
933   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
934   --enable-spline=method  Specify spline method.
935                                   one of no,linear,cubic,lagrange,newton,gauss
936                                                           (default is linear)
937   --enable-wrd            Enable WRD interface for X      (default is no)
938
939 Optional Packages:
940   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
941   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
942   --with-includes=DIR     Specify include directories (colon separated)
943   --with-libraries=DIR    Specify library directories (colon separated)
944   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
945   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
946   --with-lispdir          override the default lisp directory
947   --with-elf              create ELF shared object instead of AOUT
948   --with-x                use the X Window System
949   --with-tcl-includes=DIR Tcl include file path
950   --with-tcl-libs=DIR     Tcl library file path
951   --with-tk-includes=DIR  Tk include file path
952   --with-tk-libs=DIR      Tk library file path
953   --with-offix-includes=DIR Offix include file path
954   --with-offix-libs=DIR   Offix include file path
955   --with-nas-library=library NAS absolute library path(Don't use -laudio)
956   --with-nas-includes=DIR NAS include files are in dir
957   --with-default-output=<mode>  Specify default output mode (optional):
958                                 (default|alsa|alib|arts|nas|
959                                 esd|wav|au|aiff|list|vorbis|flac|speex|
960                                 gogo|portaudio|jack|ao)
961   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
962   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
963   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
964   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
965   --with-ao=PFX   Prefix where libao is installed (optional)
966   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
967   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
968   --with-ogg=PFX   Prefix where libogg is installed (optional)
969   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
970   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
971   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
972   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
973   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
974   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
975   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
976   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
977   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
978   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
979   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
980   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
981   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
982
983 Some influential environment variables:
984   EMACS       the Emacs editor command
985   EMACSLOADPATH
986               the Emacs library search path
987   CC          C compiler command
988   CFLAGS      C compiler flags
989   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
990               nonstandard directory <lib dir>
991   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
992               headers in a nonstandard directory <include dir>
993   CPP         C preprocessor
994
995 Use these variables to override the choices made by `configure' or to help
996 it to find libraries and programs with nonstandard names/locations.
997
998 Report bugs to <root@mput.dip.jp>.
999 _ACEOF
1000 fi
1001
1002 if test "$ac_init_help" = "recursive"; then
1003   # If there are subdirs, report their specific --help.
1004   ac_popdir=`pwd`
1005   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1006     test -d $ac_dir || continue
1007     ac_builddir=.
1008
1009 if test "$ac_dir" != .; then
1010   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1011   # A "../" for each directory in $ac_dir_suffix.
1012   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1013 else
1014   ac_dir_suffix= ac_top_builddir=
1015 fi
1016
1017 case $srcdir in
1018   .)  # No --srcdir option.  We are building in place.
1019     ac_srcdir=.
1020     if test -z "$ac_top_builddir"; then
1021        ac_top_srcdir=.
1022     else
1023        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1024     fi ;;
1025   [\\/]* | ?:[\\/]* )  # Absolute path.
1026     ac_srcdir=$srcdir$ac_dir_suffix;
1027     ac_top_srcdir=$srcdir ;;
1028   *) # Relative path.
1029     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1030     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1031 esac
1032
1033 # Do not use `cd foo && pwd` to compute absolute paths, because
1034 # the directories may not exist.
1035 case `pwd` in
1036 .) ac_abs_builddir="$ac_dir";;
1037 *)
1038   case "$ac_dir" in
1039   .) ac_abs_builddir=`pwd`;;
1040   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1041   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1042   esac;;
1043 esac
1044 case $ac_abs_builddir in
1045 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1046 *)
1047   case ${ac_top_builddir}. in
1048   .) ac_abs_top_builddir=$ac_abs_builddir;;
1049   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1050   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1051   esac;;
1052 esac
1053 case $ac_abs_builddir in
1054 .) ac_abs_srcdir=$ac_srcdir;;
1055 *)
1056   case $ac_srcdir in
1057   .) ac_abs_srcdir=$ac_abs_builddir;;
1058   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1059   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1060   esac;;
1061 esac
1062 case $ac_abs_builddir in
1063 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1064 *)
1065   case $ac_top_srcdir in
1066   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1067   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1068   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1069   esac;;
1070 esac
1071
1072     cd $ac_dir
1073     # Check for guested configure; otherwise get Cygnus style configure.
1074     if test -f $ac_srcdir/configure.gnu; then
1075       echo
1076       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1077     elif test -f $ac_srcdir/configure; then
1078       echo
1079       $SHELL $ac_srcdir/configure  --help=recursive
1080     elif test -f $ac_srcdir/configure.ac ||
1081            test -f $ac_srcdir/configure.in; then
1082       echo
1083       $ac_configure --help
1084     else
1085       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1086     fi
1087     cd $ac_popdir
1088   done
1089 fi
1090
1091 test -n "$ac_init_help" && exit 0
1092 if $ac_init_version; then
1093   cat <<\_ACEOF
1094 TiMidity++ configure 2.13.2
1095 generated by GNU Autoconf 2.59
1096
1097 Copyright (C) 2003 Free Software Foundation, Inc.
1098 This configure script is free software; the Free Software Foundation
1099 gives unlimited permission to copy, distribute and modify it.
1100 _ACEOF
1101   exit 0
1102 fi
1103 exec 5>config.log
1104 cat >&5 <<_ACEOF
1105 This file contains any messages produced by compilers while
1106 running configure, to aid debugging if configure makes a mistake.
1107
1108 It was created by TiMidity++ $as_me 2.13.2, which was
1109 generated by GNU Autoconf 2.59.  Invocation command line was
1110
1111   $ $0 $@
1112
1113 _ACEOF
1114 {
1115 cat <<_ASUNAME
1116 ## --------- ##
1117 ## Platform. ##
1118 ## --------- ##
1119
1120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1125
1126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1127 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1128
1129 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1130 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1132 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1133 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1134 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1135 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1136
1137 _ASUNAME
1138
1139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1140 for as_dir in $PATH
1141 do
1142   IFS=$as_save_IFS
1143   test -z "$as_dir" && as_dir=.
1144   echo "PATH: $as_dir"
1145 done
1146
1147 } >&5
1148
1149 cat >&5 <<_ACEOF
1150
1151
1152 ## ----------- ##
1153 ## Core tests. ##
1154 ## ----------- ##
1155
1156 _ACEOF
1157
1158
1159 # Keep a trace of the command line.
1160 # Strip out --no-create and --no-recursion so they do not pile up.
1161 # Strip out --silent because we don't want to record it for future runs.
1162 # Also quote any args containing shell meta-characters.
1163 # Make two passes to allow for proper duplicate-argument suppression.
1164 ac_configure_args=
1165 ac_configure_args0=
1166 ac_configure_args1=
1167 ac_sep=
1168 ac_must_keep_next=false
1169 for ac_pass in 1 2
1170 do
1171   for ac_arg
1172   do
1173     case $ac_arg in
1174     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1175     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176     | -silent | --silent | --silen | --sile | --sil)
1177       continue ;;
1178     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1180     esac
1181     case $ac_pass in
1182     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1183     2)
1184       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1185       if test $ac_must_keep_next = true; then
1186         ac_must_keep_next=false # Got value, back to normal.
1187       else
1188         case $ac_arg in
1189           *=* | --config-cache | -C | -disable-* | --disable-* \
1190           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1191           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1192           | -with-* | --with-* | -without-* | --without-* | --x)
1193             case "$ac_configure_args0 " in
1194               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1195             esac
1196             ;;
1197           -* ) ac_must_keep_next=true ;;
1198         esac
1199       fi
1200       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1201       # Get rid of the leading space.
1202       ac_sep=" "
1203       ;;
1204     esac
1205   done
1206 done
1207 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1208 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1209
1210 # When interrupted or exit'd, cleanup temporary files, and complete
1211 # config.log.  We remove comments because anyway the quotes in there
1212 # would cause problems or look ugly.
1213 # WARNING: Be sure not to use single quotes in there, as some shells,
1214 # such as our DU 5.0 friend, will then `close' the trap.
1215 trap 'exit_status=$?
1216   # Save into config.log some information that might help in debugging.
1217   {
1218     echo
1219
1220     cat <<\_ASBOX
1221 ## ---------------- ##
1222 ## Cache variables. ##
1223 ## ---------------- ##
1224 _ASBOX
1225     echo
1226     # The following way of writing the cache mishandles newlines in values,
1227 {
1228   (set) 2>&1 |
1229     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1230     *ac_space=\ *)
1231       sed -n \
1232         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1233           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1234       ;;
1235     *)
1236       sed -n \
1237         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1238       ;;
1239     esac;
1240 }
1241     echo
1242
1243     cat <<\_ASBOX
1244 ## ----------------- ##
1245 ## Output variables. ##
1246 ## ----------------- ##
1247 _ASBOX
1248     echo
1249     for ac_var in $ac_subst_vars
1250     do
1251       eval ac_val=$`echo $ac_var`
1252       echo "$ac_var='"'"'$ac_val'"'"'"
1253     done | sort
1254     echo
1255
1256     if test -n "$ac_subst_files"; then
1257       cat <<\_ASBOX
1258 ## ------------- ##
1259 ## Output files. ##
1260 ## ------------- ##
1261 _ASBOX
1262       echo
1263       for ac_var in $ac_subst_files
1264       do
1265         eval ac_val=$`echo $ac_var`
1266         echo "$ac_var='"'"'$ac_val'"'"'"
1267       done | sort
1268       echo
1269     fi
1270
1271     if test -s confdefs.h; then
1272       cat <<\_ASBOX
1273 ## ----------- ##
1274 ## confdefs.h. ##
1275 ## ----------- ##
1276 _ASBOX
1277       echo
1278       sed "/^$/d" confdefs.h | sort
1279       echo
1280     fi
1281     test "$ac_signal" != 0 &&
1282       echo "$as_me: caught signal $ac_signal"
1283     echo "$as_me: exit $exit_status"
1284   } >&5
1285   rm -f core *.core &&
1286   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1287     exit $exit_status
1288      ' 0
1289 for ac_signal in 1 2 13 15; do
1290   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1291 done
1292 ac_signal=0
1293
1294 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1295 rm -rf conftest* confdefs.h
1296 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1297 echo >confdefs.h
1298
1299 # Predefined preprocessor variables.
1300
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_NAME "$PACKAGE_NAME"
1303 _ACEOF
1304
1305
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1308 _ACEOF
1309
1310
1311 cat >>confdefs.h <<_ACEOF
1312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1313 _ACEOF
1314
1315
1316 cat >>confdefs.h <<_ACEOF
1317 #define PACKAGE_STRING "$PACKAGE_STRING"
1318 _ACEOF
1319
1320
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1323 _ACEOF
1324
1325
1326 # Let the site file select an alternate cache file if it wants to.
1327 # Prefer explicitly selected file to automatically selected ones.
1328 if test -z "$CONFIG_SITE"; then
1329   if test "x$prefix" != xNONE; then
1330     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1331   else
1332     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1333   fi
1334 fi
1335 for ac_site_file in $CONFIG_SITE; do
1336   if test -r "$ac_site_file"; then
1337     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1338 echo "$as_me: loading site script $ac_site_file" >&6;}
1339     sed 's/^/| /' "$ac_site_file" >&5
1340     . "$ac_site_file"
1341   fi
1342 done
1343
1344 if test -r "$cache_file"; then
1345   # Some versions of bash will fail to source /dev/null (special
1346   # files actually), so we avoid doing that.
1347   if test -f "$cache_file"; then
1348     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1349 echo "$as_me: loading cache $cache_file" >&6;}
1350     case $cache_file in
1351       [\\/]* | ?:[\\/]* ) . $cache_file;;
1352       *)                      . ./$cache_file;;
1353     esac
1354   fi
1355 else
1356   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1357 echo "$as_me: creating cache $cache_file" >&6;}
1358   >$cache_file
1359 fi
1360
1361 # Check that the precious variables saved in the cache have kept the same
1362 # value.
1363 ac_cache_corrupted=false
1364 for ac_var in `(set) 2>&1 |
1365                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1366   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1367   eval ac_new_set=\$ac_env_${ac_var}_set
1368   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1369   eval ac_new_val="\$ac_env_${ac_var}_value"
1370   case $ac_old_set,$ac_new_set in
1371     set,)
1372       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1373 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1374       ac_cache_corrupted=: ;;
1375     ,set)
1376       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1377 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1378       ac_cache_corrupted=: ;;
1379     ,);;
1380     *)
1381       if test "x$ac_old_val" != "x$ac_new_val"; then
1382         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1383 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1384         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1385 echo "$as_me:   former value:  $ac_old_val" >&2;}
1386         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1387 echo "$as_me:   current value: $ac_new_val" >&2;}
1388         ac_cache_corrupted=:
1389       fi;;
1390   esac
1391   # Pass precious variables to config.status.
1392   if test "$ac_new_set" = set; then
1393     case $ac_new_val in
1394     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1395       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1396     *) ac_arg=$ac_var=$ac_new_val ;;
1397     esac
1398     case " $ac_configure_args " in
1399       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1400       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1401     esac
1402   fi
1403 done
1404 if $ac_cache_corrupted; then
1405   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1406 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1407   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1408 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1409    { (exit 1); exit 1; }; }
1410 fi
1411
1412 ac_ext=c
1413 ac_cpp='$CPP $CPPFLAGS'
1414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444 ac_aux_dir=
1445 for ac_dir in autoconf $srcdir/autoconf; do
1446   if test -f $ac_dir/install-sh; then
1447     ac_aux_dir=$ac_dir
1448     ac_install_sh="$ac_aux_dir/install-sh -c"
1449     break
1450   elif test -f $ac_dir/install.sh; then
1451     ac_aux_dir=$ac_dir
1452     ac_install_sh="$ac_aux_dir/install.sh -c"
1453     break
1454   elif test -f $ac_dir/shtool; then
1455     ac_aux_dir=$ac_dir
1456     ac_install_sh="$ac_aux_dir/shtool install -c"
1457     break
1458   fi
1459 done
1460 if test -z "$ac_aux_dir"; then
1461   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1462 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1463    { (exit 1); exit 1; }; }
1464 fi
1465 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1466 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1467 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1468
1469 # Make sure we can run config.sub.
1470 $ac_config_sub sun4 >/dev/null 2>&1 ||
1471   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1472 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1473    { (exit 1); exit 1; }; }
1474
1475 echo "$as_me:$LINENO: checking build system type" >&5
1476 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1477 if test "${ac_cv_build+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   ac_cv_build_alias=$build_alias
1481 test -z "$ac_cv_build_alias" &&
1482   ac_cv_build_alias=`$ac_config_guess`
1483 test -z "$ac_cv_build_alias" &&
1484   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1485 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1486    { (exit 1); exit 1; }; }
1487 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1488   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1490    { (exit 1); exit 1; }; }
1491
1492 fi
1493 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1494 echo "${ECHO_T}$ac_cv_build" >&6
1495 build=$ac_cv_build
1496 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1499
1500
1501 echo "$as_me:$LINENO: checking host system type" >&5
1502 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1503 if test "${ac_cv_host+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   ac_cv_host_alias=$host_alias
1507 test -z "$ac_cv_host_alias" &&
1508   ac_cv_host_alias=$ac_cv_build_alias
1509 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1510   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1511 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1512    { (exit 1); exit 1; }; }
1513
1514 fi
1515 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1516 echo "${ECHO_T}$ac_cv_host" >&6
1517 host=$ac_cv_host
1518 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1519 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1520 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1521
1522
1523 echo "$as_me:$LINENO: checking target system type" >&5
1524 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1525 if test "${ac_cv_target+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   ac_cv_target_alias=$target_alias
1529 test "x$ac_cv_target_alias" = "x" &&
1530   ac_cv_target_alias=$ac_cv_host_alias
1531 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1532   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1534    { (exit 1); exit 1; }; }
1535
1536 fi
1537 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1538 echo "${ECHO_T}$ac_cv_target" >&6
1539 target=$ac_cv_target
1540 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543
1544
1545 # The aliases save the names the user supplied, while $host etc.
1546 # will get canonicalized.
1547 test -n "$target_alias" &&
1548   test "$program_prefix$program_suffix$program_transform_name" = \
1549     NONENONEs,x,x, &&
1550   program_prefix=${target_alias}-
1551 am__api_version="1.8"
1552 # Find a good install program.  We prefer a C program (faster),
1553 # so one script is as good as another.  But avoid the broken or
1554 # incompatible versions:
1555 # SysV /etc/install, /usr/sbin/install
1556 # SunOS /usr/etc/install
1557 # IRIX /sbin/install
1558 # AIX /bin/install
1559 # AmigaOS /C/install, which installs bootblocks on floppy discs
1560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1563 # OS/2's system install, which has a completely different semantic
1564 # ./install, which can be erroneously created by make from ./install.sh.
1565 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1566 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1567 if test -z "$INSTALL"; then
1568 if test "${ac_cv_path_install+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1573 do
1574   IFS=$as_save_IFS
1575   test -z "$as_dir" && as_dir=.
1576   # Account for people who put trailing slashes in PATH elements.
1577 case $as_dir/ in
1578   ./ | .// | /cC/* | \
1579   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1580   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1581   /usr/ucb/* ) ;;
1582   *)
1583     # OSF1 and SCO ODT 3.0 have their own names for install.
1584     # Don't use installbsd from OSF since it installs stuff as root
1585     # by default.
1586     for ac_prog in ginstall scoinst install; do
1587       for ac_exec_ext in '' $ac_executable_extensions; do
1588         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1589           if test $ac_prog = install &&
1590             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1591             # AIX install.  It has an incompatible calling convention.
1592             :
1593           elif test $ac_prog = install &&
1594             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595             # program-specific install script used by HP pwplus--don't use.
1596             :
1597           else
1598             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1599             break 3
1600           fi
1601         fi
1602       done
1603     done
1604     ;;
1605 esac
1606 done
1607
1608
1609 fi
1610   if test "${ac_cv_path_install+set}" = set; then
1611     INSTALL=$ac_cv_path_install
1612   else
1613     # As a last resort, use the slow shell script.  We don't cache a
1614     # path for INSTALL within a source directory, because that will
1615     # break other packages using the cache if that directory is
1616     # removed, or if the path is relative.
1617     INSTALL=$ac_install_sh
1618   fi
1619 fi
1620 echo "$as_me:$LINENO: result: $INSTALL" >&5
1621 echo "${ECHO_T}$INSTALL" >&6
1622
1623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1624 # It thinks the first close brace ends the variable substitution.
1625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1626
1627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1628
1629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1630
1631 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1632 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1633 # Just in case
1634 sleep 1
1635 echo timestamp > conftest.file
1636 # Do `set' in a subshell so we don't clobber the current shell's
1637 # arguments.  Must try -L first in case configure is actually a
1638 # symlink; some systems play weird games with the mod time of symlinks
1639 # (eg FreeBSD returns the mod time of the symlink's containing
1640 # directory).
1641 if (
1642    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1643    if test "$*" = "X"; then
1644       # -L didn't work.
1645       set X `ls -t $srcdir/configure conftest.file`
1646    fi
1647    rm -f conftest.file
1648    if test "$*" != "X $srcdir/configure conftest.file" \
1649       && test "$*" != "X conftest.file $srcdir/configure"; then
1650
1651       # If neither matched, then we have a broken ls.  This can happen
1652       # if, for instance, CONFIG_SHELL is bash and it inherits a
1653       # broken ls alias from the environment.  This has actually
1654       # happened.  Such a system could not be considered "sane".
1655       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1656 alias in your environment" >&5
1657 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1658 alias in your environment" >&2;}
1659    { (exit 1); exit 1; }; }
1660    fi
1661
1662    test "$2" = conftest.file
1663    )
1664 then
1665    # Ok.
1666    :
1667 else
1668    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1669 Check your system clock" >&5
1670 echo "$as_me: error: newly created file is older than distributed files!
1671 Check your system clock" >&2;}
1672    { (exit 1); exit 1; }; }
1673 fi
1674 echo "$as_me:$LINENO: result: yes" >&5
1675 echo "${ECHO_T}yes" >&6
1676 test "$program_prefix" != NONE &&
1677   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1678 # Use a double $ so make ignores it.
1679 test "$program_suffix" != NONE &&
1680   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1681 # Double any \ or $.  echo might interpret backslashes.
1682 # By default was `s,x,x', remove it if useless.
1683 cat <<\_ACEOF >conftest.sed
1684 s/[\\$]/&&/g;s/;s,x,x,$//
1685 _ACEOF
1686 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1687 rm conftest.sed
1688
1689 # expand $ac_aux_dir to an absolute path
1690 am_aux_dir=`cd $ac_aux_dir && pwd`
1691
1692 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1693 # Use eval to expand $SHELL
1694 if eval "$MISSING --run true"; then
1695   am_missing_run="$MISSING --run "
1696 else
1697   am_missing_run=
1698   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1699 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1700 fi
1701
1702 if mkdir -p -- . 2>/dev/null; then
1703   # Keeping the `.' argument allows $(mkdir_p) to be used without
1704   # argument.  Indeed, we sometimes output rules like
1705   #   $(mkdir_p) $(somedir)
1706   # where $(somedir) is conditionally defined.
1707   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1708   # expensive solution, as it forces Make to start a sub-shell.)
1709   mkdir_p='mkdir -p -- .'
1710 else
1711   # On NextStep and OpenStep, the `mkdir' command does not
1712   # recognize any option.  It will interpret all options as
1713   # directories to create, and then abort because `.' already
1714   # exists.
1715   for d in ./-p ./--;
1716   do
1717     test -d $d && rmdir $d
1718   done
1719   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720   if test -f "$ac_aux_dir/mkinstalldirs"; then
1721     mkdir_p='$(mkinstalldirs)'
1722   else
1723     mkdir_p='$(install_sh) -d'
1724   fi
1725 fi
1726
1727 for ac_prog in gawk mawk nawk awk
1728 do
1729   # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$AWK"; then
1737   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_AWK="$ac_prog"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1752
1753 fi
1754 fi
1755 AWK=$ac_cv_prog_AWK
1756 if test -n "$AWK"; then
1757   echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1763
1764   test -n "$AWK" && break
1765 done
1766
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   cat >conftest.make <<\_ACEOF
1774 all:
1775         @echo 'ac_maketemp="$(MAKE)"'
1776 _ACEOF
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780   eval ac_cv_prog_make_${ac_make}_set=yes
1781 else
1782   eval ac_cv_prog_make_${ac_make}_set=no
1783 fi
1784 rm -f conftest.make
1785 fi
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787   echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1789   SET_MAKE=
1790 else
1791   echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793   SET_MAKE="MAKE=${MAKE-make}"
1794 fi
1795
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1799   am__leading_dot=.
1800 else
1801   am__leading_dot=_
1802 fi
1803 rmdir .tst 2>/dev/null
1804
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807    test -f $srcdir/config.status; then
1808   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810    { (exit 1); exit 1; }; }
1811 fi
1812
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815   if (cygpath --version) >/dev/null 2>/dev/null; then
1816     CYGPATH_W='cygpath -w'
1817   else
1818     CYGPATH_W=echo
1819   fi
1820 fi
1821
1822
1823 # Define the identity of the package.
1824  PACKAGE='TiMidity++'
1825  VERSION='2.13.2'
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE "$PACKAGE"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define VERSION "$VERSION"
1835 _ACEOF
1836
1837 # Some tools Automake needs.
1838
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1840
1841
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1843
1844
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1846
1847
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1849
1850
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1852
1853
1854 AMTAR=${AMTAR-"${am_missing_run}tar"}
1855
1856 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1857
1858 # Installed binaries are usually stripped using `strip' when the user
1859 # run `make install-strip'.  However `strip' might not be the right
1860 # tool to use in cross-compilation environments, therefore Automake
1861 # will honor the `STRIP' environment variable to overrule this program.
1862 if test "$cross_compiling" != no; then
1863   if test -n "$ac_tool_prefix"; then
1864   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}strip; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_STRIP+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$STRIP"; then
1872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 STRIP=$ac_cv_prog_STRIP
1891 if test -n "$STRIP"; then
1892   echo "$as_me:$LINENO: result: $STRIP" >&5
1893 echo "${ECHO_T}$STRIP" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899 fi
1900 if test -z "$ac_cv_prog_STRIP"; then
1901   ac_ct_STRIP=$STRIP
1902   # Extract the first word of "strip", so it can be a program name with args.
1903 set dummy strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$ac_ct_STRIP"; then
1910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_ac_ct_STRIP="strip"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1927 fi
1928 fi
1929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1930 if test -n "$ac_ct_STRIP"; then
1931   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1932 echo "${ECHO_T}$ac_ct_STRIP" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938   STRIP=$ac_ct_STRIP
1939 else
1940   STRIP="$ac_cv_prog_STRIP"
1941 fi
1942
1943 fi
1944 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1945
1946 # We need awk for the "check" target.  The system "awk" is bad on
1947 # some platforms.
1948
1949
1950
1951
1952                     ac_config_headers="$ac_config_headers config.h interface.h"
1953
1954 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1955 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1956     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1957 if test "${enable_maintainer_mode+set}" = set; then
1958   enableval="$enable_maintainer_mode"
1959   USE_MAINTAINER_MODE=$enableval
1960 else
1961   USE_MAINTAINER_MODE=no
1962 fi;
1963   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1964 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1965
1966
1967 if test $USE_MAINTAINER_MODE = yes; then
1968   MAINTAINER_MODE_TRUE=
1969   MAINTAINER_MODE_FALSE='#'
1970 else
1971   MAINTAINER_MODE_TRUE='#'
1972   MAINTAINER_MODE_FALSE=
1973 fi
1974
1975   MAINT=$MAINTAINER_MODE_TRUE
1976
1977
1978
1979 SHELL=${CONFIG_SHELL-"/bin/sh"}
1980 WISH=${WISH-"wish"}
1981
1982 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1983 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1984 echo "grimblepritz" >grimble
1985 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1986         contains="./contains"
1987 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1988         contains=grep
1989 else
1990         contains="./contains"
1991 fi
1992 rm -f grimble
1993 case "$contains" in
1994 grep)   echo "$as_me:$LINENO: result: yes" >&5
1995 echo "${ECHO_T}yes" >&6
1996         ;;
1997 ./contains)
1998         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1999 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
2000         cat >./contains <<'EOSS'
2001 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2002 EOSS
2003         chmod +x "./contains"
2004         ;;
2005 esac
2006
2007
2008 # Check for compiler options -- such as debug flags.
2009
2010 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2011 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
2012 # Check whether --enable-debug or --disable-debug was given.
2013 if test "${enable_debug+set}" = set; then
2014   enableval="$enable_debug"
2015   timidity_cv_debug="yes"
2016 else
2017   timidity_cv_debug="no"
2018 fi;
2019 if test "x$timidity_cv_debug" = "xyes"; then
2020
2021 cat >>confdefs.h <<\_ACEOF
2022 #define DEBUG 1
2023 _ACEOF
2024
2025   CFLAGS=${CFLAGS-"-g"}
2026 fi
2027 if test "x$timidity_cv_debug" = "xno"; then
2028
2029 cat >>confdefs.h <<\_ACEOF
2030 #define NDEBUG 1
2031 _ACEOF
2032
2033 fi
2034 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2035 echo "${ECHO_T}$timidity_cv_debug" >&6
2036
2037 if test "x$CFLAGS" = "x"; then
2038   NOCFLAGS="yes"
2039 fi
2040
2041 if test "x$with_x" = x; then
2042   with_x=yes
2043 else
2044   x_config_flag=yes
2045 fi
2046
2047 # Checking gcc environment
2048 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2049   LDFLAGS="$LDFLAGS -L${i}"
2050 done
2051 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2052   CPPFLAGS="$CPPFLAGS -I${i}"
2053 done
2054
2055 # add $prefix if specified.
2056 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2057   LDFLAGS="-L$prefix/lib $LDFLAGS"
2058   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2059   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2060 fi
2061
2062
2063 # Check whether --with-includes or --without-includes was given.
2064 if test "${with_includes+set}" = set; then
2065   withval="$with_includes"
2066    j=' '
2067     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2068       j="${j}-I${i} "
2069     done
2070     CPPFLAGS="$j$CPPFLAGS"
2071
2072 fi;
2073
2074
2075 # Check whether --with-libraries or --without-libraries was given.
2076 if test "${with_libraries+set}" = set; then
2077   withval="$with_libraries"
2078    j=' '
2079     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2080       j="${j}-L${i} "
2081     done
2082     LDFLAGS="$j$LDFLAGS"
2083
2084 fi;
2085
2086
2087
2088 # Check whether --with-default-path or --without-default-path was given.
2089 if test "${with_default_path+set}" = set; then
2090   withval="$with_default_path"
2091   pkgdatadir=$withval
2092 else
2093
2094    if test "x$prefix" != "xNONE"; then
2095       pkgdatadir='${prefix}/share/timidity'
2096    else
2097       pkgdatadir='/usr/local/share/timidity'
2098    fi
2099
2100 fi;
2101 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define DEFAULT_PATH "$tmpdefpath"
2105 _ACEOF
2106
2107
2108 cat >>confdefs.h <<\_ACEOF
2109 #define PKGDATADIR DEFAULT_PATH
2110 _ACEOF
2111
2112
2113
2114 # Check whether --with-module-dir or --without-module-dir was given.
2115 if test "${with_module_dir+set}" = set; then
2116   withval="$with_module_dir"
2117   pkglibdir=$withval
2118 else
2119
2120    if test "x$prefix" != "xNONE"; then
2121       pkglibdir='${prefix}/lib/timidity'
2122    else
2123       pkglibdir='/usr/local/lib/timidity'
2124    fi
2125
2126 fi;
2127 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PKGLIBDIR "$tmplibdir"
2131 _ACEOF
2132
2133
2134
2135 # Checks for programs.
2136  # If set to t, that means we are running in a shell under Emacs.
2137  # If you have an Emacs named "t", then use the full path.
2138  test x"$EMACS" = xt && EMACS=
2139  for ac_prog in emacs xemacs
2140 do
2141   # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy $ac_prog; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_EMACS+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test -n "$EMACS"; then
2149   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   for ac_exec_ext in '' $ac_executable_extensions; do
2157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158     ac_cv_prog_EMACS="$ac_prog"
2159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164
2165 fi
2166 fi
2167 EMACS=$ac_cv_prog_EMACS
2168 if test -n "$EMACS"; then
2169   echo "$as_me:$LINENO: result: $EMACS" >&5
2170 echo "${ECHO_T}$EMACS" >&6
2171 else
2172   echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2174 fi
2175
2176   test -n "$EMACS" && break
2177 done
2178 test -n "$EMACS" || EMACS="no"
2179
2180
2181
2182
2183 # Check whether --with-lispdir or --without-lispdir was given.
2184 if test "${with_lispdir+set}" = set; then
2185   withval="$with_lispdir"
2186    lispdir="$withval"
2187    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2188 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2189    echo "$as_me:$LINENO: result: $lispdir" >&5
2190 echo "${ECHO_T}$lispdir" >&6
2191 else
2192
2193  echo "$as_me:$LINENO: checking where .elc files should go" >&5
2194 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2195 if test "${am_cv_lispdir+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198
2199    if test $EMACS != "no"; then
2200      if test x${lispdir+set} != xset; then
2201   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2202   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2203   #  which is non-obvious for non-emacs users.
2204   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2205   #  emacsen earlier and avoid running this altogether.
2206   { (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
2207   ($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
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }
2211         am_cv_lispdir=`sed -n \
2212        -e 's,/$,,' \
2213        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2214        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2215        conftest.out`
2216        rm conftest.out
2217      fi
2218    fi
2219    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
2220
2221 fi
2222 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2223 echo "${ECHO_T}$am_cv_lispdir" >&6
2224   lispdir="$am_cv_lispdir"
2225
2226 fi;
2227
2228
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234 if test -n "$ac_tool_prefix"; then
2235   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   if test -n "$CC"; then
2243   ac_cv_prog_CC="$CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263   echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270 fi
2271 if test -z "$ac_cv_prog_CC"; then
2272   ac_ct_CC=$CC
2273   # Extract the first word of "gcc", so it can be a program name with args.
2274 set dummy gcc; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$ac_ct_CC"; then
2281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     ac_cv_prog_ac_ct_CC="gcc"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296
2297 fi
2298 fi
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6
2303 else
2304   echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2306 fi
2307
2308   CC=$ac_ct_CC
2309 else
2310   CC="$ac_cv_prog_CC"
2311 fi
2312
2313 if test -z "$CC"; then
2314   if test -n "$ac_tool_prefix"; then
2315   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}cc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$CC"; then
2323   ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332     ac_cv_prog_CC="${ac_tool_prefix}cc"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338
2339 fi
2340 fi
2341 CC=$ac_cv_prog_CC
2342 if test -n "$CC"; then
2343   echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2345 else
2346   echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350 fi
2351 if test -z "$ac_cv_prog_CC"; then
2352   ac_ct_CC=$CC
2353   # Extract the first word of "cc", so it can be a program name with args.
2354 set dummy cc; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$ac_ct_CC"; then
2361   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370     ac_cv_prog_ac_ct_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 fi
2378 fi
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2383 else
2384   echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2386 fi
2387
2388   CC=$ac_ct_CC
2389 else
2390   CC="$ac_cv_prog_CC"
2391 fi
2392
2393 fi
2394 if test -z "$CC"; then
2395   # Extract the first word of "cc", so it can be a program name with args.
2396 set dummy cc; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$CC"; then
2403   ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405   ac_prog_rejected=no
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2414        ac_prog_rejected=yes
2415        continue
2416      fi
2417     ac_cv_prog_CC="cc"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424 if test $ac_prog_rejected = yes; then
2425   # We found a bogon in the path, so make sure we never use it.
2426   set dummy $ac_cv_prog_CC
2427   shift
2428   if test $# != 0; then
2429     # We chose a different compiler from the bogus one.
2430     # However, it has the same basename, so the bogon will be chosen
2431     # first if we set CC to just the basename; use the full file name.
2432     shift
2433     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2434   fi
2435 fi
2436 fi
2437 fi
2438 CC=$ac_cv_prog_CC
2439 if test -n "$CC"; then
2440   echo "$as_me:$LINENO: result: $CC" >&5
2441 echo "${ECHO_T}$CC" >&6
2442 else
2443   echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2445 fi
2446
2447 fi
2448 if test -z "$CC"; then
2449   if test -n "$ac_tool_prefix"; then
2450   for ac_prog in cl
2451   do
2452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2454 echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   if test -n "$CC"; then
2460   ac_cv_prog_CC="$CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467   for ac_exec_ext in '' $ac_executable_extensions; do
2468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2469     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474 done
2475
2476 fi
2477 fi
2478 CC=$ac_cv_prog_CC
2479 if test -n "$CC"; then
2480   echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6
2482 else
2483   echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6
2485 fi
2486
2487     test -n "$CC" && break
2488   done
2489 fi
2490 if test -z "$CC"; then
2491   ac_ct_CC=$CC
2492   for ac_prog in cl
2493 do
2494   # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$ac_ct_CC"; then
2502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511     ac_cv_prog_ac_ct_CC="$ac_prog"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517
2518 fi
2519 fi
2520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521 if test -n "$ac_ct_CC"; then
2522   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2523 echo "${ECHO_T}$ac_ct_CC" >&6
2524 else
2525   echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2527 fi
2528
2529   test -n "$ac_ct_CC" && break
2530 done
2531
2532   CC=$ac_ct_CC
2533 fi
2534
2535 fi
2536
2537
2538 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: no acceptable C compiler found in \$PATH
2541 See \`config.log' for more details." >&2;}
2542    { (exit 1); exit 1; }; }
2543
2544 # Provide some information about the compiler.
2545 echo "$as_me:$LINENO:" \
2546      "checking for C compiler version" >&5
2547 ac_compiler=`set X $ac_compile; echo $2`
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2549   (eval $ac_compiler --version </dev/null >&5) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }
2553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2554   (eval $ac_compiler -v </dev/null >&5) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }
2558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2559   (eval $ac_compiler -V </dev/null >&5) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }
2563
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570
2571 int
2572 main ()
2573 {
2574
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 ac_clean_files_save=$ac_clean_files
2580 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2581 # Try to create an executable without -o first, disregard a.out.
2582 # It will help us diagnose broken compilers, and finding out an intuition
2583 # of exeext.
2584 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2585 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2588   (eval $ac_link_default) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; then
2592   # Find the output, starting from the most likely.  This scheme is
2593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2594 # resort.
2595
2596 # Be careful to initialize this variable, since it used to be cached.
2597 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2598 ac_cv_exeext=
2599 # b.out is created by i960 compilers.
2600 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2601 do
2602   test -f "$ac_file" || continue
2603   case $ac_file in
2604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2605         ;;
2606     conftest.$ac_ext )
2607         # This is the source file.
2608         ;;
2609     [ab].out )
2610         # We found the default executable, but exeext='' is most
2611         # certainly right.
2612         break;;
2613     *.* )
2614         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615         # FIXME: I believe we export ac_cv_exeext for Libtool,
2616         # but it would be cool to find out if it's true.  Does anybody
2617         # maintain Libtool? --akim.
2618         export ac_cv_exeext
2619         break;;
2620     * )
2621         break;;
2622   esac
2623 done
2624 else
2625   echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2627
2628 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2629 See \`config.log' for more details." >&5
2630 echo "$as_me: error: C compiler cannot create executables
2631 See \`config.log' for more details." >&2;}
2632    { (exit 77); exit 77; }; }
2633 fi
2634
2635 ac_exeext=$ac_cv_exeext
2636 echo "$as_me:$LINENO: result: $ac_file" >&5
2637 echo "${ECHO_T}$ac_file" >&6
2638
2639 # Check the compiler produces executables we can run.  If not, either
2640 # the compiler is broken, or we cross compile.
2641 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2644 # If not cross compiling, check that we can run a simple program.
2645 if test "$cross_compiling" != yes; then
2646   if { ac_try='./$ac_file'
2647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648   (eval $ac_try) 2>&5
2649   ac_status=$?
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); }; }; then
2652     cross_compiling=no
2653   else
2654     if test "$cross_compiling" = maybe; then
2655         cross_compiling=yes
2656     else
2657         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot run C compiled programs.
2661 If you meant to cross compile, use \`--host'.
2662 See \`config.log' for more details." >&2;}
2663    { (exit 1); exit 1; }; }
2664     fi
2665   fi
2666 fi
2667 echo "$as_me:$LINENO: result: yes" >&5
2668 echo "${ECHO_T}yes" >&6
2669
2670 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2671 ac_clean_files=$ac_clean_files_save
2672 # Check the compiler produces executables we can run.  If not, either
2673 # the compiler is broken, or we cross compile.
2674 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2675 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2676 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2677 echo "${ECHO_T}$cross_compiling" >&6
2678
2679 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2680 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2682   (eval $ac_link) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; then
2686   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2687 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2688 # work properly (i.e., refer to `conftest.exe'), while it won't with
2689 # `rm'.
2690 for ac_file in conftest.exe conftest conftest.*; do
2691   test -f "$ac_file" || continue
2692   case $ac_file in
2693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2694     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695           export ac_cv_exeext
2696           break;;
2697     * ) break;;
2698   esac
2699 done
2700 else
2701   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2704 See \`config.log' for more details." >&2;}
2705    { (exit 1); exit 1; }; }
2706 fi
2707
2708 rm -f conftest$ac_cv_exeext
2709 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2710 echo "${ECHO_T}$ac_cv_exeext" >&6
2711
2712 rm -f conftest.$ac_ext
2713 EXEEXT=$ac_cv_exeext
2714 ac_exeext=$EXEEXT
2715 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2716 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2717 if test "${ac_cv_objext+set}" = set; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.o conftest.obj
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737   (eval $ac_compile) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; then
2741   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2742   case $ac_file in
2743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2744     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2745        break;;
2746   esac
2747 done
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2755 See \`config.log' for more details." >&2;}
2756    { (exit 1); exit 1; }; }
2757 fi
2758
2759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2760 fi
2761 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2762 echo "${ECHO_T}$ac_cv_objext" >&6
2763 OBJEXT=$ac_cv_objext
2764 ac_objext=$OBJEXT
2765 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2768   echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770   cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2776
2777 int
2778 main ()
2779 {
2780 #ifndef __GNUC__
2781        choke me
2782 #endif
2783
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790   (eval $ac_compile) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } &&
2797          { ac_try='test -z "$ac_c_werror_flag"
2798                          || test ! -s conftest.err'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; } &&
2804          { ac_try='test -s conftest.$ac_objext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   ac_compiler_gnu=yes
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 ac_compiler_gnu=no
2816 fi
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2819
2820 fi
2821 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2823 GCC=`test $ac_compiler_gnu = yes && echo yes`
2824 ac_test_CFLAGS=${CFLAGS+set}
2825 ac_save_CFLAGS=$CFLAGS
2826 CFLAGS="-g"
2827 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2829 if test "${ac_cv_prog_cc_g+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838
2839 int
2840 main ()
2841 {
2842
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849   (eval $ac_compile) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } &&
2856          { ac_try='test -z "$ac_c_werror_flag"
2857                          || test ! -s conftest.err'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; } &&
2863          { ac_try='test -s conftest.$ac_objext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   ac_cv_prog_cc_g=yes
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 ac_cv_prog_cc_g=no
2875 fi
2876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877 fi
2878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2880 if test "$ac_test_CFLAGS" = set; then
2881   CFLAGS=$ac_save_CFLAGS
2882 elif test $ac_cv_prog_cc_g = yes; then
2883   if test "$GCC" = yes; then
2884     CFLAGS="-g -O2"
2885   else
2886     CFLAGS="-g"
2887   fi
2888 else
2889   if test "$GCC" = yes; then
2890     CFLAGS="-O2"
2891   else
2892     CFLAGS=
2893   fi
2894 fi
2895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   ac_cv_prog_cc_stdc=no
2901 ac_save_CC=$CC
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 #include <stdarg.h>
2909 #include <stdio.h>
2910 #include <sys/types.h>
2911 #include <sys/stat.h>
2912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2913 struct buf { int x; };
2914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2915 static char *e (p, i)
2916      char **p;
2917      int i;
2918 {
2919   return p[i];
2920 }
2921 static char *f (char * (*g) (char **, int), char **p, ...)
2922 {
2923   char *s;
2924   va_list v;
2925   va_start (v,p);
2926   s = g (p, va_arg (v,int));
2927   va_end (v);
2928   return s;
2929 }
2930
2931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2932    function prototypes and stuff, but not '\xHH' hex character constants.
2933    These don't provoke an error unfortunately, instead are silently treated
2934    as 'x'.  The following induces an error, until -std1 is added to get
2935    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2936    array size at least.  It's necessary to write '\x00'==0 to get something
2937    that's true only with -std1.  */
2938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2939
2940 int test (int i, double x);
2941 struct s1 {int (*f) (int a);};
2942 struct s2 {int (*f) (double a);};
2943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2944 int argc;
2945 char **argv;
2946 int
2947 main ()
2948 {
2949 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 # Don't try gcc -ansi; that turns off useful extensions and
2955 # breaks some systems' header files.
2956 # AIX                   -qlanglvl=ansi
2957 # Ultrix and OSF/1      -std1
2958 # HP-UX 10.20 and later -Ae
2959 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2960 # SVR4                  -Xc -D__EXTENSIONS__
2961 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2962 do
2963   CC="$ac_save_CC $ac_arg"
2964   rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966   (eval $ac_compile) 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } &&
2973          { ac_try='test -z "$ac_c_werror_flag"
2974                          || test ! -s conftest.err'
2975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976   (eval $ac_try) 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; } &&
2980          { ac_try='test -s conftest.$ac_objext'
2981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   ac_cv_prog_cc_stdc=$ac_arg
2987 break
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 fi
2993 rm -f conftest.err conftest.$ac_objext
2994 done
2995 rm -f conftest.$ac_ext conftest.$ac_objext
2996 CC=$ac_save_CC
2997
2998 fi
2999
3000 case "x$ac_cv_prog_cc_stdc" in
3001   x|xno)
3002     echo "$as_me:$LINENO: result: none needed" >&5
3003 echo "${ECHO_T}none needed" >&6 ;;
3004   *)
3005     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3006 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3007     CC="$CC $ac_cv_prog_cc_stdc" ;;
3008 esac
3009
3010 # Some people use a C++ compiler to compile C.  Since we use `exit',
3011 # in C++ we need to declare it.  In case someone uses the same compiler
3012 # for both compiling C and C++ we need to have the C++ compiler decide
3013 # the declaration of exit, since it's the most demanding environment.
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #ifndef __cplusplus
3016   choke me
3017 #endif
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021   (eval $ac_compile) 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -z "$ac_c_werror_flag"
3029                          || test ! -s conftest.err'
3030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031   (eval $ac_try) 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; } &&
3035          { ac_try='test -s conftest.$ac_objext'
3036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037   (eval $ac_try) 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; }; then
3041   for ac_declaration in \
3042    '' \
3043    'extern "C" void std::exit (int) throw (); using std::exit;' \
3044    'extern "C" void std::exit (int); using std::exit;' \
3045    'extern "C" void exit (int) throw ();' \
3046    'extern "C" void exit (int);' \
3047    'void exit (int);'
3048 do
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 $ac_declaration
3056 #include <stdlib.h>
3057 int
3058 main ()
3059 {
3060 exit (42);
3061   ;
3062   return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067   (eval $ac_compile) 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } &&
3074          { ac_try='test -z "$ac_c_werror_flag"
3075                          || test ! -s conftest.err'
3076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077   (eval $ac_try) 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }; } &&
3081          { ac_try='test -s conftest.$ac_objext'
3082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083   (eval $ac_try) 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; }; then
3087   :
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 continue
3093 fi
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095   cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101 $ac_declaration
3102 int
3103 main ()
3104 {
3105 exit (42);
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112   (eval $ac_compile) 2>conftest.er1
3113   ac_status=$?
3114   grep -v '^ *+' conftest.er1 >conftest.err
3115   rm -f conftest.er1
3116   cat conftest.err >&5
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); } &&
3119          { ac_try='test -z "$ac_c_werror_flag"
3120                          || test ! -s conftest.err'
3121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122   (eval $ac_try) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; } &&
3126          { ac_try='test -s conftest.$ac_objext'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; }; then
3132   break
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137 fi
3138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3139 done
3140 rm -f conftest*
3141 if test -n "$ac_declaration"; then
3142   echo '#ifdef __cplusplus' >>confdefs.h
3143   echo $ac_declaration      >>confdefs.h
3144   echo '#endif'             >>confdefs.h
3145 fi
3146
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 fi
3152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 DEPDIR="${am__leading_dot}deps"
3159
3160           ac_config_commands="$ac_config_commands depfiles"
3161
3162
3163 am_make=${MAKE-make}
3164 cat > confinc << 'END'
3165 am__doit:
3166         @echo done
3167 .PHONY: am__doit
3168 END
3169 # If we don't find an include directive, just comment out the code.
3170 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3171 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3172 am__include="#"
3173 am__quote=
3174 _am_result=none
3175 # First try GNU make style include.
3176 echo "include confinc" > confmf
3177 # We grep out `Entering directory' and `Leaving directory'
3178 # messages which can occur if `w' ends up in MAKEFLAGS.
3179 # In particular we don't look at `^make:' because GNU make might
3180 # be invoked under some other name (usually "gmake"), in which
3181 # case it prints its new name instead of `make'.
3182 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3183    am__include=include
3184    am__quote=
3185    _am_result=GNU
3186 fi
3187 # Now try BSD make style include.
3188 if test "$am__include" = "#"; then
3189    echo '.include "confinc"' > confmf
3190    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3191       am__include=.include
3192       am__quote="\""
3193       _am_result=BSD
3194    fi
3195 fi
3196
3197
3198 echo "$as_me:$LINENO: result: $_am_result" >&5
3199 echo "${ECHO_T}$_am_result" >&6
3200 rm -f confinc confmf
3201
3202 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3203 if test "${enable_dependency_tracking+set}" = set; then
3204   enableval="$enable_dependency_tracking"
3205
3206 fi;
3207 if test "x$enable_dependency_tracking" != xno; then
3208   am_depcomp="$ac_aux_dir/depcomp"
3209   AMDEPBACKSLASH='\'
3210 fi
3211
3212
3213 if test "x$enable_dependency_tracking" != xno; then
3214   AMDEP_TRUE=
3215   AMDEP_FALSE='#'
3216 else
3217   AMDEP_TRUE='#'
3218   AMDEP_FALSE=
3219 fi
3220
3221
3222
3223
3224 depcc="$CC"   am_compiler_list=
3225
3226 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3227 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3228 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3232   # We make a subdir and do the tests there.  Otherwise we can end up
3233   # making bogus files that we don't know about and never remove.  For
3234   # instance it was reported that on HP-UX the gcc test will end up
3235   # making a dummy file named `D' -- because `-MD' means `put the output
3236   # in D'.
3237   mkdir conftest.dir
3238   # Copy depcomp to subdir because otherwise we won't find it if we're
3239   # using a relative directory.
3240   cp "$am_depcomp" conftest.dir
3241   cd conftest.dir
3242   # We will build objects and dependencies in a subdirectory because
3243   # it helps to detect inapplicable dependency modes.  For instance
3244   # both Tru64's cc and ICC support -MD to output dependencies as a
3245   # side effect of compilation, but ICC will put the dependencies in
3246   # the current directory while Tru64 will put them in the object
3247   # directory.
3248   mkdir sub
3249
3250   am_cv_CC_dependencies_compiler_type=none
3251   if test "$am_compiler_list" = ""; then
3252      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3253   fi
3254   for depmode in $am_compiler_list; do
3255     # Setup a source with many dependencies, because some compilers
3256     # like to wrap large dependency lists on column 80 (with \), and
3257     # we should not choose a depcomp mode which is confused by this.
3258     #
3259     # We need to recreate these files for each test, as the compiler may
3260     # overwrite some of them when testing with obscure command lines.
3261     # This happens at least with the AIX C compiler.
3262     : > sub/conftest.c
3263     for i in 1 2 3 4 5 6; do
3264       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3265       : > sub/conftst$i.h
3266     done
3267     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3268
3269     case $depmode in
3270     nosideeffect)
3271       # after this tag, mechanisms are not by side-effect, so they'll
3272       # only be used when explicitly requested
3273       if test "x$enable_dependency_tracking" = xyes; then
3274         continue
3275       else
3276         break
3277       fi
3278       ;;
3279     none) break ;;
3280     esac
3281     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3282     # mode.  It turns out that the SunPro C++ compiler does not properly
3283     # handle `-M -o', and we need to detect this.
3284     if depmode=$depmode \
3285        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3286        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3287        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3288          >/dev/null 2>conftest.err &&
3289        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3290        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3291        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3292       # icc doesn't choke on unknown options, it will just issue warnings
3293       # (even with -Werror).  So we grep stderr for any message
3294       # that says an option was ignored.
3295       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3296         am_cv_CC_dependencies_compiler_type=$depmode
3297         break
3298       fi
3299     fi
3300   done
3301
3302   cd ..
3303   rm -rf conftest.dir
3304 else
3305   am_cv_CC_dependencies_compiler_type=none
3306 fi
3307
3308 fi
3309 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3312
3313
3314
3315 if
3316   test "x$enable_dependency_tracking" != xno \
3317   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3318   am__fastdepCC_TRUE=
3319   am__fastdepCC_FALSE='#'
3320 else
3321   am__fastdepCC_TRUE='#'
3322   am__fastdepCC_FALSE=
3323 fi
3324
3325
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3333 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3334 # On Suns, sometimes $CPP names a directory.
3335 if test -n "$CPP" && test -d "$CPP"; then
3336   CPP=
3337 fi
3338 if test -z "$CPP"; then
3339   if test "${ac_cv_prog_CPP+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342       # Double quotes because CPP needs to be expanded
3343     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3344     do
3345       ac_preproc_ok=false
3346 for ac_c_preproc_warn_flag in '' yes
3347 do
3348   # Use a header file that comes with gcc, so configuring glibc
3349   # with a fresh cross-compiler works.
3350   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351   # <limits.h> exists even on freestanding compilers.
3352   # On the NeXT, cc -E runs the code through the compiler's parser,
3353   # not just through cpp. "Syntax error" is here to catch this case.
3354   cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h.  */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h.  */
3360 #ifdef __STDC__
3361 # include <limits.h>
3362 #else
3363 # include <assert.h>
3364 #endif
3365                      Syntax error
3366 _ACEOF
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } >/dev/null; then
3375   if test -s conftest.err; then
3376     ac_cpp_err=$ac_c_preproc_warn_flag
3377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378   else
3379     ac_cpp_err=
3380   fi
3381 else
3382   ac_cpp_err=yes
3383 fi
3384 if test -z "$ac_cpp_err"; then
3385   :
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390   # Broken: fails on valid input.
3391 continue
3392 fi
3393 rm -f conftest.err conftest.$ac_ext
3394
3395   # OK, works on sane cases.  Now check whether non-existent headers
3396   # can be detected and how.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #include <ac_nonexistent.h>
3404 _ACEOF
3405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } >/dev/null; then
3413   if test -s conftest.err; then
3414     ac_cpp_err=$ac_c_preproc_warn_flag
3415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416   else
3417     ac_cpp_err=
3418   fi
3419 else
3420   ac_cpp_err=yes
3421 fi
3422 if test -z "$ac_cpp_err"; then
3423   # Broken: success on invalid input.
3424 continue
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429   # Passes both tests.
3430 ac_preproc_ok=:
3431 break
3432 fi
3433 rm -f conftest.err conftest.$ac_ext
3434
3435 done
3436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437 rm -f conftest.err conftest.$ac_ext
3438 if $ac_preproc_ok; then
3439   break
3440 fi
3441
3442     done
3443     ac_cv_prog_CPP=$CPP
3444
3445 fi
3446   CPP=$ac_cv_prog_CPP
3447 else
3448   ac_cv_prog_CPP=$CPP
3449 fi
3450 echo "$as_me:$LINENO: result: $CPP" >&5
3451 echo "${ECHO_T}$CPP" >&6
3452 ac_preproc_ok=false
3453 for ac_c_preproc_warn_flag in '' yes
3454 do
3455   # Use a header file that comes with gcc, so configuring glibc
3456   # with a fresh cross-compiler works.
3457   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3458   # <limits.h> exists even on freestanding compilers.
3459   # On the NeXT, cc -E runs the code through the compiler's parser,
3460   # not just through cpp. "Syntax error" is here to catch this case.
3461   cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467 #ifdef __STDC__
3468 # include <limits.h>
3469 #else
3470 # include <assert.h>
3471 #endif
3472                      Syntax error
3473 _ACEOF
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476   ac_status=$?
3477   grep -v '^ *+' conftest.er1 >conftest.err
3478   rm -f conftest.er1
3479   cat conftest.err >&5
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } >/dev/null; then
3482   if test -s conftest.err; then
3483     ac_cpp_err=$ac_c_preproc_warn_flag
3484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485   else
3486     ac_cpp_err=
3487   fi
3488 else
3489   ac_cpp_err=yes
3490 fi
3491 if test -z "$ac_cpp_err"; then
3492   :
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497   # Broken: fails on valid input.
3498 continue
3499 fi
3500 rm -f conftest.err conftest.$ac_ext
3501
3502   # OK, works on sane cases.  Now check whether non-existent headers
3503   # can be detected and how.
3504   cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 #include <ac_nonexistent.h>
3511 _ACEOF
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } >/dev/null; then
3520   if test -s conftest.err; then
3521     ac_cpp_err=$ac_c_preproc_warn_flag
3522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523   else
3524     ac_cpp_err=
3525   fi
3526 else
3527   ac_cpp_err=yes
3528 fi
3529 if test -z "$ac_cpp_err"; then
3530   # Broken: success on invalid input.
3531 continue
3532 else
3533   echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536   # Passes both tests.
3537 ac_preproc_ok=:
3538 break
3539 fi
3540 rm -f conftest.err conftest.$ac_ext
3541
3542 done
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.err conftest.$ac_ext
3545 if $ac_preproc_ok; then
3546   :
3547 else
3548   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3549 See \`config.log' for more details." >&5
3550 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3551 See \`config.log' for more details." >&2;}
3552    { (exit 1); exit 1; }; }
3553 fi
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561
3562 echo "$as_me:$LINENO: checking for egrep" >&5
3563 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3564 if test "${ac_cv_prog_egrep+set}" = set; then
3565   echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3568     then ac_cv_prog_egrep='grep -E'
3569     else ac_cv_prog_egrep='egrep'
3570     fi
3571 fi
3572 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3573 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3574  EGREP=$ac_cv_prog_egrep
3575
3576
3577 if test $ac_cv_c_compiler_gnu = yes; then
3578     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3579 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3580 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583     ac_pattern="Autoconf.*'x'"
3584   cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590 #include <sgtty.h>
3591 Autoconf TIOCGETP
3592 _ACEOF
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3595   ac_cv_prog_gcc_traditional=yes
3596 else
3597   ac_cv_prog_gcc_traditional=no
3598 fi
3599 rm -f conftest*
3600
3601
3602   if test $ac_cv_prog_gcc_traditional = no; then
3603     cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h.  */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h.  */
3609 #include <termio.h>
3610 Autoconf TCGETA
3611 _ACEOF
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3614   ac_cv_prog_gcc_traditional=yes
3615 fi
3616 rm -f conftest*
3617
3618   fi
3619 fi
3620 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3621 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3622   if test $ac_cv_prog_gcc_traditional = yes; then
3623     CC="$CC -traditional"
3624   fi
3625 fi
3626
3627 # Find a good install program.  We prefer a C program (faster),
3628 # so one script is as good as another.  But avoid the broken or
3629 # incompatible versions:
3630 # SysV /etc/install, /usr/sbin/install
3631 # SunOS /usr/etc/install
3632 # IRIX /sbin/install
3633 # AIX /bin/install
3634 # AmigaOS /C/install, which installs bootblocks on floppy discs
3635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3638 # OS/2's system install, which has a completely different semantic
3639 # ./install, which can be erroneously created by make from ./install.sh.
3640 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3642 if test -z "$INSTALL"; then
3643 if test "${ac_cv_path_install+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649   IFS=$as_save_IFS
3650   test -z "$as_dir" && as_dir=.
3651   # Account for people who put trailing slashes in PATH elements.
3652 case $as_dir/ in
3653   ./ | .// | /cC/* | \
3654   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3655   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3656   /usr/ucb/* ) ;;
3657   *)
3658     # OSF1 and SCO ODT 3.0 have their own names for install.
3659     # Don't use installbsd from OSF since it installs stuff as root
3660     # by default.
3661     for ac_prog in ginstall scoinst install; do
3662       for ac_exec_ext in '' $ac_executable_extensions; do
3663         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3664           if test $ac_prog = install &&
3665             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3666             # AIX install.  It has an incompatible calling convention.
3667             :
3668           elif test $ac_prog = install &&
3669             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3670             # program-specific install script used by HP pwplus--don't use.
3671             :
3672           else
3673             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3674             break 3
3675           fi
3676         fi
3677       done
3678     done
3679     ;;
3680 esac
3681 done
3682
3683
3684 fi
3685   if test "${ac_cv_path_install+set}" = set; then
3686     INSTALL=$ac_cv_path_install
3687   else
3688     # As a last resort, use the slow shell script.  We don't cache a
3689     # path for INSTALL within a source directory, because that will
3690     # break other packages using the cache if that directory is
3691     # removed, or if the path is relative.
3692     INSTALL=$ac_install_sh
3693   fi
3694 fi
3695 echo "$as_me:$LINENO: result: $INSTALL" >&5
3696 echo "${ECHO_T}$INSTALL" >&6
3697
3698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3699 # It thinks the first close brace ends the variable substitution.
3700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3701
3702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3703
3704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3705
3706 for ac_prog in gawk mawk nawk awk
3707 do
3708   # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy $ac_prog; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_prog_AWK+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   if test -n "$AWK"; then
3716   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723   for ac_exec_ext in '' $ac_executable_extensions; do
3724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725     ac_cv_prog_AWK="$ac_prog"
3726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727     break 2
3728   fi
3729 done
3730 done
3731
3732 fi
3733 fi
3734 AWK=$ac_cv_prog_AWK
3735 if test -n "$AWK"; then
3736   echo "$as_me:$LINENO: result: $AWK" >&5
3737 echo "${ECHO_T}$AWK" >&6
3738 else
3739   echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3741 fi
3742
3743   test -n "$AWK" && break
3744 done
3745
3746 if test -n "$ac_tool_prefix"; then
3747   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_RANLIB+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if test -n "$RANLIB"; then
3755   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770
3771 fi
3772 fi
3773 RANLIB=$ac_cv_prog_RANLIB
3774 if test -n "$RANLIB"; then
3775   echo "$as_me:$LINENO: result: $RANLIB" >&5
3776 echo "${ECHO_T}$RANLIB" >&6
3777 else
3778   echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3780 fi
3781
3782 fi
3783 if test -z "$ac_cv_prog_RANLIB"; then
3784   ac_ct_RANLIB=$RANLIB
3785   # Extract the first word of "ranlib", so it can be a program name with args.
3786 set dummy ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -n "$ac_ct_RANLIB"; then
3793   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_ac_ct_RANLIB="ranlib"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3810 fi
3811 fi
3812 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3813 if test -n "$ac_ct_RANLIB"; then
3814   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3815 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3816 else
3817   echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3819 fi
3820
3821   RANLIB=$ac_ct_RANLIB
3822 else
3823   RANLIB="$ac_cv_prog_RANLIB"
3824 fi
3825
3826 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3827 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3828 LN_S=$as_ln_s
3829 if test "$LN_S" = "ln -s"; then
3830   echo "$as_me:$LINENO: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3832 else
3833   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3834 echo "${ECHO_T}no, using $LN_S" >&6
3835 fi
3836
3837 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3838 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3839 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3840 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   cat > conftest.$ac_ext <<EOF
3844 int main() {return 0;}
3845 EOF
3846 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3847     if test -s conftest.out; then
3848         eval "timidity_cv_ccoption_$ac_ccoption=no"
3849     else
3850         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3851     fi
3852 else
3853     eval "timidity_cv_ccoption_$ac_ccoption=no"
3854 fi
3855
3856 fi
3857
3858 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3859   echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6
3861
3862 else
3863   echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3865
3866 fi
3867
3868
3869 if test "x$NOCFLAGS" = "xyes"; then
3870   if test "x$GCC" = "xyes"; then
3871     CFLAGS="-O2"
3872   else
3873     CFLAGS=""
3874   fi
3875 fi
3876
3877 # Checks for target dependencies
3878
3879
3880 # Check whether --with-elf or --without-elf was given.
3881 if test "${with_elf+set}" = set; then
3882   withval="$with_elf"
3883    ELFFORMAT=$withval
3884 else
3885    ELFFORMAT="yes"
3886 fi;
3887
3888 # AC_ARG_WITH(simd,
3889 #  [  --with-simd             create SIMD friendly binary (default is no) ],
3890 #  [ SIMD=$withval ], [ SIMD="no" ])
3891
3892 case "$target" in
3893   *-*-hpux*)
3894     EXTRADEFS="-DHPUX"
3895     test -n "$SHLD" || SHLD="ld -b"
3896     so="sl"
3897     ;;
3898   *-sgi-irix*)
3899         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3900     test -n "$SHLD" || SHLD="cc -shared -all"
3901     so="so"
3902     ;;
3903   *-*-netbsd*)
3904     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3905     so="so"
3906     ;;
3907
3908   *-*-freebsd2*)
3909         test -n "$SHLD" || SHLD="ld -Bshareable"
3910     so="so"
3911     ;;
3912   *-*-freebsd*)
3913     if test "$ELFFORMAT" = yes; then
3914         test -n "$SHLD" || SHLD="ld -Bshareable"
3915     else
3916         SHCFLAGS=-aou
3917         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3918         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3919     fi
3920         so="so"
3921     ;;
3922
3923 #  *-*-freebsd*)
3924 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3925 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3926 #    so="so"
3927 #  ;;
3928
3929   *-*-cygwin*|*-*-mingw*)
3930     EXTRADEFS="-D__W32__"
3931     # ??
3932     case "x${CC} " in
3933       "xbcc32 "*)
3934 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
3935         test -n "$SHLD" || SHLD="BCC32 -WD"
3936         BORLANDC=yes
3937         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3938         BORLANDC_START='C0X32.OBJ'
3939         CFLAGS="$CFLAGS  -tWM -VM"
3940         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3941         ;;
3942       "xdmc "*)
3943         test -n "$SHLD" || SHLD="dmc -WD"
3944         DMC=yes
3945         DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
3946         CFLAGS="$CFLAGS  -mn -j0"
3947         DLLFLAG=" "
3948         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3949         ;;
3950       "xwcc386_w.sh "*)
3951          WATCOM_C=yes
3952          CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
3953          DLLFLAG=" "
3954          WATCOM_LDFLAGS=
3955          EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
3956          ;;
3957       "xcl "*)
3958          test -n "$SHLD" || SHLD="link -dll"
3959          VCPP=yes
3960          case " $CFLAGS " in
3961            *" -MT "*)  NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
3962            *" -MD "*)  NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
3963            *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
3964            *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
3965            *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
3966          esac
3967          VCPP_LDFLAGS="-nologo -incremental:no  $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
3968          CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX  -Ob2"
3969          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
3970          ;;
3971       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
3972       *) test -n "$SHLD" || SHLD="unknown" ;;
3973     esac
3974     so="dll"
3975     MSYS=yes
3976     lib_user32_test=-luser32
3977     ;;
3978   *-dec-*)
3979     EXTRADEFS="-DDEC"
3980     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3981     so="so"
3982     ;;
3983   *-*-solaris*)
3984     EXTRADEFS="-DSOLARIS"
3985     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3986     so="so"
3987     ;;
3988   *-*-nextstep*)
3989     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3990     so="so"
3991     ;;
3992   *-*-darwin*)
3993     if test "x$SIMD" = "xyes"; then
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define USE_ALTIVEC 1
3997 _ACEOF
3998
3999        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4000        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4001     else
4002
4003 cat >>confdefs.h <<\_ACEOF
4004 #define USE_ALTIVEC 0
4005 _ACEOF
4006
4007     fi
4008     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4009     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4010     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4011     so="bundle"
4012     ;;
4013   *)
4014     test -n "$SHLD" || \
4015       if test "x$GCC" = xyes; then
4016         SHLD="$CC -shared"
4017       else
4018         SHLD="ld -Bdynamic -G"
4019       fi
4020     so="so"
4021     ;;
4022 esac
4023
4024
4025 # Checks for libraries.
4026
4027 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4028 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4029 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   ac_check_lib_save_LIBS=$LIBS
4033 LIBS="-lm  $LIBS"
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040
4041 /* Override any gcc2 internal prototype to avoid an error.  */
4042 #ifdef __cplusplus
4043 extern "C"
4044 #endif
4045 /* We use char because int might match the return type of a gcc2
4046    builtin and then its argument prototype would still apply.  */
4047 char sqrt ();
4048 int
4049 main ()
4050 {
4051 sqrt ();
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058   (eval $ac_link) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"
4066                          || test ! -s conftest.err'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; } &&
4072          { ac_try='test -s conftest$ac_exeext'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; }; then
4078   ac_cv_lib_m_sqrt=yes
4079 else
4080   echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 ac_cv_lib_m_sqrt=no
4084 fi
4085 rm -f conftest.err conftest.$ac_objext \
4086       conftest$ac_exeext conftest.$ac_ext
4087 LIBS=$ac_check_lib_save_LIBS
4088 fi
4089 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4090 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4091 if test $ac_cv_lib_m_sqrt = yes; then
4092   cat >>confdefs.h <<_ACEOF
4093 #define HAVE_LIBM 1
4094 _ACEOF
4095
4096   LIBS="-lm $LIBS"
4097
4098 fi
4099
4100
4101 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4102 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4103 if test "${ac_cv_lib_socket_socket+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   ac_check_lib_save_LIBS=$LIBS
4107 LIBS="-lsocket  $LIBS"
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114
4115 /* Override any gcc2 internal prototype to avoid an error.  */
4116 #ifdef __cplusplus
4117 extern "C"
4118 #endif
4119 /* We use char because int might match the return type of a gcc2
4120    builtin and then its argument prototype would still apply.  */
4121 char socket ();
4122 int
4123 main ()
4124 {
4125 socket ();
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 rm -f conftest.$ac_objext conftest$ac_exeext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132   (eval $ac_link) 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } &&
4139          { ac_try='test -z "$ac_c_werror_flag"
4140                          || test ! -s conftest.err'
4141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142   (eval $ac_try) 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; } &&
4146          { ac_try='test -s conftest$ac_exeext'
4147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148   (eval $ac_try) 2>&5
4149   ac_status=$?
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); }; }; then
4152   ac_cv_lib_socket_socket=yes
4153 else
4154   echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157 ac_cv_lib_socket_socket=no
4158 fi
4159 rm -f conftest.err conftest.$ac_objext \
4160       conftest$ac_exeext conftest.$ac_ext
4161 LIBS=$ac_check_lib_save_LIBS
4162 fi
4163 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4164 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4165 if test $ac_cv_lib_socket_socket = yes; then
4166   cat >>confdefs.h <<_ACEOF
4167 #define HAVE_LIBSOCKET 1
4168 _ACEOF
4169
4170   LIBS="-lsocket $LIBS"
4171
4172 fi
4173
4174 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4175 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4176 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   ac_check_lib_save_LIBS=$LIBS
4180 LIBS="-ldl  $LIBS"
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h.  */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h.  */
4187
4188 /* Override any gcc2 internal prototype to avoid an error.  */
4189 #ifdef __cplusplus
4190 extern "C"
4191 #endif
4192 /* We use char because int might match the return type of a gcc2
4193    builtin and then its argument prototype would still apply.  */
4194 char dlopen ();
4195 int
4196 main ()
4197 {
4198 dlopen ();
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205   (eval $ac_link) 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } &&
4212          { ac_try='test -z "$ac_c_werror_flag"
4213                          || test ! -s conftest.err'
4214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215   (eval $ac_try) 2>&5
4216   ac_status=$?
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); }; } &&
4219          { ac_try='test -s conftest$ac_exeext'
4220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221   (eval $ac_try) 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }; }; then
4225   ac_cv_lib_dl_dlopen=yes
4226 else
4227   echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 ac_cv_lib_dl_dlopen=no
4231 fi
4232 rm -f conftest.err conftest.$ac_objext \
4233       conftest$ac_exeext conftest.$ac_ext
4234 LIBS=$ac_check_lib_save_LIBS
4235 fi
4236 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4237 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4238 if test $ac_cv_lib_dl_dlopen = yes; then
4239   lib_dl_opt=-ldl
4240 fi
4241
4242 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4243 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4244 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   ac_check_lib_save_LIBS=$LIBS
4248 LIBS="-lobjc  $LIBS"
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255
4256 /* Override any gcc2 internal prototype to avoid an error.  */
4257 #ifdef __cplusplus
4258 extern "C"
4259 #endif
4260 /* We use char because int might match the return type of a gcc2
4261    builtin and then its argument prototype would still apply.  */
4262 char NSLinkModule ();
4263 int
4264 main ()
4265 {
4266 NSLinkModule ();
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273   (eval $ac_link) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -z "$ac_c_werror_flag"
4281                          || test ! -s conftest.err'
4282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283   (eval $ac_try) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest$ac_exeext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   ac_cv_lib_objc_NSLinkModule=yes
4294 else
4295   echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ac_cv_lib_objc_NSLinkModule=no
4299 fi
4300 rm -f conftest.err conftest.$ac_objext \
4301       conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4303 fi
4304 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4305 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4306 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4307   lib_dl_opt=-lobjc
4308 fi
4309  # Mac OS X need this.
4310 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
4311
4312 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4313 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4314 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317   ac_check_lib_save_LIBS=$LIBS
4318 LIBS="-lxpg4  $LIBS"
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325
4326 /* Override any gcc2 internal prototype to avoid an error.  */
4327 #ifdef __cplusplus
4328 extern "C"
4329 #endif
4330 /* We use char because int might match the return type of a gcc2
4331    builtin and then its argument prototype would still apply.  */
4332 char setlocale ();
4333 int
4334 main ()
4335 {
4336 setlocale ();
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 rm -f conftest.$ac_objext conftest$ac_exeext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343   (eval $ac_link) 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } &&
4350          { ac_try='test -z "$ac_c_werror_flag"
4351                          || test ! -s conftest.err'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; } &&
4357          { ac_try='test -s conftest$ac_exeext'
4358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359   (eval $ac_try) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363   ac_cv_lib_xpg4_setlocale=yes
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 ac_cv_lib_xpg4_setlocale=no
4369 fi
4370 rm -f conftest.err conftest.$ac_objext \
4371       conftest$ac_exeext conftest.$ac_ext
4372 LIBS=$ac_check_lib_save_LIBS
4373 fi
4374 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4375 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4376 if test $ac_cv_lib_xpg4_setlocale = yes; then
4377   cat >>confdefs.h <<_ACEOF
4378 #define HAVE_LIBXPG4 1
4379 _ACEOF
4380
4381   LIBS="-lxpg4 $LIBS"
4382
4383 fi
4384  # Mac OS X (and maybe NetBSD) need this.
4385 fi
4386
4387 for ac_func in gethostbyname
4388 do
4389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4390 echo "$as_me:$LINENO: checking for $ac_func" >&5
4391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4392 if eval "test \"\${$as_ac_var+set}\" = set"; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4403 #define $ac_func innocuous_$ac_func
4404
4405 /* System header to define __stub macros and hopefully few prototypes,
4406     which can conflict with char $ac_func (); below.
4407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4408     <limits.h> exists even on freestanding compilers.  */
4409
4410 #ifdef __STDC__
4411 # include <limits.h>
4412 #else
4413 # include <assert.h>
4414 #endif
4415
4416 #undef $ac_func
4417
4418 /* Override any gcc2 internal prototype to avoid an error.  */
4419 #ifdef __cplusplus
4420 extern "C"
4421 {
4422 #endif
4423 /* We use char because int might match the return type of a gcc2
4424    builtin and then its argument prototype would still apply.  */
4425 char $ac_func ();
4426 /* The GNU C library defines this for functions which it implements
4427     to always fail with ENOSYS.  Some functions are actually named
4428     something starting with __ and the normal name is an alias.  */
4429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4430 choke me
4431 #else
4432 char (*f) () = $ac_func;
4433 #endif
4434 #ifdef __cplusplus
4435 }
4436 #endif
4437
4438 int
4439 main ()
4440 {
4441 return f != $ac_func;
4442   ;
4443   return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448   (eval $ac_link) 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -z "$ac_c_werror_flag"
4456                          || test ! -s conftest.err'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; } &&
4462          { ac_try='test -s conftest$ac_exeext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   eval "$as_ac_var=yes"
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 eval "$as_ac_var=no"
4474 fi
4475 rm -f conftest.err conftest.$ac_objext \
4476       conftest$ac_exeext conftest.$ac_ext
4477 fi
4478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4480 if test `eval echo '${'$as_ac_var'}'` = yes; then
4481   cat >>confdefs.h <<_ACEOF
4482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4483 _ACEOF
4484
4485 else
4486
4487 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4488 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4489 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   ac_check_lib_save_LIBS=$LIBS
4493 LIBS="-lnsl  $LIBS"
4494 cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500
4501 /* Override any gcc2 internal prototype to avoid an error.  */
4502 #ifdef __cplusplus
4503 extern "C"
4504 #endif
4505 /* We use char because int might match the return type of a gcc2
4506    builtin and then its argument prototype would still apply.  */
4507 char gethostbyname ();
4508 int
4509 main ()
4510 {
4511 gethostbyname ();
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518   (eval $ac_link) 2>conftest.er1
4519   ac_status=$?
4520   grep -v '^ *+' conftest.er1 >conftest.err
4521   rm -f conftest.er1
4522   cat conftest.err >&5
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } &&
4525          { ac_try='test -z "$ac_c_werror_flag"
4526                          || test ! -s conftest.err'
4527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528   (eval $ac_try) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; } &&
4532          { ac_try='test -s conftest$ac_exeext'
4533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534   (eval $ac_try) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; }; then
4538   ac_cv_lib_nsl_gethostbyname=yes
4539 else
4540   echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 ac_cv_lib_nsl_gethostbyname=no
4544 fi
4545 rm -f conftest.err conftest.$ac_objext \
4546       conftest$ac_exeext conftest.$ac_ext
4547 LIBS=$ac_check_lib_save_LIBS
4548 fi
4549 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4550 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4551 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4552   cat >>confdefs.h <<_ACEOF
4553 #define HAVE_LIBNSL 1
4554 _ACEOF
4555
4556   LIBS="-lnsl $LIBS"
4557
4558 fi
4559
4560 fi
4561 done
4562
4563 echo "$as_me:$LINENO: checking for X" >&5
4564 echo $ECHO_N "checking for X... $ECHO_C" >&6
4565
4566
4567 # Check whether --with-x or --without-x was given.
4568 if test "${with_x+set}" = set; then
4569   withval="$with_x"
4570
4571 fi;
4572 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4573 if test "x$with_x" = xno; then
4574   # The user explicitly disabled X.
4575   have_x=disabled
4576 else
4577   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4578     # Both variables are already set.
4579     have_x=yes
4580   else
4581     if test "${ac_cv_have_x+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   # One or both of the vars are not set, and there is no cached value.
4585 ac_x_includes=no ac_x_libraries=no
4586 rm -fr conftest.dir
4587 if mkdir conftest.dir; then
4588   cd conftest.dir
4589   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4590   cat >Imakefile <<'_ACEOF'
4591 acfindx:
4592         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4593 _ACEOF
4594   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4595     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4596     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4597     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4598     for ac_extension in a so sl; do
4599       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4600          test -f $ac_im_libdir/libX11.$ac_extension; then
4601         ac_im_usrlibdir=$ac_im_libdir; break
4602       fi
4603     done
4604     # Screen out bogus values from the imake configuration.  They are
4605     # bogus both because they are the default anyway, and because
4606     # using them would break gcc on systems where it needs fixed includes.
4607     case $ac_im_incroot in
4608         /usr/include) ;;
4609         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4610     esac
4611     case $ac_im_usrlibdir in
4612         /usr/lib | /lib) ;;
4613         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4614     esac
4615   fi
4616   cd ..
4617   rm -fr conftest.dir
4618 fi
4619
4620 # Standard set of common directories for X headers.
4621 # Check X11 before X11Rn because it is often a symlink to the current release.
4622 ac_x_header_dirs='
4623 /usr/X11/include
4624 /usr/X11R6/include
4625 /usr/X11R5/include
4626 /usr/X11R4/include
4627
4628 /usr/include/X11
4629 /usr/include/X11R6
4630 /usr/include/X11R5
4631 /usr/include/X11R4
4632
4633 /usr/local/X11/include
4634 /usr/local/X11R6/include
4635 /usr/local/X11R5/include
4636 /usr/local/X11R4/include
4637
4638 /usr/local/include/X11
4639 /usr/local/include/X11R6
4640 /usr/local/include/X11R5
4641 /usr/local/include/X11R4
4642
4643 /usr/X386/include
4644 /usr/x386/include
4645 /usr/XFree86/include/X11
4646
4647 /usr/include
4648 /usr/local/include
4649 /usr/unsupported/include
4650 /usr/athena/include
4651 /usr/local/x11r5/include
4652 /usr/lpp/Xamples/include
4653
4654 /usr/openwin/include
4655 /usr/openwin/share/include'
4656
4657 if test "$ac_x_includes" = no; then
4658   # Guess where to find include files, by looking for Intrinsic.h.
4659   # First, try using that file with no special directory specified.
4660   cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666 #include <X11/Intrinsic.h>
4667 _ACEOF
4668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } >/dev/null; then
4676   if test -s conftest.err; then
4677     ac_cpp_err=$ac_c_preproc_warn_flag
4678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4679   else
4680     ac_cpp_err=
4681   fi
4682 else
4683   ac_cpp_err=yes
4684 fi
4685 if test -z "$ac_cpp_err"; then
4686   # We can compile using X headers with no special include directory.
4687 ac_x_includes=
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692   for ac_dir in $ac_x_header_dirs; do
4693   if test -r "$ac_dir/X11/Intrinsic.h"; then
4694     ac_x_includes=$ac_dir
4695     break
4696   fi
4697 done
4698 fi
4699 rm -f conftest.err conftest.$ac_ext
4700 fi # $ac_x_includes = no
4701
4702 if test "$ac_x_libraries" = no; then
4703   # Check for the libraries.
4704   # See if we find them without any special options.
4705   # Don't add to $LIBS permanently.
4706   ac_save_LIBS=$LIBS
4707   LIBS="-lXt $LIBS"
4708   cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714 #include <X11/Intrinsic.h>
4715 int
4716 main ()
4717 {
4718 XtMalloc (0)
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725   (eval $ac_link) 2>conftest.er1
4726   ac_status=$?
4727   grep -v '^ *+' conftest.er1 >conftest.err
4728   rm -f conftest.er1
4729   cat conftest.err >&5
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } &&
4732          { ac_try='test -z "$ac_c_werror_flag"
4733                          || test ! -s conftest.err'
4734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735   (eval $ac_try) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }; } &&
4739          { ac_try='test -s conftest$ac_exeext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   LIBS=$ac_save_LIBS
4746 # We can link X programs with no special library path.
4747 ac_x_libraries=
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752 LIBS=$ac_save_LIBS
4753 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4754 do
4755   # Don't even attempt the hair of trying to link an X program!
4756   for ac_extension in a so sl; do
4757     if test -r $ac_dir/libXt.$ac_extension; then
4758       ac_x_libraries=$ac_dir
4759       break 2
4760     fi
4761   done
4762 done
4763 fi
4764 rm -f conftest.err conftest.$ac_objext \
4765       conftest$ac_exeext conftest.$ac_ext
4766 fi # $ac_x_libraries = no
4767
4768 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4769   # Didn't find X anywhere.  Cache the known absence of X.
4770   ac_cv_have_x="have_x=no"
4771 else
4772   # Record where we found X for the cache.
4773   ac_cv_have_x="have_x=yes \
4774                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4775 fi
4776 fi
4777
4778   fi
4779   eval "$ac_cv_have_x"
4780 fi # $with_x != no
4781
4782 if test "$have_x" != yes; then
4783   echo "$as_me:$LINENO: result: $have_x" >&5
4784 echo "${ECHO_T}$have_x" >&6
4785   no_x=yes
4786 else
4787   # If each of the values was on the command line, it overrides each guess.
4788   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4789   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4790   # Update the cache value to reflect the command line values.
4791   ac_cv_have_x="have_x=yes \
4792                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4793   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4794 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4795 fi
4796
4797 if test "$no_x" = yes; then
4798   # Not all programs may use this symbol, but it does not hurt to define it.
4799
4800 cat >>confdefs.h <<\_ACEOF
4801 #define X_DISPLAY_MISSING 1
4802 _ACEOF
4803
4804   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4805 else
4806   if test -n "$x_includes"; then
4807     X_CFLAGS="$X_CFLAGS -I$x_includes"
4808   fi
4809
4810   # It would also be nice to do this for all -L options, not just this one.
4811   if test -n "$x_libraries"; then
4812     X_LIBS="$X_LIBS -L$x_libraries"
4813     # For Solaris; some versions of Sun CC require a space after -R and
4814     # others require no space.  Words are not sufficient . . . .
4815     case `(uname -sr) 2>/dev/null` in
4816     "SunOS 5"*)
4817       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4818 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4819       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4820       cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h.  */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h.  */
4826
4827 int
4828 main ()
4829 {
4830
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837   (eval $ac_link) 2>conftest.er1
4838   ac_status=$?
4839   grep -v '^ *+' conftest.er1 >conftest.err
4840   rm -f conftest.er1
4841   cat conftest.err >&5
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } &&
4844          { ac_try='test -z "$ac_c_werror_flag"
4845                          || test ! -s conftest.err'
4846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847   (eval $ac_try) 2>&5
4848   ac_status=$?
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); }; } &&
4851          { ac_try='test -s conftest$ac_exeext'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; }; then
4857   ac_R_nospace=yes
4858 else
4859   echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 ac_R_nospace=no
4863 fi
4864 rm -f conftest.err conftest.$ac_objext \
4865       conftest$ac_exeext conftest.$ac_ext
4866       if test $ac_R_nospace = yes; then
4867         echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4869         X_LIBS="$X_LIBS -R$x_libraries"
4870       else
4871         LIBS="$ac_xsave_LIBS -R $x_libraries"
4872         cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h.  */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h.  */
4878
4879 int
4880 main ()
4881 {
4882
4883   ;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889   (eval $ac_link) 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } &&
4896          { ac_try='test -z "$ac_c_werror_flag"
4897                          || test ! -s conftest.err'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; } &&
4903          { ac_try='test -s conftest$ac_exeext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   ac_R_space=yes
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 ac_R_space=no
4915 fi
4916 rm -f conftest.err conftest.$ac_objext \
4917       conftest$ac_exeext conftest.$ac_ext
4918         if test $ac_R_space = yes; then
4919           echo "$as_me:$LINENO: result: yes" >&5
4920 echo "${ECHO_T}yes" >&6
4921           X_LIBS="$X_LIBS -R $x_libraries"
4922         else
4923           echo "$as_me:$LINENO: result: neither works" >&5
4924 echo "${ECHO_T}neither works" >&6
4925         fi
4926       fi
4927       LIBS=$ac_xsave_LIBS
4928     esac
4929   fi
4930
4931   # Check for system-dependent libraries X programs must link with.
4932   # Do this before checking for the system-independent R6 libraries
4933   # (-lICE), since we may need -lsocket or whatever for X linking.
4934
4935   if test "$ISC" = yes; then
4936     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4937   else
4938     # Martyn Johnson says this is needed for Ultrix, if the X
4939     # libraries were built with DECnet support.  And Karl Berry says
4940     # the Alpha needs dnet_stub (dnet does not exist).
4941     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4942     cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948
4949 /* Override any gcc2 internal prototype to avoid an error.  */
4950 #ifdef __cplusplus
4951 extern "C"
4952 #endif
4953 /* We use char because int might match the return type of a gcc2
4954    builtin and then its argument prototype would still apply.  */
4955 char XOpenDisplay ();
4956 int
4957 main ()
4958 {
4959 XOpenDisplay ();
4960   ;
4961   return 0;
4962 }
4963 _ACEOF
4964 rm -f conftest.$ac_objext conftest$ac_exeext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4966   (eval $ac_link) 2>conftest.er1
4967   ac_status=$?
4968   grep -v '^ *+' conftest.er1 >conftest.err
4969   rm -f conftest.er1
4970   cat conftest.err >&5
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } &&
4973          { ac_try='test -z "$ac_c_werror_flag"
4974                          || test ! -s conftest.err'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; } &&
4980          { ac_try='test -s conftest$ac_exeext'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; }; then
4986   :
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4992 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4993 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4994   echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996   ac_check_lib_save_LIBS=$LIBS
4997 LIBS="-ldnet  $LIBS"
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h.  */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h.  */
5004
5005 /* Override any gcc2 internal prototype to avoid an error.  */
5006 #ifdef __cplusplus
5007 extern "C"
5008 #endif
5009 /* We use char because int might match the return type of a gcc2
5010    builtin and then its argument prototype would still apply.  */
5011 char dnet_ntoa ();
5012 int
5013 main ()
5014 {
5015 dnet_ntoa ();
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022   (eval $ac_link) 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -z "$ac_c_werror_flag"
5030                          || test ! -s conftest.err'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; } &&
5036          { ac_try='test -s conftest$ac_exeext'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ac_cv_lib_dnet_dnet_ntoa=yes
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ac_cv_lib_dnet_dnet_ntoa=no
5048 fi
5049 rm -f conftest.err conftest.$ac_objext \
5050       conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5052 fi
5053 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5054 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5055 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5056   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5057 fi
5058
5059     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5060       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5061 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5062 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   ac_check_lib_save_LIBS=$LIBS
5066 LIBS="-ldnet_stub  $LIBS"
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
5074 /* Override any gcc2 internal prototype to avoid an error.  */
5075 #ifdef __cplusplus
5076 extern "C"
5077 #endif
5078 /* We use char because int might match the return type of a gcc2
5079    builtin and then its argument prototype would still apply.  */
5080 char dnet_ntoa ();
5081 int
5082 main ()
5083 {
5084 dnet_ntoa ();
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091   (eval $ac_link) 2>conftest.er1
5092   ac_status=$?
5093   grep -v '^ *+' conftest.er1 >conftest.err
5094   rm -f conftest.er1
5095   cat conftest.err >&5
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } &&
5098          { ac_try='test -z "$ac_c_werror_flag"
5099                          || test ! -s conftest.err'
5100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101   (eval $ac_try) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; } &&
5105          { ac_try='test -s conftest$ac_exeext'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_cv_lib_dnet_stub_dnet_ntoa=no
5117 fi
5118 rm -f conftest.err conftest.$ac_objext \
5119       conftest$ac_exeext conftest.$ac_ext
5120 LIBS=$ac_check_lib_save_LIBS
5121 fi
5122 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5123 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5124 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5125   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5126 fi
5127
5128     fi
5129 fi
5130 rm -f conftest.err conftest.$ac_objext \
5131       conftest$ac_exeext conftest.$ac_ext
5132     LIBS="$ac_xsave_LIBS"
5133
5134     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5135     # to get the SysV transport functions.
5136     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5137     # needs -lnsl.
5138     # The nsl library prevents programs from opening the X display
5139     # on Irix 5.2, according to T.E. Dickey.
5140     # The functions gethostbyname, getservbyname, and inet_addr are
5141     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5142     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5143 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5144 if test "${ac_cv_func_gethostbyname+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5155 #define gethostbyname innocuous_gethostbyname
5156
5157 /* System header to define __stub macros and hopefully few prototypes,
5158     which can conflict with char gethostbyname (); below.
5159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160     <limits.h> exists even on freestanding compilers.  */
5161
5162 #ifdef __STDC__
5163 # include <limits.h>
5164 #else
5165 # include <assert.h>
5166 #endif
5167
5168 #undef gethostbyname
5169
5170 /* Override any gcc2 internal prototype to avoid an error.  */
5171 #ifdef __cplusplus
5172 extern "C"
5173 {
5174 #endif
5175 /* We use char because int might match the return type of a gcc2
5176    builtin and then its argument prototype would still apply.  */
5177 char gethostbyname ();
5178 /* The GNU C library defines this for functions which it implements
5179     to always fail with ENOSYS.  Some functions are actually named
5180     something starting with __ and the normal name is an alias.  */
5181 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5182 choke me
5183 #else
5184 char (*f) () = gethostbyname;
5185 #endif
5186 #ifdef __cplusplus
5187 }
5188 #endif
5189
5190 int
5191 main ()
5192 {
5193 return f != gethostbyname;
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200   (eval $ac_link) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -z "$ac_c_werror_flag"
5208                          || test ! -s conftest.err'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; } &&
5214          { ac_try='test -s conftest$ac_exeext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_cv_func_gethostbyname=yes
5221 else
5222   echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_cv_func_gethostbyname=no
5226 fi
5227 rm -f conftest.err conftest.$ac_objext \
5228       conftest$ac_exeext conftest.$ac_ext
5229 fi
5230 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5231 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5232
5233     if test $ac_cv_func_gethostbyname = no; then
5234       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5235 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5236 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   ac_check_lib_save_LIBS=$LIBS
5240 LIBS="-lnsl  $LIBS"
5241 cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h.  */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h.  */
5247
5248 /* Override any gcc2 internal prototype to avoid an error.  */
5249 #ifdef __cplusplus
5250 extern "C"
5251 #endif
5252 /* We use char because int might match the return type of a gcc2
5253    builtin and then its argument prototype would still apply.  */
5254 char gethostbyname ();
5255 int
5256 main ()
5257 {
5258 gethostbyname ();
5259   ;
5260   return 0;
5261 }
5262 _ACEOF
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265   (eval $ac_link) 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } &&
5272          { ac_try='test -z "$ac_c_werror_flag"
5273                          || test ! -s conftest.err'
5274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275   (eval $ac_try) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; } &&
5279          { ac_try='test -s conftest$ac_exeext'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   ac_cv_lib_nsl_gethostbyname=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 ac_cv_lib_nsl_gethostbyname=no
5291 fi
5292 rm -f conftest.err conftest.$ac_objext \
5293       conftest$ac_exeext conftest.$ac_ext
5294 LIBS=$ac_check_lib_save_LIBS
5295 fi
5296 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5297 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5298 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5299   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5300 fi
5301
5302       if test $ac_cv_lib_nsl_gethostbyname = no; then
5303         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5304 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5305 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5306   echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308   ac_check_lib_save_LIBS=$LIBS
5309 LIBS="-lbsd  $LIBS"
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316
5317 /* Override any gcc2 internal prototype to avoid an error.  */
5318 #ifdef __cplusplus
5319 extern "C"
5320 #endif
5321 /* We use char because int might match the return type of a gcc2
5322    builtin and then its argument prototype would still apply.  */
5323 char gethostbyname ();
5324 int
5325 main ()
5326 {
5327 gethostbyname ();
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334   (eval $ac_link) 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -z "$ac_c_werror_flag"
5342                          || test ! -s conftest.err'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; } &&
5348          { ac_try='test -s conftest$ac_exeext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   ac_cv_lib_bsd_gethostbyname=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359 ac_cv_lib_bsd_gethostbyname=no
5360 fi
5361 rm -f conftest.err conftest.$ac_objext \
5362       conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5364 fi
5365 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5366 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5367 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5368   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5369 fi
5370
5371       fi
5372     fi
5373
5374     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5375     # socket/setsockopt and other routines are undefined under SCO ODT
5376     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5377     # on later versions), says Simon Leinen: it contains gethostby*
5378     # variants that don't use the name server (or something).  -lsocket
5379     # must be given before -lnsl if both are needed.  We assume that
5380     # if connect needs -lnsl, so does gethostbyname.
5381     echo "$as_me:$LINENO: checking for connect" >&5
5382 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5383 if test "${ac_cv_func_connect+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h.  */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h.  */
5392 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5394 #define connect innocuous_connect
5395
5396 /* System header to define __stub macros and hopefully few prototypes,
5397     which can conflict with char connect (); below.
5398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399     <limits.h> exists even on freestanding compilers.  */
5400
5401 #ifdef __STDC__
5402 # include <limits.h>
5403 #else
5404 # include <assert.h>
5405 #endif
5406
5407 #undef connect
5408
5409 /* Override any gcc2 internal prototype to avoid an error.  */
5410 #ifdef __cplusplus
5411 extern "C"
5412 {
5413 #endif
5414 /* We use char because int might match the return type of a gcc2
5415    builtin and then its argument prototype would still apply.  */
5416 char connect ();
5417 /* The GNU C library defines this for functions which it implements
5418     to always fail with ENOSYS.  Some functions are actually named
5419     something starting with __ and the normal name is an alias.  */
5420 #if defined (__stub_connect) || defined (__stub___connect)
5421 choke me
5422 #else
5423 char (*f) () = connect;
5424 #endif
5425 #ifdef __cplusplus
5426 }
5427 #endif
5428
5429 int
5430 main ()
5431 {
5432 return f != connect;
5433   ;
5434   return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext conftest$ac_exeext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439   (eval $ac_link) 2>conftest.er1
5440   ac_status=$?
5441   grep -v '^ *+' conftest.er1 >conftest.err
5442   rm -f conftest.er1
5443   cat conftest.err >&5
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -z "$ac_c_werror_flag"
5447                          || test ! -s conftest.err'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; } &&
5453          { ac_try='test -s conftest$ac_exeext'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   ac_cv_func_connect=yes
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_cv_func_connect=no
5465 fi
5466 rm -f conftest.err conftest.$ac_objext \
5467       conftest$ac_exeext conftest.$ac_ext
5468 fi
5469 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5470 echo "${ECHO_T}$ac_cv_func_connect" >&6
5471
5472     if test $ac_cv_func_connect = no; then
5473       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5474 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5475 if test "${ac_cv_lib_socket_connect+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486
5487 /* Override any gcc2 internal prototype to avoid an error.  */
5488 #ifdef __cplusplus
5489 extern "C"
5490 #endif
5491 /* We use char because int might match the return type of a gcc2
5492    builtin and then its argument prototype would still apply.  */
5493 char connect ();
5494 int
5495 main ()
5496 {
5497 connect ();
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5504   (eval $ac_link) 2>conftest.er1
5505   ac_status=$?
5506   grep -v '^ *+' conftest.er1 >conftest.err
5507   rm -f conftest.er1
5508   cat conftest.err >&5
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } &&
5511          { ac_try='test -z "$ac_c_werror_flag"
5512                          || test ! -s conftest.err'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; } &&
5518          { ac_try='test -s conftest$ac_exeext'
5519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520   (eval $ac_try) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); }; }; then
5524   ac_cv_lib_socket_connect=yes
5525 else
5526   echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_cv_lib_socket_connect=no
5530 fi
5531 rm -f conftest.err conftest.$ac_objext \
5532       conftest$ac_exeext conftest.$ac_ext
5533 LIBS=$ac_check_lib_save_LIBS
5534 fi
5535 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5536 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5537 if test $ac_cv_lib_socket_connect = yes; then
5538   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5539 fi
5540
5541     fi
5542
5543     # Guillermo Gomez says -lposix is necessary on A/UX.
5544     echo "$as_me:$LINENO: checking for remove" >&5
5545 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5546 if test "${ac_cv_func_remove+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5557 #define remove innocuous_remove
5558
5559 /* System header to define __stub macros and hopefully few prototypes,
5560     which can conflict with char remove (); below.
5561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562     <limits.h> exists even on freestanding compilers.  */
5563
5564 #ifdef __STDC__
5565 # include <limits.h>
5566 #else
5567 # include <assert.h>
5568 #endif
5569
5570 #undef remove
5571
5572 /* Override any gcc2 internal prototype to avoid an error.  */
5573 #ifdef __cplusplus
5574 extern "C"
5575 {
5576 #endif
5577 /* We use char because int might match the return type of a gcc2
5578    builtin and then its argument prototype would still apply.  */
5579 char remove ();
5580 /* The GNU C library defines this for functions which it implements
5581     to always fail with ENOSYS.  Some functions are actually named
5582     something starting with __ and the normal name is an alias.  */
5583 #if defined (__stub_remove) || defined (__stub___remove)
5584 choke me
5585 #else
5586 char (*f) () = remove;
5587 #endif
5588 #ifdef __cplusplus
5589 }
5590 #endif
5591
5592 int
5593 main ()
5594 {
5595 return f != remove;
5596   ;
5597   return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext conftest$ac_exeext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5602   (eval $ac_link) 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -z "$ac_c_werror_flag"
5610                          || test ! -s conftest.err'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; } &&
5616          { ac_try='test -s conftest$ac_exeext'
5617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618   (eval $ac_try) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; }; then
5622   ac_cv_func_remove=yes
5623 else
5624   echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_cv_func_remove=no
5628 fi
5629 rm -f conftest.err conftest.$ac_objext \
5630       conftest$ac_exeext conftest.$ac_ext
5631 fi
5632 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5633 echo "${ECHO_T}$ac_cv_func_remove" >&6
5634
5635     if test $ac_cv_func_remove = no; then
5636       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5637 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5638 if test "${ac_cv_lib_posix_remove+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-lposix  $LIBS"
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649
5650 /* Override any gcc2 internal prototype to avoid an error.  */
5651 #ifdef __cplusplus
5652 extern "C"
5653 #endif
5654 /* We use char because int might match the return type of a gcc2
5655    builtin and then its argument prototype would still apply.  */
5656 char remove ();
5657 int
5658 main ()
5659 {
5660 remove ();
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667   (eval $ac_link) 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -z "$ac_c_werror_flag"
5675                          || test ! -s conftest.err'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; } &&
5681          { ac_try='test -s conftest$ac_exeext'
5682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683   (eval $ac_try) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; }; then
5687   ac_cv_lib_posix_remove=yes
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 ac_cv_lib_posix_remove=no
5693 fi
5694 rm -f conftest.err conftest.$ac_objext \
5695       conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5697 fi
5698 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5699 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5700 if test $ac_cv_lib_posix_remove = yes; then
5701   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5702 fi
5703
5704     fi
5705
5706     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5707     echo "$as_me:$LINENO: checking for shmat" >&5
5708 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5709 if test "${ac_cv_func_shmat+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5720 #define shmat innocuous_shmat
5721
5722 /* System header to define __stub macros and hopefully few prototypes,
5723     which can conflict with char shmat (); below.
5724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5725     <limits.h> exists even on freestanding compilers.  */
5726
5727 #ifdef __STDC__
5728 # include <limits.h>
5729 #else
5730 # include <assert.h>
5731 #endif
5732
5733 #undef shmat
5734
5735 /* Override any gcc2 internal prototype to avoid an error.  */
5736 #ifdef __cplusplus
5737 extern "C"
5738 {
5739 #endif
5740 /* We use char because int might match the return type of a gcc2
5741    builtin and then its argument prototype would still apply.  */
5742 char shmat ();
5743 /* The GNU C library defines this for functions which it implements
5744     to always fail with ENOSYS.  Some functions are actually named
5745     something starting with __ and the normal name is an alias.  */
5746 #if defined (__stub_shmat) || defined (__stub___shmat)
5747 choke me
5748 #else
5749 char (*f) () = shmat;
5750 #endif
5751 #ifdef __cplusplus
5752 }
5753 #endif
5754
5755 int
5756 main ()
5757 {
5758 return f != shmat;
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765   (eval $ac_link) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -z "$ac_c_werror_flag"
5773                          || test ! -s conftest.err'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; } &&
5779          { ac_try='test -s conftest$ac_exeext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_cv_func_shmat=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_cv_func_shmat=no
5791 fi
5792 rm -f conftest.err conftest.$ac_objext \
5793       conftest$ac_exeext conftest.$ac_ext
5794 fi
5795 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5796 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5797
5798     if test $ac_cv_func_shmat = no; then
5799       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5800 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5801 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   ac_check_lib_save_LIBS=$LIBS
5805 LIBS="-lipc  $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 shmat ();
5820 int
5821 main ()
5822 {
5823 shmat ();
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_ipc_shmat=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
5862 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5863 if test $ac_cv_lib_ipc_shmat = yes; then
5864   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5865 fi
5866
5867     fi
5868   fi
5869
5870   # Check for libraries that X11R6 Xt/Xaw programs need.
5871   ac_save_LDFLAGS=$LDFLAGS
5872   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5873   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5874   # check for ICE first), but we must link in the order -lSM -lICE or
5875   # we get undefined symbols.  So assume we have SM if we have ICE.
5876   # These have to be linked with before -lX11, unlike the other
5877   # libraries we check for below, so use a different variable.
5878   # John Interrante, Karl Berry
5879   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5880 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5881 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   ac_check_lib_save_LIBS=$LIBS
5885 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892
5893 /* Override any gcc2 internal prototype to avoid an error.  */
5894 #ifdef __cplusplus
5895 extern "C"
5896 #endif
5897 /* We use char because int might match the return type of a gcc2
5898    builtin and then its argument prototype would still apply.  */
5899 char IceConnectionNumber ();
5900 int
5901 main ()
5902 {
5903 IceConnectionNumber ();
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910   (eval $ac_link) 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } &&
5917          { ac_try='test -z "$ac_c_werror_flag"
5918                          || test ! -s conftest.err'
5919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920   (eval $ac_try) 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; } &&
5924          { ac_try='test -s conftest$ac_exeext'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; }; then
5930   ac_cv_lib_ICE_IceConnectionNumber=yes
5931 else
5932   echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_cv_lib_ICE_IceConnectionNumber=no
5936 fi
5937 rm -f conftest.err conftest.$ac_objext \
5938       conftest$ac_exeext conftest.$ac_ext
5939 LIBS=$ac_check_lib_save_LIBS
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5942 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5943 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5944   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5945 fi
5946
5947   LDFLAGS=$ac_save_LDFLAGS
5948
5949 fi
5950
5951
5952 # Checks for X
5953 if test "x$with_x" = xyes; then
5954   if test "x$have_x" = xno; then
5955     if test "x$x_config_flag" = xyes; then
5956       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5957 echo "$as_me: error: Could not configure X" >&2;}
5958    { (exit 1); exit 1; }; }
5959     else
5960       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5961 echo "$as_me: WARNING: Could not configure X" >&2;}
5962     fi
5963   fi
5964 fi
5965 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5966   if test "x$x_libraries" != x; then
5967     ldflags_x_opt="-L$x_libraries"
5968     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5969     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5970   else
5971     ldflags_x_opt=
5972   fi
5973   if test "x$x_includes" != x; then
5974     CPPFLAGS="$CPPFLAGS -I$x_includes"
5975   fi
5976
5977
5978 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5979 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5980 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   ac_check_lib_save_LIBS=$LIBS
5984 LIBS="-lX11  $LIBS"
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991
5992 /* Override any gcc2 internal prototype to avoid an error.  */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 /* We use char because int might match the return type of a gcc2
5997    builtin and then its argument prototype would still apply.  */
5998 char XOpenDisplay ();
5999 int
6000 main ()
6001 {
6002 XOpenDisplay ();
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009   (eval $ac_link) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag"
6017                          || test ! -s conftest.err'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   ac_cv_lib_X11_XOpenDisplay=yes
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 ac_cv_lib_X11_XOpenDisplay=no
6035 fi
6036 rm -f conftest.err conftest.$ac_objext \
6037       conftest$ac_exeext conftest.$ac_ext
6038 LIBS=$ac_check_lib_save_LIBS
6039 fi
6040 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6041 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6042 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6043   cat >>confdefs.h <<_ACEOF
6044 #define HAVE_LIBX11 1
6045 _ACEOF
6046
6047   LIBS="-lX11 $LIBS"
6048
6049 fi
6050
6051   echo "$as_me:$LINENO: checking X11 version 6" >&5
6052 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6053   if test "${timidity_cv_x11_version_6+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #include <X11/Xlib.h>
6063 int
6064 main ()
6065 {
6066
6067 #if XlibSpecificationRelease < 6
6068 fail;
6069 #endif
6070
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077   (eval $ac_link) 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -z "$ac_c_werror_flag"
6085                          || test ! -s conftest.err'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   timidity_cv_x11_version_6=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 timidity_cv_x11_version_6=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext \
6105       conftest$ac_exeext conftest.$ac_ext
6106 fi
6107
6108   if test "$timidity_cv_x11_version_6" = "yes"; then
6109     echo "$as_me:$LINENO: result: 6 or newer" >&5
6110 echo "${ECHO_T}6 or newer" >&6
6111       else
6112     echo "$as_me:$LINENO: result: before 6" >&5
6113 echo "${ECHO_T}before 6" >&6
6114   fi
6115
6116     KEEPLIBS=$LIBS
6117   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6118 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6119 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   ac_check_lib_save_LIBS=$LIBS
6123 LIBS="-lXext  $LIBS"
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130
6131 /* Override any gcc2 internal prototype to avoid an error.  */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 /* We use char because int might match the return type of a gcc2
6136    builtin and then its argument prototype would still apply.  */
6137 char XShapeCombineMask ();
6138 int
6139 main ()
6140 {
6141 XShapeCombineMask ();
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148   (eval $ac_link) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } &&
6155          { ac_try='test -z "$ac_c_werror_flag"
6156                          || test ! -s conftest.err'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; } &&
6162          { ac_try='test -s conftest$ac_exeext'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; }; then
6168   ac_cv_lib_Xext_XShapeCombineMask=yes
6169 else
6170   echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_cv_lib_Xext_XShapeCombineMask=no
6174 fi
6175 rm -f conftest.err conftest.$ac_objext \
6176       conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6178 fi
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6180 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6181 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6182   have_xext=yes; LIBS="-lXext $LIBS"
6183 else
6184   have_xext=no
6185 fi
6186
6187
6188 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6189 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6190 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   ac_check_lib_save_LIBS=$LIBS
6194 LIBS="-lICE  $LIBS"
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h.  */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h.  */
6201
6202 /* Override any gcc2 internal prototype to avoid an error.  */
6203 #ifdef __cplusplus
6204 extern "C"
6205 #endif
6206 /* We use char because int might match the return type of a gcc2
6207    builtin and then its argument prototype would still apply.  */
6208 char IceConnectionNumber ();
6209 int
6210 main ()
6211 {
6212 IceConnectionNumber ();
6213   ;
6214   return 0;
6215 }
6216 _ACEOF
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219   (eval $ac_link) 2>conftest.er1
6220   ac_status=$?
6221   grep -v '^ *+' conftest.er1 >conftest.err
6222   rm -f conftest.er1
6223   cat conftest.err >&5
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } &&
6226          { ac_try='test -z "$ac_c_werror_flag"
6227                          || test ! -s conftest.err'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; } &&
6233          { ac_try='test -s conftest$ac_exeext'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; }; then
6239   ac_cv_lib_ICE_IceConnectionNumber=yes
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 ac_cv_lib_ICE_IceConnectionNumber=no
6245 fi
6246 rm -f conftest.err conftest.$ac_objext \
6247       conftest$ac_exeext conftest.$ac_ext
6248 LIBS=$ac_check_lib_save_LIBS
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6251 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6252 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6253   cat >>confdefs.h <<_ACEOF
6254 #define HAVE_LIBICE 1
6255 _ACEOF
6256
6257   LIBS="-lICE $LIBS"
6258
6259 fi
6260
6261   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6262 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6263 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   ac_check_lib_save_LIBS=$LIBS
6267 LIBS="-lSM  $LIBS"
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274
6275 /* Override any gcc2 internal prototype to avoid an error.  */
6276 #ifdef __cplusplus
6277 extern "C"
6278 #endif
6279 /* We use char because int might match the return type of a gcc2
6280    builtin and then its argument prototype would still apply.  */
6281 char SmcOpenConnection ();
6282 int
6283 main ()
6284 {
6285 SmcOpenConnection ();
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 rm -f conftest.$ac_objext conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292   (eval $ac_link) 2>conftest.er1
6293   ac_status=$?
6294   grep -v '^ *+' conftest.er1 >conftest.err
6295   rm -f conftest.er1
6296   cat conftest.err >&5
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); } &&
6299          { ac_try='test -z "$ac_c_werror_flag"
6300                          || test ! -s conftest.err'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; } &&
6306          { ac_try='test -s conftest$ac_exeext'
6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308   (eval $ac_try) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; }; then
6312   ac_cv_lib_SM_SmcOpenConnection=yes
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 ac_cv_lib_SM_SmcOpenConnection=no
6318 fi
6319 rm -f conftest.err conftest.$ac_objext \
6320       conftest$ac_exeext conftest.$ac_ext
6321 LIBS=$ac_check_lib_save_LIBS
6322 fi
6323 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6324 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6325 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6326   have_xprelibs=yes; LIBS="-lSM $LIBS"
6327 else
6328   have_xprelibs=no
6329 fi
6330
6331   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6332 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6333 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   ac_check_lib_save_LIBS=$LIBS
6337 LIBS="-lXt  $LIBS"
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344
6345 /* Override any gcc2 internal prototype to avoid an error.  */
6346 #ifdef __cplusplus
6347 extern "C"
6348 #endif
6349 /* We use char because int might match the return type of a gcc2
6350    builtin and then its argument prototype would still apply.  */
6351 char XtVaAppInitialize ();
6352 int
6353 main ()
6354 {
6355 XtVaAppInitialize ();
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362   (eval $ac_link) 2>conftest.er1
6363   ac_status=$?
6364   grep -v '^ *+' conftest.er1 >conftest.err
6365   rm -f conftest.er1
6366   cat conftest.err >&5
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -z "$ac_c_werror_flag"
6370                          || test ! -s conftest.err'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; } &&
6376          { ac_try='test -s conftest$ac_exeext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_cv_lib_Xt_XtVaAppInitialize=yes
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_cv_lib_Xt_XtVaAppInitialize=no
6388 fi
6389 rm -f conftest.err conftest.$ac_objext \
6390       conftest$ac_exeext conftest.$ac_ext
6391 LIBS=$ac_check_lib_save_LIBS
6392 fi
6393 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6394 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6395 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6396   have_xt=yes; LIBS="-lXt $LIBS"
6397 else
6398   have_xt=no
6399 fi
6400
6401   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6402 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6403 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   ac_check_lib_save_LIBS=$LIBS
6407 LIBS="-lXmu  $LIBS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414
6415 /* Override any gcc2 internal prototype to avoid an error.  */
6416 #ifdef __cplusplus
6417 extern "C"
6418 #endif
6419 /* We use char because int might match the return type of a gcc2
6420    builtin and then its argument prototype would still apply.  */
6421 char XmuInternAtom ();
6422 int
6423 main ()
6424 {
6425 XmuInternAtom ();
6426   ;
6427   return 0;
6428 }
6429 _ACEOF
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6432   (eval $ac_link) 2>conftest.er1
6433   ac_status=$?
6434   grep -v '^ *+' conftest.er1 >conftest.err
6435   rm -f conftest.er1
6436   cat conftest.err >&5
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } &&
6439          { ac_try='test -z "$ac_c_werror_flag"
6440                          || test ! -s conftest.err'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; } &&
6446          { ac_try='test -s conftest$ac_exeext'
6447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448   (eval $ac_try) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; }; then
6452   ac_cv_lib_Xmu_XmuInternAtom=yes
6453 else
6454   echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6456
6457 ac_cv_lib_Xmu_XmuInternAtom=no
6458 fi
6459 rm -f conftest.err conftest.$ac_objext \
6460       conftest$ac_exeext conftest.$ac_ext
6461 LIBS=$ac_check_lib_save_LIBS
6462 fi
6463 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6464 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6465 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6466   LIBS="-lXmu $LIBS"
6467 fi
6468
6469
6470 for ac_func in XmuRegisterExternalAgent
6471 do
6472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6473 echo "$as_me:$LINENO: checking for $ac_func" >&5
6474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_var+set}\" = set"; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6486 #define $ac_func innocuous_$ac_func
6487
6488 /* System header to define __stub macros and hopefully few prototypes,
6489     which can conflict with char $ac_func (); below.
6490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6491     <limits.h> exists even on freestanding compilers.  */
6492
6493 #ifdef __STDC__
6494 # include <limits.h>
6495 #else
6496 # include <assert.h>
6497 #endif
6498
6499 #undef $ac_func
6500
6501 /* Override any gcc2 internal prototype to avoid an error.  */
6502 #ifdef __cplusplus
6503 extern "C"
6504 {
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507    builtin and then its argument prototype would still apply.  */
6508 char $ac_func ();
6509 /* The GNU C library defines this for functions which it implements
6510     to always fail with ENOSYS.  Some functions are actually named
6511     something starting with __ and the normal name is an alias.  */
6512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6513 choke me
6514 #else
6515 char (*f) () = $ac_func;
6516 #endif
6517 #ifdef __cplusplus
6518 }
6519 #endif
6520
6521 int
6522 main ()
6523 {
6524 return f != $ac_func;
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   eval "$as_ac_var=yes"
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_var=no"
6557 fi
6558 rm -f conftest.err conftest.$ac_objext \
6559       conftest$ac_exeext conftest.$ac_ext
6560 fi
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564   cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6566 _ACEOF
6567
6568 fi
6569 done
6570
6571   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6572 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6573 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576   ac_check_lib_save_LIBS=$LIBS
6577 LIBS="-lXaw3d  $LIBS"
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h.  */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h.  */
6584
6585 /* Override any gcc2 internal prototype to avoid an error.  */
6586 #ifdef __cplusplus
6587 extern "C"
6588 #endif
6589 /* We use char because int might match the return type of a gcc2
6590    builtin and then its argument prototype would still apply.  */
6591 char XawInitializeWidgetSet ();
6592 int
6593 main ()
6594 {
6595 XawInitializeWidgetSet ();
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602   (eval $ac_link) 2>conftest.er1
6603   ac_status=$?
6604   grep -v '^ *+' conftest.er1 >conftest.err
6605   rm -f conftest.er1
6606   cat conftest.err >&5
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); } &&
6609          { ac_try='test -z "$ac_c_werror_flag"
6610                          || test ! -s conftest.err'
6611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612   (eval $ac_try) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); }; } &&
6616          { ac_try='test -s conftest$ac_exeext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6628 fi
6629 rm -f conftest.err conftest.$ac_objext \
6630       conftest$ac_exeext conftest.$ac_ext
6631 LIBS=$ac_check_lib_save_LIBS
6632 fi
6633 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6634 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6635 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6636   have_xaw=3d
6637 else
6638    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6639 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6640 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   ac_check_lib_save_LIBS=$LIBS
6644 LIBS="-lXaw  $LIBS"
6645 cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h.  */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h.  */
6651
6652 /* Override any gcc2 internal prototype to avoid an error.  */
6653 #ifdef __cplusplus
6654 extern "C"
6655 #endif
6656 /* We use char because int might match the return type of a gcc2
6657    builtin and then its argument prototype would still apply.  */
6658 char XawInitializeWidgetSet ();
6659 int
6660 main ()
6661 {
6662 XawInitializeWidgetSet ();
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669   (eval $ac_link) 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } &&
6676          { ac_try='test -z "$ac_c_werror_flag"
6677                          || test ! -s conftest.err'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; } &&
6683          { ac_try='test -s conftest$ac_exeext'
6684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685   (eval $ac_try) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }; }; then
6689   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6690 else
6691   echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6695 fi
6696 rm -f conftest.err conftest.$ac_objext \
6697       conftest$ac_exeext conftest.$ac_ext
6698 LIBS=$ac_check_lib_save_LIBS
6699 fi
6700 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6701 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6702 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6703   have_xaw=yes
6704 else
6705   have_xaw=no
6706 fi
6707
6708 fi
6709
6710   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6711 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6712 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   ac_check_lib_save_LIBS=$LIBS
6716 LIBS="-lXm  $LIBS"
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h.  */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h.  */
6723
6724 /* Override any gcc2 internal prototype to avoid an error.  */
6725 #ifdef __cplusplus
6726 extern "C"
6727 #endif
6728 /* We use char because int might match the return type of a gcc2
6729    builtin and then its argument prototype would still apply.  */
6730 char XmCreateForm ();
6731 int
6732 main ()
6733 {
6734 XmCreateForm ();
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741   (eval $ac_link) 2>conftest.er1
6742   ac_status=$?
6743   grep -v '^ *+' conftest.er1 >conftest.err
6744   rm -f conftest.er1
6745   cat conftest.err >&5
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); } &&
6748          { ac_try='test -z "$ac_c_werror_flag"
6749                          || test ! -s conftest.err'
6750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751   (eval $ac_try) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); }; } &&
6755          { ac_try='test -s conftest$ac_exeext'
6756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757   (eval $ac_try) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; }; then
6761   ac_cv_lib_Xm_XmCreateForm=yes
6762 else
6763   echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 ac_cv_lib_Xm_XmCreateForm=no
6767 fi
6768 rm -f conftest.err conftest.$ac_objext \
6769       conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_check_lib_save_LIBS
6771 fi
6772 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6773 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6774 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6775   have_xm=yes
6776 else
6777   have_xm=no
6778 fi
6779
6780
6781 for ac_func in XShmCreatePixmap
6782 do
6783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6784 echo "$as_me:$LINENO: checking for $ac_func" >&5
6785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6786 if eval "test \"\${$as_ac_var+set}\" = set"; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6797 #define $ac_func innocuous_$ac_func
6798
6799 /* System header to define __stub macros and hopefully few prototypes,
6800     which can conflict with char $ac_func (); below.
6801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6802     <limits.h> exists even on freestanding compilers.  */
6803
6804 #ifdef __STDC__
6805 # include <limits.h>
6806 #else
6807 # include <assert.h>
6808 #endif
6809
6810 #undef $ac_func
6811
6812 /* Override any gcc2 internal prototype to avoid an error.  */
6813 #ifdef __cplusplus
6814 extern "C"
6815 {
6816 #endif
6817 /* We use char because int might match the return type of a gcc2
6818    builtin and then its argument prototype would still apply.  */
6819 char $ac_func ();
6820 /* The GNU C library defines this for functions which it implements
6821     to always fail with ENOSYS.  Some functions are actually named
6822     something starting with __ and the normal name is an alias.  */
6823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6824 choke me
6825 #else
6826 char (*f) () = $ac_func;
6827 #endif
6828 #ifdef __cplusplus
6829 }
6830 #endif
6831
6832 int
6833 main ()
6834 {
6835 return f != $ac_func;
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6842   (eval $ac_link) 2>conftest.er1
6843   ac_status=$?
6844   grep -v '^ *+' conftest.er1 >conftest.err
6845   rm -f conftest.er1
6846   cat conftest.err >&5
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } &&
6849          { ac_try='test -z "$ac_c_werror_flag"
6850                          || test ! -s conftest.err'
6851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852   (eval $ac_try) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }; } &&
6856          { ac_try='test -s conftest$ac_exeext'
6857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858   (eval $ac_try) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }; }; then
6862   eval "$as_ac_var=yes"
6863 else
6864   echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 eval "$as_ac_var=no"
6868 fi
6869 rm -f conftest.err conftest.$ac_objext \
6870       conftest$ac_exeext conftest.$ac_ext
6871 fi
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6874 if test `eval echo '${'$as_ac_var'}'` = yes; then
6875   cat >>confdefs.h <<_ACEOF
6876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6877 _ACEOF
6878
6879 fi
6880 done
6881
6882   LIBS=$KEEPLIBS
6883 fi
6884
6885 # Checks for header files.
6886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6888 if test "${ac_cv_header_stdc+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <stdlib.h>
6898 #include <stdarg.h>
6899 #include <string.h>
6900 #include <float.h>
6901
6902 int
6903 main ()
6904 {
6905
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912   (eval $ac_compile) 2>conftest.er1
6913   ac_status=$?
6914   grep -v '^ *+' conftest.er1 >conftest.err
6915   rm -f conftest.er1
6916   cat conftest.err >&5
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } &&
6919          { ac_try='test -z "$ac_c_werror_flag"
6920                          || test ! -s conftest.err'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; } &&
6926          { ac_try='test -s conftest.$ac_objext'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932   ac_cv_header_stdc=yes
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_cv_header_stdc=no
6938 fi
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940
6941 if test $ac_cv_header_stdc = yes; then
6942   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6943   cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 #include <string.h>
6950
6951 _ACEOF
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953   $EGREP "memchr" >/dev/null 2>&1; then
6954   :
6955 else
6956   ac_cv_header_stdc=no
6957 fi
6958 rm -f conftest*
6959
6960 fi
6961
6962 if test $ac_cv_header_stdc = yes; then
6963   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964   cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970 #include <stdlib.h>
6971
6972 _ACEOF
6973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974   $EGREP "free" >/dev/null 2>&1; then
6975   :
6976 else
6977   ac_cv_header_stdc=no
6978 fi
6979 rm -f conftest*
6980
6981 fi
6982
6983 if test $ac_cv_header_stdc = yes; then
6984   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6985   if test "$cross_compiling" = yes; then
6986   :
6987 else
6988   cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994 #include <ctype.h>
6995 #if ((' ' & 0x0FF) == 0x020)
6996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6998 #else
6999 # define ISLOWER(c) \
7000                    (('a' <= (c) && (c) <= 'i') \
7001                      || ('j' <= (c) && (c) <= 'r') \
7002                      || ('s' <= (c) && (c) <= 'z'))
7003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7004 #endif
7005
7006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7007 int
7008 main ()
7009 {
7010   int i;
7011   for (i = 0; i < 256; i++)
7012     if (XOR (islower (i), ISLOWER (i))
7013         || toupper (i) != TOUPPER (i))
7014       exit(2);
7015   exit (0);
7016 }
7017 _ACEOF
7018 rm -f conftest$ac_exeext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7020   (eval $ac_link) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025   (eval $ac_try) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); }; }; then
7029   :
7030 else
7031   echo "$as_me: program exited with status $ac_status" >&5
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 ( exit $ac_status )
7036 ac_cv_header_stdc=no
7037 fi
7038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7039 fi
7040 fi
7041 fi
7042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7044 if test $ac_cv_header_stdc = yes; then
7045
7046 cat >>confdefs.h <<\_ACEOF
7047 #define STDC_HEADERS 1
7048 _ACEOF
7049
7050 fi
7051
7052 #AC_HEADER_STDBOOL
7053 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 #include <sys/types.h>
7065 #include <sys/wait.h>
7066 #ifndef WEXITSTATUS
7067 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7068 #endif
7069 #ifndef WIFEXITED
7070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7071 #endif
7072
7073 int
7074 main ()
7075 {
7076   int s;
7077   wait (&s);
7078   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7079   ;
7080   return 0;
7081 }
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085   (eval $ac_compile) 2>conftest.er1
7086   ac_status=$?
7087   grep -v '^ *+' conftest.er1 >conftest.err
7088   rm -f conftest.er1
7089   cat conftest.err >&5
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); } &&
7092          { ac_try='test -z "$ac_c_werror_flag"
7093                          || test ! -s conftest.err'
7094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095   (eval $ac_try) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); }; } &&
7099          { ac_try='test -s conftest.$ac_objext'
7100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101   (eval $ac_try) 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   ac_cv_header_sys_wait_h=yes
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 ac_cv_header_sys_wait_h=no
7111 fi
7112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7113 fi
7114 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7115 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7116 if test $ac_cv_header_sys_wait_h = yes; then
7117
7118 cat >>confdefs.h <<\_ACEOF
7119 #define HAVE_SYS_WAIT_H 1
7120 _ACEOF
7121
7122 fi
7123
7124 if test "x$WATCOM_C" != xyes ; then
7125 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7126 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7127 if test "${ac_cv_header_time+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136 #include <sys/types.h>
7137 #include <sys/time.h>
7138 #include <time.h>
7139
7140 int
7141 main ()
7142 {
7143 if ((struct tm *) 0)
7144 return 0;
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151   (eval $ac_compile) 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -z "$ac_c_werror_flag"
7159                          || test ! -s conftest.err'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; } &&
7165          { ac_try='test -s conftest.$ac_objext'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; }; then
7171   ac_cv_header_time=yes
7172 else
7173   echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176 ac_cv_header_time=no
7177 fi
7178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7179 fi
7180 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7181 echo "${ECHO_T}$ac_cv_header_time" >&6
7182 if test $ac_cv_header_time = yes; then
7183
7184 cat >>confdefs.h <<\_ACEOF
7185 #define TIME_WITH_SYS_TIME 1
7186 _ACEOF
7187
7188 fi
7189
7190 fi
7191
7192
7193
7194
7195
7196 ac_header_dirent=no
7197 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7198   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7199 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7200 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h.  */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h.  */
7210 #include <sys/types.h>
7211 #include <$ac_hdr>
7212
7213 int
7214 main ()
7215 {
7216 if ((DIR *) 0)
7217 return 0;
7218   ;
7219   return 0;
7220 }
7221 _ACEOF
7222 rm -f conftest.$ac_objext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224   (eval $ac_compile) 2>conftest.er1
7225   ac_status=$?
7226   grep -v '^ *+' conftest.er1 >conftest.err
7227   rm -f conftest.er1
7228   cat conftest.err >&5
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); } &&
7231          { ac_try='test -z "$ac_c_werror_flag"
7232                          || test ! -s conftest.err'
7233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234   (eval $ac_try) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; } &&
7238          { ac_try='test -s conftest.$ac_objext'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; }; then
7244   eval "$as_ac_Header=yes"
7245 else
7246   echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7248
7249 eval "$as_ac_Header=no"
7250 fi
7251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7252 fi
7253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7256   cat >>confdefs.h <<_ACEOF
7257 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7258 _ACEOF
7259
7260 ac_header_dirent=$ac_hdr; break
7261 fi
7262
7263 done
7264 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7265 if test $ac_header_dirent = dirent.h; then
7266   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7267 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7268 if test "${ac_cv_search_opendir+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   ac_func_search_save_LIBS=$LIBS
7272 ac_cv_search_opendir=no
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h.  */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h.  */
7279
7280 /* Override any gcc2 internal prototype to avoid an error.  */
7281 #ifdef __cplusplus
7282 extern "C"
7283 #endif
7284 /* We use char because int might match the return type of a gcc2
7285    builtin and then its argument prototype would still apply.  */
7286 char opendir ();
7287 int
7288 main ()
7289 {
7290 opendir ();
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297   (eval $ac_link) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_c_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest$ac_exeext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317   ac_cv_search_opendir="none required"
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 fi
7323 rm -f conftest.err conftest.$ac_objext \
7324       conftest$ac_exeext conftest.$ac_ext
7325 if test "$ac_cv_search_opendir" = no; then
7326   for ac_lib in dir; do
7327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7328     cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334
7335 /* Override any gcc2 internal prototype to avoid an error.  */
7336 #ifdef __cplusplus
7337 extern "C"
7338 #endif
7339 /* We use char because int might match the return type of a gcc2
7340    builtin and then its argument prototype would still apply.  */
7341 char opendir ();
7342 int
7343 main ()
7344 {
7345 opendir ();
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352   (eval $ac_link) 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } &&
7359          { ac_try='test -z "$ac_c_werror_flag"
7360                          || test ! -s conftest.err'
7361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362   (eval $ac_try) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); }; } &&
7366          { ac_try='test -s conftest$ac_exeext'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; }; then
7372   ac_cv_search_opendir="-l$ac_lib"
7373 break
7374 else
7375   echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7377
7378 fi
7379 rm -f conftest.err conftest.$ac_objext \
7380       conftest$ac_exeext conftest.$ac_ext
7381   done
7382 fi
7383 LIBS=$ac_func_search_save_LIBS
7384 fi
7385 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7386 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7387 if test "$ac_cv_search_opendir" != no; then
7388   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7389
7390 fi
7391
7392 else
7393   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7394 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7395 if test "${ac_cv_search_opendir+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   ac_func_search_save_LIBS=$LIBS
7399 ac_cv_search_opendir=no
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h.  */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h.  */
7406
7407 /* Override any gcc2 internal prototype to avoid an error.  */
7408 #ifdef __cplusplus
7409 extern "C"
7410 #endif
7411 /* We use char because int might match the return type of a gcc2
7412    builtin and then its argument prototype would still apply.  */
7413 char opendir ();
7414 int
7415 main ()
7416 {
7417 opendir ();
7418   ;
7419   return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424   (eval $ac_link) 2>conftest.er1
7425   ac_status=$?
7426   grep -v '^ *+' conftest.er1 >conftest.err
7427   rm -f conftest.er1
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } &&
7431          { ac_try='test -z "$ac_c_werror_flag"
7432                          || test ! -s conftest.err'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; } &&
7438          { ac_try='test -s conftest$ac_exeext'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; }; then
7444   ac_cv_search_opendir="none required"
7445 else
7446   echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 fi
7450 rm -f conftest.err conftest.$ac_objext \
7451       conftest$ac_exeext conftest.$ac_ext
7452 if test "$ac_cv_search_opendir" = no; then
7453   for ac_lib in x; do
7454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7455     cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461
7462 /* Override any gcc2 internal prototype to avoid an error.  */
7463 #ifdef __cplusplus
7464 extern "C"
7465 #endif
7466 /* We use char because int might match the return type of a gcc2
7467    builtin and then its argument prototype would still apply.  */
7468 char opendir ();
7469 int
7470 main ()
7471 {
7472 opendir ();
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>conftest.er1
7480   ac_status=$?
7481   grep -v '^ *+' conftest.er1 >conftest.err
7482   rm -f conftest.er1
7483   cat conftest.err >&5
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } &&
7486          { ac_try='test -z "$ac_c_werror_flag"
7487                          || test ! -s conftest.err'
7488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489   (eval $ac_try) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); }; } &&
7493          { ac_try='test -s conftest$ac_exeext'
7494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495   (eval $ac_try) 2>&5
7496   ac_status=$?
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); }; }; then
7499   ac_cv_search_opendir="-l$ac_lib"
7500 break
7501 else
7502   echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7504
7505 fi
7506 rm -f conftest.err conftest.$ac_objext \
7507       conftest$ac_exeext conftest.$ac_ext
7508   done
7509 fi
7510 LIBS=$ac_func_search_save_LIBS
7511 fi
7512 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7513 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7514 if test "$ac_cv_search_opendir" != no; then
7515   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7516
7517 fi
7518
7519 fi
7520
7521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7532                   inttypes.h stdint.h unistd.h
7533 do
7534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535 echo "$as_me:$LINENO: checking for $ac_header" >&5
7536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546 $ac_includes_default
7547
7548 #include <$ac_header>
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552   (eval $ac_compile) 2>conftest.er1
7553   ac_status=$?
7554   grep -v '^ *+' conftest.er1 >conftest.err
7555   rm -f conftest.er1
7556   cat conftest.err >&5
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } &&
7559          { ac_try='test -z "$ac_c_werror_flag"
7560                          || test ! -s conftest.err'
7561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562   (eval $ac_try) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); }; } &&
7566          { ac_try='test -s conftest.$ac_objext'
7567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568   (eval $ac_try) 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); }; }; then
7572   eval "$as_ac_Header=yes"
7573 else
7574   echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 eval "$as_ac_Header=no"
7578 fi
7579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7580 fi
7581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7584   cat >>confdefs.h <<_ACEOF
7585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586 _ACEOF
7587
7588 fi
7589
7590 done
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 for ac_header in \
7632   arpa/inet.h \
7633   errno.h \
7634   getopt.h \
7635   glob.h \
7636   dlfcn.h \
7637   fcntl.h \
7638   inttypes.h \
7639   limits.h \
7640   machine/endian.h \
7641   malloc.h \
7642   memory.h \
7643   netdb.h \
7644   netinet/in.h \
7645   nlist.h \
7646   stddef.h \
7647   stdlib.h \
7648   stdint.h \
7649   string.h \
7650   strings.h \
7651   stropts.h \
7652   soundcard.h \
7653   alsa/asoundlib.h \
7654   sys/asoundlib.h \
7655   sys/audioio.h \
7656   sys/awe_voice.h\
7657   sys/ioctl.h \
7658   sys/ipc.h \
7659   sys/param.h \
7660   sys/shm.h \
7661   sys/socket.h \
7662   sys/soundcard.h \
7663   sys/param.h \
7664   sys/time.h \
7665   sys/types.h \
7666   sys/sysctl.h \
7667   termios.h \
7668   unistd.h \
7669   X11/Xlib.h
7670 do
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7673   echo "$as_me:$LINENO: checking for $ac_header" >&5
7674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 fi
7678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680 else
7681   # Is the header compilable?
7682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h.  */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h.  */
7690 $ac_includes_default
7691 #include <$ac_header>
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695   (eval $ac_compile) 2>conftest.er1
7696   ac_status=$?
7697   grep -v '^ *+' conftest.er1 >conftest.err
7698   rm -f conftest.er1
7699   cat conftest.err >&5
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); } &&
7702          { ac_try='test -z "$ac_c_werror_flag"
7703                          || test ! -s conftest.err'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; } &&
7709          { ac_try='test -s conftest.$ac_objext'
7710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711   (eval $ac_try) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; }; then
7715   ac_header_compiler=yes
7716 else
7717   echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ac_header_compiler=no
7721 fi
7722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7724 echo "${ECHO_T}$ac_header_compiler" >&6
7725
7726 # Is the header present?
7727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735 #include <$ac_header>
7736 _ACEOF
7737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7739   ac_status=$?
7740   grep -v '^ *+' conftest.er1 >conftest.err
7741   rm -f conftest.er1
7742   cat conftest.err >&5
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); } >/dev/null; then
7745   if test -s conftest.err; then
7746     ac_cpp_err=$ac_c_preproc_warn_flag
7747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7748   else
7749     ac_cpp_err=
7750   fi
7751 else
7752   ac_cpp_err=yes
7753 fi
7754 if test -z "$ac_cpp_err"; then
7755   ac_header_preproc=yes
7756 else
7757   echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760   ac_header_preproc=no
7761 fi
7762 rm -f conftest.err conftest.$ac_ext
7763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7764 echo "${ECHO_T}$ac_header_preproc" >&6
7765
7766 # So?  What about this header?
7767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7768   yes:no: )
7769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7773     ac_header_preproc=yes
7774     ;;
7775   no:yes:* )
7776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7788     (
7789       cat <<\_ASBOX
7790 ## ------------------------------- ##
7791 ## Report this to root@mput.dip.jp ##
7792 ## ------------------------------- ##
7793 _ASBOX
7794     ) |
7795       sed "s/^/$as_me: WARNING:     /" >&2
7796     ;;
7797 esac
7798 echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   eval "$as_ac_Header=\$ac_header_preproc"
7804 fi
7805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7807
7808 fi
7809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7810   cat >>confdefs.h <<_ACEOF
7811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7812 _ACEOF
7813
7814 fi
7815
7816 done
7817
7818
7819
7820 for ac_header in \
7821   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7822 do
7823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7824 echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835
7836 #ifdef HAVE_X11_XLIB_H
7837 #include <X11/Xlib.h>
7838 #endif
7839
7840
7841 #include <$ac_header>
7842 _ACEOF
7843 rm -f conftest.$ac_objext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845   (eval $ac_compile) 2>conftest.er1
7846   ac_status=$?
7847   grep -v '^ *+' conftest.er1 >conftest.err
7848   rm -f conftest.er1
7849   cat conftest.err >&5
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); } &&
7852          { ac_try='test -z "$ac_c_werror_flag"
7853                          || test ! -s conftest.err'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; } &&
7859          { ac_try='test -s conftest.$ac_objext'
7860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861   (eval $ac_try) 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }; }; then
7865   eval "$as_ac_Header=yes"
7866 else
7867   echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 eval "$as_ac_Header=no"
7871 fi
7872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7873 fi
7874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7877   cat >>confdefs.h <<_ACEOF
7878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7879 _ACEOF
7880
7881 fi
7882
7883 done
7884
7885 if test "${ac_cv_header_string_h+set}" = set; then
7886   echo "$as_me:$LINENO: checking for string.h" >&5
7887 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7888 if test "${ac_cv_header_string_h+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 fi
7891 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7892 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7893 else
7894   # Is the header compilable?
7895 echo "$as_me:$LINENO: checking string.h usability" >&5
7896 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903 $ac_includes_default
7904 #include <string.h>
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908   (eval $ac_compile) 2>conftest.er1
7909   ac_status=$?
7910   grep -v '^ *+' conftest.er1 >conftest.err
7911   rm -f conftest.er1
7912   cat conftest.err >&5
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -z "$ac_c_werror_flag"
7916                          || test ! -s conftest.err'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; } &&
7922          { ac_try='test -s conftest.$ac_objext'
7923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924   (eval $ac_try) 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; }; then
7928   ac_header_compiler=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ac_header_compiler=no
7934 fi
7935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7937 echo "${ECHO_T}$ac_header_compiler" >&6
7938
7939 # Is the header present?
7940 echo "$as_me:$LINENO: checking string.h presence" >&5
7941 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948 #include <string.h>
7949 _ACEOF
7950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } >/dev/null; then
7958   if test -s conftest.err; then
7959     ac_cpp_err=$ac_c_preproc_warn_flag
7960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7961   else
7962     ac_cpp_err=
7963   fi
7964 else
7965   ac_cpp_err=yes
7966 fi
7967 if test -z "$ac_cpp_err"; then
7968   ac_header_preproc=yes
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973   ac_header_preproc=no
7974 fi
7975 rm -f conftest.err conftest.$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7977 echo "${ECHO_T}$ac_header_preproc" >&6
7978
7979 # So?  What about this header?
7980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7981   yes:no: )
7982     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7983 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7984     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7985 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7986     ac_header_preproc=yes
7987     ;;
7988   no:yes:* )
7989     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7990 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7991     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
7992 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
7993     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7994 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7995     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
7996 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7997     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7999     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8000 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8001     (
8002       cat <<\_ASBOX
8003 ## ------------------------------- ##
8004 ## Report this to root@mput.dip.jp ##
8005 ## ------------------------------- ##
8006 _ASBOX
8007     ) |
8008       sed "s/^/$as_me: WARNING:     /" >&2
8009     ;;
8010 esac
8011 echo "$as_me:$LINENO: checking for string.h" >&5
8012 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8013 if test "${ac_cv_header_string_h+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   ac_cv_header_string_h=$ac_header_preproc
8017 fi
8018 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8019 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8020
8021 fi
8022 if test $ac_cv_header_string_h = yes; then
8023   :
8024 else
8025
8026 cat >>confdefs.h <<\_ACEOF
8027 #define NO_STRING_H 1
8028 _ACEOF
8029
8030 fi
8031
8032
8033
8034 # Checks for typedefs, structures, and compiler characteristics.
8035 if test "x$WATCOM_C" != xyes ; then
8036 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8037 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8038 if test "${ac_cv_c_bigendian+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   # See if sys/param.h defines the BYTE_ORDER macro.
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048 #include <sys/types.h>
8049 #include <sys/param.h>
8050
8051 int
8052 main ()
8053 {
8054 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8055  bogus endian macros
8056 #endif
8057
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064   (eval $ac_compile) 2>conftest.er1
8065   ac_status=$?
8066   grep -v '^ *+' conftest.er1 >conftest.err
8067   rm -f conftest.er1
8068   cat conftest.err >&5
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); } &&
8071          { ac_try='test -z "$ac_c_werror_flag"
8072                          || test ! -s conftest.err'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; } &&
8078          { ac_try='test -s conftest.$ac_objext'
8079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080   (eval $ac_try) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); }; }; then
8084   # It does; now see whether it defined to BIG_ENDIAN or not.
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <sys/types.h>
8092 #include <sys/param.h>
8093
8094 int
8095 main ()
8096 {
8097 #if BYTE_ORDER != BIG_ENDIAN
8098  not big endian
8099 #endif
8100
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8107   (eval $ac_compile) 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -z "$ac_c_werror_flag"
8115                          || test ! -s conftest.err'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest.$ac_objext'
8122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123   (eval $ac_try) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_cv_c_bigendian=yes
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 ac_cv_c_bigendian=no
8133 fi
8134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 # It does not; compile a test program.
8140 if test "$cross_compiling" = yes; then
8141   # try to guess the endianness by grepping values into an object file
8142   ac_cv_c_bigendian=unknown
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8150 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8151 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8152 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8153 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8154 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8155 int
8156 main ()
8157 {
8158  _ascii (); _ebcdic ();
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165   (eval $ac_compile) 2>conftest.er1
8166   ac_status=$?
8167   grep -v '^ *+' conftest.er1 >conftest.err
8168   rm -f conftest.er1
8169   cat conftest.err >&5
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } &&
8172          { ac_try='test -z "$ac_c_werror_flag"
8173                          || test ! -s conftest.err'
8174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175   (eval $ac_try) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; } &&
8179          { ac_try='test -s conftest.$ac_objext'
8180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181   (eval $ac_try) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); }; }; then
8185   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8186   ac_cv_c_bigendian=yes
8187 fi
8188 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8189   if test "$ac_cv_c_bigendian" = unknown; then
8190     ac_cv_c_bigendian=no
8191   else
8192     # finding both strings is unlikely to happen, but who knows?
8193     ac_cv_c_bigendian=unknown
8194   fi
8195 fi
8196 else
8197   echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 fi
8201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202 else
8203   cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h.  */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h.  */
8209 int
8210 main ()
8211 {
8212   /* Are we little or big endian?  From Harbison&Steele.  */
8213   union
8214   {
8215     long l;
8216     char c[sizeof (long)];
8217   } u;
8218   u.l = 1;
8219   exit (u.c[sizeof (long) - 1] == 1);
8220 }
8221 _ACEOF
8222 rm -f conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224   (eval $ac_link) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229   (eval $ac_try) 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   ac_cv_c_bigendian=no
8234 else
8235   echo "$as_me: program exited with status $ac_status" >&5
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239 ( exit $ac_status )
8240 ac_cv_c_bigendian=yes
8241 fi
8242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8243 fi
8244 fi
8245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8248 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8249 case $ac_cv_c_bigendian in
8250   yes)
8251
8252 cat >>confdefs.h <<\_ACEOF
8253 #define WORDS_BIGENDIAN 1
8254 _ACEOF
8255  ;;
8256   no)
8257      ;;
8258   *)
8259     { { echo "$as_me:$LINENO: error: unknown endianness
8260 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8261 echo "$as_me: error: unknown endianness
8262 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8263    { (exit 1); exit 1; }; } ;;
8264 esac
8265
8266 fi
8267
8268 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8269 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8270 if test "${ac_cv_c_char_unsigned+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 $ac_includes_default
8280 int
8281 main ()
8282 {
8283 static int test_array [1 - 2 * !(((char) -1) < 0)];
8284 test_array [0] = 0
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292   (eval $ac_compile) 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag"
8300                          || test ! -s conftest.err'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; } &&
8306          { ac_try='test -s conftest.$ac_objext'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_c_char_unsigned=no
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317 ac_cv_c_char_unsigned=yes
8318 fi
8319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8322 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8323 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8324   cat >>confdefs.h <<\_ACEOF
8325 #define __CHAR_UNSIGNED__ 1
8326 _ACEOF
8327
8328 fi
8329
8330 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8331 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8332 if test "${ac_cv_c_const+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341
8342 int
8343 main ()
8344 {
8345 /* FIXME: Include the comments suggested by Paul. */
8346 #ifndef __cplusplus
8347   /* Ultrix mips cc rejects this.  */
8348   typedef int charset[2];
8349   const charset x;
8350   /* SunOS 4.1.1 cc rejects this.  */
8351   char const *const *ccp;
8352   char **p;
8353   /* NEC SVR4.0.2 mips cc rejects this.  */
8354   struct point {int x, y;};
8355   static struct point const zero = {0,0};
8356   /* AIX XL C 1.02.0.0 rejects this.
8357      It does not let you subtract one const X* pointer from another in
8358      an arm of an if-expression whose if-part is not a constant
8359      expression */
8360   const char *g = "string";
8361   ccp = &g + (g ? g-g : 0);
8362   /* HPUX 7.0 cc rejects these. */
8363   ++ccp;
8364   p = (char**) ccp;
8365   ccp = (char const *const *) p;
8366   { /* SCO 3.2v4 cc rejects this.  */
8367     char *t;
8368     char const *s = 0 ? (char *) 0 : (char const *) 0;
8369
8370     *t++ = 0;
8371   }
8372   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8373     int x[] = {25, 17};
8374     const int *foo = &x[0];
8375     ++foo;
8376   }
8377   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8378     typedef const int *iptr;
8379     iptr p = 0;
8380     ++p;
8381   }
8382   { /* AIX XL C 1.02.0.0 rejects this saying
8383        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8384     struct s { int j; const int *ap[3]; };
8385     struct s *b; b->j = 5;
8386   }
8387   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8388     const int foo = 10;
8389   }
8390 #endif
8391
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398   (eval $ac_compile) 2>conftest.er1
8399   ac_status=$?
8400   grep -v '^ *+' conftest.er1 >conftest.err
8401   rm -f conftest.er1
8402   cat conftest.err >&5
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -z "$ac_c_werror_flag"
8406                          || test ! -s conftest.err'
8407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408   (eval $ac_try) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_cv_c_const=yes
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 ac_cv_c_const=no
8424 fi
8425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426 fi
8427 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8428 echo "${ECHO_T}$ac_cv_c_const" >&6
8429 if test $ac_cv_c_const = no; then
8430
8431 cat >>confdefs.h <<\_ACEOF
8432 #define const
8433 _ACEOF
8434
8435 fi
8436
8437 echo "$as_me:$LINENO: checking for inline" >&5
8438 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8439 if test "${ac_cv_c_inline+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   ac_cv_c_inline=no
8443 for ac_kw in inline __inline__ __inline; do
8444   cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h.  */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h.  */
8450 #ifndef __cplusplus
8451 typedef int foo_t;
8452 static $ac_kw foo_t static_foo () {return 0; }
8453 $ac_kw foo_t foo () {return 0; }
8454 #endif
8455
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459   (eval $ac_compile) 2>conftest.er1
8460   ac_status=$?
8461   grep -v '^ *+' conftest.er1 >conftest.err
8462   rm -f conftest.er1
8463   cat conftest.err >&5
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); } &&
8466          { ac_try='test -z "$ac_c_werror_flag"
8467                          || test ! -s conftest.err'
8468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469   (eval $ac_try) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }; } &&
8473          { ac_try='test -s conftest.$ac_objext'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; }; then
8479   ac_cv_c_inline=$ac_kw; break
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 fi
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486 done
8487
8488 fi
8489 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8490 echo "${ECHO_T}$ac_cv_c_inline" >&6
8491
8492
8493 case $ac_cv_c_inline in
8494   inline | yes) ;;
8495   *)
8496     case $ac_cv_c_inline in
8497       no) ac_val=;;
8498       *) ac_val=$ac_cv_c_inline;;
8499     esac
8500     cat >>confdefs.h <<_ACEOF
8501 #ifndef __cplusplus
8502 #define inline $ac_val
8503 #endif
8504 _ACEOF
8505     ;;
8506 esac
8507
8508 echo "$as_me:$LINENO: checking for working volatile" >&5
8509 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8510 if test "${ac_cv_c_volatile+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h.  */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h.  */
8519
8520 int
8521 main ()
8522 {
8523
8524 volatile int x;
8525 int * volatile y;
8526   ;
8527   return 0;
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_volatile=yes
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 ac_cv_c_volatile=no
8558 fi
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560 fi
8561 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8562 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8563 if test $ac_cv_c_volatile = no; then
8564
8565 cat >>confdefs.h <<\_ACEOF
8566 #define volatile
8567 _ACEOF
8568
8569 fi
8570
8571 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8572 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8573 if test "${ac_cv_c_stringize+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582 #define x(y) #y
8583
8584 char *s = x(teststring);
8585 _ACEOF
8586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8587   $EGREP "#teststring" >/dev/null 2>&1; then
8588   ac_cv_c_stringize=no
8589 else
8590   ac_cv_c_stringize=yes
8591 fi
8592 rm -f conftest*
8593
8594 fi
8595 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8596 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8597 if test $ac_cv_c_stringize = yes; then
8598
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_STRINGIZE 1
8601 _ACEOF
8602
8603 fi
8604
8605 echo "$as_me:$LINENO: checking for function prototypes" >&5
8606 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8607 if test "$ac_cv_prog_cc_stdc" != no; then
8608   echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8610
8611 cat >>confdefs.h <<\_ACEOF
8612 #define PROTOTYPES 1
8613 _ACEOF
8614
8615
8616 cat >>confdefs.h <<\_ACEOF
8617 #define __PROTOTYPES 1
8618 _ACEOF
8619
8620 else
8621   echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8623 fi
8624
8625 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8626 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8627 if test "${ac_cv_struct_tm+set}" = set; then
8628   echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630   cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636 #include <sys/types.h>
8637 #include <time.h>
8638
8639 int
8640 main ()
8641 {
8642 struct tm *tp; tp->tm_sec;
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8649   (eval $ac_compile) 2>conftest.er1
8650   ac_status=$?
8651   grep -v '^ *+' conftest.er1 >conftest.err
8652   rm -f conftest.er1
8653   cat conftest.err >&5
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } &&
8656          { ac_try='test -z "$ac_c_werror_flag"
8657                          || test ! -s conftest.err'
8658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659   (eval $ac_try) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; } &&
8663          { ac_try='test -s conftest.$ac_objext'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_cv_struct_tm=time.h
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_struct_tm=sys/time.h
8675 fi
8676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8679 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8680 if test $ac_cv_struct_tm = sys/time.h; then
8681
8682 cat >>confdefs.h <<\_ACEOF
8683 #define TM_IN_SYS_TIME 1
8684 _ACEOF
8685
8686 fi
8687
8688 echo "$as_me:$LINENO: checking for size_t" >&5
8689 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8690 if test "${ac_cv_type_size_t+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h.  */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h.  */
8699 $ac_includes_default
8700 int
8701 main ()
8702 {
8703 if ((size_t *) 0)
8704   return 0;
8705 if (sizeof (size_t))
8706   return 0;
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713   (eval $ac_compile) 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag"
8721                          || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest.$ac_objext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_type_size_t=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_type_size_t=no
8739 fi
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8743 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8744 if test $ac_cv_type_size_t = yes; then
8745   :
8746 else
8747
8748 cat >>confdefs.h <<_ACEOF
8749 #define size_t unsigned
8750 _ACEOF
8751
8752 fi
8753
8754 echo "$as_me:$LINENO: checking for off_t" >&5
8755 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8756 if test "${ac_cv_type_off_t+set}" = set; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759   cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765 $ac_includes_default
8766 int
8767 main ()
8768 {
8769 if ((off_t *) 0)
8770   return 0;
8771 if (sizeof (off_t))
8772   return 0;
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779   (eval $ac_compile) 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } &&
8786          { ac_try='test -z "$ac_c_werror_flag"
8787                          || test ! -s conftest.err'
8788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789   (eval $ac_try) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; } &&
8793          { ac_try='test -s conftest.$ac_objext'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   ac_cv_type_off_t=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ac_cv_type_off_t=no
8805 fi
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 fi
8808 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8809 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8810 if test $ac_cv_type_off_t = yes; then
8811   :
8812 else
8813
8814 cat >>confdefs.h <<_ACEOF
8815 #define off_t long
8816 _ACEOF
8817
8818 fi
8819
8820 echo "$as_me:$LINENO: checking for pid_t" >&5
8821 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8822 if test "${ac_cv_type_pid_t+set}" = set; then
8823   echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825   cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831 $ac_includes_default
8832 int
8833 main ()
8834 {
8835 if ((pid_t *) 0)
8836   return 0;
8837 if (sizeof (pid_t))
8838   return 0;
8839   ;
8840   return 0;
8841 }
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845   (eval $ac_compile) 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } &&
8852          { ac_try='test -z "$ac_c_werror_flag"
8853                          || test ! -s conftest.err'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; } &&
8859          { ac_try='test -s conftest.$ac_objext'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865   ac_cv_type_pid_t=yes
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870 ac_cv_type_pid_t=no
8871 fi
8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873 fi
8874 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8875 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8876 if test $ac_cv_type_pid_t = yes; then
8877   :
8878 else
8879
8880 cat >>confdefs.h <<_ACEOF
8881 #define pid_t int
8882 _ACEOF
8883
8884 fi
8885
8886
8887 echo "$as_me:$LINENO: checking volatile declaration" >&5
8888 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8889 if test "${timidity_cv_type_volatile+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898
8899 int
8900 main ()
8901 {
8902 volatile int x
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909   (eval $ac_compile) 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } &&
8916          { ac_try='test -z "$ac_c_werror_flag"
8917                          || test ! -s conftest.err'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; } &&
8923          { ac_try='test -s conftest.$ac_objext'
8924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925   (eval $ac_try) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   timidity_cv_type_volatile=yes
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 timidity_cv_type_volatile=no
8935 fi
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937 fi
8938 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8939 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8940 if test $timidity_cv_type_volatile = no; then
8941
8942 cat >>confdefs.h <<\_ACEOF
8943 #define NO_VOLATILE 1
8944 _ACEOF
8945
8946 fi
8947
8948 echo "$as_me:$LINENO: checking union semun declaration" >&5
8949 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8950 if test "${timidity_cv_type_union_semun+set}" = set; then
8951   echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953   cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959
8960 #include <sys/types.h>
8961 #include <sys/ipc.h>
8962 #include <sys/sem.h>
8963
8964 int
8965 main ()
8966 {
8967 union semun x
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974   (eval $ac_compile) 2>conftest.er1
8975   ac_status=$?
8976   grep -v '^ *+' conftest.er1 >conftest.err
8977   rm -f conftest.er1
8978   cat conftest.err >&5
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } &&
8981          { ac_try='test -z "$ac_c_werror_flag"
8982                          || test ! -s conftest.err'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; } &&
8988          { ac_try='test -s conftest.$ac_objext'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; }; then
8994   timidity_cv_type_union_semun=yes
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 timidity_cv_type_union_semun=no
9000 fi
9001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9004 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9005 if test $timidity_cv_type_union_semun = yes; then
9006
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_UNION_SEMUN 1
9009 _ACEOF
9010
9011 fi
9012
9013 if test "x$MSYS" = xyes ; then
9014         case "x${CC}" in
9015         "xgcc"*)
9016                 msnative_struct=''
9017             echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9018 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9019             if test -z "$ac_cv_prog_CC"; then
9020                         our_gcc="$CC"
9021                 else
9022                         our_gcc="$ac_cv_prog_CC"
9023                 fi
9024                 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9025                         2.)
9026                 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9027                         msnative_struct='-fnative-struct'
9028                 fi
9029                 ;;
9030                         *)
9031                 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9032                         msnative_struct='-mms-bitfields'
9033                 fi
9034                 ;;
9035                 esac
9036                 if test x"$msnative_struct" = x ; then
9037                         echo "$as_me:$LINENO: result: no way" >&5
9038 echo "${ECHO_T}no way" >&6
9039                         { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9040 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9041                 else
9042                         CFLAGS="$CFLAGS $msnative_struct"
9043                         CPPFLAGS="$CPPFLAGS $msnative_struct"
9044                         echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9045 echo "${ECHO_T}${msnative_struct}" >&6
9046                 fi
9047                 ;;
9048         *)
9049                 ;;
9050         esac
9051 fi
9052 if test "x$MSYS" = xyes ; then
9053   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9054 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9055 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064
9065 #include <windows.h>
9066 #include <mmsystem.h>
9067
9068 int
9069 main ()
9070 {
9071 return WOM_OPEN != 0x3BB
9072   ;
9073   return 0;
9074 }
9075 _ACEOF
9076 rm -f conftest.$ac_objext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9078   (eval $ac_compile) 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } &&
9085          { ac_try='test -z "$ac_c_werror_flag"
9086                          || test ! -s conftest.err'
9087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088   (eval $ac_try) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); }; } &&
9092          { ac_try='test -s conftest.$ac_objext'
9093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094   (eval $ac_try) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; }; then
9098   timidity_cv_header_new_mmsystem=yes
9099 else
9100   echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 timidity_cv_header_new_mmsystem=no
9104 fi
9105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9108 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9109   if test $timidity_cv_header_new_mmsystem = yes; then
9110
9111 cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_NEW_MMSYSTEM 1
9113 _ACEOF
9114
9115   fi
9116 fi
9117
9118 # Checks for library functions.
9119 echo "$as_me:$LINENO: checking for error_at_line" >&5
9120 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9121 if test "${ac_cv_lib_error_at_line+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124   cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h.  */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h.  */
9130 $ac_includes_default
9131 int
9132 main ()
9133 {
9134 error_at_line (0, 0, "", 0, "");
9135   ;
9136   return 0;
9137 }
9138 _ACEOF
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141   (eval $ac_link) 2>conftest.er1
9142   ac_status=$?
9143   grep -v '^ *+' conftest.er1 >conftest.err
9144   rm -f conftest.er1
9145   cat conftest.err >&5
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); } &&
9148          { ac_try='test -z "$ac_c_werror_flag"
9149                          || test ! -s conftest.err'
9150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151   (eval $ac_try) 2>&5
9152   ac_status=$?
9153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154   (exit $ac_status); }; } &&
9155          { ac_try='test -s conftest$ac_exeext'
9156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157   (eval $ac_try) 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); }; }; then
9161   ac_cv_lib_error_at_line=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166 ac_cv_lib_error_at_line=no
9167 fi
9168 rm -f conftest.err conftest.$ac_objext \
9169       conftest$ac_exeext conftest.$ac_ext
9170 fi
9171 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9172 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9173 if test $ac_cv_lib_error_at_line = no; then
9174   case $LIBOBJS in
9175     "error.$ac_objext"   | \
9176   *" error.$ac_objext"   | \
9177     "error.$ac_objext "* | \
9178   *" error.$ac_objext "* ) ;;
9179   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9180 esac
9181
9182 fi
9183
9184
9185
9186 for ac_header in unistd.h vfork.h
9187 do
9188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190   echo "$as_me:$LINENO: checking for $ac_header" >&5
9191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 fi
9195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9197 else
9198   # Is the header compilable?
9199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h.  */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h.  */
9207 $ac_includes_default
9208 #include <$ac_header>
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212   (eval $ac_compile) 2>conftest.er1
9213   ac_status=$?
9214   grep -v '^ *+' conftest.er1 >conftest.err
9215   rm -f conftest.er1
9216   cat conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } &&
9219          { ac_try='test -z "$ac_c_werror_flag"
9220                          || test ! -s conftest.err'
9221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; } &&
9226          { ac_try='test -s conftest.$ac_objext'
9227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228   (eval $ac_try) 2>&5
9229   ac_status=$?
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); }; }; then
9232   ac_header_compiler=yes
9233 else
9234   echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 ac_header_compiler=no
9238 fi
9239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9241 echo "${ECHO_T}$ac_header_compiler" >&6
9242
9243 # Is the header present?
9244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 #include <$ac_header>
9253 _ACEOF
9254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9256   ac_status=$?
9257   grep -v '^ *+' conftest.er1 >conftest.err
9258   rm -f conftest.er1
9259   cat conftest.err >&5
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } >/dev/null; then
9262   if test -s conftest.err; then
9263     ac_cpp_err=$ac_c_preproc_warn_flag
9264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9265   else
9266     ac_cpp_err=
9267   fi
9268 else
9269   ac_cpp_err=yes
9270 fi
9271 if test -z "$ac_cpp_err"; then
9272   ac_header_preproc=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277   ac_header_preproc=no
9278 fi
9279 rm -f conftest.err conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9281 echo "${ECHO_T}$ac_header_preproc" >&6
9282
9283 # So?  What about this header?
9284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9285   yes:no: )
9286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9290     ac_header_preproc=yes
9291     ;;
9292   no:yes:* )
9293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9305     (
9306       cat <<\_ASBOX
9307 ## ------------------------------- ##
9308 ## Report this to root@mput.dip.jp ##
9309 ## ------------------------------- ##
9310 _ASBOX
9311     ) |
9312       sed "s/^/$as_me: WARNING:     /" >&2
9313     ;;
9314 esac
9315 echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   eval "$as_ac_Header=\$ac_header_preproc"
9321 fi
9322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9324
9325 fi
9326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9327   cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9329 _ACEOF
9330
9331 fi
9332
9333 done
9334
9335
9336
9337 for ac_func in fork vfork
9338 do
9339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9340 echo "$as_me:$LINENO: checking for $ac_func" >&5
9341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9342 if eval "test \"\${$as_ac_var+set}\" = set"; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h.  */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h.  */
9351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9353 #define $ac_func innocuous_$ac_func
9354
9355 /* System header to define __stub macros and hopefully few prototypes,
9356     which can conflict with char $ac_func (); below.
9357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9358     <limits.h> exists even on freestanding compilers.  */
9359
9360 #ifdef __STDC__
9361 # include <limits.h>
9362 #else
9363 # include <assert.h>
9364 #endif
9365
9366 #undef $ac_func
9367
9368 /* Override any gcc2 internal prototype to avoid an error.  */
9369 #ifdef __cplusplus
9370 extern "C"
9371 {
9372 #endif
9373 /* We use char because int might match the return type of a gcc2
9374    builtin and then its argument prototype would still apply.  */
9375 char $ac_func ();
9376 /* The GNU C library defines this for functions which it implements
9377     to always fail with ENOSYS.  Some functions are actually named
9378     something starting with __ and the normal name is an alias.  */
9379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9380 choke me
9381 #else
9382 char (*f) () = $ac_func;
9383 #endif
9384 #ifdef __cplusplus
9385 }
9386 #endif
9387
9388 int
9389 main ()
9390 {
9391 return f != $ac_func;
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 rm -f conftest.$ac_objext conftest$ac_exeext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398   (eval $ac_link) 2>conftest.er1
9399   ac_status=$?
9400   grep -v '^ *+' conftest.er1 >conftest.err
9401   rm -f conftest.er1
9402   cat conftest.err >&5
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); } &&
9405          { ac_try='test -z "$ac_c_werror_flag"
9406                          || test ! -s conftest.err'
9407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408   (eval $ac_try) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); }; } &&
9412          { ac_try='test -s conftest$ac_exeext'
9413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414   (eval $ac_try) 2>&5
9415   ac_status=$?
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); }; }; then
9418   eval "$as_ac_var=yes"
9419 else
9420   echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423 eval "$as_ac_var=no"
9424 fi
9425 rm -f conftest.err conftest.$ac_objext \
9426       conftest$ac_exeext conftest.$ac_ext
9427 fi
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9430 if test `eval echo '${'$as_ac_var'}'` = yes; then
9431   cat >>confdefs.h <<_ACEOF
9432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9433 _ACEOF
9434
9435 fi
9436 done
9437
9438 if test "x$ac_cv_func_fork" = xyes; then
9439   echo "$as_me:$LINENO: checking for working fork" >&5
9440 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9441 if test "${ac_cv_func_fork_works+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   if test "$cross_compiling" = yes; then
9445   ac_cv_func_fork_works=cross
9446 else
9447   cat >conftest.$ac_ext <<_ACEOF
9448 /* By Ruediger Kuhlmann. */
9449       #include <sys/types.h>
9450       #if HAVE_UNISTD_H
9451       # include <unistd.h>
9452       #endif
9453       /* Some systems only have a dummy stub for fork() */
9454       int main ()
9455       {
9456         if (fork() < 0)
9457           exit (1);
9458         exit (0);
9459       }
9460 _ACEOF
9461 rm -f conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463   (eval $ac_link) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; }; then
9472   ac_cv_func_fork_works=yes
9473 else
9474   echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 ( exit $ac_status )
9479 ac_cv_func_fork_works=no
9480 fi
9481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482 fi
9483 fi
9484 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9485 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9486
9487 else
9488   ac_cv_func_fork_works=$ac_cv_func_fork
9489 fi
9490 if test "x$ac_cv_func_fork_works" = xcross; then
9491   case $host in
9492     *-*-amigaos* | *-*-msdosdjgpp*)
9493       # Override, as these systems have only a dummy fork() stub
9494       ac_cv_func_fork_works=no
9495       ;;
9496     *)
9497       ac_cv_func_fork_works=yes
9498       ;;
9499   esac
9500   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9501 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9502 fi
9503 ac_cv_func_vfork_works=$ac_cv_func_vfork
9504 if test "x$ac_cv_func_vfork" = xyes; then
9505   echo "$as_me:$LINENO: checking for working vfork" >&5
9506 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9507 if test "${ac_cv_func_vfork_works+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   if test "$cross_compiling" = yes; then
9511   ac_cv_func_vfork_works=cross
9512 else
9513   cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519 /* Thanks to Paul Eggert for this test.  */
9520 #include <stdio.h>
9521 #include <stdlib.h>
9522 #include <sys/types.h>
9523 #include <sys/stat.h>
9524 #include <sys/wait.h>
9525 #if HAVE_UNISTD_H
9526 # include <unistd.h>
9527 #endif
9528 #if HAVE_VFORK_H
9529 # include <vfork.h>
9530 #endif
9531 /* On some sparc systems, changes by the child to local and incoming
9532    argument registers are propagated back to the parent.  The compiler
9533    is told about this with #include <vfork.h>, but some compilers
9534    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9535    static variable whose address is put into a register that is
9536    clobbered by the vfork.  */
9537 static void
9538 #ifdef __cplusplus
9539 sparc_address_test (int arg)
9540 # else
9541 sparc_address_test (arg) int arg;
9542 #endif
9543 {
9544   static pid_t child;
9545   if (!child) {
9546     child = vfork ();
9547     if (child < 0) {
9548       perror ("vfork");
9549       _exit(2);
9550     }
9551     if (!child) {
9552       arg = getpid();
9553       write(-1, "", 0);
9554       _exit (arg);
9555     }
9556   }
9557 }
9558
9559 int
9560 main ()
9561 {
9562   pid_t parent = getpid ();
9563   pid_t child;
9564
9565   sparc_address_test (0);
9566
9567   child = vfork ();
9568
9569   if (child == 0) {
9570     /* Here is another test for sparc vfork register problems.  This
9571        test uses lots of local variables, at least as many local
9572        variables as main has allocated so far including compiler
9573        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9574        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9575        reuse the register of parent for one of the local variables,
9576        since it will think that parent can't possibly be used any more
9577        in this routine.  Assigning to the local variable will thus
9578        munge parent in the parent process.  */
9579     pid_t
9580       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9581       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9582     /* Convince the compiler that p..p7 are live; otherwise, it might
9583        use the same hardware register for all 8 local variables.  */
9584     if (p != p1 || p != p2 || p != p3 || p != p4
9585         || p != p5 || p != p6 || p != p7)
9586       _exit(1);
9587
9588     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9589        from child file descriptors.  If the child closes a descriptor
9590        before it execs or exits, this munges the parent's descriptor
9591        as well.  Test for this by closing stdout in the child.  */
9592     _exit(close(fileno(stdout)) != 0);
9593   } else {
9594     int status;
9595     struct stat st;
9596
9597     while (wait(&status) != child)
9598       ;
9599     exit(
9600          /* Was there some problem with vforking?  */
9601          child < 0
9602
9603          /* Did the child fail?  (This shouldn't happen.)  */
9604          || status
9605
9606          /* Did the vfork/compiler bug occur?  */
9607          || parent != getpid()
9608
9609          /* Did the file descriptor bug occur?  */
9610          || fstat(fileno(stdout), &st) != 0
9611          );
9612   }
9613 }
9614 _ACEOF
9615 rm -f conftest$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617   (eval $ac_link) 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   ac_cv_func_vfork_works=yes
9627 else
9628   echo "$as_me: program exited with status $ac_status" >&5
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9631
9632 ( exit $ac_status )
9633 ac_cv_func_vfork_works=no
9634 fi
9635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9636 fi
9637 fi
9638 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9639 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9640
9641 fi;
9642 if test "x$ac_cv_func_fork_works" = xcross; then
9643   ac_cv_func_vfork_works=$ac_cv_func_vfork
9644   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9645 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9646 fi
9647
9648 if test "x$ac_cv_func_vfork_works" = xyes; then
9649
9650 cat >>confdefs.h <<\_ACEOF
9651 #define HAVE_WORKING_VFORK 1
9652 _ACEOF
9653
9654 else
9655
9656 cat >>confdefs.h <<\_ACEOF
9657 #define vfork fork
9658 _ACEOF
9659
9660 fi
9661 if test "x$ac_cv_func_fork_works" = xyes; then
9662
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_WORKING_FORK 1
9665 _ACEOF
9666
9667 fi
9668
9669 echo "$as_me:$LINENO: checking for working memcmp" >&5
9670 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9671 if test "${ac_cv_func_memcmp_working+set}" = set; then
9672   echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674   if test "$cross_compiling" = yes; then
9675   ac_cv_func_memcmp_working=no
9676 else
9677   cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h.  */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h.  */
9683 $ac_includes_default
9684 int
9685 main ()
9686 {
9687
9688   /* Some versions of memcmp are not 8-bit clean.  */
9689   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9690   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9691     exit (1);
9692
9693   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9694      or more and with at least one buffer not starting on a 4-byte boundary.
9695      William Lewis provided this test program.   */
9696   {
9697     char foo[21];
9698     char bar[21];
9699     int i;
9700     for (i = 0; i < 4; i++)
9701       {
9702         char *a = foo + i;
9703         char *b = bar + i;
9704         strcpy (a, "--------01111111");
9705         strcpy (b, "--------10000000");
9706         if (memcmp (a, b, 16) >= 0)
9707           exit (1);
9708       }
9709     exit (0);
9710   }
9711
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718   (eval $ac_link) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   ac_cv_func_memcmp_working=yes
9728 else
9729   echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ( exit $ac_status )
9734 ac_cv_func_memcmp_working=no
9735 fi
9736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9737 fi
9738 fi
9739 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9740 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9741 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9742     "memcmp.$ac_objext"   | \
9743   *" memcmp.$ac_objext"   | \
9744     "memcmp.$ac_objext "* | \
9745   *" memcmp.$ac_objext "* ) ;;
9746   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9747 esac
9748
9749
9750
9751
9752 for ac_header in stdlib.h unistd.h
9753 do
9754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9756   echo "$as_me:$LINENO: checking for $ac_header" >&5
9757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 fi
9761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9763 else
9764   # Is the header compilable?
9765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 $ac_includes_default
9774 #include <$ac_header>
9775 _ACEOF
9776 rm -f conftest.$ac_objext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778   (eval $ac_compile) 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -z "$ac_c_werror_flag"
9786                          || test ! -s conftest.err'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; } &&
9792          { ac_try='test -s conftest.$ac_objext'
9793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794   (eval $ac_try) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; }; then
9798   ac_header_compiler=yes
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_header_compiler=no
9804 fi
9805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9807 echo "${ECHO_T}$ac_header_compiler" >&6
9808
9809 # Is the header present?
9810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818 #include <$ac_header>
9819 _ACEOF
9820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9822   ac_status=$?
9823   grep -v '^ *+' conftest.er1 >conftest.err
9824   rm -f conftest.er1
9825   cat conftest.err >&5
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } >/dev/null; then
9828   if test -s conftest.err; then
9829     ac_cpp_err=$ac_c_preproc_warn_flag
9830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9831   else
9832     ac_cpp_err=
9833   fi
9834 else
9835   ac_cpp_err=yes
9836 fi
9837 if test -z "$ac_cpp_err"; then
9838   ac_header_preproc=yes
9839 else
9840   echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9842
9843   ac_header_preproc=no
9844 fi
9845 rm -f conftest.err conftest.$ac_ext
9846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9847 echo "${ECHO_T}$ac_header_preproc" >&6
9848
9849 # So?  What about this header?
9850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9851   yes:no: )
9852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9856     ac_header_preproc=yes
9857     ;;
9858   no:yes:* )
9859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9871     (
9872       cat <<\_ASBOX
9873 ## ------------------------------- ##
9874 ## Report this to root@mput.dip.jp ##
9875 ## ------------------------------- ##
9876 _ASBOX
9877     ) |
9878       sed "s/^/$as_me: WARNING:     /" >&2
9879     ;;
9880 esac
9881 echo "$as_me:$LINENO: checking for $ac_header" >&5
9882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9884   echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886   eval "$as_ac_Header=\$ac_header_preproc"
9887 fi
9888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9890
9891 fi
9892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893   cat >>confdefs.h <<_ACEOF
9894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9895 _ACEOF
9896
9897 fi
9898
9899 done
9900
9901
9902 for ac_func in getpagesize
9903 do
9904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9905 echo "$as_me:$LINENO: checking for $ac_func" >&5
9906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9907 if eval "test \"\${$as_ac_var+set}\" = set"; then
9908   echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910   cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9918 #define $ac_func innocuous_$ac_func
9919
9920 /* System header to define __stub macros and hopefully few prototypes,
9921     which can conflict with char $ac_func (); below.
9922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923     <limits.h> exists even on freestanding compilers.  */
9924
9925 #ifdef __STDC__
9926 # include <limits.h>
9927 #else
9928 # include <assert.h>
9929 #endif
9930
9931 #undef $ac_func
9932
9933 /* Override any gcc2 internal prototype to avoid an error.  */
9934 #ifdef __cplusplus
9935 extern "C"
9936 {
9937 #endif
9938 /* We use char because int might match the return type of a gcc2
9939    builtin and then its argument prototype would still apply.  */
9940 char $ac_func ();
9941 /* The GNU C library defines this for functions which it implements
9942     to always fail with ENOSYS.  Some functions are actually named
9943     something starting with __ and the normal name is an alias.  */
9944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9945 choke me
9946 #else
9947 char (*f) () = $ac_func;
9948 #endif
9949 #ifdef __cplusplus
9950 }
9951 #endif
9952
9953 int
9954 main ()
9955 {
9956 return f != $ac_func;
9957   ;
9958   return 0;
9959 }
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963   (eval $ac_link) 2>conftest.er1
9964   ac_status=$?
9965   grep -v '^ *+' conftest.er1 >conftest.err
9966   rm -f conftest.er1
9967   cat conftest.err >&5
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -z "$ac_c_werror_flag"
9971                          || test ! -s conftest.err'
9972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973   (eval $ac_try) 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); }; } &&
9977          { ac_try='test -s conftest$ac_exeext'
9978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979   (eval $ac_try) 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; }; then
9983   eval "$as_ac_var=yes"
9984 else
9985   echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 eval "$as_ac_var=no"
9989 fi
9990 rm -f conftest.err conftest.$ac_objext \
9991       conftest$ac_exeext conftest.$ac_ext
9992 fi
9993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9995 if test `eval echo '${'$as_ac_var'}'` = yes; then
9996   cat >>confdefs.h <<_ACEOF
9997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9998 _ACEOF
9999
10000 fi
10001 done
10002
10003 echo "$as_me:$LINENO: checking for working mmap" >&5
10004 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10005 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   if test "$cross_compiling" = yes; then
10009   ac_cv_func_mmap_fixed_mapped=no
10010 else
10011   cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017 $ac_includes_default
10018 /* malloc might have been renamed as rpl_malloc. */
10019 #undef malloc
10020
10021 /* Thanks to Mike Haertel and Jim Avera for this test.
10022    Here is a matrix of mmap possibilities:
10023         mmap private not fixed
10024         mmap private fixed at somewhere currently unmapped
10025         mmap private fixed at somewhere already mapped
10026         mmap shared not fixed
10027         mmap shared fixed at somewhere currently unmapped
10028         mmap shared fixed at somewhere already mapped
10029    For private mappings, we should verify that changes cannot be read()
10030    back from the file, nor mmap's back from the file at a different
10031    address.  (There have been systems where private was not correctly
10032    implemented like the infamous i386 svr4.0, and systems where the
10033    VM page cache was not coherent with the file system buffer cache
10034    like early versions of FreeBSD and possibly contemporary NetBSD.)
10035    For shared mappings, we should conversely verify that changes get
10036    propagated back to all the places they're supposed to be.
10037
10038    Grep wants private fixed already mapped.
10039    The main things grep needs to know about mmap are:
10040    * does it exist and is it safe to write into the mmap'd area
10041    * how to use it (BSD variants)  */
10042
10043 #include <fcntl.h>
10044 #include <sys/mman.h>
10045
10046 #if !STDC_HEADERS && !HAVE_STDLIB_H
10047 char *malloc ();
10048 #endif
10049
10050 /* This mess was copied from the GNU getpagesize.h.  */
10051 #if !HAVE_GETPAGESIZE
10052 /* Assume that all systems that can run configure have sys/param.h.  */
10053 # if !HAVE_SYS_PARAM_H
10054 #  define HAVE_SYS_PARAM_H 1
10055 # endif
10056
10057 # ifdef _SC_PAGESIZE
10058 #  define getpagesize() sysconf(_SC_PAGESIZE)
10059 # else /* no _SC_PAGESIZE */
10060 #  if HAVE_SYS_PARAM_H
10061 #   include <sys/param.h>
10062 #   ifdef EXEC_PAGESIZE
10063 #    define getpagesize() EXEC_PAGESIZE
10064 #   else /* no EXEC_PAGESIZE */
10065 #    ifdef NBPG
10066 #     define getpagesize() NBPG * CLSIZE
10067 #     ifndef CLSIZE
10068 #      define CLSIZE 1
10069 #     endif /* no CLSIZE */
10070 #    else /* no NBPG */
10071 #     ifdef NBPC
10072 #      define getpagesize() NBPC
10073 #     else /* no NBPC */
10074 #      ifdef PAGESIZE
10075 #       define getpagesize() PAGESIZE
10076 #      endif /* PAGESIZE */
10077 #     endif /* no NBPC */
10078 #    endif /* no NBPG */
10079 #   endif /* no EXEC_PAGESIZE */
10080 #  else /* no HAVE_SYS_PARAM_H */
10081 #   define getpagesize() 8192   /* punt totally */
10082 #  endif /* no HAVE_SYS_PARAM_H */
10083 # endif /* no _SC_PAGESIZE */
10084
10085 #endif /* no HAVE_GETPAGESIZE */
10086
10087 int
10088 main ()
10089 {
10090   char *data, *data2, *data3;
10091   int i, pagesize;
10092   int fd;
10093
10094   pagesize = getpagesize ();
10095
10096   /* First, make a file with some known garbage in it. */
10097   data = (char *) malloc (pagesize);
10098   if (!data)
10099     exit (1);
10100   for (i = 0; i < pagesize; ++i)
10101     *(data + i) = rand ();
10102   umask (0);
10103   fd = creat ("conftest.mmap", 0600);
10104   if (fd < 0)
10105     exit (1);
10106   if (write (fd, data, pagesize) != pagesize)
10107     exit (1);
10108   close (fd);
10109
10110   /* Next, try to mmap the file at a fixed address which already has
10111      something else allocated at it.  If we can, also make sure that
10112      we see the same garbage.  */
10113   fd = open ("conftest.mmap", O_RDWR);
10114   if (fd < 0)
10115     exit (1);
10116   data2 = (char *) malloc (2 * pagesize);
10117   if (!data2)
10118     exit (1);
10119   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10120   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10121                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10122     exit (1);
10123   for (i = 0; i < pagesize; ++i)
10124     if (*(data + i) != *(data2 + i))
10125       exit (1);
10126
10127   /* Finally, make sure that changes to the mapped area do not
10128      percolate back to the file as seen by read().  (This is a bug on
10129      some variants of i386 svr4.0.)  */
10130   for (i = 0; i < pagesize; ++i)
10131     *(data2 + i) = *(data2 + i) + 1;
10132   data3 = (char *) malloc (pagesize);
10133   if (!data3)
10134     exit (1);
10135   if (read (fd, data3, pagesize) != pagesize)
10136     exit (1);
10137   for (i = 0; i < pagesize; ++i)
10138     if (*(data + i) != *(data3 + i))
10139       exit (1);
10140   close (fd);
10141   exit (0);
10142 }
10143 _ACEOF
10144 rm -f conftest$ac_exeext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146   (eval $ac_link) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151   (eval $ac_try) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; }; then
10155   ac_cv_func_mmap_fixed_mapped=yes
10156 else
10157   echo "$as_me: program exited with status $ac_status" >&5
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 ( exit $ac_status )
10162 ac_cv_func_mmap_fixed_mapped=no
10163 fi
10164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10165 fi
10166 fi
10167 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10168 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10169 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10170
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_MMAP 1
10173 _ACEOF
10174
10175 fi
10176 rm -f conftest.mmap
10177
10178 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10179 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10180 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   ac_cv_func_setvbuf_reversed=no
10184    cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 #include <stdio.h>
10191 #         if PROTOTYPES
10192            int (setvbuf) (FILE *, int, char *, size_t);
10193 #         endif
10194 int
10195 main ()
10196 {
10197 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204   (eval $ac_link) 2>conftest.er1
10205   ac_status=$?
10206   grep -v '^ *+' conftest.er1 >conftest.err
10207   rm -f conftest.er1
10208   cat conftest.err >&5
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); } &&
10211          { ac_try='test -z "$ac_c_werror_flag"
10212                          || test ! -s conftest.err'
10213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214   (eval $ac_try) 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; } &&
10218          { ac_try='test -s conftest$ac_exeext'
10219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220   (eval $ac_try) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; }; then
10224   cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230 #include <stdio.h>
10231 #            if PROTOTYPES
10232               int (setvbuf) (FILE *, int, char *, size_t);
10233 #            endif
10234 int
10235 main ()
10236 {
10237 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10238   ;
10239   return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244   (eval $ac_link) 2>conftest.er1
10245   ac_status=$?
10246   grep -v '^ *+' conftest.er1 >conftest.err
10247   rm -f conftest.er1
10248   cat conftest.err >&5
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } &&
10251          { ac_try='test -z "$ac_c_werror_flag"
10252                          || test ! -s conftest.err'
10253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254   (eval $ac_try) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); }; } &&
10258          { ac_try='test -s conftest$ac_exeext'
10259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260   (eval $ac_try) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   # It compiles and links either way, so it must not be declared
10265          # with a prototype and most likely this is a K&R C compiler.
10266          # Try running it.
10267          if test "$cross_compiling" = yes; then
10268   : # Assume setvbuf is not reversed when cross-compiling.
10269 else
10270   cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276 #include <stdio.h>
10277 int
10278 main ()
10279 {
10280 /* This call has the arguments reversed.
10281                    A reversed system may check and see that the address of buf
10282                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10283                 char buf;
10284                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10285                   exit (1);
10286                 putchar ('\r');
10287                 exit (0); /* Non-reversed systems SEGV here.  */
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294   (eval $ac_link) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_func_setvbuf_reversed=yes
10304 else
10305   echo "$as_me: program exited with status $ac_status" >&5
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ( exit $ac_status )
10310 rm -f core *.core
10311 fi
10312 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10313 fi
10314         ac_cv_func_setvbuf_reversed=yes
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 fi
10320 rm -f conftest.err conftest.$ac_objext \
10321       conftest$ac_exeext conftest.$ac_ext
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326 fi
10327 rm -f conftest.err conftest.$ac_objext \
10328       conftest$ac_exeext conftest.$ac_ext
10329 fi
10330 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10331 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10332 if test $ac_cv_func_setvbuf_reversed = yes; then
10333
10334 cat >>confdefs.h <<\_ACEOF
10335 #define SETVBUF_REVERSED 1
10336 _ACEOF
10337
10338 fi
10339
10340 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10341 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10342 if test "${ac_cv_type_signal+set}" = set; then
10343   echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345   cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351 #include <sys/types.h>
10352 #include <signal.h>
10353 #ifdef signal
10354 # undef signal
10355 #endif
10356 #ifdef __cplusplus
10357 extern "C" void (*signal (int, void (*)(int)))(int);
10358 #else
10359 void (*signal ()) ();
10360 #endif
10361
10362 int
10363 main ()
10364 {
10365 int i;
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372   (eval $ac_compile) 2>conftest.er1
10373   ac_status=$?
10374   grep -v '^ *+' conftest.er1 >conftest.err
10375   rm -f conftest.er1
10376   cat conftest.err >&5
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -z "$ac_c_werror_flag"
10380                          || test ! -s conftest.err'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; } &&
10386          { ac_try='test -s conftest.$ac_objext'
10387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388   (eval $ac_try) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   ac_cv_type_signal=void
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_cv_type_signal=int
10398 fi
10399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10400 fi
10401 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10402 echo "${ECHO_T}$ac_cv_type_signal" >&6
10403
10404 cat >>confdefs.h <<_ACEOF
10405 #define RETSIGTYPE $ac_cv_type_signal
10406 _ACEOF
10407
10408
10409 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; then
10410
10411 for ac_func in vprintf
10412 do
10413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10414 echo "$as_me:$LINENO: checking for $ac_func" >&5
10415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_var+set}\" = set"; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h.  */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h.  */
10425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10427 #define $ac_func innocuous_$ac_func
10428
10429 /* System header to define __stub macros and hopefully few prototypes,
10430     which can conflict with char $ac_func (); below.
10431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10432     <limits.h> exists even on freestanding compilers.  */
10433
10434 #ifdef __STDC__
10435 # include <limits.h>
10436 #else
10437 # include <assert.h>
10438 #endif
10439
10440 #undef $ac_func
10441
10442 /* Override any gcc2 internal prototype to avoid an error.  */
10443 #ifdef __cplusplus
10444 extern "C"
10445 {
10446 #endif
10447 /* We use char because int might match the return type of a gcc2
10448    builtin and then its argument prototype would still apply.  */
10449 char $ac_func ();
10450 /* The GNU C library defines this for functions which it implements
10451     to always fail with ENOSYS.  Some functions are actually named
10452     something starting with __ and the normal name is an alias.  */
10453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10454 choke me
10455 #else
10456 char (*f) () = $ac_func;
10457 #endif
10458 #ifdef __cplusplus
10459 }
10460 #endif
10461
10462 int
10463 main ()
10464 {
10465 return f != $ac_func;
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 eval "$as_ac_var=no"
10498 fi
10499 rm -f conftest.err conftest.$ac_objext \
10500       conftest$ac_exeext conftest.$ac_ext
10501 fi
10502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10504 if test `eval echo '${'$as_ac_var'}'` = yes; then
10505   cat >>confdefs.h <<_ACEOF
10506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10507 _ACEOF
10508
10509 echo "$as_me:$LINENO: checking for _doprnt" >&5
10510 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10511 if test "${ac_cv_func__doprnt+set}" = set; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10522 #define _doprnt innocuous__doprnt
10523
10524 /* System header to define __stub macros and hopefully few prototypes,
10525     which can conflict with char _doprnt (); below.
10526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10527     <limits.h> exists even on freestanding compilers.  */
10528
10529 #ifdef __STDC__
10530 # include <limits.h>
10531 #else
10532 # include <assert.h>
10533 #endif
10534
10535 #undef _doprnt
10536
10537 /* Override any gcc2 internal prototype to avoid an error.  */
10538 #ifdef __cplusplus
10539 extern "C"
10540 {
10541 #endif
10542 /* We use char because int might match the return type of a gcc2
10543    builtin and then its argument prototype would still apply.  */
10544 char _doprnt ();
10545 /* The GNU C library defines this for functions which it implements
10546     to always fail with ENOSYS.  Some functions are actually named
10547     something starting with __ and the normal name is an alias.  */
10548 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10549 choke me
10550 #else
10551 char (*f) () = _doprnt;
10552 #endif
10553 #ifdef __cplusplus
10554 }
10555 #endif
10556
10557 int
10558 main ()
10559 {
10560 return f != _doprnt;
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567   (eval $ac_link) 2>conftest.er1
10568   ac_status=$?
10569   grep -v '^ *+' conftest.er1 >conftest.err
10570   rm -f conftest.er1
10571   cat conftest.err >&5
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); } &&
10574          { ac_try='test -z "$ac_c_werror_flag"
10575                          || test ! -s conftest.err'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; } &&
10581          { ac_try='test -s conftest$ac_exeext'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; }; then
10587   ac_cv_func__doprnt=yes
10588 else
10589   echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10591
10592 ac_cv_func__doprnt=no
10593 fi
10594 rm -f conftest.err conftest.$ac_objext \
10595       conftest$ac_exeext conftest.$ac_ext
10596 fi
10597 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10598 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10599 if test $ac_cv_func__doprnt = yes; then
10600
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_DOPRNT 1
10603 _ACEOF
10604
10605 fi
10606
10607 fi
10608 done
10609
10610
10611 fi
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648 for ac_func in \
10649   alarm \
10650   dup2 \
10651   floor \
10652   getcwd \
10653   getopt \
10654   gethostbyname \
10655   gettimeofday \
10656   getwd \
10657   isatty \
10658   memchr \
10659   memmove \
10660   memset \
10661   mkstemp \
10662   modf \
10663   munmap \
10664   popen \
10665   pow \
10666   select \
10667   signal \
10668   socket \
10669   sleep \
10670   vsnprintf \
10671   snprintf \
10672   sqrt \
10673   strchr \
10674   strdup \
10675   strstr \
10676   strerror \
10677   strcasecmp \
10678   strncasecmp \
10679   strrchr \
10680   strstr \
10681   strtol \
10682   strlcat \
10683   strlcpy \
10684   usleep
10685 do
10686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10687 echo "$as_me:$LINENO: checking for $ac_func" >&5
10688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_var+set}\" = set"; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692   cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10700 #define $ac_func innocuous_$ac_func
10701
10702 /* System header to define __stub macros and hopefully few prototypes,
10703     which can conflict with char $ac_func (); below.
10704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705     <limits.h> exists even on freestanding compilers.  */
10706
10707 #ifdef __STDC__
10708 # include <limits.h>
10709 #else
10710 # include <assert.h>
10711 #endif
10712
10713 #undef $ac_func
10714
10715 /* Override any gcc2 internal prototype to avoid an error.  */
10716 #ifdef __cplusplus
10717 extern "C"
10718 {
10719 #endif
10720 /* We use char because int might match the return type of a gcc2
10721    builtin and then its argument prototype would still apply.  */
10722 char $ac_func ();
10723 /* The GNU C library defines this for functions which it implements
10724     to always fail with ENOSYS.  Some functions are actually named
10725     something starting with __ and the normal name is an alias.  */
10726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10727 choke me
10728 #else
10729 char (*f) () = $ac_func;
10730 #endif
10731 #ifdef __cplusplus
10732 }
10733 #endif
10734
10735 int
10736 main ()
10737 {
10738 return f != $ac_func;
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745   (eval $ac_link) 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -z "$ac_c_werror_flag"
10753                          || test ! -s conftest.err'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; } &&
10759          { ac_try='test -s conftest$ac_exeext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   eval "$as_ac_var=yes"
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 eval "$as_ac_var=no"
10771 fi
10772 rm -f conftest.err conftest.$ac_objext \
10773       conftest$ac_exeext conftest.$ac_ext
10774 fi
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777 if test `eval echo '${'$as_ac_var'}'` = yes; then
10778   cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10780 _ACEOF
10781
10782 fi
10783 done
10784
10785 if test "x$VCPP" = xyes; then
10786   cat >>confdefs.h <<\_ACEOF
10787 #define RETSIGTYPE int
10788 _ACEOF
10789
10790   cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_GETCWD int
10792 _ACEOF
10793
10794 fi
10795 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
10796   cat >>confdefs.h <<\_ACEOF
10797 #define HAVE_GETHOSTBYNAME 1
10798 _ACEOF
10799
10800   cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_POPEN 1
10802 _ACEOF
10803
10804
10805 cat >>confdefs.h <<\_ACEOF
10806 #define popen _popen
10807 _ACEOF
10808
10809
10810 cat >>confdefs.h <<\_ACEOF
10811 #define pclose _pclose
10812 _ACEOF
10813
10814   cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_SELECT 1
10816 _ACEOF
10817
10818   cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_SNPRINTF 1
10820 _ACEOF
10821
10822   cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_STRDUP 1
10824 _ACEOF
10825
10826   cat >>confdefs.h <<\_ACEOF
10827 #define HAVE_STRERROR 1
10828 _ACEOF
10829
10830   cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_STRNCASECMP 1
10832 _ACEOF
10833
10834   cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_STRSTR 1
10836 _ACEOF
10837
10838
10839 cat >>confdefs.h <<\_ACEOF
10840 #define snprintf _snprintf
10841 _ACEOF
10842
10843   cat >>confdefs.h <<\_ACEOF
10844 #define HAVE_SOCKET 1
10845 _ACEOF
10846
10847   cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_VSNPRINTF 1
10849 _ACEOF
10850
10851
10852 cat >>confdefs.h <<\_ACEOF
10853 #define vsnprintf _vsnprintf
10854 _ACEOF
10855
10856
10857 cat >>confdefs.h <<\_ACEOF
10858 #define TIMID_VERSION $(PACKAGE_VERSION)
10859 _ACEOF
10860
10861 fi
10862
10863 echo "$as_me:$LINENO: checking for getopt_long" >&5
10864 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10865 if test "${ac_cv_func_getopt_long+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10876 #define getopt_long innocuous_getopt_long
10877
10878 /* System header to define __stub macros and hopefully few prototypes,
10879     which can conflict with char getopt_long (); below.
10880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10881     <limits.h> exists even on freestanding compilers.  */
10882
10883 #ifdef __STDC__
10884 # include <limits.h>
10885 #else
10886 # include <assert.h>
10887 #endif
10888
10889 #undef getopt_long
10890
10891 /* Override any gcc2 internal prototype to avoid an error.  */
10892 #ifdef __cplusplus
10893 extern "C"
10894 {
10895 #endif
10896 /* We use char because int might match the return type of a gcc2
10897    builtin and then its argument prototype would still apply.  */
10898 char getopt_long ();
10899 /* The GNU C library defines this for functions which it implements
10900     to always fail with ENOSYS.  Some functions are actually named
10901     something starting with __ and the normal name is an alias.  */
10902 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10903 choke me
10904 #else
10905 char (*f) () = getopt_long;
10906 #endif
10907 #ifdef __cplusplus
10908 }
10909 #endif
10910
10911 int
10912 main ()
10913 {
10914 return f != getopt_long;
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10921   (eval $ac_link) 2>conftest.er1
10922   ac_status=$?
10923   grep -v '^ *+' conftest.er1 >conftest.err
10924   rm -f conftest.er1
10925   cat conftest.err >&5
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); } &&
10928          { ac_try='test -z "$ac_c_werror_flag"
10929                          || test ! -s conftest.err'
10930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931   (eval $ac_try) 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; } &&
10935          { ac_try='test -s conftest$ac_exeext'
10936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937   (eval $ac_try) 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; }; then
10941   ac_cv_func_getopt_long=yes
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 ac_cv_func_getopt_long=no
10947 fi
10948 rm -f conftest.err conftest.$ac_objext \
10949       conftest$ac_exeext conftest.$ac_ext
10950 fi
10951 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10952 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10953 if test $ac_cv_func_getopt_long = yes; then
10954
10955 cat >>confdefs.h <<\_ACEOF
10956 #define HAVE_GETOPT_LONG 1
10957 _ACEOF
10958
10959          tm_cv_needgetopt="no"
10960 else
10961   tm_cv_needgetopt="yes"
10962 fi
10963
10964
10965
10966 if test "x$tm_cv_needgetopt" = "xyes"; then
10967   NEEDGETOPT_TRUE=
10968   NEEDGETOPT_FALSE='#'
10969 else
10970   NEEDGETOPT_TRUE='#'
10971   NEEDGETOPT_FALSE=
10972 fi
10973
10974
10975 echo "$as_me:$LINENO: checking for open_memstream" >&5
10976 echo $ECHO_N "checking for open_memstream... $ECHO_C" >&6
10977 if test "${ac_cv_func_open_memstream+set}" = set; then
10978   echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980   cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986 /* Define open_memstream to an innocuous variant, in case <limits.h> declares open_memstream.
10987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10988 #define open_memstream innocuous_open_memstream
10989
10990 /* System header to define __stub macros and hopefully few prototypes,
10991     which can conflict with char open_memstream (); below.
10992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10993     <limits.h> exists even on freestanding compilers.  */
10994
10995 #ifdef __STDC__
10996 # include <limits.h>
10997 #else
10998 # include <assert.h>
10999 #endif
11000
11001 #undef open_memstream
11002
11003 /* Override any gcc2 internal prototype to avoid an error.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 {
11007 #endif
11008 /* We use char because int might match the return type of a gcc2
11009    builtin and then its argument prototype would still apply.  */
11010 char open_memstream ();
11011 /* The GNU C library defines this for functions which it implements
11012     to always fail with ENOSYS.  Some functions are actually named
11013     something starting with __ and the normal name is an alias.  */
11014 #if defined (__stub_open_memstream) || defined (__stub___open_memstream)
11015 choke me
11016 #else
11017 char (*f) () = open_memstream;
11018 #endif
11019 #ifdef __cplusplus
11020 }
11021 #endif
11022
11023 int
11024 main ()
11025 {
11026 return f != open_memstream;
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033   (eval $ac_link) 2>conftest.er1
11034   ac_status=$?
11035   grep -v '^ *+' conftest.er1 >conftest.err
11036   rm -f conftest.er1
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -z "$ac_c_werror_flag"
11041                          || test ! -s conftest.err'
11042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043   (eval $ac_try) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; } &&
11047          { ac_try='test -s conftest$ac_exeext'
11048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049   (eval $ac_try) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; }; then
11053   ac_cv_func_open_memstream=yes
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058 ac_cv_func_open_memstream=no
11059 fi
11060 rm -f conftest.err conftest.$ac_objext \
11061       conftest$ac_exeext conftest.$ac_ext
11062 fi
11063 echo "$as_me:$LINENO: result: $ac_cv_func_open_memstream" >&5
11064 echo "${ECHO_T}$ac_cv_func_open_memstream" >&6
11065 if test $ac_cv_func_open_memstream = yes; then
11066
11067
11068 cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_OPEN_MEMSTREAM 1
11070 _ACEOF
11071
11072
11073 fi
11074
11075
11076 # Checks on cygnus and MSYS
11077 if test "x$MSYS" = xyes ; then
11078   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
11079   *yes*)
11080     echo "$as_me:$LINENO: checking for opendir" >&5
11081 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11082 if test "${ac_cv_func_opendir+set}" = set; then
11083   echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085   cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h.  */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h.  */
11091 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11093 #define opendir innocuous_opendir
11094
11095 /* System header to define __stub macros and hopefully few prototypes,
11096     which can conflict with char opendir (); below.
11097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11098     <limits.h> exists even on freestanding compilers.  */
11099
11100 #ifdef __STDC__
11101 # include <limits.h>
11102 #else
11103 # include <assert.h>
11104 #endif
11105
11106 #undef opendir
11107
11108 /* Override any gcc2 internal prototype to avoid an error.  */
11109 #ifdef __cplusplus
11110 extern "C"
11111 {
11112 #endif
11113 /* We use char because int might match the return type of a gcc2
11114    builtin and then its argument prototype would still apply.  */
11115 char opendir ();
11116 /* The GNU C library defines this for functions which it implements
11117     to always fail with ENOSYS.  Some functions are actually named
11118     something starting with __ and the normal name is an alias.  */
11119 #if defined (__stub_opendir) || defined (__stub___opendir)
11120 choke me
11121 #else
11122 char (*f) () = opendir;
11123 #endif
11124 #ifdef __cplusplus
11125 }
11126 #endif
11127
11128 int
11129 main ()
11130 {
11131 return f != opendir;
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138   (eval $ac_link) 2>conftest.er1
11139   ac_status=$?
11140   grep -v '^ *+' conftest.er1 >conftest.err
11141   rm -f conftest.er1
11142   cat conftest.err >&5
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); } &&
11145          { ac_try='test -z "$ac_c_werror_flag"
11146                          || test ! -s conftest.err'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; } &&
11152          { ac_try='test -s conftest$ac_exeext'
11153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154   (eval $ac_try) 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; }; then
11158   ac_cv_func_opendir=yes
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163 ac_cv_func_opendir=no
11164 fi
11165 rm -f conftest.err conftest.$ac_objext \
11166       conftest$ac_exeext conftest.$ac_ext
11167 fi
11168 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11169 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11170 if test $ac_cv_func_opendir = yes; then
11171   :
11172 else
11173    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11174     W32READDIR=yes
11175 fi
11176
11177     ;;
11178   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11179     W32READDIR=yes
11180     ;;
11181   esac
11182   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
11183     EXTRALIBS="$EXTRALIBS  wsock32.lib"
11184     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11185   else
11186     echo "$as_me:$LINENO: checking for socket" >&5
11187 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11188 if test "${ac_cv_func_socket+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h.  */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h.  */
11197 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11199 #define socket innocuous_socket
11200
11201 /* System header to define __stub macros and hopefully few prototypes,
11202     which can conflict with char socket (); below.
11203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11204     <limits.h> exists even on freestanding compilers.  */
11205
11206 #ifdef __STDC__
11207 # include <limits.h>
11208 #else
11209 # include <assert.h>
11210 #endif
11211
11212 #undef socket
11213
11214 /* Override any gcc2 internal prototype to avoid an error.  */
11215 #ifdef __cplusplus
11216 extern "C"
11217 {
11218 #endif
11219 /* We use char because int might match the return type of a gcc2
11220    builtin and then its argument prototype would still apply.  */
11221 char socket ();
11222 /* The GNU C library defines this for functions which it implements
11223     to always fail with ENOSYS.  Some functions are actually named
11224     something starting with __ and the normal name is an alias.  */
11225 #if defined (__stub_socket) || defined (__stub___socket)
11226 choke me
11227 #else
11228 char (*f) () = socket;
11229 #endif
11230 #ifdef __cplusplus
11231 }
11232 #endif
11233
11234 int
11235 main ()
11236 {
11237 return f != socket;
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244   (eval $ac_link) 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } &&
11251          { ac_try='test -z "$ac_c_werror_flag"
11252                          || test ! -s conftest.err'
11253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254   (eval $ac_try) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); }; } &&
11258          { ac_try='test -s conftest$ac_exeext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   ac_cv_func_socket=yes
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 ac_cv_func_socket=no
11270 fi
11271 rm -f conftest.err conftest.$ac_objext \
11272       conftest$ac_exeext conftest.$ac_ext
11273 fi
11274 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11275 echo "${ECHO_T}$ac_cv_func_socket" >&6
11276 if test $ac_cv_func_socket = yes; then
11277   :
11278 else
11279   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11280 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11281 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11282 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   ac_save_LIBS="$LIBS"
11286 LIBS="-lwsock32  $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293 #include <windows.h>
11294 #include <winsock.h>
11295
11296 int
11297 main ()
11298 {
11299 WSAStartup(0,0);
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306   (eval $ac_link) 2>conftest.er1
11307   ac_status=$?
11308   grep -v '^ *+' conftest.er1 >conftest.err
11309   rm -f conftest.er1
11310   cat conftest.err >&5
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); } &&
11313          { ac_try='test -z "$ac_c_werror_flag"
11314                          || test ! -s conftest.err'
11315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316   (eval $ac_try) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; } &&
11320          { ac_try='test -s conftest$ac_exeext'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; }; then
11326   eval "wapi_cv_lib_$ac_lib_var=yes"
11327 else
11328   echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 eval "wapi_cv_lib_$ac_lib_var=no"
11332 fi
11333 rm -f conftest.err conftest.$ac_objext \
11334       conftest$ac_exeext conftest.$ac_ext
11335 LIBS="$ac_save_LIBS"
11336
11337 fi
11338 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11339   echo "$as_me:$LINENO: result: yes" >&5
11340 echo "${ECHO_T}yes" >&6
11341    EXTRALIBS="$EXTRALIBS -lwsock32"
11342         EXTRADEFS="$EXTRADEFS -DWINSOCK"
11343
11344 else
11345   echo "$as_me:$LINENO: result: no" >&5
11346 echo "${ECHO_T}no" >&6
11347 fi
11348
11349
11350 fi
11351
11352   fi
11353 fi
11354
11355 # Checks on extra paths
11356
11357
11358 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11359 if test "${with_tcl_includes+set}" = set; then
11360   withval="$with_tcl_includes"
11361    if test ! -d $withval; then
11362       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11363 echo "$as_me: WARNING: $withval is not found." >&2;}
11364     fi
11365     tcl_include_dir="-I$withval"
11366
11367 fi;
11368
11369 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11370 if test "${with_tcl_libs+set}" = set; then
11371   withval="$with_tcl_libs"
11372    if test ! -d $withval; then
11373       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11374 echo "$as_me: WARNING: $withval is not found." >&2;}
11375     fi
11376     tcl_libdir="-L$withval"
11377 fi;
11378
11379 # Check whether --with-tk-includes or --without-tk-includes was given.
11380 if test "${with_tk_includes+set}" = set; then
11381   withval="$with_tk_includes"
11382    if test ! -d $withval; then
11383       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11384 echo "$as_me: WARNING: $withval is not found." >&2;}
11385     fi
11386     tk_includes="-I$withval"
11387 fi;
11388
11389 # Check whether --with-tk-libs or --without-tk-libs was given.
11390 if test "${with_tk_libs+set}" = set; then
11391   withval="$with_tk_libs"
11392    if test ! -d $withval; then
11393       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11394 echo "$as_me: WARNING: $withval is not found." >&2;}
11395     fi
11396     tk_libdir="-L$withval"
11397 fi;
11398
11399
11400 # Check whether --with-offix-includes or --without-offix-includes was given.
11401 if test "${with_offix_includes+set}" = set; then
11402   withval="$with_offix_includes"
11403    if test ! -d $withval; then
11404       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11405 echo "$as_me: WARNING: $withval is not found." >&2;}
11406     fi
11407     offix_include_dir="-I$withval"
11408 fi;
11409
11410 # Check whether --with-offix-libs or --without-offix-libs was given.
11411 if test "${with_offix_libs+set}" = set; then
11412   withval="$with_offix_libs"
11413    if test ! -d $withval; then
11414       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11415 echo "$as_me: WARNING: $withval is not found." >&2;}
11416     fi
11417     offix_lib_dir="-L$withval"
11418 fi;
11419
11420
11421 #
11422 # audio section
11423 #
11424
11425 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11426
11427
11428 # Check whether --with-nas-library or --without-nas-library was given.
11429 if test "${with_nas_library+set}" = set; then
11430   withval="$with_nas_library"
11431
11432 fi;
11433
11434 # Check whether --with-nas-includes or --without-nas-includes was given.
11435 if test "${with_nas_includes+set}" = set; then
11436   withval="$with_nas_includes"
11437
11438 fi;
11439
11440
11441 # Check whether --enable-audio or --disable-audio was given.
11442 if test "${enable_audio+set}" = set; then
11443   enableval="$enable_audio"
11444    enable_audio=$enableval
11445     have_audio_opt=yes
11446 else
11447    enable_audio=yes
11448     have_audio_opt=no
11449 fi;
11450
11451 test "x$enable_audio" = xyes && enable_audio=default
11452
11453 if test "x$enable_audio" != xno; then
11454   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11455     eval "au_enable_$i=yes"
11456   done
11457 fi
11458
11459 DEFAULT_PLAYMODE=
11460
11461 # Check whether --with-default-output or --without-default-output was given.
11462 if test "${with_default_output+set}" = set; then
11463   withval="$with_default_output"
11464    if test "$enable_audio" != no; then
11465     DEFAULT_PLAYMODE=$withval
11466     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11467   else
11468     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11469 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11470   fi
11471 fi;
11472
11473
11474 if test "x$au_enable_default" = xyes; then
11475   case "$target" in
11476   *-*-linux*|*-*-freebsd*)
11477     au_enable_oss=yes
11478     ;;
11479   *-*-bsdi2.0)
11480     au_enable_sb_dsp=yes
11481     ;;
11482   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11483     au_enable_oss=yes
11484     ;;
11485   *-*-hpux*)
11486     au_enable_hpux=yes
11487     ;;
11488   *-dec-*)
11489     au_enable_mme=yes
11490     ;;
11491   *irix*)
11492     au_enable_irix=yes
11493     ;;
11494   *-*-sunos4*)
11495     au_enable_sun=yes
11496     ;;
11497   *-*-solaris*)
11498     au_enable_sun=yes
11499     ;;
11500   *-*-netbsd*)
11501     au_enable_sun=yes
11502     ;;
11503   *-*-cygwin*)
11504     au_enable_w32=yes
11505     ;;
11506   *-*-mingw*)
11507     au_enable_w32=yes
11508     ;;
11509   *-*-darwin*)
11510     au_enable_darwin=yes
11511     ;;
11512   *)
11513     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11514 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11515     ;;
11516   esac
11517 fi
11518
11519
11520 # Each audio mode's configurations
11521 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11522 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11523 if test "x$au_enable_oss" = xyes; then
11524   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11525   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11526   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11527     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11528 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11529   else
11530     case "$target" in
11531       *linux*|*freebsd*)
11532                 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11534         ;;
11535       *)
11536         if test "x$ac_cv_header_soundcard_h" = xyes; then
11537           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11538 echo "${ECHO_T}yes - <soundcard.h>" >&6
11539         else
11540           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11541 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11542         fi
11543         ;;
11544     esac
11545   fi
11546
11547 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11548 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11549 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-lossaudio  $LIBS"
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h.  */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h.  */
11560
11561 /* Override any gcc2 internal prototype to avoid an error.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 /* We use char because int might match the return type of a gcc2
11566    builtin and then its argument prototype would still apply.  */
11567 char open ();
11568 int
11569 main ()
11570 {
11571 open ();
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578   (eval $ac_link) 2>conftest.er1
11579   ac_status=$?
11580   grep -v '^ *+' conftest.er1 >conftest.err
11581   rm -f conftest.er1
11582   cat conftest.err >&5
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); } &&
11585          { ac_try='test -z "$ac_c_werror_flag"
11586                          || test ! -s conftest.err'
11587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588   (eval $ac_try) 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; } &&
11592          { ac_try='test -s conftest$ac_exeext'
11593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594   (eval $ac_try) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); }; }; then
11598   ac_cv_lib_ossaudio_open=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603 ac_cv_lib_ossaudio_open=no
11604 fi
11605 rm -f conftest.err conftest.$ac_objext \
11606       conftest$ac_exeext conftest.$ac_ext
11607 LIBS=$ac_check_lib_save_LIBS
11608 fi
11609 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11610 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11611 if test $ac_cv_lib_ossaudio_open = yes; then
11612   cat >>confdefs.h <<_ACEOF
11613 #define HAVE_LIBOSSAUDIO 1
11614 _ACEOF
11615
11616   LIBS="-lossaudio $LIBS"
11617
11618 fi
11619
11620
11621     case "$target" in
11622     *openbsd*)
11623       if test ! -e "/dev/dsp"; then
11624         oss_device=/dev/audio
11625       fi
11626       ;;
11627   esac
11628 else
11629   echo "$as_me:$LINENO: result: no" >&5
11630 echo "${ECHO_T}no" >&6
11631 fi
11632
11633 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11634 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11635 if test "x$au_enable_sun" = xyes; then
11636   case "$target" in
11637     *-*-sunos4*)
11638       if test -f /usr/demo/SOUND/libaudio.a; then
11639         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11640         echo "$as_me:$LINENO: result: yes" >&5
11641 echo "${ECHO_T}yes" >&6
11642       else
11643         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11644 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11645       fi
11646       ;;
11647     *-*-solaris*)
11648       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11649         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11650         echo "$as_me:$LINENO: result: yes" >&5
11651 echo "${ECHO_T}yes" >&6
11652       else
11653         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11654 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11655       fi
11656       ;;
11657     *)   echo "$as_me:$LINENO: result: yes" >&5
11658 echo "${ECHO_T}yes" >&6
11659       ;;
11660   esac
11661   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11662   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11663 else
11664   echo "$as_me:$LINENO: result: no" >&5
11665 echo "${ECHO_T}no" >&6
11666 fi
11667
11668 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11669 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11670 if test "x$au_enable_hpux" = xyes; then
11671   case "$target" in
11672     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11673 echo "${ECHO_T}yes" >&6 ;;
11674     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11675 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11676   esac
11677   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11678   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11679 else
11680   echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11682 fi
11683
11684 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11685 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11686 if test "x$au_enable_irix" = xyes; then
11687   case "$target" in
11688     *-sgi-irix5*|*-sgi-irix6.2)
11689       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11690       echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11692       ;;
11693     *-sgi-irix6*)
11694       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11695       echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6
11697       ;;
11698     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11699 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11700   esac
11701   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11702   EXTRALIBS="$EXTRASLIBS -laudio"
11703 else
11704   echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6
11706 fi
11707
11708 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11709 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11710 if test "x$au_enable_mme" = xyes; then
11711   case "$target" in
11712     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11713 echo "${ECHO_T}yes" >&6 ;;
11714     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11715 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11716   esac
11717   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11718   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11719   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11720   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11721 else
11722   echo "$as_me:$LINENO: result: no" >&5
11723 echo "${ECHO_T}no" >&6
11724 fi
11725
11726 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11727 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11728 if test "x$au_enable_sb_dsp" = xyes; then
11729   case "$target" in
11730     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11731 echo "${ECHO_T}yes" >&6 ;;
11732     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11733 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11734   esac
11735   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11736   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11737 else
11738   echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6
11740 fi
11741
11742 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11743 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11744 if test "x$au_enable_w32" = xyes; then
11745   case "$target" in
11746     *-*-cygwin*)
11747      echo "$as_me:$LINENO: result: yes" >&5
11748 echo "${ECHO_T}yes" >&6
11749      ;;
11750     *-*-mingw32)
11751      echo "$as_me:$LINENO: result: yes" >&5
11752 echo "${ECHO_T}yes" >&6
11753      ;;
11754     *)
11755      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11756 echo "$as_me: WARNING: may not work on $target" >&2;}
11757      ;;
11758   esac
11759   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11760   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
11761         EXTRALIBS="$EXTRALIBS winmm.lib"
11762   else
11763     EXTRALIBS="$EXTRALIBS -lwinmm"
11764   fi
11765   EXTRADEFS="$EXTRADEFS -DAU_W32"
11766 else
11767   echo "$as_me:$LINENO: result: no" >&5
11768 echo "${ECHO_T}no" >&6
11769 fi
11770
11771 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11772 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11773 if test "x$au_enable_darwin" = xyes; then
11774   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11775   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11776   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11777     case "$target" in
11778     *-*-darwin*)
11779      echo "$as_me:$LINENO: result: yes" >&5
11780 echo "${ECHO_T}yes" >&6;;
11781    *)
11782      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11783 echo "$as_me: WARNING: may not work on $target" >&2;}
11784      ;;
11785   esac
11786 else
11787   echo "$as_me:$LINENO: result: no" >&5
11788 echo "${ECHO_T}no" >&6
11789 fi
11790
11791
11792 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11793 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11794 if test "x$au_enable_alsa" = xyes; then
11795   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11796 echo "${ECHO_T}yes, configuring alsa" >&6
11797   KEEPCFLAGS=$CFLAGS
11798   KEEPLIBS=$LIBS
11799   KEEPLDFLAGS=$LDFLAGS
11800   alsa_save_CFLAGS="$CFLAGS"
11801 alsa_save_LDFLAGS="$LDFLAGS"
11802 alsa_save_LIBS="$LIBS"
11803 alsa_found=yes
11804
11805
11806 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11807 if test "${with_alsa_prefix+set}" = set; then
11808   withval="$with_alsa_prefix"
11809   alsa_prefix="$withval"
11810 else
11811   alsa_prefix=""
11812 fi;
11813
11814
11815 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11816 if test "${with_alsa_inc_prefix+set}" = set; then
11817   withval="$with_alsa_inc_prefix"
11818   alsa_inc_prefix="$withval"
11819 else
11820   alsa_inc_prefix=""
11821 fi;
11822
11823 # Check whether --enable-alsatest or --disable-alsatest was given.
11824 if test "${enable_alsatest+set}" = set; then
11825   enableval="$enable_alsatest"
11826   enable_alsatest=no
11827 else
11828   enable_alsatest=yes
11829 fi;
11830
11831 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11832 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11833 if test "$alsa_inc_prefix" != "" ; then
11834         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11835         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11836 fi
11837 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11838 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11839
11840 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
11841 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
11842 if test "$alsa_prefix" != "" ; then
11843         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
11844         LDFLAGS="$LDFLAGS $ALSA_LIBS"
11845 fi
11846
11847 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
11848 LIBS=`echo $LIBS | sed 's/-lm//'`
11849 LIBS=`echo $LIBS | sed 's/-ldl//'`
11850 LIBS=`echo $LIBS | sed 's/-lpthread//'`
11851 LIBS=`echo $LIBS | sed 's/  //'`
11852 LIBS="$ALSA_LIBS $LIBS"
11853 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
11854 echo "${ECHO_T}$ALSA_LIBS" >&6
11855
11856 min_alsa_version=0.1.1
11857 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
11858 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
11859 no_alsa=""
11860     alsa_min_major_version=`echo $min_alsa_version | \
11861            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11862     alsa_min_minor_version=`echo $min_alsa_version | \
11863            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11864     alsa_min_micro_version=`echo $min_alsa_version | \
11865            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11866
11867
11868
11869
11870 ac_ext=c
11871 ac_cpp='$CPP $CPPFLAGS'
11872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882
11883 #include <alsa/asoundlib.h>
11884
11885 int
11886 main ()
11887 {
11888
11889 /* ensure backward compatibility */
11890 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11891 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11892 #endif
11893 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11894 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11895 #endif
11896 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11897 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11898 #endif
11899
11900 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
11901   exit(0);
11902 #  else
11903 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
11904 #       error not present
11905 #    endif
11906
11907 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
11908   exit(0);
11909 #   else
11910 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
11911 #          error not present
11912 #      endif
11913
11914 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11915 #        error not present
11916 #      endif
11917 #    endif
11918 #  endif
11919 exit(0);
11920
11921   ;
11922   return 0;
11923 }
11924 _ACEOF
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927   (eval $ac_compile) 2>conftest.er1
11928   ac_status=$?
11929   grep -v '^ *+' conftest.er1 >conftest.err
11930   rm -f conftest.er1
11931   cat conftest.err >&5
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } &&
11934          { ac_try='test -z "$ac_c_werror_flag"
11935                          || test ! -s conftest.err'
11936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937   (eval $ac_try) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; } &&
11941          { ac_try='test -s conftest.$ac_objext'
11942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943   (eval $ac_try) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; }; then
11947   echo "$as_me:$LINENO: result: found." >&5
11948 echo "${ECHO_T}found." >&6
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959
11960 #include <sys/asoundlib.h>
11961
11962 int
11963 main ()
11964 {
11965
11966 /* ensure backward compatibility */
11967 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11968 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11969 #endif
11970 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11971 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11972 #endif
11973 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11974 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11975 #endif
11976
11977 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
11978   exit(0);
11979 #  else
11980 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
11981 #       error not present
11982 #    endif
11983
11984 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
11985   exit(0);
11986 #   else
11987 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
11988 #          error not present
11989 #      endif
11990
11991 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11992 #        error not present
11993 #      endif
11994 #    endif
11995 #  endif
11996 exit(0);
11997
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004   (eval $ac_compile) 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } &&
12011          { ac_try='test -z "$ac_c_werror_flag"
12012                          || test ! -s conftest.err'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; } &&
12018          { ac_try='test -s conftest.$ac_objext'
12019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020   (eval $ac_try) 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; }; then
12024   echo "$as_me:$LINENO: result: found." >&5
12025 echo "${ECHO_T}found." >&6
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 echo "$as_me:$LINENO: result: not present." >&5
12031 echo "${ECHO_T}not present." >&6
12032    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12033 echo "${ECHO_T}libasound was not found anywhere." >&6
12034    alsa_found=no
12035 fi
12036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12037    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12038 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12039
12040 fi
12041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12042 ac_ext=c
12043 ac_cpp='$CPP $CPPFLAGS'
12044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12047
12048
12049
12050 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12051 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12052 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-lasound  $LIBS"
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063
12064 /* Override any gcc2 internal prototype to avoid an error.  */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 /* We use char because int might match the return type of a gcc2
12069    builtin and then its argument prototype would still apply.  */
12070 char snd_ctl_open ();
12071 int
12072 main ()
12073 {
12074 snd_ctl_open ();
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081   (eval $ac_link) 2>conftest.er1
12082   ac_status=$?
12083   grep -v '^ *+' conftest.er1 >conftest.err
12084   rm -f conftest.er1
12085   cat conftest.err >&5
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -z "$ac_c_werror_flag"
12089                          || test ! -s conftest.err'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; } &&
12095          { ac_try='test -s conftest$ac_exeext'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   ac_cv_lib_asound_snd_ctl_open=yes
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 ac_cv_lib_asound_snd_ctl_open=no
12107 fi
12108 rm -f conftest.err conftest.$ac_objext \
12109       conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12111 fi
12112 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12113 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12114 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12115   cat >>confdefs.h <<_ACEOF
12116 #define HAVE_LIBASOUND 1
12117 _ACEOF
12118
12119   LIBS="-lasound $LIBS"
12120
12121 else
12122   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12123 echo "${ECHO_T}No linkable libasound was found." >&6
12124    alsa_found=no
12125
12126 fi
12127
12128
12129 if test "x$alsa_found" = "xyes" ; then
12130    :
12131    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12132    LIBS=`echo $LIBS | sed 's/  //'`
12133    LIBS="-lasound $LIBS"
12134 else
12135    :
12136    CFLAGS="$alsa_save_CFLAGS"
12137    LDFLAGS="$alsa_save_LDFLAGS"
12138    LIBS="$alsa_save_LIBS"
12139    ALSA_CFLAGS=""
12140    ALSA_LIBS=""
12141 fi
12142
12143
12144
12145
12146   if test "x$alsa_found" = "xyes" ; then
12147         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12148     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12149     for f in $ALSA_CFLAGS; do
12150     case ".$f" in
12151         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12152         *)              CFLAGS="$CPPFLAGS $f" ;;
12153     esac
12154 done
12155
12156     LIBS="$LIBS $ALSA_LIBS"
12157
12158 for ac_func in snd_seq_port_info_set_timestamping
12159 do
12160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12161 echo "$as_me:$LINENO: checking for $ac_func" >&5
12162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12163 if eval "test \"\${$as_ac_var+set}\" = set"; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166   cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h.  */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h.  */
12172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12174 #define $ac_func innocuous_$ac_func
12175
12176 /* System header to define __stub macros and hopefully few prototypes,
12177     which can conflict with char $ac_func (); below.
12178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12179     <limits.h> exists even on freestanding compilers.  */
12180
12181 #ifdef __STDC__
12182 # include <limits.h>
12183 #else
12184 # include <assert.h>
12185 #endif
12186
12187 #undef $ac_func
12188
12189 /* Override any gcc2 internal prototype to avoid an error.  */
12190 #ifdef __cplusplus
12191 extern "C"
12192 {
12193 #endif
12194 /* We use char because int might match the return type of a gcc2
12195    builtin and then its argument prototype would still apply.  */
12196 char $ac_func ();
12197 /* The GNU C library defines this for functions which it implements
12198     to always fail with ENOSYS.  Some functions are actually named
12199     something starting with __ and the normal name is an alias.  */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 choke me
12202 #else
12203 char (*f) () = $ac_func;
12204 #endif
12205 #ifdef __cplusplus
12206 }
12207 #endif
12208
12209 int
12210 main ()
12211 {
12212 return f != $ac_func;
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219   (eval $ac_link) 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } &&
12226          { ac_try='test -z "$ac_c_werror_flag"
12227                          || test ! -s conftest.err'
12228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229   (eval $ac_try) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; } &&
12233          { ac_try='test -s conftest$ac_exeext'
12234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235   (eval $ac_try) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; }; then
12239   eval "$as_ac_var=yes"
12240 else
12241   echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 eval "$as_ac_var=no"
12245 fi
12246 rm -f conftest.err conftest.$ac_objext \
12247       conftest$ac_exeext conftest.$ac_ext
12248 fi
12249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12251 if test `eval echo '${'$as_ac_var'}'` = yes; then
12252   cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12254 _ACEOF
12255
12256 fi
12257 done
12258
12259   else
12260     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12261 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12262     CFLAGS=$KEEPCFLAGS
12263     LIBS=$KEEPLIBS
12264     LDFLAGS=$KEEPLDFLAGS
12265   fi
12266 else
12267   echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12269 fi
12270
12271 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12272 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12273 if test "x$au_enable_alib" = xyes; then
12274   case "$target" in
12275     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12276 echo "${ECHO_T}yes" >&6 ;;
12277     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12278 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12279   esac
12280   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12281   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12282   if test -d /opt/audio/include; then
12283     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12284   fi
12285   if test -d /opt/audio/lib; then
12286     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12287   fi
12288   EXTRALIBS="$EXTRALIBS -lAlib"
12289 else
12290   echo "$as_me:$LINENO: result: no" >&5
12291 echo "${ECHO_T}no" >&6
12292 fi
12293
12294 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12295 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12296 if test "x$au_enable_nas" = xyes; then
12297   if test "x$with_x" != xyes; then
12298     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12299 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12300    { (exit 1); exit 1; }; }
12301   fi
12302   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12303   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12304
12305
12306   if test "x$with_nas_library" != x; then
12307     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12308 echo "${ECHO_T}$with_nas_library" >&6;
12309     EXTRALIBS="$EXTRALIBS $with_nas_library"
12310   else
12311     echo "$as_me:$LINENO: result: " >&5
12312 echo "${ECHO_T}" >&6
12313     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12314 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12315 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   ac_func_search_save_LIBS="$LIBS"
12319 timidity_cv_search_AuOpenServer="no"
12320 for i in $x_libraries/libaudio.a \
12321          /usr/lib/libaudio.so \
12322          /usr/lib/libaudio.a ; do
12323   LIBS="$i  $ac_func_search_save_LIBS"
12324   cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330
12331 /* Override any gcc2 internal prototype to avoid an error.  */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 /* We use char because int might match the return type of a gcc2
12336    builtin and then its argument prototype would still apply.  */
12337 char AuOpenServer ();
12338 int
12339 main ()
12340 {
12341 AuOpenServer ();
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348   (eval $ac_link) 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } &&
12355          { ac_try='test -z "$ac_c_werror_flag"
12356                          || test ! -s conftest.err'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; } &&
12362          { ac_try='test -s conftest$ac_exeext'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; }; then
12368   timidity_cv_search_AuOpenServer="$i"; break
12369 else
12370   echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373 fi
12374 rm -f conftest.err conftest.$ac_objext \
12375       conftest$ac_exeext conftest.$ac_ext
12376 done
12377 LIBS="$ac_func_search_save_LIBS"
12378 fi
12379 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12380 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12381 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12382    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12383 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12384           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12385 else :
12386   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12387 echo "$as_me: WARNING: NAS library is not found." >&2;}
12388 fi
12389   fi
12390   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12391   lib_xt_opt=-lXt
12392   if test "x$have_xext" = xyes; then
12393     lib_xext_opt=-lXext
12394   fi
12395   if test "x$have_xprelibs" = xyes; then
12396     lib_xprelibs_opt='-lSM -lICE'
12397   fi
12398 else
12399   echo "$as_me:$LINENO: result: no" >&5
12400 echo "${ECHO_T}no" >&6
12401 fi
12402
12403 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12404 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12405 if test "x$au_enable_arts" = xyes; then
12406   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12407 echo "${ECHO_T}yes, configuring aRts" >&6
12408     # Extract the first word of "artsc-config", so it can be a program name with args.
12409 set dummy artsc-config; ac_word=$2
12410 echo "$as_me:$LINENO: checking for $ac_word" >&5
12411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12412 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
12413   echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415   case $ARTSCCONFIG in
12416   [\\/]* | ?:[\\/]*)
12417   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12418   ;;
12419   *)
12420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12422 do
12423   IFS=$as_save_IFS
12424   test -z "$as_dir" && as_dir=.
12425   for ac_exec_ext in '' $ac_executable_extensions; do
12426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12427     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12429     break 2
12430   fi
12431 done
12432 done
12433
12434   ;;
12435 esac
12436 fi
12437 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12438
12439 if test -n "$ARTSCCONFIG"; then
12440   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12441 echo "${ECHO_T}$ARTSCCONFIG" >&6
12442 else
12443   echo "$as_me:$LINENO: result: no" >&5
12444 echo "${ECHO_T}no" >&6
12445 fi
12446
12447   if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12448   then
12449     ARTSC_CFLAGS=""
12450     for i in `$ARTSCCONFIG --cflags`
12451     do
12452       case "$i" in
12453         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12454       esac
12455     done
12456     ARTSC_LIBS=`$ARTSCCONFIG --libs`
12457     save_CFLAGS="$CFLAGS"
12458     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12459     cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h.  */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h.  */
12465 #include <artsc.h>
12466 int
12467 main ()
12468 {
12469 arts_stream_t stream;
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>conftest.er1
12477   ac_status=$?
12478   grep -v '^ *+' conftest.er1 >conftest.err
12479   rm -f conftest.er1
12480   cat conftest.err >&5
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); } &&
12483          { ac_try='test -z "$ac_c_werror_flag"
12484                          || test ! -s conftest.err'
12485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486   (eval $ac_try) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; } &&
12490          { ac_try='test -s conftest.$ac_objext'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; }; then
12496   ARTSLIBS=$ARTSC_LIBS
12497
12498          ARTSINCL=$ARTSC_CFLAGS
12499
12500
12501 cat >>confdefs.h <<\_ACEOF
12502 #define HAVE_ARTS 1
12503 _ACEOF
12504
12505          have_arts="yes"
12506
12507 else
12508   echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511 fi
12512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12513     CFLAGS="$save_CFLAGS"
12514   fi
12515
12516   if test "$have_arts" = "yes"; then
12517         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12518     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12519     for f in $ARTSC_CFLAGS; do
12520     case ".$f" in
12521         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12522         *)              CFLAGS="$CPPFLAGS $f" ;;
12523     esac
12524 done
12525
12526     LIBS="$LIBS $ARTSC_LIBS"
12527   else
12528     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12529 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12530   fi
12531 else
12532   echo "$as_me:$LINENO: result: no" >&5
12533 echo "${ECHO_T}no" >&6
12534 fi
12535
12536 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12537 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12538 if test "x$au_enable_esd" = xyes; then
12539   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12540 echo "${ECHO_T}yes, configuring esd" >&6
12541   KEEPCFLAGS=$CFLAGS
12542   KEEPLIBS=$LIBS
12543   KEEPLDFLAGS=$LDFLAGS
12544
12545 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12546 if test "${with_esd_prefix+set}" = set; then
12547   withval="$with_esd_prefix"
12548   esd_prefix="$withval"
12549 else
12550   esd_prefix=""
12551 fi;
12552
12553 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12554 if test "${with_esd_exec_prefix+set}" = set; then
12555   withval="$with_esd_exec_prefix"
12556   esd_exec_prefix="$withval"
12557 else
12558   esd_exec_prefix=""
12559 fi;
12560 # Check whether --enable-esdtest or --disable-esdtest was given.
12561 if test "${enable_esdtest+set}" = set; then
12562   enableval="$enable_esdtest"
12563
12564 else
12565   enable_esdtest=yes
12566 fi;
12567
12568   if test x$esd_exec_prefix != x ; then
12569      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12570      if test x${ESD_CONFIG+set} != xset ; then
12571         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12572      fi
12573   fi
12574   if test x$esd_prefix != x ; then
12575      esd_args="$esd_args --prefix=$esd_prefix"
12576      if test x${ESD_CONFIG+set} != xset ; then
12577         ESD_CONFIG=$esd_prefix/bin/esd-config
12578      fi
12579   fi
12580
12581   # Extract the first word of "esd-config", so it can be a program name with args.
12582 set dummy esd-config; ac_word=$2
12583 echo "$as_me:$LINENO: checking for $ac_word" >&5
12584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12585 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12586   echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588   case $ESD_CONFIG in
12589   [\\/]* | ?:[\\/]*)
12590   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12591   ;;
12592   *)
12593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12595 do
12596   IFS=$as_save_IFS
12597   test -z "$as_dir" && as_dir=.
12598   for ac_exec_ext in '' $ac_executable_extensions; do
12599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12602     break 2
12603   fi
12604 done
12605 done
12606
12607   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12608   ;;
12609 esac
12610 fi
12611 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12612
12613 if test -n "$ESD_CONFIG"; then
12614   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12615 echo "${ECHO_T}$ESD_CONFIG" >&6
12616 else
12617   echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6
12619 fi
12620
12621   min_esd_version=0.2.7
12622   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12623 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12624   no_esd=""
12625   if test "$ESD_CONFIG" = "no" ; then
12626     no_esd=yes
12627   else
12628
12629
12630     ac_ext=c
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12635
12636     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12637     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12638
12639     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12640            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12641     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12642            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12643     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12644            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12645     if test "x$enable_esdtest" = "xyes" ; then
12646       ac_save_CFLAGS="$CFLAGS"
12647       ac_save_LIBS="$LIBS"
12648       CFLAGS="$CFLAGS $ESD_CFLAGS"
12649       LIBS="$LIBS $ESD_LIBS"
12650       rm -f conf.esdtest
12651       if test "$cross_compiling" = yes; then
12652   echo $ac_n "cross compiling; assumed OK... $ac_c"
12653 else
12654   cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h.  */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h.  */
12660
12661 #include <stdio.h>
12662 #include <stdlib.h>
12663 #include <string.h>
12664 #include <esd.h>
12665
12666 char*
12667 my_strdup (char *str)
12668 {
12669   char *new_str;
12670
12671   if (str)
12672     {
12673       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12674       strcpy (new_str, str);
12675     }
12676   else
12677     new_str = NULL;
12678
12679   return new_str;
12680 }
12681
12682 int main ()
12683 {
12684   int major, minor, micro;
12685   char *tmp_version;
12686
12687   system ("touch conf.esdtest");
12688
12689   /* HP/UX 9 (%@#!) writes to sscanf strings */
12690   tmp_version = my_strdup("$min_esd_version");
12691   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12692      printf("%s, bad version string\n", "$min_esd_version");
12693      exit(1);
12694    }
12695
12696    if (($esd_major_version > major) ||
12697       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
12698       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
12699     {
12700       return 0;
12701     }
12702   else
12703     {
12704       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
12705       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
12706       printf("*** best to upgrade to the required version.\n");
12707       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
12708       printf("*** to point to the correct copy of esd-config, and remove the file\n");
12709       printf("*** config.cache before re-running configure\n");
12710       return 1;
12711     }
12712 }
12713
12714
12715 _ACEOF
12716 rm -f conftest$ac_exeext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12718   (eval $ac_link) 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; }; then
12727   :
12728 else
12729   echo "$as_me: program exited with status $ac_status" >&5
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ( exit $ac_status )
12734 no_esd=yes
12735 fi
12736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12737 fi
12738        CFLAGS="$ac_save_CFLAGS"
12739        LIBS="$ac_save_LIBS"
12740        ac_ext=c
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745
12746      fi
12747   fi
12748   if test "x$no_esd" = x ; then
12749      echo "$as_me:$LINENO: result: yes" >&5
12750 echo "${ECHO_T}yes" >&6
12751      :
12752   else
12753      echo "$as_me:$LINENO: result: no" >&5
12754 echo "${ECHO_T}no" >&6
12755      if test "$ESD_CONFIG" = "no" ; then
12756        echo "*** The esd-config script installed by ESD could not be found"
12757        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
12758        echo "*** your path, or set the ESD_CONFIG environment variable to the"
12759        echo "*** full path to esd-config."
12760      else
12761        if test -f conf.esdtest ; then
12762         :
12763        else
12764           echo "*** Could not run ESD test program, checking why..."
12765           CFLAGS="$CFLAGS $ESD_CFLAGS"
12766           LIBS="$LIBS $ESD_LIBS"
12767
12768
12769           ac_ext=c
12770 ac_cpp='$CPP $CPPFLAGS'
12771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12774
12775           cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781
12782 #include <stdio.h>
12783 #include <esd.h>
12784
12785 int
12786 main ()
12787 {
12788  return 0;
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795   (eval $ac_link) 2>conftest.er1
12796   ac_status=$?
12797   grep -v '^ *+' conftest.er1 >conftest.err
12798   rm -f conftest.er1
12799   cat conftest.err >&5
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } &&
12802          { ac_try='test -z "$ac_c_werror_flag"
12803                          || test ! -s conftest.err'
12804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805   (eval $ac_try) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; } &&
12809          { ac_try='test -s conftest$ac_exeext'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; }; then
12815    echo "*** The test program compiled, but did not run. This usually means"
12816           echo "*** that the run-time linker is not finding ESD or finding the wrong"
12817           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
12818           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12819           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12820           echo "*** is required on your system"
12821           echo "***"
12822           echo "*** If you have an old version installed, it is best to remove it, although"
12823           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828  echo "*** The test program failed to compile or link. See the file config.log for the"
12829           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
12830           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
12831           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
12832 fi
12833 rm -f conftest.err conftest.$ac_objext \
12834       conftest$ac_exeext conftest.$ac_ext
12835           CFLAGS="$ac_save_CFLAGS"
12836           LIBS="$ac_save_LIBS"
12837           ac_ext=c
12838 ac_cpp='$CPP $CPPFLAGS'
12839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12842
12843        fi
12844      fi
12845      ESD_CFLAGS=""
12846      ESD_LIBS=""
12847      :
12848   fi
12849
12850
12851   rm -f conf.esdtest
12852
12853   CFLAGS=$KEEPCFLAGS
12854   LIBS=$KEEPLIBS
12855   LDFLAGS=$KEEPLDFLAGS
12856   if test "x$no_esd" = x; then
12857         EXTRADEFS="$EXTRADEFS -DAU_ESD"
12858     SYSEXTRAS="$SYSEXTRAS esd_a.c"
12859     for f in $ESD_CFLAGS; do
12860     case ".$f" in
12861         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12862         *)              CFLAGS="$CPPFLAGS $f" ;;
12863     esac
12864 done
12865
12866     LIBS="$LIBS $ESD_LIBS"
12867   else
12868     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
12869 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
12870   fi
12871 else
12872   echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6
12874 fi
12875
12876 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
12877 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
12878 if test "x$au_enable_portaudio" = xyes; then
12879   echo "$as_me:$LINENO: result: yes" >&5
12880 echo "${ECHO_T}yes" >&6
12881   if test "x$MSYS" = xyes ; then
12882         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
12883         EXTRALIBS="$EXTRALIBS -lportaudio"
12884         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
12885   else
12886         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
12887         EXTRALIBS="$EXTRALIBS -lportaudio"
12888         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
12889   fi
12890 else
12891   echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6
12893 fi
12894
12895 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
12896 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
12897 if test "x$au_enable_jack" = xyes; then
12898   echo "$as_me:$LINENO: result: yes" >&5
12899 echo "${ECHO_T}yes" >&6
12900   SYSEXTRAS="$SYSEXTRAS jack_a.c"
12901   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
12902   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
12903 else
12904   echo "$as_me:$LINENO: result: no" >&5
12905 echo "${ECHO_T}no" >&6
12906 fi
12907
12908 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
12909 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
12910 if test "x$au_enable_ao" = xyes; then
12911   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
12912 echo "${ECHO_T}yes, configuring ao" >&6
12913
12914 # Check whether --with-ao or --without-ao was given.
12915 if test "${with_ao+set}" = set; then
12916   withval="$with_ao"
12917   ao_prefix="$withval"
12918 else
12919   ao_prefix=""
12920 fi;
12921
12922 # Check whether --with-ao-libraries or --without-ao-libraries was given.
12923 if test "${with_ao_libraries+set}" = set; then
12924   withval="$with_ao_libraries"
12925   ao_libraries="$withval"
12926 else
12927   ao_libraries=""
12928 fi;
12929
12930 # Check whether --with-ao-includes or --without-ao-includes was given.
12931 if test "${with_ao_includes+set}" = set; then
12932   withval="$with_ao_includes"
12933   ao_includes="$withval"
12934 else
12935   ao_includes=""
12936 fi;
12937 # Check whether --enable-aotest or --disable-aotest was given.
12938 if test "${enable_aotest+set}" = set; then
12939   enableval="$enable_aotest"
12940
12941 else
12942   enable_aotest=yes
12943 fi;
12944
12945
12946   if test "x$ao_libraries" != "x" ; then
12947     AO_LIBS="-L$ao_libraries"
12948   elif test "x$ao_prefix" != "x"; then
12949     AO_LIBS="-L$ao_prefix/lib"
12950   elif test "x$prefix" != "xNONE"; then
12951     AO_LIBS="-L$prefix/lib"
12952   fi
12953
12954   if test "x$ao_includes" != "x" ; then
12955     AO_CFLAGS="-I$ao_includes"
12956   elif test "x$ao_prefix" != "x"; then
12957     AO_CFLAGS="-I$ao_prefix/include"
12958   elif test "x$prefix" != "xNONE"; then
12959     AO_CFLAGS="-I$prefix/include"
12960   fi
12961
12962   # see where dl* and friends live
12963
12964 for ac_func in dlopen
12965 do
12966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 echo "$as_me:$LINENO: checking for $ac_func" >&5
12968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12969 if eval "test \"\${$as_ac_var+set}\" = set"; then
12970   echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972   cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h.  */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h.  */
12978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12980 #define $ac_func innocuous_$ac_func
12981
12982 /* System header to define __stub macros and hopefully few prototypes,
12983     which can conflict with char $ac_func (); below.
12984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985     <limits.h> exists even on freestanding compilers.  */
12986
12987 #ifdef __STDC__
12988 # include <limits.h>
12989 #else
12990 # include <assert.h>
12991 #endif
12992
12993 #undef $ac_func
12994
12995 /* Override any gcc2 internal prototype to avoid an error.  */
12996 #ifdef __cplusplus
12997 extern "C"
12998 {
12999 #endif
13000 /* We use char because int might match the return type of a gcc2
13001    builtin and then its argument prototype would still apply.  */
13002 char $ac_func ();
13003 /* The GNU C library defines this for functions which it implements
13004     to always fail with ENOSYS.  Some functions are actually named
13005     something starting with __ and the normal name is an alias.  */
13006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13007 choke me
13008 #else
13009 char (*f) () = $ac_func;
13010 #endif
13011 #ifdef __cplusplus
13012 }
13013 #endif
13014
13015 int
13016 main ()
13017 {
13018 return f != $ac_func;
13019   ;
13020   return 0;
13021 }
13022 _ACEOF
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025   (eval $ac_link) 2>conftest.er1
13026   ac_status=$?
13027   grep -v '^ *+' conftest.er1 >conftest.err
13028   rm -f conftest.er1
13029   cat conftest.err >&5
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); } &&
13032          { ac_try='test -z "$ac_c_werror_flag"
13033                          || test ! -s conftest.err'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; } &&
13039          { ac_try='test -s conftest$ac_exeext'
13040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041   (eval $ac_try) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }; }; then
13045   eval "$as_ac_var=yes"
13046 else
13047   echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050 eval "$as_ac_var=no"
13051 fi
13052 rm -f conftest.err conftest.$ac_objext \
13053       conftest$ac_exeext conftest.$ac_ext
13054 fi
13055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13057 if test `eval echo '${'$as_ac_var'}'` = yes; then
13058   cat >>confdefs.h <<_ACEOF
13059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13060 _ACEOF
13061  AO_DL_LIBS=""
13062 else
13063
13064     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13065 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ldl  $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h.  */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h.  */
13077
13078 /* Override any gcc2 internal prototype to avoid an error.  */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 /* We use char because int might match the return type of a gcc2
13083    builtin and then its argument prototype would still apply.  */
13084 char dlopen ();
13085 int
13086 main ()
13087 {
13088 dlopen ();
13089   ;
13090   return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095   (eval $ac_link) 2>conftest.er1
13096   ac_status=$?
13097   grep -v '^ *+' conftest.er1 >conftest.err
13098   rm -f conftest.er1
13099   cat conftest.err >&5
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); } &&
13102          { ac_try='test -z "$ac_c_werror_flag"
13103                          || test ! -s conftest.err'
13104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105   (eval $ac_try) 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; } &&
13109          { ac_try='test -s conftest$ac_exeext'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; }; then
13115   ac_cv_lib_dl_dlopen=yes
13116 else
13117   echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 ac_cv_lib_dl_dlopen=no
13121 fi
13122 rm -f conftest.err conftest.$ac_objext \
13123       conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13125 fi
13126 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13127 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13128 if test $ac_cv_lib_dl_dlopen = yes; then
13129   AO_DL_LIBS="-ldl"
13130 else
13131
13132       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13133       your system may not be supported." >&5
13134 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13135       your system may not be supported." >&2;}
13136
13137 fi
13138
13139
13140 fi
13141 done
13142
13143
13144   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13145
13146   echo "$as_me:$LINENO: checking for ao" >&5
13147 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13148   no_ao=""
13149
13150
13151   if test "x$enable_aotest" = "xyes" ; then
13152     ac_save_CFLAGS="$CFLAGS"
13153     ac_save_LIBS="$LIBS"
13154     CFLAGS="$CFLAGS $AO_CFLAGS"
13155     LIBS="$LIBS $AO_LIBS"
13156       rm -f conf.aotest
13157       if test "$cross_compiling" = yes; then
13158   echo $ac_n "cross compiling; assumed OK... $ac_c"
13159 else
13160   cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h.  */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h.  */
13166
13167 #include <stdio.h>
13168 #include <stdlib.h>
13169 #include <string.h>
13170 #include <ao/ao.h>
13171
13172 int main ()
13173 {
13174   system("touch conf.aotest");
13175   return 0;
13176 }
13177
13178
13179 _ACEOF
13180 rm -f conftest$ac_exeext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182   (eval $ac_link) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187   (eval $ac_try) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   :
13192 else
13193   echo "$as_me: program exited with status $ac_status" >&5
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13196
13197 ( exit $ac_status )
13198 no_ao=yes
13199 fi
13200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13201 fi
13202        CFLAGS="$ac_save_CFLAGS"
13203        LIBS="$ac_save_LIBS"
13204   fi
13205
13206   if test "x$no_ao" = "x" ; then
13207      echo "$as_me:$LINENO: result: yes" >&5
13208 echo "${ECHO_T}yes" >&6
13209      :
13210   else
13211      echo "$as_me:$LINENO: result: no" >&5
13212 echo "${ECHO_T}no" >&6
13213      if test -f conf.aotest ; then
13214        :
13215      else
13216        echo "*** Could not run ao test program, checking why..."
13217        CFLAGS="$CFLAGS $AO_CFLAGS"
13218        LIBS="$LIBS $AO_LIBS"
13219        cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225
13226 #include <stdio.h>
13227 #include <ao/ao.h>
13228
13229 int
13230 main ()
13231 {
13232  return 0;
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239   (eval $ac_link) 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_c_werror_flag"
13247                          || test ! -s conftest.err'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; } &&
13253          { ac_try='test -s conftest$ac_exeext'
13254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255   (eval $ac_try) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259    echo "*** The test program compiled, but did not run. This usually means"
13260        echo "*** that the run-time linker is not finding ao or finding the wrong"
13261        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13262        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13263        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13264        echo "*** is required on your system"
13265        echo "***"
13266        echo "*** If you have an old version installed, it is best to remove it, although"
13267        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272  echo "*** The test program failed to compile or link. See the file config.log for the"
13273        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13274        echo "*** or that you have moved ao since it was installed."
13275 fi
13276 rm -f conftest.err conftest.$ac_objext \
13277       conftest$ac_exeext conftest.$ac_ext
13278        CFLAGS="$ac_save_CFLAGS"
13279        LIBS="$ac_save_LIBS"
13280      fi
13281      AO_CFLAGS=""
13282      AO_LIBS=""
13283      :
13284   fi
13285
13286
13287   rm -f conf.aotest
13288
13289   if test "x$no_ao" = "x" ; then
13290     # AC_MSG_RESULT(yes)
13291     EXTRADEFS="$EXTRADEFS -DAU_AO"
13292     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13293     for f in $AO_CFLAGS; do
13294     case ".$f" in
13295         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13296         *)              CFLAGS="$CPPFLAGS $f" ;;
13297     esac
13298 done
13299
13300     LIBS="$LIBS $AO_LIBS"
13301   else
13302     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13303 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13304   fi
13305 else
13306   echo "$as_me:$LINENO: result: no" >&5
13307 echo "${ECHO_T}no" >&6
13308 fi
13309
13310 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13311 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13312 if test "x$au_enable_vorbis" = xyes; then
13313   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13314 echo "${ECHO_T}yes, configuring vorbis" >&6
13315
13316 # Check whether --with-ogg or --without-ogg was given.
13317 if test "${with_ogg+set}" = set; then
13318   withval="$with_ogg"
13319   ogg_prefix="$withval"
13320 else
13321   ogg_prefix=""
13322 fi;
13323
13324 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13325 if test "${with_ogg_libraries+set}" = set; then
13326   withval="$with_ogg_libraries"
13327   ogg_libraries="$withval"
13328 else
13329   ogg_libraries=""
13330 fi;
13331
13332 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13333 if test "${with_ogg_includes+set}" = set; then
13334   withval="$with_ogg_includes"
13335   ogg_includes="$withval"
13336 else
13337   ogg_includes=""
13338 fi;
13339 # Check whether --enable-oggtest or --disable-oggtest was given.
13340 if test "${enable_oggtest+set}" = set; then
13341   enableval="$enable_oggtest"
13342
13343 else
13344   enable_oggtest=yes
13345 fi;
13346
13347   if test "x$ogg_libraries" != "x" ; then
13348     OGG_LIBS="-L$ogg_libraries"
13349   elif test "x$ogg_prefix" != "x" ; then
13350     OGG_LIBS="-L$ogg_prefix/lib"
13351   elif test "x$prefix" != "xNONE" ; then
13352     OGG_LIBS="-L$prefix/lib"
13353   fi
13354
13355   OGG_LIBS="$OGG_LIBS -logg"
13356
13357   if test "x$ogg_includes" != "x" ; then
13358     OGG_CFLAGS="-I$ogg_includes"
13359   elif test "x$ogg_prefix" != "x" ; then
13360     OGG_CFLAGS="-I$ogg_prefix/include"
13361   elif test "x$prefix" != "xNONE"; then
13362     OGG_CFLAGS="-I$prefix/include"
13363   fi
13364
13365   echo "$as_me:$LINENO: checking for Ogg" >&5
13366 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13367   no_ogg=""
13368
13369
13370   if test "x$enable_oggtest" = "xyes" ; then
13371     ac_save_CFLAGS="$CFLAGS"
13372     ac_save_LIBS="$LIBS"
13373     CFLAGS="$CFLAGS $OGG_CFLAGS"
13374     LIBS="$LIBS $OGG_LIBS"
13375       rm -f conf.oggtest
13376       if test "$cross_compiling" = yes; then
13377   echo $ac_n "cross compiling; assumed OK... $ac_c"
13378 else
13379   cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385
13386 #include <stdio.h>
13387 #include <stdlib.h>
13388 #include <string.h>
13389 #include <ogg/ogg.h>
13390
13391 int main ()
13392 {
13393   system("touch conf.oggtest");
13394   return 0;
13395 }
13396
13397
13398 _ACEOF
13399 rm -f conftest$ac_exeext
13400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401   (eval $ac_link) 2>&5
13402   ac_status=$?
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406   (eval $ac_try) 2>&5
13407   ac_status=$?
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); }; }; then
13410   :
13411 else
13412   echo "$as_me: program exited with status $ac_status" >&5
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ( exit $ac_status )
13417 no_ogg=yes
13418 fi
13419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13420 fi
13421        CFLAGS="$ac_save_CFLAGS"
13422        LIBS="$ac_save_LIBS"
13423   fi
13424
13425   if test "x$no_ogg" = "x" ; then
13426      echo "$as_me:$LINENO: result: yes" >&5
13427 echo "${ECHO_T}yes" >&6
13428
13429
13430 # Check whether --with-vorbis or --without-vorbis was given.
13431 if test "${with_vorbis+set}" = set; then
13432   withval="$with_vorbis"
13433   vorbis_prefix="$withval"
13434 else
13435   vorbis_prefix=""
13436 fi;
13437
13438 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13439 if test "${with_vorbis_libraries+set}" = set; then
13440   withval="$with_vorbis_libraries"
13441   vorbis_libraries="$withval"
13442 else
13443   vorbis_libraries=""
13444 fi;
13445
13446 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13447 if test "${with_vorbis_includes+set}" = set; then
13448   withval="$with_vorbis_includes"
13449   vorbis_includes="$withval"
13450 else
13451   vorbis_includes=""
13452 fi;
13453 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13454 if test "${enable_vorbistest+set}" = set; then
13455   enableval="$enable_vorbistest"
13456
13457 else
13458   enable_vorbistest=yes
13459 fi;
13460
13461   if test "x$vorbis_libraries" != "x" ; then
13462     VORBIS_LIBS="-L$vorbis_libraries"
13463   elif test "x$vorbis_prefix" != "x" ; then
13464     VORBIS_LIBS="-L$vorbis_prefix/lib"
13465   elif test "x$prefix" != "xNONE"; then
13466     VORBIS_LIBS="-L$prefix/lib"
13467   fi
13468
13469   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13470   VORBISFILE_LIBS="-lvorbisfile"
13471   VORBISENC_LIBS="-lvorbisenc"
13472
13473   if test "x$vorbis_includes" != "x" ; then
13474     VORBIS_CFLAGS="-I$vorbis_includes"
13475   elif test "x$vorbis_prefix" != "x" ; then
13476     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13477   elif test "x$prefix" != "xNONE"; then
13478     VORBIS_CFLAGS="-I$prefix/include"
13479   fi
13480
13481
13482   echo "$as_me:$LINENO: checking for Vorbis" >&5
13483 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13484   no_vorbis=""
13485
13486
13487   if test "x$enable_vorbistest" = "xyes" ; then
13488     ac_save_CFLAGS="$CFLAGS"
13489     ac_save_LIBS="$LIBS"
13490     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13491     LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13492       rm -f conf.vorbistest
13493       if test "$cross_compiling" = yes; then
13494   echo $ac_n "cross compiling; assumed OK... $ac_c"
13495 else
13496   cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502
13503 #include <stdio.h>
13504 #include <stdlib.h>
13505 #include <string.h>
13506 #include <vorbis/codec.h>
13507 #include <vorbis/vorbisenc.h>
13508
13509 int main ()
13510 {
13511     vorbis_block        vb;
13512     vorbis_dsp_state    vd;
13513     vorbis_info         vi;
13514
13515     vorbis_info_init (&vi);
13516     vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
13517     vorbis_analysis_init (&vd, &vi);
13518     vorbis_block_init (&vd, &vb);
13519     /* this function was added in 1.0rc3, so this is what we're testing for */
13520     vorbis_bitrate_addblock (&vb);
13521
13522     system("touch conf.vorbistest");
13523     return 0;
13524 }
13525
13526
13527 _ACEOF
13528 rm -f conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530   (eval $ac_link) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535   (eval $ac_try) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; }; then
13539   :
13540 else
13541   echo "$as_me: program exited with status $ac_status" >&5
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 ( exit $ac_status )
13546 no_vorbis=yes
13547 fi
13548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13549 fi
13550        CFLAGS="$ac_save_CFLAGS"
13551        LIBS="$ac_save_LIBS"
13552   fi
13553
13554   if test "x$no_vorbis" = "x" ; then
13555      echo "$as_me:$LINENO: result: yes" >&5
13556 echo "${ECHO_T}yes" >&6
13557
13558       have_vorbis=yes
13559       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13560       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13561       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13562       if test "x$MSYS" = "xyes"; then
13563       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13564           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13565       fi
13566
13567   else
13568      echo "$as_me:$LINENO: result: no" >&5
13569 echo "${ECHO_T}no" >&6
13570      if test -f conf.vorbistest ; then
13571        :
13572      else
13573        echo "*** Could not run Vorbis test program, checking why..."
13574        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13575        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13576        cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582
13583 #include <stdio.h>
13584 #include <vorbis/codec.h>
13585
13586 int
13587 main ()
13588 {
13589  return 0;
13590   ;
13591   return 0;
13592 }
13593 _ACEOF
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13596   (eval $ac_link) 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -z "$ac_c_werror_flag"
13604                          || test ! -s conftest.err'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; } &&
13610          { ac_try='test -s conftest$ac_exeext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616    echo "*** The test program compiled, but did not run. This usually means"
13617        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13618        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13619        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13620        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13621        echo "*** is required on your system"
13622        echo "***"
13623        echo "*** If you have an old version installed, it is best to remove it, although"
13624        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13625 else
13626   echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629  echo "*** The test program failed to compile or link. See the file config.log for the"
13630        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13631        echo "*** or that you have moved Vorbis since it was installed."
13632 fi
13633 rm -f conftest.err conftest.$ac_objext \
13634       conftest$ac_exeext conftest.$ac_ext
13635        CFLAGS="$ac_save_CFLAGS"
13636        LIBS="$ac_save_LIBS"
13637      fi
13638      VORBIS_CFLAGS=""
13639      VORBIS_LIBS=""
13640      VORBISFILE_LIBS=""
13641      VORBISENC_LIBS=""
13642
13643       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13644 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13645
13646   fi
13647
13648
13649
13650
13651   rm -f conf.vorbistest
13652
13653
13654   else
13655      echo "$as_me:$LINENO: result: no" >&5
13656 echo "${ECHO_T}no" >&6
13657      if test -f conf.oggtest ; then
13658        :
13659      else
13660        echo "*** Could not run Ogg test program, checking why..."
13661        CFLAGS="$CFLAGS $OGG_CFLAGS"
13662        LIBS="$LIBS $OGG_LIBS"
13663        cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669
13670 #include <stdio.h>
13671 #include <ogg/ogg.h>
13672
13673 int
13674 main ()
13675 {
13676  return 0;
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683   (eval $ac_link) 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -z "$ac_c_werror_flag"
13691                          || test ! -s conftest.err'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest$ac_exeext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703    echo "*** The test program compiled, but did not run. This usually means"
13704        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13705        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13706        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13707        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13708        echo "*** is required on your system"
13709        echo "***"
13710        echo "*** If you have an old version installed, it is best to remove it, although"
13711        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716  echo "*** The test program failed to compile or link. See the file config.log for the"
13717        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13718        echo "*** or that you have moved Ogg since it was installed."
13719 fi
13720 rm -f conftest.err conftest.$ac_objext \
13721       conftest$ac_exeext conftest.$ac_ext
13722        CFLAGS="$ac_save_CFLAGS"
13723        LIBS="$ac_save_LIBS"
13724      fi
13725      OGG_CFLAGS=""
13726      OGG_LIBS=""
13727
13728     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
13729 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
13730     have_vorbis=no
13731
13732   fi
13733
13734
13735   rm -f conf.oggtest
13736
13737 else
13738   echo "$as_me:$LINENO: result: no" >&5
13739 echo "${ECHO_T}no" >&6
13740 fi
13741
13742 if test "x$MSYS" = xyes ; then
13743   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
13744 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
13745   if test "x$au_enable_flac" = xyes; then
13746     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
13747 echo "${ECHO_T}yes, configuring flac" >&6
13748     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
13749
13750 # Check whether --with-libFLAC or --without-libFLAC was given.
13751 if test "${with_libFLAC+set}" = set; then
13752   withval="$with_libFLAC"
13753   libFLAC_prefix="$withval"
13754 else
13755   libFLAC_prefix=""
13756 fi;
13757
13758 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
13759 if test "${with_libFLAC_libraries+set}" = set; then
13760   withval="$with_libFLAC_libraries"
13761   libFLAC_libraries="$withval"
13762 else
13763   libFLAC_libraries=""
13764 fi;
13765
13766 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
13767 if test "${with_libFLAC_includes+set}" = set; then
13768   withval="$with_libFLAC_includes"
13769   libFLAC_includes="$withval"
13770 else
13771   libFLAC_includes=""
13772 fi;
13773 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
13774 if test "${enable_libFLACtest+set}" = set; then
13775   enableval="$enable_libFLACtest"
13776
13777 else
13778   enable_libFLACtest=yes
13779 fi;
13780
13781   if test "x$libFLAC_libraries" != "x" ; then
13782     LIBFLAC_LIBS="-L$libFLAC_libraries"
13783   elif test "x$libFLAC_prefix" != "x" ; then
13784     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
13785   elif test "x$prefix" != "xNONE" ; then
13786     LIBFLAC_LIBS="-L$prefix/lib"
13787   fi
13788
13789   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
13790
13791   if test "x$libFLAC_includes" != "x" ; then
13792     LIBFLAC_CFLAGS="-I$libFLAC_includes"
13793   elif test "x$libFLAC_prefix" != "x" ; then
13794     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
13795   elif test "$prefix" != "xNONE"; then
13796     LIBFLAC_CFLAGS="-I$prefix/include"
13797   fi
13798
13799   echo "$as_me:$LINENO: checking for libFLAC" >&5
13800 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
13801   no_libFLAC=""
13802
13803
13804   if test "x$enable_libFLACtest" = "xyes" ; then
13805     ac_save_CFLAGS="$CFLAGS"
13806     ac_save_CXXFLAGS="$CXXFLAGS"
13807     ac_save_LIBS="$LIBS"
13808     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
13809     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
13810     LIBS="$LIBS $LIBFLAC_LIBS"
13811       rm -f conf.libFLACtest
13812       if test "$cross_compiling" = yes; then
13813   echo $ac_n "cross compiling; assumed OK... $ac_c"
13814 else
13815   cat >conftest.$ac_ext <<_ACEOF
13816 /* confdefs.h.  */
13817 _ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h.  */
13821
13822 #include <stdio.h>
13823 #include <stdlib.h>
13824 #include <string.h>
13825 #include <FLAC/format.h>
13826
13827 int main ()
13828 {
13829   system("touch conf.libFLACtest");
13830   return 0;
13831 }
13832
13833
13834 _ACEOF
13835 rm -f conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837   (eval $ac_link) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842   (eval $ac_try) 2>&5
13843   ac_status=$?
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); }; }; then
13846   :
13847 else
13848   echo "$as_me: program exited with status $ac_status" >&5
13849 echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13851
13852 ( exit $ac_status )
13853 no_libFLAC=yes
13854 fi
13855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13856 fi
13857        CFLAGS="$ac_save_CFLAGS"
13858        LIBS="$ac_save_LIBS"
13859   fi
13860
13861   if test "x$no_libFLAC" = "x" ; then
13862      echo "$as_me:$LINENO: result: yes" >&5
13863 echo "${ECHO_T}yes" >&6
13864
13865       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
13866       for f in $LIBFLAC_CFLAGS; do
13867     case ".$f" in
13868         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13869         *)              CFLAGS="$CPPFLAGS $f" ;;
13870     esac
13871 done
13872
13873       LIBS="$LIBS $LIBFLAC_LIBS"
13874
13875   else
13876      echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6
13878      if test -f conf.libFLACtest ; then
13879        :
13880      else
13881        echo "*** Could not run libFLAC test program, checking why..."
13882        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
13883        LIBS="$LIBS $LIBFLAC_LIBS"
13884        cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890
13891 #include <stdio.h>
13892 #include <FLAC/format.h>
13893
13894 int
13895 main ()
13896 {
13897  return 0;
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904   (eval $ac_link) 2>conftest.er1
13905   ac_status=$?
13906   grep -v '^ *+' conftest.er1 >conftest.err
13907   rm -f conftest.er1
13908   cat conftest.err >&5
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); } &&
13911          { ac_try='test -z "$ac_c_werror_flag"
13912                          || test ! -s conftest.err'
13913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914   (eval $ac_try) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; } &&
13918          { ac_try='test -s conftest$ac_exeext'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924    echo "*** The test program compiled, but did not run. This usually means"
13925        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
13926        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
13927        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13928        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13929        echo "*** is required on your system"
13930        echo "***"
13931        echo "*** If you have an old version installed, it is best to remove it, although"
13932        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937  echo "*** The test program failed to compile or link. See the file config.log for the"
13938        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
13939        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
13940        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
13941 fi
13942 rm -f conftest.err conftest.$ac_objext \
13943       conftest$ac_exeext conftest.$ac_ext
13944        CFLAGS="$ac_save_CFLAGS"
13945        LIBS="$ac_save_LIBS"
13946      fi
13947      LIBFLAC_CFLAGS=""
13948      LIBFLAC_LIBS=""
13949      :
13950   fi
13951
13952
13953   rm -f conf.libFLACtest
13954
13955
13956 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
13957 if test "${with_libOggFLAC+set}" = set; then
13958   withval="$with_libOggFLAC"
13959   libOggFLAC_prefix="$withval"
13960 else
13961   libOggFLAC_prefix=""
13962 fi;
13963
13964 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
13965 if test "${with_libOggFLAC_libraries+set}" = set; then
13966   withval="$with_libOggFLAC_libraries"
13967   libOggFLAC_libraries="$withval"
13968 else
13969   libOggFLAC_libraries=""
13970 fi;
13971
13972 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
13973 if test "${with_libOggFLAC_includes+set}" = set; then
13974   withval="$with_libOggFLAC_includes"
13975   libOggFLAC_includes="$withval"
13976 else
13977   libOggFLAC_includes=""
13978 fi;
13979 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
13980 if test "${enable_libOggFLACtest+set}" = set; then
13981   enableval="$enable_libOggFLACtest"
13982
13983 else
13984   enable_libOggFLACtest=yes
13985 fi;
13986
13987   if test "x$libOggFLAC_libraries" != "x" ; then
13988     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
13989   elif test "x$libOggFLAC_prefix" != "x" ; then
13990     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
13991   elif test "x$prefix" != "xNONE" ; then
13992     LIBOGGFLAC_LIBS="-L$prefix/lib"
13993   fi
13994
13995   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
13996
13997   if test "x$libOggFLAC_includes" != "x" ; then
13998     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
13999   elif test "x$libOggFLAC_prefix" != "x" ; then
14000     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14001   elif test "$prefix" != "xNONE"; then
14002     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14003   fi
14004
14005   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14006 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14007   no_libOggFLAC=""
14008
14009
14010   if test "x$enable_libOggFLACtest" = "xyes" ; then
14011     ac_save_CFLAGS="$CFLAGS"
14012     ac_save_CXXFLAGS="$CXXFLAGS"
14013     ac_save_LIBS="$LIBS"
14014     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14015     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14016     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14017       rm -f conf.libOggFLACtest
14018       if test "$cross_compiling" = yes; then
14019   echo $ac_n "cross compiling; assumed OK... $ac_c"
14020 else
14021   cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h.  */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h.  */
14027
14028 #include <stdio.h>
14029 #include <stdlib.h>
14030 #include <string.h>
14031 #include <OggFLAC/stream_decoder.h>
14032
14033 int main ()
14034 {
14035   system("touch conf.libOggFLACtest");
14036   return 0;
14037 }
14038
14039
14040 _ACEOF
14041 rm -f conftest$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043   (eval $ac_link) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } && { ac_try='./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   :
14053 else
14054   echo "$as_me: program exited with status $ac_status" >&5
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ( exit $ac_status )
14059 no_libOggFLAC=yes
14060 fi
14061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14062 fi
14063        CFLAGS="$ac_save_CFLAGS"
14064        LIBS="$ac_save_LIBS"
14065   fi
14066
14067   if test "x$no_libOggFLAC" = "x" ; then
14068      echo "$as_me:$LINENO: result: yes" >&5
14069 echo "${ECHO_T}yes" >&6
14070
14071       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14072       for f in $LIBOGGFLAC_CFLAGS; do
14073     case ".$f" in
14074         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14075         *)              CFLAGS="$CPPFLAGS $f" ;;
14076     esac
14077 done
14078
14079       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14080
14081   else
14082      echo "$as_me:$LINENO: result: no" >&5
14083 echo "${ECHO_T}no" >&6
14084      if test -f conf.libOggFLACtest ; then
14085        :
14086      else
14087        echo "*** Could not run libOggFLAC test program, checking why..."
14088        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14089        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14090        cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096
14097 #include <stdio.h>
14098 #include <OggFLAC/stream_decoder.h>
14099
14100 int
14101 main ()
14102 {
14103  return 0;
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14110   (eval $ac_link) 2>conftest.er1
14111   ac_status=$?
14112   grep -v '^ *+' conftest.er1 >conftest.err
14113   rm -f conftest.er1
14114   cat conftest.err >&5
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } &&
14117          { ac_try='test -z "$ac_c_werror_flag"
14118                          || test ! -s conftest.err'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; } &&
14124          { ac_try='test -s conftest$ac_exeext'
14125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126   (eval $ac_try) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; }; then
14130    echo "*** The test program compiled, but did not run. This usually means"
14131        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14132        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14133        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14134        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14135        echo "*** is required on your system"
14136        echo "***"
14137        echo "*** If you have an old version installed, it is best to remove it, although"
14138        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143  echo "*** The test program failed to compile or link. See the file config.log for the"
14144        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14145        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14146        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14147 fi
14148 rm -f conftest.err conftest.$ac_objext \
14149       conftest$ac_exeext conftest.$ac_ext
14150        CFLAGS="$ac_save_CFLAGS"
14151        LIBS="$ac_save_LIBS"
14152      fi
14153      LIBOGGFLAC_CFLAGS=""
14154      LIBOGGFLAC_LIBS=""
14155      :
14156   fi
14157
14158
14159   rm -f conf.libOggFLACtest
14160
14161   else
14162     echo "$as_me:$LINENO: result: no" >&5
14163 echo "${ECHO_T}no" >&6
14164   fi
14165 else
14166   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14167 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14168   if test "x$au_enable_flac" = xyes; then
14169     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14170 echo "${ECHO_T}yes, configuring flac" >&6
14171     SYSEXTRAS="$SYSEXTRAS flac_a.c"
14172
14173 # Check whether --with-libFLAC or --without-libFLAC was given.
14174 if test "${with_libFLAC+set}" = set; then
14175   withval="$with_libFLAC"
14176   libFLAC_prefix="$withval"
14177 else
14178   libFLAC_prefix=""
14179 fi;
14180
14181 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14182 if test "${with_libFLAC_libraries+set}" = set; then
14183   withval="$with_libFLAC_libraries"
14184   libFLAC_libraries="$withval"
14185 else
14186   libFLAC_libraries=""
14187 fi;
14188
14189 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14190 if test "${with_libFLAC_includes+set}" = set; then
14191   withval="$with_libFLAC_includes"
14192   libFLAC_includes="$withval"
14193 else
14194   libFLAC_includes=""
14195 fi;
14196 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14197 if test "${enable_libFLACtest+set}" = set; then
14198   enableval="$enable_libFLACtest"
14199
14200 else
14201   enable_libFLACtest=yes
14202 fi;
14203
14204   if test "x$libFLAC_libraries" != "x" ; then
14205     LIBFLAC_LIBS="-L$libFLAC_libraries"
14206   elif test "x$libFLAC_prefix" != "x" ; then
14207     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14208   elif test "x$prefix" != "xNONE" ; then
14209     LIBFLAC_LIBS="-L$prefix/lib"
14210   fi
14211
14212   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14213
14214   if test "x$libFLAC_includes" != "x" ; then
14215     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14216   elif test "x$libFLAC_prefix" != "x" ; then
14217     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14218   elif test "$prefix" != "xNONE"; then
14219     LIBFLAC_CFLAGS="-I$prefix/include"
14220   fi
14221
14222   echo "$as_me:$LINENO: checking for libFLAC" >&5
14223 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14224   no_libFLAC=""
14225
14226
14227   if test "x$enable_libFLACtest" = "xyes" ; then
14228     ac_save_CFLAGS="$CFLAGS"
14229     ac_save_CXXFLAGS="$CXXFLAGS"
14230     ac_save_LIBS="$LIBS"
14231     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14232     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14233     LIBS="$LIBS $LIBFLAC_LIBS"
14234       rm -f conf.libFLACtest
14235       if test "$cross_compiling" = yes; then
14236   echo $ac_n "cross compiling; assumed OK... $ac_c"
14237 else
14238   cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244
14245 #include <stdio.h>
14246 #include <stdlib.h>
14247 #include <string.h>
14248 #include <FLAC/format.h>
14249
14250 int main ()
14251 {
14252   system("touch conf.libFLACtest");
14253   return 0;
14254 }
14255
14256
14257 _ACEOF
14258 rm -f conftest$ac_exeext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14260   (eval $ac_link) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; }; then
14269   :
14270 else
14271   echo "$as_me: program exited with status $ac_status" >&5
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275 ( exit $ac_status )
14276 no_libFLAC=yes
14277 fi
14278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14279 fi
14280        CFLAGS="$ac_save_CFLAGS"
14281        LIBS="$ac_save_LIBS"
14282   fi
14283
14284   if test "x$no_libFLAC" = "x" ; then
14285      echo "$as_me:$LINENO: result: yes" >&5
14286 echo "${ECHO_T}yes" >&6
14287
14288       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14289       for f in $LIBFLAC_CFLAGS; do
14290     case ".$f" in
14291         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14292         *)              CFLAGS="$CPPFLAGS $f" ;;
14293     esac
14294 done
14295
14296       LIBS="$LIBS $LIBFLAC_LIBS"
14297
14298   else
14299      echo "$as_me:$LINENO: result: no" >&5
14300 echo "${ECHO_T}no" >&6
14301      if test -f conf.libFLACtest ; then
14302        :
14303      else
14304        echo "*** Could not run libFLAC test program, checking why..."
14305        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14306        LIBS="$LIBS $LIBFLAC_LIBS"
14307        cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313
14314 #include <stdio.h>
14315 #include <FLAC/format.h>
14316
14317 int
14318 main ()
14319 {
14320  return 0;
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14327   (eval $ac_link) 2>conftest.er1
14328   ac_status=$?
14329   grep -v '^ *+' conftest.er1 >conftest.err
14330   rm -f conftest.er1
14331   cat conftest.err >&5
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } &&
14334          { ac_try='test -z "$ac_c_werror_flag"
14335                          || test ! -s conftest.err'
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); }; } &&
14341          { ac_try='test -s conftest$ac_exeext'
14342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343   (eval $ac_try) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }; }; then
14347    echo "*** The test program compiled, but did not run. This usually means"
14348        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14349        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14350        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14351        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14352        echo "*** is required on your system"
14353        echo "***"
14354        echo "*** If you have an old version installed, it is best to remove it, although"
14355        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14356 else
14357   echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14359
14360  echo "*** The test program failed to compile or link. See the file config.log for the"
14361        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14362        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14363        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14364 fi
14365 rm -f conftest.err conftest.$ac_objext \
14366       conftest$ac_exeext conftest.$ac_ext
14367        CFLAGS="$ac_save_CFLAGS"
14368        LIBS="$ac_save_LIBS"
14369      fi
14370      LIBFLAC_CFLAGS=""
14371      LIBFLAC_LIBS=""
14372      :
14373   fi
14374
14375
14376   rm -f conf.libFLACtest
14377
14378
14379 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14380 if test "${with_libOggFLAC+set}" = set; then
14381   withval="$with_libOggFLAC"
14382   libOggFLAC_prefix="$withval"
14383 else
14384   libOggFLAC_prefix=""
14385 fi;
14386
14387 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14388 if test "${with_libOggFLAC_libraries+set}" = set; then
14389   withval="$with_libOggFLAC_libraries"
14390   libOggFLAC_libraries="$withval"
14391 else
14392   libOggFLAC_libraries=""
14393 fi;
14394
14395 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14396 if test "${with_libOggFLAC_includes+set}" = set; then
14397   withval="$with_libOggFLAC_includes"
14398   libOggFLAC_includes="$withval"
14399 else
14400   libOggFLAC_includes=""
14401 fi;
14402 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14403 if test "${enable_libOggFLACtest+set}" = set; then
14404   enableval="$enable_libOggFLACtest"
14405
14406 else
14407   enable_libOggFLACtest=yes
14408 fi;
14409
14410   if test "x$libOggFLAC_libraries" != "x" ; then
14411     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14412   elif test "x$libOggFLAC_prefix" != "x" ; then
14413     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14414   elif test "x$prefix" != "xNONE" ; then
14415     LIBOGGFLAC_LIBS="-L$prefix/lib"
14416   fi
14417
14418   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14419
14420   if test "x$libOggFLAC_includes" != "x" ; then
14421     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14422   elif test "x$libOggFLAC_prefix" != "x" ; then
14423     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14424   elif test "$prefix" != "xNONE"; then
14425     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14426   fi
14427
14428   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14429 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14430   no_libOggFLAC=""
14431
14432
14433   if test "x$enable_libOggFLACtest" = "xyes" ; then
14434     ac_save_CFLAGS="$CFLAGS"
14435     ac_save_CXXFLAGS="$CXXFLAGS"
14436     ac_save_LIBS="$LIBS"
14437     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14438     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14439     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14440       rm -f conf.libOggFLACtest
14441       if test "$cross_compiling" = yes; then
14442   echo $ac_n "cross compiling; assumed OK... $ac_c"
14443 else
14444   cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450
14451 #include <stdio.h>
14452 #include <stdlib.h>
14453 #include <string.h>
14454 #include <OggFLAC/stream_decoder.h>
14455
14456 int main ()
14457 {
14458   system("touch conf.libOggFLACtest");
14459   return 0;
14460 }
14461
14462
14463 _ACEOF
14464 rm -f conftest$ac_exeext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14466   (eval $ac_link) 2>&5
14467   ac_status=$?
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471   (eval $ac_try) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; }; then
14475   :
14476 else
14477   echo "$as_me: program exited with status $ac_status" >&5
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14480
14481 ( exit $ac_status )
14482 no_libOggFLAC=yes
14483 fi
14484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14485 fi
14486        CFLAGS="$ac_save_CFLAGS"
14487        LIBS="$ac_save_LIBS"
14488   fi
14489
14490   if test "x$no_libOggFLAC" = "x" ; then
14491      echo "$as_me:$LINENO: result: yes" >&5
14492 echo "${ECHO_T}yes" >&6
14493
14494       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14495       for f in $LIBOGGFLAC_CFLAGS; do
14496     case ".$f" in
14497         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14498         *)              CFLAGS="$CPPFLAGS $f" ;;
14499     esac
14500 done
14501
14502       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14503
14504   else
14505      echo "$as_me:$LINENO: result: no" >&5
14506 echo "${ECHO_T}no" >&6
14507      if test -f conf.libOggFLACtest ; then
14508        :
14509      else
14510        echo "*** Could not run libOggFLAC test program, checking why..."
14511        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14512        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14513        cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h.  */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h.  */
14519
14520 #include <stdio.h>
14521 #include <OggFLAC/stream_decoder.h>
14522
14523 int
14524 main ()
14525 {
14526  return 0;
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533   (eval $ac_link) 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -z "$ac_c_werror_flag"
14541                          || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest$ac_exeext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553    echo "*** The test program compiled, but did not run. This usually means"
14554        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14555        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14556        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14557        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14558        echo "*** is required on your system"
14559        echo "***"
14560        echo "*** If you have an old version installed, it is best to remove it, although"
14561        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566  echo "*** The test program failed to compile or link. See the file config.log for the"
14567        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14568        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14569        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14570 fi
14571 rm -f conftest.err conftest.$ac_objext \
14572       conftest$ac_exeext conftest.$ac_ext
14573        CFLAGS="$ac_save_CFLAGS"
14574        LIBS="$ac_save_LIBS"
14575      fi
14576      LIBOGGFLAC_CFLAGS=""
14577      LIBOGGFLAC_LIBS=""
14578      :
14579   fi
14580
14581
14582   rm -f conf.libOggFLACtest
14583
14584   else
14585     echo "$as_me:$LINENO: result: no" >&5
14586 echo "${ECHO_T}no" >&6
14587   fi
14588 fi
14589 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14590 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14591 if test "x$au_enable_speex" = xyes; then
14592   if test "${have_speex+set}" = set; then
14593   echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595   cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h.  */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h.  */
14601
14602   #include <speex.h>
14603   #include <ogg/ogg.h>
14604
14605 int
14606 main ()
14607 {
14608
14609     SpeexBits *dummy;
14610
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   have_speex=yes
14638 else
14639   echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 have_speex=no
14643 fi
14644 rm -f conftest.err conftest.$ac_objext \
14645       conftest$ac_exeext conftest.$ac_ext
14646 fi
14647
14648   echo "$as_me:$LINENO: result: $have_speex" >&5
14649 echo "${ECHO_T}$have_speex" >&6
14650   if test "x$have_speex" = xyes; then
14651     SYSEXTRAS="$SYSEXTRAS speex_a.c"
14652     EXTRALIBS="$EXTRALIBS -lspeex -logg"
14653     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14654   fi
14655 else
14656   echo "$as_me:$LINENO: result: no" >&5
14657 echo "${ECHO_T}no" >&6
14658 fi
14659
14660 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14661 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14662 if test "x$au_enable_gogo" = xyes; then
14663   if test "x$MSYS" = "xyes"; then
14664     echo "$as_me:$LINENO: result: yes" >&5
14665 echo "${ECHO_T}yes" >&6
14666   else
14667     { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14668 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14669   fi
14670   have_gogo=yes
14671   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14672   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14673   EXTRALIBS="$EXTRALIBS -lgogo"
14674 else
14675   echo "$as_me:$LINENO: result: no" >&5
14676 echo "${ECHO_T}no" >&6
14677 fi
14678
14679 if test "x$au_enable_none" = xyes; then
14680     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14681     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14682 fi
14683 echo "$as_me:$LINENO: checking default output mode" >&5
14684 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14685 if test "x$DEFAULT_PLAYMODE" = x; then
14686   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14687 fi
14688 case ".$DEFAULT_PLAYMODE" in
14689   .default)  TIMIDITY_OUTPUT_ID=d ;;
14690   .oss)      TIMIDITY_OUTPUT_ID=d ;;
14691   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
14692   .sun)      TIMIDITY_OUTPUT_ID=d ;;
14693   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
14694   .irix)     TIMIDITY_OUTPUT_ID=d ;;
14695   .mme)      TIMIDITY_OUTPUT_ID=d ;;
14696   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
14697   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
14698   .w32)      TIMIDITY_OUTPUT_ID=d ;;
14699   .alib)     TIMIDITY_OUTPUT_ID=A ;;
14700   .nas)      TIMIDITY_OUTPUT_ID=n ;;
14701   .arts)     TIMIDITY_OUTPUT_ID=R ;;
14702   .esd)      TIMIDITY_OUTPUT_ID=e ;;
14703   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
14704   .wav)      TIMIDITY_OUTPUT_ID=w ;;
14705   .au)       TIMIDITY_OUTPUT_ID=u ;;
14706   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
14707   .list)     TIMIDITY_OUTPUT_ID=l ;;
14708   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
14709   .flac)     TIMIDITY_OUTPUT_ID=F ;;
14710   .speex)    TIMIDITY_OUTPUT_ID=S ;;
14711   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
14712   .jack)     TIMIDITY_OUTPUT_ID=j ;;
14713   *)         TIMIDITY_OUTPUT_ID= ;;
14714 esac
14715 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14716 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14717
14718
14719 #
14720 # Interface Section
14721 #
14722
14723 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14724
14725 # Check whether --enable-interface or --disable-interface was given.
14726 if test "${enable_interface+set}" = set; then
14727   enableval="$enable_interface"
14728    for i in `echo $enableval | sed 's/,/ /g'`; do
14729       eval "enable_$i=yes"
14730     done
14731 fi;
14732
14733 #  Dynamic link configuration
14734 # Check whether --enable-dynamic or --disable-dynamic was given.
14735 if test "${enable_dynamic+set}" = set; then
14736   enableval="$enable_dynamic"
14737        if test "x$enable_dynamic" = xyes; then
14738       enable_dynamic=dynamic
14739     elif test "x$enable_dynamic" != xno; then
14740       for i in `echo $enableval | sed 's/,/ /g'`; do
14741         eval "enable_$i=dynamic"
14742       done
14743     fi
14744 fi;
14745
14746 join_targets=
14747 for i in $interface_targets; do
14748   eval "join_targets=$join_targets\$enable_$i"
14749 done
14750
14751 case ".$join_targets" in
14752 .*dynamic*) NEEDDLOPEN=yes;;
14753 *)          NEEDDLOPEN=no;;
14754 esac
14755
14756 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14757 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14758
14759 if test "$NEEDDLOPEN" = "yes"; then
14760   have_dl=no
14761
14762   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14763 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14764 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767   cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h.  */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h.  */
14773 #include <windows.h>
14774
14775
14776 int
14777 main ()
14778 {
14779 LoadLibrary(0);
14780   ;
14781   return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786   (eval $ac_link) 2>conftest.er1
14787   ac_status=$?
14788   grep -v '^ *+' conftest.er1 >conftest.err
14789   rm -f conftest.er1
14790   cat conftest.err >&5
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); } &&
14793          { ac_try='test -z "$ac_c_werror_flag"
14794                          || test ! -s conftest.err'
14795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796   (eval $ac_try) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); }; } &&
14800          { ac_try='test -s conftest$ac_exeext'
14801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802   (eval $ac_try) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; }; then
14806   wapi_cv_func_LoadLibrary=yes
14807 else
14808   echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 wapi_cv_func_LoadLibrary=no
14812 fi
14813 rm -f conftest.err conftest.$ac_objext \
14814       conftest$ac_exeext conftest.$ac_ext
14815 fi
14816
14817 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14818   echo "$as_me:$LINENO: result: yes" >&5
14819 echo "${ECHO_T}yes" >&6
14820   have_dl=w32
14821 else
14822   echo "$as_me:$LINENO: result: no" >&5
14823 echo "${ECHO_T}no" >&6
14824 fi
14825
14826   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14827
14828   if test "$have_dl" = "no"; then
14829     echo "$as_me:$LINENO: checking for shl_load" >&5
14830 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14831 if test "${ac_cv_func_shl_load+set}" = set; then
14832   echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834   cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14842 #define shl_load innocuous_shl_load
14843
14844 /* System header to define __stub macros and hopefully few prototypes,
14845     which can conflict with char shl_load (); below.
14846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14847     <limits.h> exists even on freestanding compilers.  */
14848
14849 #ifdef __STDC__
14850 # include <limits.h>
14851 #else
14852 # include <assert.h>
14853 #endif
14854
14855 #undef shl_load
14856
14857 /* Override any gcc2 internal prototype to avoid an error.  */
14858 #ifdef __cplusplus
14859 extern "C"
14860 {
14861 #endif
14862 /* We use char because int might match the return type of a gcc2
14863    builtin and then its argument prototype would still apply.  */
14864 char shl_load ();
14865 /* The GNU C library defines this for functions which it implements
14866     to always fail with ENOSYS.  Some functions are actually named
14867     something starting with __ and the normal name is an alias.  */
14868 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14869 choke me
14870 #else
14871 char (*f) () = shl_load;
14872 #endif
14873 #ifdef __cplusplus
14874 }
14875 #endif
14876
14877 int
14878 main ()
14879 {
14880 return f != shl_load;
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887   (eval $ac_link) 2>conftest.er1
14888   ac_status=$?
14889   grep -v '^ *+' conftest.er1 >conftest.err
14890   rm -f conftest.er1
14891   cat conftest.err >&5
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } &&
14894          { ac_try='test -z "$ac_c_werror_flag"
14895                          || test ! -s conftest.err'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; } &&
14901          { ac_try='test -s conftest$ac_exeext'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; }; then
14907   ac_cv_func_shl_load=yes
14908 else
14909   echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912 ac_cv_func_shl_load=no
14913 fi
14914 rm -f conftest.err conftest.$ac_objext \
14915       conftest$ac_exeext conftest.$ac_ext
14916 fi
14917 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14918 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14919 if test $ac_cv_func_shl_load = yes; then
14920   have_dl=hpux
14921 fi
14922
14923   fi
14924   if test "$have_dl" = "no"; then
14925             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14926 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14927 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14928   echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930   cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h.  */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h.  */
14936 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14938 #define NSLinkModule innocuous_NSLinkModule
14939
14940 /* System header to define __stub macros and hopefully few prototypes,
14941     which can conflict with char NSLinkModule (); below.
14942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14943     <limits.h> exists even on freestanding compilers.  */
14944
14945 #ifdef __STDC__
14946 # include <limits.h>
14947 #else
14948 # include <assert.h>
14949 #endif
14950
14951 #undef NSLinkModule
14952
14953 /* Override any gcc2 internal prototype to avoid an error.  */
14954 #ifdef __cplusplus
14955 extern "C"
14956 {
14957 #endif
14958 /* We use char because int might match the return type of a gcc2
14959    builtin and then its argument prototype would still apply.  */
14960 char NSLinkModule ();
14961 /* The GNU C library defines this for functions which it implements
14962     to always fail with ENOSYS.  Some functions are actually named
14963     something starting with __ and the normal name is an alias.  */
14964 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14965 choke me
14966 #else
14967 char (*f) () = NSLinkModule;
14968 #endif
14969 #ifdef __cplusplus
14970 }
14971 #endif
14972
14973 int
14974 main ()
14975 {
14976 return f != NSLinkModule;
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14983   (eval $ac_link) 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -z "$ac_c_werror_flag"
14991                          || test ! -s conftest.err'
14992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993   (eval $ac_try) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; } &&
14997          { ac_try='test -s conftest$ac_exeext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   ac_cv_func_NSLinkModule=yes
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 ac_cv_func_NSLinkModule=no
15009 fi
15010 rm -f conftest.err conftest.$ac_objext \
15011       conftest$ac_exeext conftest.$ac_ext
15012 fi
15013 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15014 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15015 if test $ac_cv_func_NSLinkModule = yes; then
15016   have_dl=dyld
15017 fi
15018
15019   fi
15020   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15021     have_dl=dlopen
15022   fi
15023   if test "$have_dl" = "no"; then
15024     echo "$as_me:$LINENO: checking for dlopen" >&5
15025 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15026 if test "${ac_cv_func_dlopen+set}" = set; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15037 #define dlopen innocuous_dlopen
15038
15039 /* System header to define __stub macros and hopefully few prototypes,
15040     which can conflict with char dlopen (); below.
15041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15042     <limits.h> exists even on freestanding compilers.  */
15043
15044 #ifdef __STDC__
15045 # include <limits.h>
15046 #else
15047 # include <assert.h>
15048 #endif
15049
15050 #undef dlopen
15051
15052 /* Override any gcc2 internal prototype to avoid an error.  */
15053 #ifdef __cplusplus
15054 extern "C"
15055 {
15056 #endif
15057 /* We use char because int might match the return type of a gcc2
15058    builtin and then its argument prototype would still apply.  */
15059 char dlopen ();
15060 /* The GNU C library defines this for functions which it implements
15061     to always fail with ENOSYS.  Some functions are actually named
15062     something starting with __ and the normal name is an alias.  */
15063 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15064 choke me
15065 #else
15066 char (*f) () = dlopen;
15067 #endif
15068 #ifdef __cplusplus
15069 }
15070 #endif
15071
15072 int
15073 main ()
15074 {
15075 return f != dlopen;
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082   (eval $ac_link) 2>conftest.er1
15083   ac_status=$?
15084   grep -v '^ *+' conftest.er1 >conftest.err
15085   rm -f conftest.er1
15086   cat conftest.err >&5
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -z "$ac_c_werror_flag"
15090                          || test ! -s conftest.err'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; } &&
15096          { ac_try='test -s conftest$ac_exeext'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   ac_cv_func_dlopen=yes
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_cv_func_dlopen=no
15108 fi
15109 rm -f conftest.err conftest.$ac_objext \
15110       conftest$ac_exeext conftest.$ac_ext
15111 fi
15112 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15113 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15114 if test $ac_cv_func_dlopen = yes; then
15115   have_dl=dlopen
15116 fi
15117
15118   fi
15119   if test "$have_dl" = "no"; then
15120     echo "$as_me:$LINENO: checking for dld_init" >&5
15121 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15122 if test "${ac_cv_func_dld_init+set}" = set; then
15123   echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125   cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15133 #define dld_init innocuous_dld_init
15134
15135 /* System header to define __stub macros and hopefully few prototypes,
15136     which can conflict with char dld_init (); below.
15137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15138     <limits.h> exists even on freestanding compilers.  */
15139
15140 #ifdef __STDC__
15141 # include <limits.h>
15142 #else
15143 # include <assert.h>
15144 #endif
15145
15146 #undef dld_init
15147
15148 /* Override any gcc2 internal prototype to avoid an error.  */
15149 #ifdef __cplusplus
15150 extern "C"
15151 {
15152 #endif
15153 /* We use char because int might match the return type of a gcc2
15154    builtin and then its argument prototype would still apply.  */
15155 char dld_init ();
15156 /* The GNU C library defines this for functions which it implements
15157     to always fail with ENOSYS.  Some functions are actually named
15158     something starting with __ and the normal name is an alias.  */
15159 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15160 choke me
15161 #else
15162 char (*f) () = dld_init;
15163 #endif
15164 #ifdef __cplusplus
15165 }
15166 #endif
15167
15168 int
15169 main ()
15170 {
15171 return f != dld_init;
15172   ;
15173   return 0;
15174 }
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178   (eval $ac_link) 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_c_werror_flag"
15186                          || test ! -s conftest.err'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; } &&
15192          { ac_try='test -s conftest$ac_exeext'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_cv_func_dld_init=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 ac_cv_func_dld_init=no
15204 fi
15205 rm -f conftest.err conftest.$ac_objext \
15206       conftest$ac_exeext conftest.$ac_ext
15207 fi
15208 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15209 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15210 if test $ac_cv_func_dld_init = yes; then
15211   have_dl=dld
15212 fi
15213
15214   fi
15215   if test "$have_dl" = "no"; then
15216     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15217 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15218 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15219   echo $ECHO_N "(cached) $ECHO_C" >&6
15220 else
15221   ac_check_lib_save_LIBS=$LIBS
15222 LIBS="-ldld  $LIBS"
15223 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h.  */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h.  */
15229
15230 /* Override any gcc2 internal prototype to avoid an error.  */
15231 #ifdef __cplusplus
15232 extern "C"
15233 #endif
15234 /* We use char because int might match the return type of a gcc2
15235    builtin and then its argument prototype would still apply.  */
15236 char dld_init ();
15237 int
15238 main ()
15239 {
15240 dld_init ();
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247   (eval $ac_link) 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -z "$ac_c_werror_flag"
15255                          || test ! -s conftest.err'
15256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257   (eval $ac_try) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }; } &&
15261          { ac_try='test -s conftest$ac_exeext'
15262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263   (eval $ac_try) 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; }; then
15267   ac_cv_lib_dld_dld_init=yes
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272 ac_cv_lib_dld_dld_init=no
15273 fi
15274 rm -f conftest.err conftest.$ac_objext \
15275       conftest$ac_exeext conftest.$ac_ext
15276 LIBS=$ac_check_lib_save_LIBS
15277 fi
15278 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15279 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15280 if test $ac_cv_lib_dld_dld_init = yes; then
15281   have_dl=dld;lib_dl_opt=-ldld
15282 fi
15283
15284   fi
15285
15286   echo "$as_me:$LINENO: checking dynamic link method" >&5
15287 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15288   case "$have_dl" in
15289     dlopen)
15290       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15291 echo "${ECHO_T}use dl_dlopen.c" >&6
15292       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15293       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15294 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15295 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298   case "$ac_cv_header_dlfcn_h" in
15299 yes) i_dlfcn=define;;
15300 *)   i_dlfcn=undef;;
15301 esac
15302 cat > dyna.c <<EOM
15303 fred () { }
15304 EOM
15305
15306 cat > fred.c <<EOM
15307 #include <stdio.h>
15308 #$i_dlfcn I_DLFCN
15309 #ifdef I_DLFCN
15310 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15311 #else
15312 #include <sys/types.h>
15313 #include <nlist.h>
15314 #include <link.h>
15315 #endif
15316
15317 extern int fred() ;
15318
15319 main()
15320 {
15321     void * handle ;
15322     void * symbol ;
15323 #ifndef RTLD_LAZY
15324     int mode = 1 ;
15325 #else
15326     int mode = RTLD_LAZY ;
15327 #endif
15328     handle = dlopen("./dyna.$so", mode) ;
15329     if (handle == NULL) {
15330         printf ("1\n") ;
15331         fflush (stdout) ;
15332         exit(0);
15333     }
15334     symbol = dlsym(handle, "fred") ;
15335     if (symbol == NULL) {
15336         /* try putting a leading underscore */
15337         symbol = dlsym(handle, "_fred") ;
15338         if (symbol == NULL) {
15339             printf ("2\n") ;
15340             fflush (stdout) ;
15341             exit(0);
15342         }
15343         printf ("3\n") ;
15344     }
15345     else
15346         printf ("4\n") ;
15347     fflush (stdout) ;
15348     exit(0);
15349 }
15350 EOM
15351 : Call the object file tmp-dyna.o in case dlext=o.
15352 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15353         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15354         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15355         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15356         xxx=`./fred`
15357         case $xxx in
15358         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15359 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15360                 ;;
15361         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15362 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15363                 ;;
15364         3)      timidity_cv_func_dlsym_underscore=yes
15365                 ;;
15366         4)      timidity_cv_func_dlsym_underscore=no
15367                 ;;
15368         esac
15369 else
15370         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15371 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15372 fi
15373 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15374
15375 fi
15376
15377 case "x$timidity_cv_func_dlsym_underscore" in
15378 xyes)
15379 cat >>confdefs.h <<\_ACEOF
15380 #define DLSYM_NEEDS_UNDERSCORE 1
15381 _ACEOF
15382
15383         echo "$as_me:$LINENO: result: yes" >&5
15384 echo "${ECHO_T}yes" >&6
15385         ;;
15386 xno)
15387         echo "$as_me:$LINENO: result: no" >&5
15388 echo "${ECHO_T}no" >&6
15389         ;;
15390 esac
15391
15392       ;;
15393     dld)
15394       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15395 echo "${ECHO_T}use dl_dld.c" >&6
15396       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15397       ;;
15398     hpux)
15399       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15400 echo "${ECHO_T}use dl_hpux.c" >&6
15401       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15402       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15403       ;;
15404     w32)
15405       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15406 echo "${ECHO_T}use dl_w32.c" >&6
15407       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15408       ;;
15409     dyld)
15410       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15411 echo "${ECHO_T}use dl_dyld.c" >&6
15412       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15413       ;;
15414     *)
15415       NEEDDLOPEN="no"
15416       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15417 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15418       ;;
15419   esac
15420 fi
15421
15422 if test "$NEEDDLOPEN" = "yes"; then
15423   cat >> confdefs.h <<EOF
15424 #define IA_DYNAMIC 1
15425 EOF
15426
15427
15428 cat >>confdefs.h <<_ACEOF
15429 #define SHARED_LIB_EXT ".$so"
15430 _ACEOF
15431
15432       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15433 fi
15434
15435
15436
15437 if test "$NEEDDLOPEN" = "yes"; then
15438   NEEDDLOPEN_TRUE=
15439   NEEDDLOPEN_FALSE='#'
15440 else
15441   NEEDDLOPEN_TRUE='#'
15442   NEEDDLOPEN_FALSE=
15443 fi
15444
15445
15446
15447
15448
15449 if false; then
15450   ENABLE_NCURSES_TRUE=
15451   ENABLE_NCURSES_FALSE='#'
15452 else
15453   ENABLE_NCURSES_TRUE='#'
15454   ENABLE_NCURSES_FALSE=
15455 fi
15456
15457 # Check whether --enable-ncurses or --disable-ncurses was given.
15458 if test "${enable_ncurses+set}" = set; then
15459   enableval="$enable_ncurses"
15460   case "x$enable_ncurses" in xyes|xdynamic)
15461
15462
15463 for ac_header in ncurses.h ncurses/curses.h curses.h
15464 do
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467   echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 fi
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15474 else
15475   # Is the header compilable?
15476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 $ac_includes_default
15485 #include <$ac_header>
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489   (eval $ac_compile) 2>conftest.er1
15490   ac_status=$?
15491   grep -v '^ *+' conftest.er1 >conftest.err
15492   rm -f conftest.er1
15493   cat conftest.err >&5
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); } &&
15496          { ac_try='test -z "$ac_c_werror_flag"
15497                          || test ! -s conftest.err'
15498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499   (eval $ac_try) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; } &&
15503          { ac_try='test -s conftest.$ac_objext'
15504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505   (eval $ac_try) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; }; then
15509   ac_header_compiler=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 ac_header_compiler=no
15515 fi
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6
15519
15520 # Is the header present?
15521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <$ac_header>
15530 _ACEOF
15531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15533   ac_status=$?
15534   grep -v '^ *+' conftest.er1 >conftest.err
15535   rm -f conftest.er1
15536   cat conftest.err >&5
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); } >/dev/null; then
15539   if test -s conftest.err; then
15540     ac_cpp_err=$ac_c_preproc_warn_flag
15541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15542   else
15543     ac_cpp_err=
15544   fi
15545 else
15546   ac_cpp_err=yes
15547 fi
15548 if test -z "$ac_cpp_err"; then
15549   ac_header_preproc=yes
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554   ac_header_preproc=no
15555 fi
15556 rm -f conftest.err conftest.$ac_ext
15557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6
15559
15560 # So?  What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562   yes:no: )
15563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567     ac_header_preproc=yes
15568     ;;
15569   no:yes:* )
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582     (
15583       cat <<\_ASBOX
15584 ## ------------------------------- ##
15585 ## Report this to root@mput.dip.jp ##
15586 ## ------------------------------- ##
15587 _ASBOX
15588     ) |
15589       sed "s/^/$as_me: WARNING:     /" >&2
15590     ;;
15591 esac
15592 echo "$as_me:$LINENO: checking for $ac_header" >&5
15593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597   eval "$as_ac_Header=\$ac_header_preproc"
15598 fi
15599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15601
15602 fi
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604   cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15606 _ACEOF
15607
15608 fi
15609
15610 done
15611
15612
15613
15614   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15615     *yes*);;
15616     *)  for i in /usr/include /usr/local/include; do
15617           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15618             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15619 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15620             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15621             break
15622           fi
15623         done
15624         ;;
15625     esac
15626
15627     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15628 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15629 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   ac_check_lib_save_LIBS=$LIBS
15633 LIBS="-lncurses  $LIBS"
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640
15641 /* Override any gcc2 internal prototype to avoid an error.  */
15642 #ifdef __cplusplus
15643 extern "C"
15644 #endif
15645 /* We use char because int might match the return type of a gcc2
15646    builtin and then its argument prototype would still apply.  */
15647 char initscr ();
15648 int
15649 main ()
15650 {
15651 initscr ();
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658   (eval $ac_link) 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_c_werror_flag"
15666                          || test ! -s conftest.err'
15667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668   (eval $ac_try) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; } &&
15672          { ac_try='test -s conftest$ac_exeext'
15673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674   (eval $ac_try) 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; }; then
15678   ac_cv_lib_ncurses_initscr=yes
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 ac_cv_lib_ncurses_initscr=no
15684 fi
15685 rm -f conftest.err conftest.$ac_objext \
15686       conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15688 fi
15689 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15690 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15691 if test $ac_cv_lib_ncurses_initscr = yes; then
15692   lib_curses_opt=-lncurses
15693 else
15694         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15695 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15696 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15697   echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699   ac_check_lib_save_LIBS=$LIBS
15700 LIBS="-lcurses $lib_user32_test $LIBS"
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h.  */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h.  */
15707
15708 /* Override any gcc2 internal prototype to avoid an error.  */
15709 #ifdef __cplusplus
15710 extern "C"
15711 #endif
15712 /* We use char because int might match the return type of a gcc2
15713    builtin and then its argument prototype would still apply.  */
15714 char PDC_set_ctrl_break ();
15715 int
15716 main ()
15717 {
15718 PDC_set_ctrl_break ();
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725   (eval $ac_link) 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -z "$ac_c_werror_flag"
15733                          || test ! -s conftest.err'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; } &&
15739          { ac_try='test -s conftest$ac_exeext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_cv_lib_curses_PDC_set_ctrl_break=yes
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ac_cv_lib_curses_PDC_set_ctrl_break=no
15751 fi
15752 rm -f conftest.err conftest.$ac_objext \
15753       conftest$ac_exeext conftest.$ac_ext
15754 LIBS=$ac_check_lib_save_LIBS
15755 fi
15756 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15757 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15758 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15759    lib_curses_opt=-lcurses
15760
15761 cat >>confdefs.h <<\_ACEOF
15762 #define USE_PDCURSES 1
15763 _ACEOF
15764
15765             lib_user32_opt="$lib_user32_test"
15766
15767 else
15768             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15769 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15770 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15771   echo $ECHO_N "(cached) $ECHO_C" >&6
15772 else
15773   ac_check_lib_save_LIBS=$LIBS
15774 LIBS="-lpdcurses  $LIBS"
15775 cat >conftest.$ac_ext <<_ACEOF
15776 /* confdefs.h.  */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h.  */
15781
15782 /* Override any gcc2 internal prototype to avoid an error.  */
15783 #ifdef __cplusplus
15784 extern "C"
15785 #endif
15786 /* We use char because int might match the return type of a gcc2
15787    builtin and then its argument prototype would still apply.  */
15788 char PDC_set_ctrl_break ();
15789 int
15790 main ()
15791 {
15792 PDC_set_ctrl_break ();
15793   ;
15794   return 0;
15795 }
15796 _ACEOF
15797 rm -f conftest.$ac_objext conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799   (eval $ac_link) 2>conftest.er1
15800   ac_status=$?
15801   grep -v '^ *+' conftest.er1 >conftest.err
15802   rm -f conftest.er1
15803   cat conftest.err >&5
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } &&
15806          { ac_try='test -z "$ac_c_werror_flag"
15807                          || test ! -s conftest.err'
15808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809   (eval $ac_try) 2>&5
15810   ac_status=$?
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   (exit $ac_status); }; } &&
15813          { ac_try='test -s conftest$ac_exeext'
15814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815   (eval $ac_try) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); }; }; then
15819   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15825 fi
15826 rm -f conftest.err conftest.$ac_objext \
15827       conftest$ac_exeext conftest.$ac_ext
15828 LIBS=$ac_check_lib_save_LIBS
15829 fi
15830 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15831 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15832 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15833    lib_curses_opt=-lpdcurses
15834
15835 cat >>confdefs.h <<\_ACEOF
15836 #define USE_PDCURSES 1
15837 _ACEOF
15838
15839               lib_user32_opt="$lib_user32_test"
15840
15841 else
15842               case "$target" in
15843                 *openbsd*)
15844                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15845 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15846 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849   ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lcurses  $LIBS"
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857
15858 /* Override any gcc2 internal prototype to avoid an error.  */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 /* We use char because int might match the return type of a gcc2
15863    builtin and then its argument prototype would still apply.  */
15864 char initscr ();
15865 int
15866 main ()
15867 {
15868 initscr ();
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875   (eval $ac_link) 2>conftest.er1
15876   ac_status=$?
15877   grep -v '^ *+' conftest.er1 >conftest.err
15878   rm -f conftest.er1
15879   cat conftest.err >&5
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } &&
15882          { ac_try='test -z "$ac_c_werror_flag"
15883                          || test ! -s conftest.err'
15884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885   (eval $ac_try) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; } &&
15889          { ac_try='test -s conftest$ac_exeext'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_cv_lib_curses_initscr=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 ac_cv_lib_curses_initscr=no
15901 fi
15902 rm -f conftest.err conftest.$ac_objext \
15903       conftest$ac_exeext conftest.$ac_ext
15904 LIBS=$ac_check_lib_save_LIBS
15905 fi
15906 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15907 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15908 if test $ac_cv_lib_curses_initscr = yes; then
15909   lib_curses_opt=-lcurses
15910 else
15911    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15912 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15913                       enable_ncurses=no
15914 fi
15915
15916                   ;;
15917                 *)
15918                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
15919                     lib_curses_opt=libpdcurses.lib
15920
15921 cat >>confdefs.h <<\_ACEOF
15922 #define USE_PDCURSES 1
15923 _ACEOF
15924
15925                   else
15926                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15927 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15928                     enable_ncurses=no
15929                   fi
15930                   ;;
15931               esac
15932
15933 fi
15934
15935
15936 fi
15937
15938
15939 fi
15940
15941    ;; esac
15942 fi;
15943 case "x$enable_ncurses" in
15944 xyes)
15945   cat >> confdefs.h <<EOF
15946 #define IA_NCURSES 1
15947 EOF
15948
15949
15950
15951 if true; then
15952   ENABLE_NCURSES_TRUE=
15953   ENABLE_NCURSES_FALSE='#'
15954 else
15955   ENABLE_NCURSES_TRUE='#'
15956   ENABLE_NCURSES_FALSE=
15957 fi
15958
15959    LIBS="$LIBS $lib_curses_opt"
15960     case "$target" in
15961        *-*-freebsd123*)
15962          EXTRALIBS="$EXTRALIBS -lmytinfo"
15963          ;;
15964      esac
15965     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15966
15967   ;;
15968 xdynamic)
15969   dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
15970    n_so_libs="$lib_curses_opt"
15971     case "$target" in
15972        *-*-freebsd123*)
15973          EXTRALIBS="$EXTRALIBS -lmytinfo"
15974          ;;
15975      esac
15976   ;;
15977 *)
15978
15979   ;;
15980 esac
15981
15982
15983
15984
15985
15986 if false; then
15987   ENABLE_SLANG_TRUE=
15988   ENABLE_SLANG_FALSE='#'
15989 else
15990   ENABLE_SLANG_TRUE='#'
15991   ENABLE_SLANG_FALSE=
15992 fi
15993
15994 # Check whether --enable-slang or --disable-slang was given.
15995 if test "${enable_slang+set}" = set; then
15996   enableval="$enable_slang"
15997   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15998 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15999 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002   ac_check_lib_save_LIBS=$LIBS
16003 LIBS="-lslang  $LIBS"
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h.  */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h.  */
16010
16011 /* Override any gcc2 internal prototype to avoid an error.  */
16012 #ifdef __cplusplus
16013 extern "C"
16014 #endif
16015 /* We use char because int might match the return type of a gcc2
16016    builtin and then its argument prototype would still apply.  */
16017 char SLang_init_tty ();
16018 int
16019 main ()
16020 {
16021 SLang_init_tty ();
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028   (eval $ac_link) 2>conftest.er1
16029   ac_status=$?
16030   grep -v '^ *+' conftest.er1 >conftest.err
16031   rm -f conftest.er1
16032   cat conftest.err >&5
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } &&
16035          { ac_try='test -z "$ac_c_werror_flag"
16036                          || test ! -s conftest.err'
16037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038   (eval $ac_try) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; } &&
16042          { ac_try='test -s conftest$ac_exeext'
16043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044   (eval $ac_try) 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   ac_cv_lib_slang_SLang_init_tty=yes
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 ac_cv_lib_slang_SLang_init_tty=no
16054 fi
16055 rm -f conftest.err conftest.$ac_objext \
16056       conftest$ac_exeext conftest.$ac_ext
16057 LIBS=$ac_check_lib_save_LIBS
16058 fi
16059 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16060 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16061 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16062   :
16063 else
16064    enable_slang=no
16065       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16066 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16067
16068 fi
16069
16070
16071
16072 for ac_header in slang/slang.h slang.h
16073 do
16074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16076   echo "$as_me:$LINENO: checking for $ac_header" >&5
16077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16079   echo $ECHO_N "(cached) $ECHO_C" >&6
16080 fi
16081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16083 else
16084   # Is the header compilable?
16085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093 $ac_includes_default
16094 #include <$ac_header>
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098   (eval $ac_compile) 2>conftest.er1
16099   ac_status=$?
16100   grep -v '^ *+' conftest.er1 >conftest.err
16101   rm -f conftest.er1
16102   cat conftest.err >&5
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } &&
16105          { ac_try='test -z "$ac_c_werror_flag"
16106                          || test ! -s conftest.err'
16107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108   (eval $ac_try) 2>&5
16109   ac_status=$?
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); }; } &&
16112          { ac_try='test -s conftest.$ac_objext'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; }; then
16118   ac_header_compiler=yes
16119 else
16120   echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16122
16123 ac_header_compiler=no
16124 fi
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16127 echo "${ECHO_T}$ac_header_compiler" >&6
16128
16129 # Is the header present?
16130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h.  */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h.  */
16138 #include <$ac_header>
16139 _ACEOF
16140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16142   ac_status=$?
16143   grep -v '^ *+' conftest.er1 >conftest.err
16144   rm -f conftest.er1
16145   cat conftest.err >&5
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); } >/dev/null; then
16148   if test -s conftest.err; then
16149     ac_cpp_err=$ac_c_preproc_warn_flag
16150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16151   else
16152     ac_cpp_err=
16153   fi
16154 else
16155   ac_cpp_err=yes
16156 fi
16157 if test -z "$ac_cpp_err"; then
16158   ac_header_preproc=yes
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163   ac_header_preproc=no
16164 fi
16165 rm -f conftest.err conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16167 echo "${ECHO_T}$ac_header_preproc" >&6
16168
16169 # So?  What about this header?
16170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16171   yes:no: )
16172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16176     ac_header_preproc=yes
16177     ;;
16178   no:yes:* )
16179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16191     (
16192       cat <<\_ASBOX
16193 ## ------------------------------- ##
16194 ## Report this to root@mput.dip.jp ##
16195 ## ------------------------------- ##
16196 _ASBOX
16197     ) |
16198       sed "s/^/$as_me: WARNING:     /" >&2
16199     ;;
16200 esac
16201 echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   eval "$as_ac_Header=\$ac_header_preproc"
16207 fi
16208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16210
16211 fi
16212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16213   cat >>confdefs.h <<_ACEOF
16214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16215 _ACEOF
16216
16217 fi
16218
16219 done
16220
16221    ;; esac
16222 fi;
16223 case "x$enable_slang" in
16224 xyes)
16225   cat >> confdefs.h <<EOF
16226 #define IA_SLANG 1
16227 EOF
16228
16229
16230
16231 if true; then
16232   ENABLE_SLANG_TRUE=
16233   ENABLE_SLANG_FALSE='#'
16234 else
16235   ENABLE_SLANG_TRUE='#'
16236   ENABLE_SLANG_FALSE=
16237 fi
16238
16239    LIBS="$LIBS -lslang"
16240     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16241
16242   ;;
16243 xdynamic)
16244   dynamic_targets="$dynamic_targets if_slang.\$(so)"
16245    s_so_libs="-lslang"
16246     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16247 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16248 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16249   echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251   ac_check_lib_save_LIBS=$LIBS
16252 LIBS="-ltermcap  $LIBS"
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259
16260 /* Override any gcc2 internal prototype to avoid an error.  */
16261 #ifdef __cplusplus
16262 extern "C"
16263 #endif
16264 /* We use char because int might match the return type of a gcc2
16265    builtin and then its argument prototype would still apply.  */
16266 char initscr ();
16267 int
16268 main ()
16269 {
16270 initscr ();
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277   (eval $ac_link) 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag"
16285                          || test ! -s conftest.err'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; } &&
16291          { ac_try='test -s conftest$ac_exeext'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; }; then
16297   ac_cv_lib_termcap_initscr=yes
16298 else
16299   echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 ac_cv_lib_termcap_initscr=no
16303 fi
16304 rm -f conftest.err conftest.$ac_objext \
16305       conftest$ac_exeext conftest.$ac_ext
16306 LIBS=$ac_check_lib_save_LIBS
16307 fi
16308 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16309 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16310 if test $ac_cv_lib_termcap_initscr = yes; then
16311   s_so_libs="$s_so_libs -ltermcap"
16312 fi
16313
16314
16315   ;;
16316 *)
16317
16318   ;;
16319 esac
16320
16321
16322
16323
16324
16325 if false; then
16326   ENABLE_MOTIF_TRUE=
16327   ENABLE_MOTIF_FALSE='#'
16328 else
16329   ENABLE_MOTIF_TRUE='#'
16330   ENABLE_MOTIF_FALSE=
16331 fi
16332
16333 # Check whether --enable-motif or --disable-motif was given.
16334 if test "${enable_motif+set}" = set; then
16335   enableval="$enable_motif"
16336   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16337         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16338 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16339    { (exit 1); exit 1; }; }
16340     fi
16341     if test "x$have_xm" != xyes; then
16342       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16343 echo "$as_me: WARNING: Motif library is not found." >&2;}
16344       enable_motif=no
16345     fi
16346    ;; esac
16347 fi;
16348 case "x$enable_motif" in
16349 xyes)
16350   cat >> confdefs.h <<EOF
16351 #define IA_MOTIF 1
16352 EOF
16353
16354
16355
16356 if true; then
16357   ENABLE_MOTIF_TRUE=
16358   ENABLE_MOTIF_FALSE='#'
16359 else
16360   ENABLE_MOTIF_TRUE='#'
16361   ENABLE_MOTIF_FALSE=
16362 fi
16363
16364    lib_xm_opt=-lXm
16365     lib_xt_opt=-lXt
16366     lib_xext_opt=-lXext
16367     if test "x$have_xprelibs" = xyes; then
16368         lib_xprelibs_opt='-lSM -lICE'
16369     fi
16370     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16371
16372   ;;
16373 xdynamic)
16374   dynamic_targets="$dynamic_targets if_motif.\$(so)"
16375    if test x$have_xprelibs = xyes; then
16376       m_so_libs="-lXext -lSM -lICE"
16377     fi
16378     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16379
16380   ;;
16381 *)
16382
16383   ;;
16384 esac
16385
16386
16387
16388
16389
16390 if false; then
16391   ENABLE_TCLTK_TRUE=
16392   ENABLE_TCLTK_FALSE='#'
16393 else
16394   ENABLE_TCLTK_TRUE='#'
16395   ENABLE_TCLTK_FALSE=
16396 fi
16397
16398 # Check whether --enable-tcltk or --disable-tcltk was given.
16399 if test "${enable_tcltk+set}" = set; then
16400   enableval="$enable_tcltk"
16401   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16402         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16403 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16404    { (exit 1); exit 1; }; }
16405     fi
16406
16407         KEEPCPPFLAGS=$CPPFLAGS
16408     KEEPLDFLAGS=$LDFLAGS
16409     KEEPLIBS=$LIBS
16410
16411     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16412     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16413     LIBS="$LIBS $lib_dl_opt"
16414
16415     tcl_lib=
16416     tk_lib=
16417     for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16418       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16419 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16420 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16421 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424   ac_check_lib_save_LIBS=$LIBS
16425 LIBS="-l$l  $LIBS"
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h.  */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h.  */
16432
16433 /* Override any gcc2 internal prototype to avoid an error.  */
16434 #ifdef __cplusplus
16435 extern "C"
16436 #endif
16437 /* We use char because int might match the return type of a gcc2
16438    builtin and then its argument prototype would still apply.  */
16439 char Tcl_Init ();
16440 int
16441 main ()
16442 {
16443 Tcl_Init ();
16444   ;
16445   return 0;
16446 }
16447 _ACEOF
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16450   (eval $ac_link) 2>conftest.er1
16451   ac_status=$?
16452   grep -v '^ *+' conftest.er1 >conftest.err
16453   rm -f conftest.er1
16454   cat conftest.err >&5
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); } &&
16457          { ac_try='test -z "$ac_c_werror_flag"
16458                          || test ! -s conftest.err'
16459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460   (eval $ac_try) 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; } &&
16464          { ac_try='test -s conftest$ac_exeext'
16465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466   (eval $ac_try) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; }; then
16470   eval "$as_ac_Lib=yes"
16471 else
16472   echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475 eval "$as_ac_Lib=no"
16476 fi
16477 rm -f conftest.err conftest.$ac_objext \
16478       conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16480 fi
16481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16482 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16483 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16484   tcl_lib=-l$l
16485 fi
16486 ;; esac
16487     done
16488     LIBS="$LIBS $tcl_lib"
16489     for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16490       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16491 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16492 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16493 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16494   echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496   ac_check_lib_save_LIBS=$LIBS
16497 LIBS="-l$l  $LIBS"
16498 cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504
16505 /* Override any gcc2 internal prototype to avoid an error.  */
16506 #ifdef __cplusplus
16507 extern "C"
16508 #endif
16509 /* We use char because int might match the return type of a gcc2
16510    builtin and then its argument prototype would still apply.  */
16511 char Tk_Init ();
16512 int
16513 main ()
16514 {
16515 Tk_Init ();
16516   ;
16517   return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16522   (eval $ac_link) 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag"
16530                          || test ! -s conftest.err'
16531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532   (eval $ac_try) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; } &&
16536          { ac_try='test -s conftest$ac_exeext'
16537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538   (eval $ac_try) 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542   eval "$as_ac_Lib=yes"
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 eval "$as_ac_Lib=no"
16548 fi
16549 rm -f conftest.err conftest.$ac_objext \
16550       conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16552 fi
16553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16554 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16555 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16556   tk_lib=-l$l
16557 fi
16558 ;; esac
16559     done
16560
16561     LIBS=$KEEPLIBS
16562     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16563       CPPFLAGS=$KEEPCPPFLAGS
16564       LDFLAGS=$KEEPLDFLAGS
16565       enable_tcltk=no
16566       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16567 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16568     else
16569       tcltk_dep='tclIndex'
16570     fi
16571    ;; esac
16572 fi;
16573 case "x$enable_tcltk" in
16574 xyes)
16575   cat >> confdefs.h <<EOF
16576 #define IA_TCLTK 1
16577 EOF
16578
16579
16580
16581 if true; then
16582   ENABLE_TCLTK_TRUE=
16583   ENABLE_TCLTK_FALSE='#'
16584 else
16585   ENABLE_TCLTK_TRUE='#'
16586   ENABLE_TCLTK_FALSE=
16587 fi
16588
16589    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16590     case "$target" in
16591       *-*-bsdi*)
16592         EXTRALIBS="$EXTRALIBS -lipc"
16593         ;;
16594     esac
16595     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16596
16597   ;;
16598 xdynamic)
16599   dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
16600    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16601     case "$target" in
16602       *-*-bsdi*)
16603         k_so_libs="$k_so_libs -lipc"
16604         ;;
16605     esac
16606     k_so_libs="$k_so_libs -lX11 -lm"
16607
16608   ;;
16609 *)
16610
16611   ;;
16612 esac
16613
16614
16615
16616
16617 if test "x$enable_tcltk" = "xdynamic"; then
16618   ENABLE_DYNAMIC_TCLTK_TRUE=
16619   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16620 else
16621   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16622   ENABLE_DYNAMIC_TCLTK_FALSE=
16623 fi
16624
16625
16626
16627
16628 if false; then
16629   ENABLE_EMACS_TRUE=
16630   ENABLE_EMACS_FALSE='#'
16631 else
16632   ENABLE_EMACS_TRUE='#'
16633   ENABLE_EMACS_FALSE=
16634 fi
16635
16636 # Check whether --enable-emacs or --disable-emacs was given.
16637 if test "${enable_emacs+set}" = set; then
16638   enableval="$enable_emacs"
16639   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16640 fi;
16641 case "x$enable_emacs" in
16642 xyes)
16643   cat >> confdefs.h <<EOF
16644 #define IA_EMACS 1
16645 EOF
16646
16647
16648
16649 if true; then
16650   ENABLE_EMACS_TRUE=
16651   ENABLE_EMACS_FALSE='#'
16652 else
16653   ENABLE_EMACS_TRUE='#'
16654   ENABLE_EMACS_FALSE=
16655 fi
16656
16657    ELFILES="$ELFILES timidity.el"
16658     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16659
16660   ;;
16661 xdynamic)
16662   dynamic_targets="$dynamic_targets if_emacs.\$(so)"
16663    ELFILES="$ELFILES timidity.el"
16664   ;;
16665 *)
16666
16667   ;;
16668 esac
16669
16670
16671
16672
16673
16674 if false; then
16675   ENABLE_VT100_TRUE=
16676   ENABLE_VT100_FALSE='#'
16677 else
16678   ENABLE_VT100_TRUE='#'
16679   ENABLE_VT100_FALSE=
16680 fi
16681
16682 # Check whether --enable-vt100 or --disable-vt100 was given.
16683 if test "${enable_vt100+set}" = set; then
16684   enableval="$enable_vt100"
16685   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
16686 fi;
16687 case "x$enable_vt100" in
16688 xyes)
16689   cat >> confdefs.h <<EOF
16690 #define IA_VT100 1
16691 EOF
16692
16693
16694
16695 if true; then
16696   ENABLE_VT100_TRUE=
16697   ENABLE_VT100_FALSE='#'
16698 else
16699   ENABLE_VT100_TRUE='#'
16700   ENABLE_VT100_FALSE=
16701 fi
16702
16703    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16704   ;;
16705 xdynamic)
16706   dynamic_targets="$dynamic_targets if_vt100.\$(so)"
16707
16708   ;;
16709 *)
16710
16711   ;;
16712 esac
16713
16714
16715
16716
16717
16718 if false; then
16719   ENABLE_XAW_TRUE=
16720   ENABLE_XAW_FALSE='#'
16721 else
16722   ENABLE_XAW_TRUE='#'
16723   ENABLE_XAW_FALSE=
16724 fi
16725
16726 # Check whether --enable-xaw or --disable-xaw was given.
16727 if test "${enable_xaw+set}" = set; then
16728   enableval="$enable_xaw"
16729   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16730         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16731 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16732    { (exit 1); exit 1; }; }
16733     fi
16734     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16735       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16736 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16737       enable_xaw=no
16738     fi  ;; esac
16739 fi;
16740 case "x$enable_xaw" in
16741 xyes)
16742   cat >> confdefs.h <<EOF
16743 #define IA_XAW 1
16744 EOF
16745
16746
16747
16748 if true; then
16749   ENABLE_XAW_TRUE=
16750   ENABLE_XAW_FALSE='#'
16751 else
16752   ENABLE_XAW_TRUE='#'
16753   ENABLE_XAW_FALSE=
16754 fi
16755
16756        if test "x$have_xext" = xyes; then
16757       lib_xext_opt=-lXext
16758     fi
16759     if test "x$have_xprelibs" = xyes; then
16760       lib_xprelibs_opt='-lSM -lICE'
16761     fi
16762     lib_xmu_opt=-lXmu
16763     lib_xt_opt=-lXt
16764     if test "x$have_xaw" = x3d; then
16765
16766 cat >>confdefs.h <<\_ACEOF
16767 #define XAW3D 1
16768 _ACEOF
16769
16770       lib_xaw_opt=-lXaw3d
16771     else
16772       lib_xaw_opt=-lXaw
16773     fi
16774     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16775
16776   ;;
16777 xdynamic)
16778   dynamic_targets="$dynamic_targets if_xaw.\$(so)"
16779    if test "x$have_xext" = xyes; then
16780       a_so_libs="-lXext -lX11"
16781     else
16782       a_so_libs="-lX11"
16783     fi
16784     case "$target" in
16785       *darwin*)
16786         a_so_libs="$a_so_libs -lcc_dynamic"
16787         ;;
16788     esac
16789     if test "x$have_xprelibs" = xyes; then
16790       a_so_libs="-lSM -lICE $a_so_libs"
16791     fi
16792     if test "x$have_xaw" = xyes; then
16793       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16794     elif test "x$have_xaw" = x3d; then
16795
16796 cat >>confdefs.h <<\_ACEOF
16797 #define XAW3D 1
16798 _ACEOF
16799
16800       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16801     fi
16802     a_so_libs="$ldflags_x_opt $a_so_libs"
16803
16804   ;;
16805 *)
16806
16807   ;;
16808 esac
16809
16810
16811
16812
16813 if test "x$enable_xaw" = "xdynamic"; then
16814   ENABLE_DYNAMIC_XAW_TRUE=
16815   ENABLE_DYNAMIC_XAW_FALSE='#'
16816 else
16817   ENABLE_DYNAMIC_XAW_TRUE='#'
16818   ENABLE_DYNAMIC_XAW_FALSE=
16819 fi
16820
16821
16822
16823
16824 if false; then
16825   ENABLE_XSKIN_TRUE=
16826   ENABLE_XSKIN_FALSE='#'
16827 else
16828   ENABLE_XSKIN_TRUE='#'
16829   ENABLE_XSKIN_FALSE=
16830 fi
16831
16832 # Check whether --enable-xskin or --disable-xskin was given.
16833 if test "${enable_xskin+set}" = set; then
16834   enableval="$enable_xskin"
16835   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16836         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16837 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16838    { (exit 1); exit 1; }; }
16839     fi
16840    ;; esac
16841 fi;
16842 case "x$enable_xskin" in
16843 xyes)
16844   cat >> confdefs.h <<EOF
16845 #define IA_XSKIN 1
16846 EOF
16847
16848
16849
16850 if true; then
16851   ENABLE_XSKIN_TRUE=
16852   ENABLE_XSKIN_FALSE='#'
16853 else
16854   ENABLE_XSKIN_TRUE='#'
16855   ENABLE_XSKIN_FALSE=
16856 fi
16857
16858    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16859   ;;
16860 xdynamic)
16861   dynamic_targets="$dynamic_targets if_xskin.\$(so)"
16862    i_so_libs="$ldflags_x_opt -lX11"
16863   ;;
16864 *)
16865
16866   ;;
16867 esac
16868
16869
16870
16871
16872
16873 if false; then
16874   ENABLE_GTK_TRUE=
16875   ENABLE_GTK_FALSE='#'
16876 else
16877   ENABLE_GTK_TRUE='#'
16878   ENABLE_GTK_FALSE=
16879 fi
16880
16881 # Check whether --enable-gtk or --disable-gtk was given.
16882 if test "${enable_gtk+set}" = set; then
16883   enableval="$enable_gtk"
16884   case "x$enable_gtk" in xyes|xdynamic)  # Check whether --enable-gtktest or --disable-gtktest was given.
16885 if test "${enable_gtktest+set}" = set; then
16886   enableval="$enable_gtktest"
16887
16888 else
16889   enable_gtktest=yes
16890 fi;
16891
16892   pkg_config_args=gtk+-2.0
16893   for module in .
16894   do
16895       case "$module" in
16896          gthread)
16897              pkg_config_args="$pkg_config_args gthread-2.0"
16898          ;;
16899       esac
16900   done
16901
16902   no_gtk=""
16903
16904   # Extract the first word of "pkg-config", so it can be a program name with args.
16905 set dummy pkg-config; ac_word=$2
16906 echo "$as_me:$LINENO: checking for $ac_word" >&5
16907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16908 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   case $PKG_CONFIG in
16912   [\\/]* | ?:[\\/]*)
16913   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16914   ;;
16915   *)
16916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16917 for as_dir in $PATH
16918 do
16919   IFS=$as_save_IFS
16920   test -z "$as_dir" && as_dir=.
16921   for ac_exec_ext in '' $ac_executable_extensions; do
16922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16923     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16925     break 2
16926   fi
16927 done
16928 done
16929
16930   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16931   ;;
16932 esac
16933 fi
16934 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16935
16936 if test -n "$PKG_CONFIG"; then
16937   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
16938 echo "${ECHO_T}$PKG_CONFIG" >&6
16939 else
16940   echo "$as_me:$LINENO: result: no" >&5
16941 echo "${ECHO_T}no" >&6
16942 fi
16943
16944
16945   if test x$PKG_CONFIG != xno ; then
16946     if pkg-config --atleast-pkgconfig-version 0.7 ; then
16947       :
16948     else
16949       echo *** pkg-config too old; version 0.7 or better required.
16950       no_gtk=yes
16951       PKG_CONFIG=no
16952     fi
16953   else
16954     no_gtk=yes
16955   fi
16956
16957   min_gtk_version=2.0.0
16958   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
16959 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
16960
16961   if test x$PKG_CONFIG != xno ; then
16962     ## don't try to run the test against uninstalled libtool libs
16963     if $PKG_CONFIG --uninstalled $pkg_config_args; then
16964           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
16965           enable_gtktest=no
16966     fi
16967
16968     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
16969           :
16970     else
16971           no_gtk=yes
16972     fi
16973   fi
16974
16975   if test x"$no_gtk" = x ; then
16976     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
16977     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
16978     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
16979            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16980     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
16981            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16982     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
16983            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16984     if test "x$enable_gtktest" = "xyes" ; then
16985       ac_save_CFLAGS="$CFLAGS"
16986       ac_save_LIBS="$LIBS"
16987       CFLAGS="$CFLAGS $GTK_CFLAGS"
16988       LIBS="$GTK_LIBS $LIBS"
16989       rm -f conf.gtktest
16990       if test "$cross_compiling" = yes; then
16991   echo $ac_n "cross compiling; assumed OK... $ac_c"
16992 else
16993   cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999
17000 #include <gtk/gtk.h>
17001 #include <stdio.h>
17002 #include <stdlib.h>
17003
17004 int
17005 main ()
17006 {
17007   int major, minor, micro;
17008   char *tmp_version;
17009
17010   system ("touch conf.gtktest");
17011
17012   /* HP/UX 9 (%@#!) writes to sscanf strings */
17013   tmp_version = g_strdup("$min_gtk_version");
17014   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17015      printf("%s, bad version string\n", "$min_gtk_version");
17016      exit(1);
17017    }
17018
17019   if ((gtk_major_version != $gtk_config_major_version) ||
17020       (gtk_minor_version != $gtk_config_minor_version) ||
17021       (gtk_micro_version != $gtk_config_micro_version))
17022     {
17023       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17024              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17025              gtk_major_version, gtk_minor_version, gtk_micro_version);
17026       printf ("*** was found! If pkg-config was correct, then it is best\n");
17027       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17028       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17029       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17030       printf("*** required on your system.\n");
17031       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17032       printf("*** to point to the correct configuration files\n");
17033     }
17034   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17035            (gtk_minor_version != GTK_MINOR_VERSION) ||
17036            (gtk_micro_version != GTK_MICRO_VERSION))
17037     {
17038       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17039              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17040       printf("*** library (version %d.%d.%d)\n",
17041              gtk_major_version, gtk_minor_version, gtk_micro_version);
17042     }
17043   else
17044     {
17045       if ((gtk_major_version > major) ||
17046         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17047         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17048       {
17049         return 0;
17050        }
17051      else
17052       {
17053         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17054                gtk_major_version, gtk_minor_version, gtk_micro_version);
17055         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17056                major, minor, micro);
17057         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17058         printf("***\n");
17059         printf("*** If you have already installed a sufficiently new version, this error\n");
17060         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17061         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17062         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17063         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17064         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17065         printf("*** so that the correct libraries are found at run-time))\n");
17066       }
17067     }
17068   return 1;
17069 }
17070
17071 _ACEOF
17072 rm -f conftest$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074   (eval $ac_link) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079   (eval $ac_try) 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); }; }; then
17083   :
17084 else
17085   echo "$as_me: program exited with status $ac_status" >&5
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089 ( exit $ac_status )
17090 no_gtk=yes
17091 fi
17092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17093 fi
17094        CFLAGS="$ac_save_CFLAGS"
17095        LIBS="$ac_save_LIBS"
17096      fi
17097   fi
17098   if test "x$no_gtk" = x ; then
17099      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17100 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17101
17102 cat >>confdefs.h <<\_ACEOF
17103 #define HAVE_GTK_2 1
17104 _ACEOF
17105
17106   else
17107      echo "$as_me:$LINENO: result: no" >&5
17108 echo "${ECHO_T}no" >&6
17109      if test "$PKG_CONFIG" = "no" ; then
17110        echo "*** A new enough version of pkg-config was not found."
17111        echo "*** See http://pkgconfig.sourceforge.net"
17112      else
17113        if test -f conf.gtktest ; then
17114         :
17115        else
17116           echo "*** Could not run GTK+ test program, checking why..."
17117           ac_save_CFLAGS="$CFLAGS"
17118           ac_save_LIBS="$LIBS"
17119           CFLAGS="$CFLAGS $GTK_CFLAGS"
17120           LIBS="$LIBS $GTK_LIBS"
17121           cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127
17128 #include <gtk/gtk.h>
17129 #include <stdio.h>
17130
17131 int
17132 main ()
17133 {
17134  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141   (eval $ac_link) 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } &&
17148          { ac_try='test -z "$ac_c_werror_flag"
17149                          || test ! -s conftest.err'
17150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151   (eval $ac_try) 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); }; } &&
17155          { ac_try='test -s conftest$ac_exeext'
17156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157   (eval $ac_try) 2>&5
17158   ac_status=$?
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); }; }; then
17161    echo "*** The test program compiled, but did not run. This usually means"
17162           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17163           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17164           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17165           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17166           echo "*** is required on your system"
17167           echo "***"
17168           echo "*** If you have an old version installed, it is best to remove it, although"
17169           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174  echo "*** The test program failed to compile or link. See the file config.log for the"
17175           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17176 fi
17177 rm -f conftest.err conftest.$ac_objext \
17178       conftest$ac_exeext conftest.$ac_ext
17179           CFLAGS="$ac_save_CFLAGS"
17180           LIBS="$ac_save_LIBS"
17181        fi
17182      fi
17183      GTK_CFLAGS=""
17184      GTK_LIBS=""
17185
17186 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17187 if test "${with_gtk_prefix+set}" = set; then
17188   withval="$with_gtk_prefix"
17189   gtk_config_prefix="$withval"
17190 else
17191   gtk_config_prefix=""
17192 fi;
17193
17194 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17195 if test "${with_gtk_exec_prefix+set}" = set; then
17196   withval="$with_gtk_exec_prefix"
17197   gtk_config_exec_prefix="$withval"
17198 else
17199   gtk_config_exec_prefix=""
17200 fi;
17201 # Check whether --enable-gtktest or --disable-gtktest was given.
17202 if test "${enable_gtktest+set}" = set; then
17203   enableval="$enable_gtktest"
17204
17205 else
17206   enable_gtktest=yes
17207 fi;
17208
17209   for module in .
17210   do
17211       case "$module" in
17212          gthread)
17213              gtk_config_args="$gtk_config_args gthread"
17214          ;;
17215       esac
17216   done
17217
17218   if test x$gtk_config_exec_prefix != x ; then
17219      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17220      if test x${GTK_CONFIG+set} != xset ; then
17221         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17222      fi
17223   fi
17224   if test x$gtk_config_prefix != x ; then
17225      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17226      if test x${GTK_CONFIG+set} != xset ; then
17227         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17228      fi
17229   fi
17230
17231   # Extract the first word of "gtk-config", so it can be a program name with args.
17232 set dummy gtk-config; ac_word=$2
17233 echo "$as_me:$LINENO: checking for $ac_word" >&5
17234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17235 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   case $GTK_CONFIG in
17239   [\\/]* | ?:[\\/]*)
17240   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17241   ;;
17242   *)
17243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17244 for as_dir in $PATH
17245 do
17246   IFS=$as_save_IFS
17247   test -z "$as_dir" && as_dir=.
17248   for ac_exec_ext in '' $ac_executable_extensions; do
17249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17250     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17252     break 2
17253   fi
17254 done
17255 done
17256
17257   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17258   ;;
17259 esac
17260 fi
17261 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17262
17263 if test -n "$GTK_CONFIG"; then
17264   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17265 echo "${ECHO_T}$GTK_CONFIG" >&6
17266 else
17267   echo "$as_me:$LINENO: result: no" >&5
17268 echo "${ECHO_T}no" >&6
17269 fi
17270
17271   min_gtk_version=1.1.3
17272   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17273 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17274   no_gtk=""
17275   if test "$GTK_CONFIG" = "no" ; then
17276     no_gtk=yes
17277   else
17278     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17279     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17280     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17281            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17282     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17283            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17284     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17285            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17286     if test "x$enable_gtktest" = "xyes" ; then
17287       ac_save_CFLAGS="$CFLAGS"
17288       ac_save_LIBS="$LIBS"
17289       CFLAGS="$CFLAGS $GTK_CFLAGS"
17290       LIBS="$GTK_LIBS $LIBS"
17291       rm -f conf.gtktest
17292       if test "$cross_compiling" = yes; then
17293   echo $ac_n "cross compiling; assumed OK... $ac_c"
17294 else
17295   cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h.  */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h.  */
17301
17302 #include <gtk/gtk.h>
17303 #include <stdio.h>
17304 #include <stdlib.h>
17305
17306 int
17307 main ()
17308 {
17309   int major, minor, micro;
17310   char *tmp_version;
17311
17312   system ("touch conf.gtktest");
17313
17314   /* HP/UX 9 (%@#!) writes to sscanf strings */
17315   tmp_version = g_strdup("$min_gtk_version");
17316   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17317      printf("%s, bad version string\n", "$min_gtk_version");
17318      exit(1);
17319    }
17320
17321   if ((gtk_major_version != $gtk_config_major_version) ||
17322       (gtk_minor_version != $gtk_config_minor_version) ||
17323       (gtk_micro_version != $gtk_config_micro_version))
17324     {
17325       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17326              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17327              gtk_major_version, gtk_minor_version, gtk_micro_version);
17328       printf ("*** was found! If gtk-config was correct, then it is best\n");
17329       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17330       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17331       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17332       printf("*** required on your system.\n");
17333       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17334       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17335       printf("*** before re-running configure\n");
17336     }
17337 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17338   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17339            (gtk_minor_version != GTK_MINOR_VERSION) ||
17340            (gtk_micro_version != GTK_MICRO_VERSION))
17341     {
17342       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17343              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17344       printf("*** library (version %d.%d.%d)\n",
17345              gtk_major_version, gtk_minor_version, gtk_micro_version);
17346     }
17347 #endif /* defined (GTK_MAJOR_VERSION) ... */
17348   else
17349     {
17350       if ((gtk_major_version > major) ||
17351         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17352         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17353       {
17354         return 0;
17355        }
17356      else
17357       {
17358         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17359                gtk_major_version, gtk_minor_version, gtk_micro_version);
17360         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17361                major, minor, micro);
17362         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17363         printf("***\n");
17364         printf("*** If you have already installed a sufficiently new version, this error\n");
17365         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17366         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17367         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17368         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17369         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17370         printf("*** so that the correct libraries are found at run-time))\n");
17371       }
17372     }
17373   return 1;
17374 }
17375
17376 _ACEOF
17377 rm -f conftest$ac_exeext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379   (eval $ac_link) 2>&5
17380   ac_status=$?
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384   (eval $ac_try) 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; }; then
17388   :
17389 else
17390   echo "$as_me: program exited with status $ac_status" >&5
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394 ( exit $ac_status )
17395 no_gtk=yes
17396 fi
17397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17398 fi
17399        CFLAGS="$ac_save_CFLAGS"
17400        LIBS="$ac_save_LIBS"
17401      fi
17402   fi
17403   if test "x$no_gtk" = x ; then
17404      echo "$as_me:$LINENO: result: yes" >&5
17405 echo "${ECHO_T}yes" >&6
17406      :
17407   else
17408      echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17410      if test "$GTK_CONFIG" = "no" ; then
17411        echo "*** The gtk-config script installed by GTK could not be found"
17412        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17413        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17414        echo "*** full path to gtk-config."
17415      else
17416        if test -f conf.gtktest ; then
17417         :
17418        else
17419           echo "*** Could not run GTK test program, checking why..."
17420           CFLAGS="$CFLAGS $GTK_CFLAGS"
17421           LIBS="$LIBS $GTK_LIBS"
17422           cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428
17429 #include <gtk/gtk.h>
17430 #include <stdio.h>
17431
17432 int
17433 main ()
17434 {
17435  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17442   (eval $ac_link) 2>conftest.er1
17443   ac_status=$?
17444   grep -v '^ *+' conftest.er1 >conftest.err
17445   rm -f conftest.er1
17446   cat conftest.err >&5
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } &&
17449          { ac_try='test -z "$ac_c_werror_flag"
17450                          || test ! -s conftest.err'
17451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452   (eval $ac_try) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; } &&
17456          { ac_try='test -s conftest$ac_exeext'
17457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458   (eval $ac_try) 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; }; then
17462    echo "*** The test program compiled, but did not run. This usually means"
17463           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17464           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17465           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17466           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17467           echo "*** is required on your system"
17468           echo "***"
17469           echo "*** If you have an old version installed, it is best to remove it, although"
17470           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17471           echo "***"
17472           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17473           echo "*** came with the system with the command"
17474           echo "***"
17475           echo "***    rpm --erase --nodeps gtk gtk-devel"
17476 else
17477   echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480  echo "*** The test program failed to compile or link. See the file config.log for the"
17481           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17482           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17483           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17484 fi
17485 rm -f conftest.err conftest.$ac_objext \
17486       conftest$ac_exeext conftest.$ac_ext
17487           CFLAGS="$ac_save_CFLAGS"
17488           LIBS="$ac_save_LIBS"
17489        fi
17490      fi
17491      GTK_CFLAGS=""
17492      GTK_LIBS=""
17493      enable_gtk=no
17494   fi
17495
17496
17497   rm -f conf.gtktest
17498
17499   fi
17500
17501
17502   rm -f conf.gtktest
17503   ;; esac
17504 fi;
17505 case "x$enable_gtk" in
17506 xyes)
17507   cat >> confdefs.h <<EOF
17508 #define IA_GTK 1
17509 EOF
17510
17511
17512
17513 if true; then
17514   ENABLE_GTK_TRUE=
17515   ENABLE_GTK_FALSE='#'
17516 else
17517   ENABLE_GTK_TRUE='#'
17518   ENABLE_GTK_FALSE=
17519 fi
17520
17521    LIBS="$LIBS $GTK_LIBS"
17522     for f in $GTK_CFLAGS; do
17523     case ".$f" in
17524         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17525         *)              CFLAGS="$CPPFLAGS $f" ;;
17526     esac
17527 done
17528
17529     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17530
17531   ;;
17532 xdynamic)
17533   dynamic_targets="$dynamic_targets if_gtk.\$(so)"
17534    if test "x$GCC" = xyes; then
17535                 for i in $GTK_LIBS; do
17536             case "x$i" in
17537                 x-rdynamic) ;;
17538                 *) g_so_libs="$g_so_libs $i" ;;
17539             esac
17540         done
17541     else
17542         g_so_libs="$GTK_LIBS"
17543     fi
17544     for f in $GTK_CFLAGS; do
17545     case ".$f" in
17546         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17547         *)              CFLAGS="$CPPFLAGS $f" ;;
17548     esac
17549 done
17550
17551   ;;
17552 *)
17553
17554   ;;
17555 esac
17556
17557
17558
17559
17560
17561 if false; then
17562   ENABLE_SERVER_TRUE=
17563   ENABLE_SERVER_FALSE='#'
17564 else
17565   ENABLE_SERVER_TRUE='#'
17566   ENABLE_SERVER_FALSE=
17567 fi
17568
17569 # Check whether --enable-server or --disable-server was given.
17570 if test "${enable_server+set}" = set; then
17571   enableval="$enable_server"
17572   case "x$enable_server" in xyes|xdynamic)  ;; esac
17573 fi;
17574 case "x$enable_server" in
17575 xyes)
17576   cat >> confdefs.h <<EOF
17577 #define IA_SERVER 1
17578 EOF
17579
17580
17581
17582 if true; then
17583   ENABLE_SERVER_TRUE=
17584   ENABLE_SERVER_FALSE='#'
17585 else
17586   ENABLE_SERVER_TRUE='#'
17587   ENABLE_SERVER_FALSE=
17588 fi
17589
17590    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17591
17592 for ac_header in sys/soundcard.h
17593 do
17594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17596   echo "$as_me:$LINENO: checking for $ac_header" >&5
17597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17599   echo $ECHO_N "(cached) $ECHO_C" >&6
17600 fi
17601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17603 else
17604   # Is the header compilable?
17605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17607 cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613 $ac_includes_default
17614 #include <$ac_header>
17615 _ACEOF
17616 rm -f conftest.$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618   (eval $ac_compile) 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } &&
17625          { ac_try='test -z "$ac_c_werror_flag"
17626                          || test ! -s conftest.err'
17627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628   (eval $ac_try) 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; } &&
17632          { ac_try='test -s conftest.$ac_objext'
17633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634   (eval $ac_try) 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638   ac_header_compiler=yes
17639 else
17640   echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643 ac_header_compiler=no
17644 fi
17645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17647 echo "${ECHO_T}$ac_header_compiler" >&6
17648
17649 # Is the header present?
17650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658 #include <$ac_header>
17659 _ACEOF
17660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17662   ac_status=$?
17663   grep -v '^ *+' conftest.er1 >conftest.err
17664   rm -f conftest.er1
17665   cat conftest.err >&5
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); } >/dev/null; then
17668   if test -s conftest.err; then
17669     ac_cpp_err=$ac_c_preproc_warn_flag
17670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17671   else
17672     ac_cpp_err=
17673   fi
17674 else
17675   ac_cpp_err=yes
17676 fi
17677 if test -z "$ac_cpp_err"; then
17678   ac_header_preproc=yes
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683   ac_header_preproc=no
17684 fi
17685 rm -f conftest.err conftest.$ac_ext
17686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17687 echo "${ECHO_T}$ac_header_preproc" >&6
17688
17689 # So?  What about this header?
17690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17691   yes:no: )
17692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17696     ac_header_preproc=yes
17697     ;;
17698   no:yes:* )
17699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17711     (
17712       cat <<\_ASBOX
17713 ## ------------------------------- ##
17714 ## Report this to root@mput.dip.jp ##
17715 ## ------------------------------- ##
17716 _ASBOX
17717     ) |
17718       sed "s/^/$as_me: WARNING:     /" >&2
17719     ;;
17720 esac
17721 echo "$as_me:$LINENO: checking for $ac_header" >&5
17722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17724   echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726   eval "$as_ac_Header=\$ac_header_preproc"
17727 fi
17728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17730
17731 fi
17732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17733   cat >>confdefs.h <<_ACEOF
17734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17735 _ACEOF
17736
17737 fi
17738
17739 done
17740
17741
17742   ;;
17743 xdynamic)
17744   dynamic_targets="$dynamic_targets if_server.\$(so)"
17745
17746   ;;
17747 *)
17748
17749   ;;
17750 esac
17751
17752
17753
17754
17755
17756 if false; then
17757   ENABLE_ALSASEQ_TRUE=
17758   ENABLE_ALSASEQ_FALSE='#'
17759 else
17760   ENABLE_ALSASEQ_TRUE='#'
17761   ENABLE_ALSASEQ_FALSE=
17762 fi
17763
17764 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17765 if test "${enable_alsaseq+set}" = set; then
17766   enableval="$enable_alsaseq"
17767   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
17768 fi;
17769 case "x$enable_alsaseq" in
17770 xyes)
17771   cat >> confdefs.h <<EOF
17772 #define IA_ALSASEQ 1
17773 EOF
17774
17775
17776
17777 if true; then
17778   ENABLE_ALSASEQ_TRUE=
17779   ENABLE_ALSASEQ_FALSE='#'
17780 else
17781   ENABLE_ALSASEQ_TRUE='#'
17782   ENABLE_ALSASEQ_FALSE=
17783 fi
17784
17785    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17786     alsa_save_CFLAGS="$CFLAGS"
17787 alsa_save_LDFLAGS="$LDFLAGS"
17788 alsa_save_LIBS="$LIBS"
17789 alsa_found=yes
17790
17791
17792 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17793 if test "${with_alsa_prefix+set}" = set; then
17794   withval="$with_alsa_prefix"
17795   alsa_prefix="$withval"
17796 else
17797   alsa_prefix=""
17798 fi;
17799
17800
17801 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17802 if test "${with_alsa_inc_prefix+set}" = set; then
17803   withval="$with_alsa_inc_prefix"
17804   alsa_inc_prefix="$withval"
17805 else
17806   alsa_inc_prefix=""
17807 fi;
17808
17809 # Check whether --enable-alsatest or --disable-alsatest was given.
17810 if test "${enable_alsatest+set}" = set; then
17811   enableval="$enable_alsatest"
17812   enable_alsatest=no
17813 else
17814   enable_alsatest=yes
17815 fi;
17816
17817 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17818 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17819 if test "$alsa_inc_prefix" != "" ; then
17820         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17821         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17822 fi
17823 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17824 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17825
17826 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17827 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17828 if test "$alsa_prefix" != "" ; then
17829         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17830         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17831 fi
17832
17833 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17834 LIBS=`echo $LIBS | sed 's/-lm//'`
17835 LIBS=`echo $LIBS | sed 's/-ldl//'`
17836 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17837 LIBS=`echo $LIBS | sed 's/  //'`
17838 LIBS="$ALSA_LIBS $LIBS"
17839 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17840 echo "${ECHO_T}$ALSA_LIBS" >&6
17841
17842 min_alsa_version=0.1.1
17843 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17844 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17845 no_alsa=""
17846     alsa_min_major_version=`echo $min_alsa_version | \
17847            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17848     alsa_min_minor_version=`echo $min_alsa_version | \
17849            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17850     alsa_min_micro_version=`echo $min_alsa_version | \
17851            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17852
17853
17854
17855
17856 ac_ext=c
17857 ac_cpp='$CPP $CPPFLAGS'
17858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17861
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h.  */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h.  */
17868
17869 #include <alsa/asoundlib.h>
17870
17871 int
17872 main ()
17873 {
17874
17875 /* ensure backward compatibility */
17876 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17877 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17878 #endif
17879 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17880 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17881 #endif
17882 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17883 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17884 #endif
17885
17886 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17887   exit(0);
17888 #  else
17889 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17890 #       error not present
17891 #    endif
17892
17893 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17894   exit(0);
17895 #   else
17896 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17897 #          error not present
17898 #      endif
17899
17900 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17901 #        error not present
17902 #      endif
17903 #    endif
17904 #  endif
17905 exit(0);
17906
17907   ;
17908   return 0;
17909 }
17910 _ACEOF
17911 rm -f conftest.$ac_objext
17912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17913   (eval $ac_compile) 2>conftest.er1
17914   ac_status=$?
17915   grep -v '^ *+' conftest.er1 >conftest.err
17916   rm -f conftest.er1
17917   cat conftest.err >&5
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } &&
17920          { ac_try='test -z "$ac_c_werror_flag"
17921                          || test ! -s conftest.err'
17922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923   (eval $ac_try) 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; } &&
17927          { ac_try='test -s conftest.$ac_objext'
17928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929   (eval $ac_try) 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); }; }; then
17933   echo "$as_me:$LINENO: result: found." >&5
17934 echo "${ECHO_T}found." >&6
17935 else
17936   echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17938
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945
17946 #include <sys/asoundlib.h>
17947
17948 int
17949 main ()
17950 {
17951
17952 /* ensure backward compatibility */
17953 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17954 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17955 #endif
17956 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17957 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17958 #endif
17959 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17960 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17961 #endif
17962
17963 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17964   exit(0);
17965 #  else
17966 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17967 #       error not present
17968 #    endif
17969
17970 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17971   exit(0);
17972 #   else
17973 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17974 #          error not present
17975 #      endif
17976
17977 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17978 #        error not present
17979 #      endif
17980 #    endif
17981 #  endif
17982 exit(0);
17983
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext
17989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17990   (eval $ac_compile) 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_c_werror_flag"
17998                          || test ! -s conftest.err'
17999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000   (eval $ac_try) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; } &&
18004          { ac_try='test -s conftest.$ac_objext'
18005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006   (eval $ac_try) 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; }; then
18010   echo "$as_me:$LINENO: result: found." >&5
18011 echo "${ECHO_T}found." >&6
18012 else
18013   echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 echo "$as_me:$LINENO: result: not present." >&5
18017 echo "${ECHO_T}not present." >&6
18018    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18019 echo "${ECHO_T}libasound was not found anywhere." >&6
18020    alsa_found=no
18021 fi
18022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18023    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18024 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18025
18026 fi
18027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18028 ac_ext=c
18029 ac_cpp='$CPP $CPPFLAGS'
18030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18033
18034
18035
18036 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18037 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18038 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-lasound  $LIBS"
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049
18050 /* Override any gcc2 internal prototype to avoid an error.  */
18051 #ifdef __cplusplus
18052 extern "C"
18053 #endif
18054 /* We use char because int might match the return type of a gcc2
18055    builtin and then its argument prototype would still apply.  */
18056 char snd_ctl_open ();
18057 int
18058 main ()
18059 {
18060 snd_ctl_open ();
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067   (eval $ac_link) 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } &&
18074          { ac_try='test -z "$ac_c_werror_flag"
18075                          || test ! -s conftest.err'
18076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077   (eval $ac_try) 2>&5
18078   ac_status=$?
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); }; } &&
18081          { ac_try='test -s conftest$ac_exeext'
18082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083   (eval $ac_try) 2>&5
18084   ac_status=$?
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); }; }; then
18087   ac_cv_lib_asound_snd_ctl_open=yes
18088 else
18089   echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18091
18092 ac_cv_lib_asound_snd_ctl_open=no
18093 fi
18094 rm -f conftest.err conftest.$ac_objext \
18095       conftest$ac_exeext conftest.$ac_ext
18096 LIBS=$ac_check_lib_save_LIBS
18097 fi
18098 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18099 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18100 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18101   cat >>confdefs.h <<_ACEOF
18102 #define HAVE_LIBASOUND 1
18103 _ACEOF
18104
18105   LIBS="-lasound $LIBS"
18106
18107 else
18108   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18109 echo "${ECHO_T}No linkable libasound was found." >&6
18110    alsa_found=no
18111
18112 fi
18113
18114
18115 if test "x$alsa_found" = "xyes" ; then
18116    :
18117    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18118    LIBS=`echo $LIBS | sed 's/  //'`
18119    LIBS="-lasound $LIBS"
18120 else
18121    :
18122    CFLAGS="$alsa_save_CFLAGS"
18123    LDFLAGS="$alsa_save_LDFLAGS"
18124    LIBS="$alsa_save_LIBS"
18125    ALSA_CFLAGS=""
18126    ALSA_LIBS=""
18127 fi
18128
18129
18130
18131
18132
18133   ;;
18134 xdynamic)
18135   dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18136
18137   ;;
18138 *)
18139
18140   ;;
18141 esac
18142
18143
18144
18145
18146
18147 if false; then
18148   ENABLE_WINSYN_TRUE=
18149   ENABLE_WINSYN_FALSE='#'
18150 else
18151   ENABLE_WINSYN_TRUE='#'
18152   ENABLE_WINSYN_FALSE=
18153 fi
18154
18155 # Check whether --enable-winsyn or --disable-winsyn was given.
18156 if test "${enable_winsyn+set}" = set; then
18157   enableval="$enable_winsyn"
18158   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
18159 fi;
18160 case "x$enable_winsyn" in
18161 xyes)
18162   cat >> confdefs.h <<EOF
18163 #define IA_WINSYN 1
18164 EOF
18165
18166
18167
18168 if true; then
18169   ENABLE_WINSYN_TRUE=
18170   ENABLE_WINSYN_FALSE='#'
18171 else
18172   ENABLE_WINSYN_TRUE='#'
18173   ENABLE_WINSYN_FALSE=
18174 fi
18175
18176    WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18177   ;;
18178 xdynamic)
18179   dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18180
18181   ;;
18182 *)
18183
18184   ;;
18185 esac
18186
18187
18188
18189
18190
18191 if false; then
18192   ENABLE_PORTMIDISYN_TRUE=
18193   ENABLE_PORTMIDISYN_FALSE='#'
18194 else
18195   ENABLE_PORTMIDISYN_TRUE='#'
18196   ENABLE_PORTMIDISYN_FALSE=
18197 fi
18198
18199 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18200 if test "${enable_portmidisyn+set}" = set; then
18201   enableval="$enable_portmidisyn"
18202   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
18203 fi;
18204 case "x$enable_portmidisyn" in
18205 xyes)
18206   cat >> confdefs.h <<EOF
18207 #define IA_PORTMIDISYN 1
18208 EOF
18209
18210
18211
18212 if true; then
18213   ENABLE_PORTMIDISYN_TRUE=
18214   ENABLE_PORTMIDISYN_FALSE='#'
18215 else
18216   ENABLE_PORTMIDISYN_TRUE='#'
18217   ENABLE_PORTMIDISYN_FALSE=
18218 fi
18219
18220    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18221   ;;
18222 xdynamic)
18223   dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18224
18225   ;;
18226 *)
18227
18228   ;;
18229 esac
18230
18231
18232
18233
18234
18235 if false; then
18236   ENABLE_W32G_SYN_TRUE=
18237   ENABLE_W32G_SYN_FALSE='#'
18238 else
18239   ENABLE_W32G_SYN_TRUE='#'
18240   ENABLE_W32G_SYN_FALSE=
18241 fi
18242
18243 # Check whether --enable-winsyng or --disable-winsyng was given.
18244 if test "${enable_winsyng+set}" = set; then
18245   enableval="$enable_winsyng"
18246   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
18247 fi;
18248 case "x$enable_winsyng" in
18249 xyes)
18250   cat >> confdefs.h <<EOF
18251 #define IA_W32G_SYN 1
18252 EOF
18253
18254
18255
18256 if true; then
18257   ENABLE_W32G_SYN_TRUE=
18258   ENABLE_W32G_SYN_FALSE='#'
18259 else
18260   ENABLE_W32G_SYN_TRUE='#'
18261   ENABLE_W32G_SYN_FALSE=
18262 fi
18263
18264
18265   W32G_GUI=yes
18266   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18267     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18268     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18269     lib_user32_opt='user32.lib'
18270     if test "x$VCPP" = xyes; then
18271           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18272         fi
18273         if test "x$BORLANDC" = xyes; then
18274           BORLANDC_START='C0W32.OBJ'
18275           CFLAGS="$CFLAGS -tW"
18276           lib_w32gui_opt="-aa $lib_w32gui_opt"
18277         fi
18278         if test "x$WATCOM_C" = xyes; then
18279           CFLAGS="$CFLAGS -bw"
18280           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18281         fi
18282         if test "x$DMC" = xyes; then
18283           DLLFLAG="-WA"
18284           lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
18285         fi
18286   else
18287         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18288     lib_user32_opt='-luser32'
18289     LDFLAGS="-mwindows $LDFLAGS"
18290     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"
18291   fi
18292
18293   ;;
18294 xdynamic)
18295   dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18296
18297   ;;
18298 *)
18299
18300   ;;
18301 esac
18302
18303
18304
18305
18306
18307
18308 if false; then
18309   ENABLE_W32GUI_TRUE=
18310   ENABLE_W32GUI_FALSE='#'
18311 else
18312   ENABLE_W32GUI_TRUE='#'
18313   ENABLE_W32GUI_FALSE=
18314 fi
18315
18316 # Check whether --enable-w32gui or --disable-w32gui was given.
18317 if test "${enable_w32gui+set}" = set; then
18318   enableval="$enable_w32gui"
18319   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
18320 fi;
18321 case "x$enable_w32gui" in
18322 xyes)
18323   cat >> confdefs.h <<EOF
18324 #define IA_W32GUI 1
18325 EOF
18326
18327
18328
18329 if true; then
18330   ENABLE_W32GUI_TRUE=
18331   ENABLE_W32GUI_FALSE='#'
18332 else
18333   ENABLE_W32GUI_TRUE='#'
18334   ENABLE_W32GUI_FALSE=
18335 fi
18336
18337
18338   W32G_GUI=yes
18339   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18340         INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
18341     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18342     lib_user32_opt='user32.lib'
18343     if test "x$VCPP" = xyes; then
18344           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18345         fi
18346         if test "x$BORLANDC" = xyes; then
18347           BORLANDC_START='C0W32.OBJ'
18348           CFLAGS="$CFLAGS -tW"
18349           lib_w32gui_opt="-aa $lib_w32gui_opt"
18350         fi
18351         if test "x$WATCOM_C" = xyes; then
18352           CFLAGS="$CFLAGS -bw"
18353           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18354         fi
18355         if test "x$DMC" = xyes; then
18356           lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
18357           DLLFLAG="-WA"
18358         fi
18359   else
18360     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18361     lib_user32_opt='-luser32'
18362     LDFLAGS="-mwindows $LDFLAGS"
18363     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"
18364   fi
18365
18366   ;;
18367 xdynamic)
18368   dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18369
18370   ;;
18371 *)
18372
18373   ;;
18374 esac
18375
18376
18377
18378
18379
18380 if false; then
18381   ENABLE_PLUGIN_TRUE=
18382   ENABLE_PLUGIN_FALSE='#'
18383 else
18384   ENABLE_PLUGIN_TRUE='#'
18385   ENABLE_PLUGIN_FALSE=
18386 fi
18387
18388 # Check whether --enable-ump or --disable-ump was given.
18389 if test "${enable_ump+set}" = set; then
18390   enableval="$enable_ump"
18391   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
18392         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
18393 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
18394    { (exit 1); exit 1; }; }
18395     fi
18396     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18397   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18398 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18399 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 fi
18402 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18403 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18404 else
18405   # Is the header compilable?
18406 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18407 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h.  */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h.  */
18414 $ac_includes_default
18415 #include <X11/xpm.h>
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419   (eval $ac_compile) 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } &&
18426          { ac_try='test -z "$ac_c_werror_flag"
18427                          || test ! -s conftest.err'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; } &&
18433          { ac_try='test -s conftest.$ac_objext'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; }; then
18439   ac_header_compiler=yes
18440 else
18441   echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 ac_header_compiler=no
18445 fi
18446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18448 echo "${ECHO_T}$ac_header_compiler" >&6
18449
18450 # Is the header present?
18451 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18452 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459 #include <X11/xpm.h>
18460 _ACEOF
18461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18463   ac_status=$?
18464   grep -v '^ *+' conftest.er1 >conftest.err
18465   rm -f conftest.er1
18466   cat conftest.err >&5
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } >/dev/null; then
18469   if test -s conftest.err; then
18470     ac_cpp_err=$ac_c_preproc_warn_flag
18471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18472   else
18473     ac_cpp_err=
18474   fi
18475 else
18476   ac_cpp_err=yes
18477 fi
18478 if test -z "$ac_cpp_err"; then
18479   ac_header_preproc=yes
18480 else
18481   echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484   ac_header_preproc=no
18485 fi
18486 rm -f conftest.err conftest.$ac_ext
18487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18488 echo "${ECHO_T}$ac_header_preproc" >&6
18489
18490 # So?  What about this header?
18491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18492   yes:no: )
18493     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18494 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18495     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18496 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18497     ac_header_preproc=yes
18498     ;;
18499   no:yes:* )
18500     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18501 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18502     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
18503 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
18504     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18505 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18506     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
18507 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18508     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18509 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18510     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18511 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18512     (
18513       cat <<\_ASBOX
18514 ## ------------------------------- ##
18515 ## Report this to root@mput.dip.jp ##
18516 ## ------------------------------- ##
18517 _ASBOX
18518     ) |
18519       sed "s/^/$as_me: WARNING:     /" >&2
18520     ;;
18521 esac
18522 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18523 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18524 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   ac_cv_header_X11_xpm_h=$ac_header_preproc
18528 fi
18529 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18530 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18531
18532 fi
18533 if test $ac_cv_header_X11_xpm_h = yes; then
18534   :
18535 else
18536   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18537 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18538    { (exit 1); exit 1; }; }
18539 fi
18540
18541
18542     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18543 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18544 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18545   echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547   ac_check_lib_save_LIBS=$LIBS
18548 LIBS="-lXpm  $LIBS"
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555
18556 /* Override any gcc2 internal prototype to avoid an error.  */
18557 #ifdef __cplusplus
18558 extern "C"
18559 #endif
18560 /* We use char because int might match the return type of a gcc2
18561    builtin and then its argument prototype would still apply.  */
18562 char XpmCreatePixmapFromData ();
18563 int
18564 main ()
18565 {
18566 XpmCreatePixmapFromData ();
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573   (eval $ac_link) 2>conftest.er1
18574   ac_status=$?
18575   grep -v '^ *+' conftest.er1 >conftest.err
18576   rm -f conftest.er1
18577   cat conftest.err >&5
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); } &&
18580          { ac_try='test -z "$ac_c_werror_flag"
18581                          || test ! -s conftest.err'
18582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583   (eval $ac_try) 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; } &&
18587          { ac_try='test -s conftest$ac_exeext'
18588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589   (eval $ac_try) 2>&5
18590   ac_status=$?
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); }; }; then
18593   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18594 else
18595   echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18599 fi
18600 rm -f conftest.err conftest.$ac_objext \
18601       conftest$ac_exeext conftest.$ac_ext
18602 LIBS=$ac_check_lib_save_LIBS
18603 fi
18604 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18605 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18606 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18607   :
18608 else
18609   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18610 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18611    { (exit 1); exit 1; }; }
18612 fi
18613
18614     if test "x$have_xext" = xyes; then
18615       lib_xext_opt=-lXext
18616     fi
18617     if test "x$have_xprelibs" = xyes; then
18618       lib_xprelibs_opt='-lSM -lICE'
18619     fi
18620     lib_xmu_opt=-lXmu
18621     lib_xt_opt=-lXt
18622    ;; esac
18623 fi;
18624 case "x$enable_ump" in
18625 xyes)
18626   cat >> confdefs.h <<EOF
18627 #define IA_PLUGIN 1
18628 EOF
18629
18630
18631
18632 if true; then
18633   ENABLE_PLUGIN_TRUE=
18634   ENABLE_PLUGIN_FALSE='#'
18635 else
18636   ENABLE_PLUGIN_TRUE='#'
18637   ENABLE_PLUGIN_FALSE=
18638 fi
18639
18640
18641   ;;
18642 xdynamic)
18643   dynamic_targets="$dynamic_targets if_ump.\$(so)"
18644
18645   ;;
18646 *)
18647
18648   ;;
18649 esac
18650
18651
18652
18653 # Check whether --enable-windrv or --disable-windrv was given.
18654 if test "${enable_windrv+set}" = set; then
18655   enableval="$enable_windrv"
18656    if test "$enableval" = "yes"; then
18657       if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes"; then
18658         { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&5
18659 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&2;}
18660    { (exit 1); exit 1; }; }
18661           elif test "x$WINSYN" != "xyes"; then
18662         { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
18663 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
18664    { (exit 1); exit 1; }; }
18665           else
18666
18667 cat >>confdefs.h <<\_ACEOF
18668 #define WINDRV 1
18669 _ACEOF
18670
18671     WINDRV=yes
18672     if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
18673     if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
18674     CFLAGS="$CFLAGS -DANOTHER_MAIN "
18675       fi
18676     fi
18677 fi;
18678 CFLAGS="$CFLAGS $DLLFLAG "
18679
18680 # Check whether --enable-offix or --disable-offix was given.
18681 if test "${enable_offix+set}" = set; then
18682   enableval="$enable_offix"
18683    if test "$enableval" = "yes"; then
18684       KEEPCPPFLAGS=$CPPFLAGS
18685       KEEPLIBS=$LIBS
18686       KEEPLDFLAGS=$LDFLAGS
18687       CPPFLAGS="$CPPFLAGS $offix_include_dir"
18688       LDFLAGS="$LDFLAGS $offix_lib_dir"
18689       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18690       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18691 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18692 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18693   echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695   ac_check_lib_save_LIBS=$LIBS
18696 LIBS="-lDnd  $LIBS"
18697 cat >conftest.$ac_ext <<_ACEOF
18698 /* confdefs.h.  */
18699 _ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h.  */
18703
18704 /* Override any gcc2 internal prototype to avoid an error.  */
18705 #ifdef __cplusplus
18706 extern "C"
18707 #endif
18708 /* We use char because int might match the return type of a gcc2
18709    builtin and then its argument prototype would still apply.  */
18710 char DndInitialize ();
18711 int
18712 main ()
18713 {
18714 DndInitialize ();
18715   ;
18716   return 0;
18717 }
18718 _ACEOF
18719 rm -f conftest.$ac_objext conftest$ac_exeext
18720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18721   (eval $ac_link) 2>conftest.er1
18722   ac_status=$?
18723   grep -v '^ *+' conftest.er1 >conftest.err
18724   rm -f conftest.er1
18725   cat conftest.err >&5
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); } &&
18728          { ac_try='test -z "$ac_c_werror_flag"
18729                          || test ! -s conftest.err'
18730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731   (eval $ac_try) 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; } &&
18735          { ac_try='test -s conftest$ac_exeext'
18736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737   (eval $ac_try) 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; }; then
18741   ac_cv_lib_Dnd_DndInitialize=yes
18742 else
18743   echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18745
18746 ac_cv_lib_Dnd_DndInitialize=no
18747 fi
18748 rm -f conftest.err conftest.$ac_objext \
18749       conftest$ac_exeext conftest.$ac_ext
18750 LIBS=$ac_check_lib_save_LIBS
18751 fi
18752 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18753 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18754 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18755
18756         LIBS=$KEEPLIBS
18757         lib_offix_opt="-lDnd"
18758
18759 cat >>confdefs.h <<\_ACEOF
18760 #define OFFIX 1
18761 _ACEOF
18762
18763
18764 else
18765    LDFLAGS=$KEEPLDFLAGS
18766         CPPFLAGS=$KEEPCPPFLAGS
18767         LIBS=$KEEPLIBS
18768
18769 fi
18770
18771     fi
18772
18773 fi;
18774
18775 # Check whether --enable-network or --disable-network was given.
18776 if test "${enable_network+set}" = set; then
18777   enableval="$enable_network"
18778    if test "$enableval" = "yes"; then
18779
18780 cat >>confdefs.h <<\_ACEOF
18781 #define SUPPORT_SOCKET 1
18782 _ACEOF
18783
18784     fi
18785 fi;
18786
18787
18788 if test "x$enable_network" = "xyes"; then
18789   ENABLE_NETWORK_TRUE=
18790   ENABLE_NETWORK_FALSE='#'
18791 else
18792   ENABLE_NETWORK_TRUE='#'
18793   ENABLE_NETWORK_FALSE=
18794 fi
18795
18796
18797 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18798 if test "${enable_spectrogram+set}" = set; then
18799   enableval="$enable_spectrogram"
18800    if test "$enableval" = "yes"; then
18801       if test "x$with_x" != xyes; then
18802         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18803 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18804    { (exit 1); exit 1; }; }
18805       fi
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define SUPPORT_SOUNDSPEC 1
18809 _ACEOF
18810
18811     fi
18812 fi;
18813
18814
18815 if test "x$enable_spectrogram" = "xyes"; then
18816   ENABLE_SOUND_SPEC_TRUE=
18817   ENABLE_SOUND_SPEC_FALSE='#'
18818 else
18819   ENABLE_SOUND_SPEC_TRUE='#'
18820   ENABLE_SOUND_SPEC_FALSE=
18821 fi
18822
18823
18824 # Check whether --enable-spline or --disable-spline was given.
18825 if test "${enable_spline+set}" = set; then
18826   enableval="$enable_spline"
18827    case "x$enableval" in
18828       xlinear)
18829
18830 cat >>confdefs.h <<\_ACEOF
18831 #define DEFAULT_RESAMPLATION resample_linear
18832 _ACEOF
18833
18834         ;;
18835       xcubic)
18836
18837 cat >>confdefs.h <<\_ACEOF
18838 #define DEFAULT_RESAMPLATION resample_cspline
18839 _ACEOF
18840
18841         ;;
18842       xlagrange)
18843
18844 cat >>confdefs.h <<\_ACEOF
18845 #define DEFAULT_RESAMPLATION resample_lagrange
18846 _ACEOF
18847
18848         ;;
18849       xnewton)
18850
18851 cat >>confdefs.h <<\_ACEOF
18852 #define DEFAULT_RESAMPLATION resample_newton
18853 _ACEOF
18854
18855         ;;
18856       xgauss)
18857
18858 cat >>confdefs.h <<\_ACEOF
18859 #define DEFAULT_RESAMPLATION resample_gauss
18860 _ACEOF
18861
18862         ;;
18863       xno)
18864
18865 cat >>confdefs.h <<\_ACEOF
18866 #define DEFAULT_RESAMPLATION resample_none
18867 _ACEOF
18868
18869         ;;
18870       *)
18871         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18872 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18873    { (exit 1); exit 1; }; }
18874         ;;
18875     esac
18876 fi;
18877
18878 # Check whether --enable-wrd or --disable-wrd was given.
18879 if test "${enable_wrd+set}" = set; then
18880   enableval="$enable_wrd"
18881    if test "$enableval" = "yes"; then
18882       if test "x$with_x" != xyes; then
18883         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18884 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18885    { (exit 1); exit 1; }; }
18886       fi
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define WRDT_X 1
18890 _ACEOF
18891
18892       enable_sherry_wrd=yes
18893       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18894 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18895 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-lz  $LIBS"
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906
18907 /* Override any gcc2 internal prototype to avoid an error.  */
18908 #ifdef __cplusplus
18909 extern "C"
18910 #endif
18911 /* We use char because int might match the return type of a gcc2
18912    builtin and then its argument prototype would still apply.  */
18913 char zlibVersion ();
18914 int
18915 main ()
18916 {
18917 zlibVersion ();
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18924   (eval $ac_link) 2>conftest.er1
18925   ac_status=$?
18926   grep -v '^ *+' conftest.er1 >conftest.err
18927   rm -f conftest.er1
18928   cat conftest.err >&5
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); } &&
18931          { ac_try='test -z "$ac_c_werror_flag"
18932                          || test ! -s conftest.err'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest$ac_exeext'
18939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940   (eval $ac_try) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); }; }; then
18944   ac_cv_lib_z_zlibVersion=yes
18945 else
18946   echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 ac_cv_lib_z_zlibVersion=no
18950 fi
18951 rm -f conftest.err conftest.$ac_objext \
18952       conftest$ac_exeext conftest.$ac_ext
18953 LIBS=$ac_check_lib_save_LIBS
18954 fi
18955 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18956 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18957 if test $ac_cv_lib_z_zlibVersion = yes; then
18958   :
18959 else
18960   enable_sherry_wrd=no
18961 fi
18962
18963       if test "${ac_cv_header_png_h+set}" = set; then
18964   echo "$as_me:$LINENO: checking for png.h" >&5
18965 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18966 if test "${ac_cv_header_png_h+set}" = set; then
18967   echo $ECHO_N "(cached) $ECHO_C" >&6
18968 fi
18969 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18970 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18971 else
18972   # Is the header compilable?
18973 echo "$as_me:$LINENO: checking png.h usability" >&5
18974 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h.  */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h.  */
18981 $ac_includes_default
18982 #include <png.h>
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986   (eval $ac_compile) 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } &&
18993          { ac_try='test -z "$ac_c_werror_flag"
18994                          || test ! -s conftest.err'
18995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996   (eval $ac_try) 2>&5
18997   ac_status=$?
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); }; } &&
19000          { ac_try='test -s conftest.$ac_objext'
19001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002   (eval $ac_try) 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; }; then
19006   ac_header_compiler=yes
19007 else
19008   echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 ac_header_compiler=no
19012 fi
19013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19015 echo "${ECHO_T}$ac_header_compiler" >&6
19016
19017 # Is the header present?
19018 echo "$as_me:$LINENO: checking png.h presence" >&5
19019 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19020 cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h.  */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h.  */
19026 #include <png.h>
19027 _ACEOF
19028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
19033   cat conftest.err >&5
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } >/dev/null; then
19036   if test -s conftest.err; then
19037     ac_cpp_err=$ac_c_preproc_warn_flag
19038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19039   else
19040     ac_cpp_err=
19041   fi
19042 else
19043   ac_cpp_err=yes
19044 fi
19045 if test -z "$ac_cpp_err"; then
19046   ac_header_preproc=yes
19047 else
19048   echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19050
19051   ac_header_preproc=no
19052 fi
19053 rm -f conftest.err conftest.$ac_ext
19054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19055 echo "${ECHO_T}$ac_header_preproc" >&6
19056
19057 # So?  What about this header?
19058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19059   yes:no: )
19060     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19061 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19062     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19063 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19064     ac_header_preproc=yes
19065     ;;
19066   no:yes:* )
19067     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19068 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19069     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19070 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19071     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19072 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19073     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19074 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19075     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19076 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19077     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19078 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19079     (
19080       cat <<\_ASBOX
19081 ## ------------------------------- ##
19082 ## Report this to root@mput.dip.jp ##
19083 ## ------------------------------- ##
19084 _ASBOX
19085     ) |
19086       sed "s/^/$as_me: WARNING:     /" >&2
19087     ;;
19088 esac
19089 echo "$as_me:$LINENO: checking for png.h" >&5
19090 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19091 if test "${ac_cv_header_png_h+set}" = set; then
19092   echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094   ac_cv_header_png_h=$ac_header_preproc
19095 fi
19096 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19097 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19098
19099 fi
19100 if test $ac_cv_header_png_h = yes; then
19101   :
19102 else
19103   enable_sherry_wrd=no
19104 fi
19105
19106
19107       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19108 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19109 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19110   echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112   ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lpng -lz $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120
19121 /* Override any gcc2 internal prototype to avoid an error.  */
19122 #ifdef __cplusplus
19123 extern "C"
19124 #endif
19125 /* We use char because int might match the return type of a gcc2
19126    builtin and then its argument prototype would still apply.  */
19127 char png_init_io ();
19128 int
19129 main ()
19130 {
19131 png_init_io ();
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19138   (eval $ac_link) 2>conftest.er1
19139   ac_status=$?
19140   grep -v '^ *+' conftest.er1 >conftest.err
19141   rm -f conftest.er1
19142   cat conftest.err >&5
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); } &&
19145          { ac_try='test -z "$ac_c_werror_flag"
19146                          || test ! -s conftest.err'
19147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148   (eval $ac_try) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; } &&
19152          { ac_try='test -s conftest$ac_exeext'
19153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154   (eval $ac_try) 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; }; then
19158   ac_cv_lib_png_png_init_io=yes
19159 else
19160   echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 ac_cv_lib_png_png_init_io=no
19164 fi
19165 rm -f conftest.err conftest.$ac_objext \
19166       conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19168 fi
19169 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19170 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19171 if test $ac_cv_lib_png_png_init_io = yes; then
19172   :
19173 else
19174   enable_sherry_wrd=no
19175 fi
19176
19177       if test "$enable_sherry_wrd" = yes; then
19178
19179 cat >>confdefs.h <<\_ACEOF
19180 #define ENABLE_SHERRY 1
19181 _ACEOF
19182
19183         lib_zip_opt=-lz
19184         lib_png_opt=-lpng
19185       else
19186          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19187 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19188       fi
19189       if test "x$have_xext" = xyes; then
19190         lib_xext_opt=-lXext
19191       fi
19192     fi
19193 fi;
19194
19195
19196
19197
19198 #
19199 # Finish up
19200 #
19201
19202
19203
19204 if test "x$enable_wrd" = "xyes"; then
19205   ENABLE_WRD_TRUE=
19206   ENABLE_WRD_FALSE='#'
19207 else
19208   ENABLE_WRD_TRUE='#'
19209   ENABLE_WRD_FALSE=
19210 fi
19211
19212
19213
19214 if test "x$W32G_GUI" = xyes; then
19215   W32G_GUI_TRUE=
19216   W32G_GUI_FALSE='#'
19217 else
19218   W32G_GUI_TRUE='#'
19219   W32G_GUI_FALSE=
19220 fi
19221
19222
19223
19224 if test "x$WINDRV" = xyes; then
19225   WINDRV_TRUE=
19226   WINDRV_FALSE='#'
19227 else
19228   WINDRV_TRUE='#'
19229   WINDRV_FALSE=
19230 fi
19231
19232
19233
19234 if test "x$MSYS" = xyes; then
19235   MSYS_TRUE=
19236   MSYS_FALSE='#'
19237 else
19238   MSYS_TRUE='#'
19239   MSYS_FALSE=
19240 fi
19241
19242
19243
19244 if test "x$VCPP" = xyes; then
19245   VCPP_TRUE=
19246   VCPP_FALSE='#'
19247 else
19248   VCPP_TRUE='#'
19249   VCPP_FALSE=
19250 fi
19251
19252
19253
19254 if test "x$BORLANDC" = xyes; then
19255   BORLANDC_TRUE=
19256   BORLANDC_FALSE='#'
19257 else
19258   BORLANDC_TRUE='#'
19259   BORLANDC_FALSE=
19260 fi
19261
19262
19263
19264 if test "x$WATCOM_C" = xyes; then
19265   WATCOM_C_TRUE=
19266   WATCOM_C_FALSE='#'
19267 else
19268   WATCOM_C_TRUE='#'
19269   WATCOM_C_FALSE=
19270 fi
19271
19272
19273
19274 if test "x$DMC" = xyes; then
19275   DMC_TRUE=
19276   DMC_FALSE='#'
19277 else
19278   DMC_TRUE='#'
19279   DMC_FALSE=
19280 fi
19281
19282
19283
19284 if test "x$MINGWGCC" = xyes; then
19285   MINGWGCC_TRUE=
19286   MINGWGCC_FALSE='#'
19287 else
19288   MINGWGCC_TRUE='#'
19289   MINGWGCC_FALSE=
19290 fi
19291
19292
19293
19294
19295 if test "x$W32READDIR" = "xyes"; then
19296   W32READDIR_TRUE=
19297   W32READDIR_FALSE='#'
19298 else
19299   W32READDIR_TRUE='#'
19300   W32READDIR_FALSE=
19301 fi
19302
19303
19304 rm -f wordtmp >/dev/null 2>&1
19305 val=''
19306 for f in $LDFLAGS; do
19307   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19308   :
19309 else
19310   echo $f >>wordtmp; val="$val $f"
19311 fi
19312
19313 done
19314 LDFLAGS="$val"
19315 rm -f wordtmp >/dev/null 2>&1
19316
19317 rm -f wordtmp >/dev/null 2>&1
19318 val=''
19319 for f in $SHLDFLAGS; do
19320   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19321   :
19322 else
19323   echo $f >>wordtmp; val="$val $f"
19324 fi
19325
19326 done
19327 SHLDFLAGS="$val"
19328 rm -f wordtmp >/dev/null 2>&1
19329
19330 rm -f wordtmp >/dev/null 2>&1
19331 val=''
19332 for f in $EXTRACFLAGS $CFLAGS; do
19333   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19334   :
19335 else
19336   echo $f >>wordtmp; val="$val $f"
19337 fi
19338
19339 done
19340 CFLAGS="$val"
19341 rm -f wordtmp >/dev/null 2>&1
19342
19343 rm -f wordtmp >/dev/null 2>&1
19344 val=''
19345 for f in $CPPFLAGS $EXTRADEFS; do
19346   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19347   :
19348 else
19349   echo $f >>wordtmp; val="$val $f"
19350 fi
19351
19352 done
19353 CPPFLAGS="$val"
19354 rm -f wordtmp >/dev/null 2>&1
19355
19356
19357 if test "x$oss_device" != x; then
19358
19359 cat >>confdefs.h <<_ACEOF
19360 #define OSS_DEVICE "$oss_device"
19361 _ACEOF
19362
19363 fi
19364
19365 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19366
19367 cat >>confdefs.h <<_ACEOF
19368 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19369 _ACEOF
19370
19371 fi
19372
19373 if test "x$with_x" = xyes; then
19374     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/"`
19375 fi
19376 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19377 SHLD="$SHLD $SHLDFLAGS"
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402                                                                                                                                                                                               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 windrv/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
19403
19404 cat >confcache <<\_ACEOF
19405 # This file is a shell script that caches the results of configure
19406 # tests run on this system so they can be shared between configure
19407 # scripts and configure runs, see configure's option --config-cache.
19408 # It is not useful on other systems.  If it contains results you don't
19409 # want to keep, you may remove or edit it.
19410 #
19411 # config.status only pays attention to the cache file if you give it
19412 # the --recheck option to rerun configure.
19413 #
19414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19416 # following values.
19417
19418 _ACEOF
19419
19420 # The following way of writing the cache mishandles newlines in values,
19421 # but we know of no workaround that is simple, portable, and efficient.
19422 # So, don't put newlines in cache variables' values.
19423 # Ultrix sh set writes to stderr and can't be redirected directly,
19424 # and sets the high bit in the cache file unless we assign to the vars.
19425 {
19426   (set) 2>&1 |
19427     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19428     *ac_space=\ *)
19429       # `set' does not quote correctly, so add quotes (double-quote
19430       # substitution turns \\\\ into \\, and sed turns \\ into \).
19431       sed -n \
19432         "s/'/'\\\\''/g;
19433           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19434       ;;
19435     *)
19436       # `set' quotes correctly as required by POSIX, so do not add quotes.
19437       sed -n \
19438         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19439       ;;
19440     esac;
19441 } |
19442   sed '
19443      t clear
19444      : clear
19445      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19446      t end
19447      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19448      : end' >>confcache
19449 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19450   if test -w $cache_file; then
19451     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19452     cat confcache >$cache_file
19453   else
19454     echo "not updating unwritable cache $cache_file"
19455   fi
19456 fi
19457 rm -f confcache
19458
19459 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19460 # Let make expand exec_prefix.
19461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19462
19463 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19464 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19465 # trailing colons and then remove the whole line if VPATH becomes empty
19466 # (actually we leave an empty line to preserve line numbers).
19467 if test "x$srcdir" = x.; then
19468   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19469 s/:*\$(srcdir):*/:/;
19470 s/:*\${srcdir}:*/:/;
19471 s/:*@srcdir@:*/:/;
19472 s/^\([^=]*=[     ]*\):*/\1/;
19473 s/:*$//;
19474 s/^[^=]*=[       ]*$//;
19475 }'
19476 fi
19477
19478 DEFS=-DHAVE_CONFIG_H
19479
19480 ac_libobjs=
19481 ac_ltlibobjs=
19482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19483   # 1. Remove the extension, and $U if already installed.
19484   ac_i=`echo "$ac_i" |
19485          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19486   # 2. Add them.
19487   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19488   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19489 done
19490 LIBOBJS=$ac_libobjs
19491
19492 LTLIBOBJS=$ac_ltlibobjs
19493
19494
19495 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19496   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19497 Usually this means the macro was only invoked conditionally." >&5
19498 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19499 Usually this means the macro was only invoked conditionally." >&2;}
19500    { (exit 1); exit 1; }; }
19501 fi
19502 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19503   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19504 Usually this means the macro was only invoked conditionally." >&5
19505 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19506 Usually this means the macro was only invoked conditionally." >&2;}
19507    { (exit 1); exit 1; }; }
19508 fi
19509 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19510   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19511 Usually this means the macro was only invoked conditionally." >&5
19512 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19513 Usually this means the macro was only invoked conditionally." >&2;}
19514    { (exit 1); exit 1; }; }
19515 fi
19516 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
19517   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
19518 Usually this means the macro was only invoked conditionally." >&5
19519 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
19520 Usually this means the macro was only invoked conditionally." >&2;}
19521    { (exit 1); exit 1; }; }
19522 fi
19523 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
19524   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
19525 Usually this means the macro was only invoked conditionally." >&5
19526 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
19527 Usually this means the macro was only invoked conditionally." >&2;}
19528    { (exit 1); exit 1; }; }
19529 fi
19530 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19531   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19532 Usually this means the macro was only invoked conditionally." >&5
19533 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19534 Usually this means the macro was only invoked conditionally." >&2;}
19535    { (exit 1); exit 1; }; }
19536 fi
19537 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19538   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19539 Usually this means the macro was only invoked conditionally." >&5
19540 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19541 Usually this means the macro was only invoked conditionally." >&2;}
19542    { (exit 1); exit 1; }; }
19543 fi
19544 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19545   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19546 Usually this means the macro was only invoked conditionally." >&5
19547 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19548 Usually this means the macro was only invoked conditionally." >&2;}
19549    { (exit 1); exit 1; }; }
19550 fi
19551 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19552   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19553 Usually this means the macro was only invoked conditionally." >&5
19554 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19555 Usually this means the macro was only invoked conditionally." >&2;}
19556    { (exit 1); exit 1; }; }
19557 fi
19558 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19559   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19560 Usually this means the macro was only invoked conditionally." >&5
19561 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19562 Usually this means the macro was only invoked conditionally." >&2;}
19563    { (exit 1); exit 1; }; }
19564 fi
19565 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19566   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19567 Usually this means the macro was only invoked conditionally." >&5
19568 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19569 Usually this means the macro was only invoked conditionally." >&2;}
19570    { (exit 1); exit 1; }; }
19571 fi
19572 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19573   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19574 Usually this means the macro was only invoked conditionally." >&5
19575 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19576 Usually this means the macro was only invoked conditionally." >&2;}
19577    { (exit 1); exit 1; }; }
19578 fi
19579 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19580   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19581 Usually this means the macro was only invoked conditionally." >&5
19582 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19583 Usually this means the macro was only invoked conditionally." >&2;}
19584    { (exit 1); exit 1; }; }
19585 fi
19586 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19587   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19588 Usually this means the macro was only invoked conditionally." >&5
19589 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19590 Usually this means the macro was only invoked conditionally." >&2;}
19591    { (exit 1); exit 1; }; }
19592 fi
19593 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19594   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19595 Usually this means the macro was only invoked conditionally." >&5
19596 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19597 Usually this means the macro was only invoked conditionally." >&2;}
19598    { (exit 1); exit 1; }; }
19599 fi
19600 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19601   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19602 Usually this means the macro was only invoked conditionally." >&5
19603 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19604 Usually this means the macro was only invoked conditionally." >&2;}
19605    { (exit 1); exit 1; }; }
19606 fi
19607 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19608   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19609 Usually this means the macro was only invoked conditionally." >&5
19610 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19611 Usually this means the macro was only invoked conditionally." >&2;}
19612    { (exit 1); exit 1; }; }
19613 fi
19614 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19615   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19616 Usually this means the macro was only invoked conditionally." >&5
19617 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19618 Usually this means the macro was only invoked conditionally." >&2;}
19619    { (exit 1); exit 1; }; }
19620 fi
19621 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19622   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19623 Usually this means the macro was only invoked conditionally." >&5
19624 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19625 Usually this means the macro was only invoked conditionally." >&2;}
19626    { (exit 1); exit 1; }; }
19627 fi
19628 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19629   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19630 Usually this means the macro was only invoked conditionally." >&5
19631 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19632 Usually this means the macro was only invoked conditionally." >&2;}
19633    { (exit 1); exit 1; }; }
19634 fi
19635 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19636   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&5
19638 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19639 Usually this means the macro was only invoked conditionally." >&2;}
19640    { (exit 1); exit 1; }; }
19641 fi
19642 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19643   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19644 Usually this means the macro was only invoked conditionally." >&5
19645 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19646 Usually this means the macro was only invoked conditionally." >&2;}
19647    { (exit 1); exit 1; }; }
19648 fi
19649 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19650   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19651 Usually this means the macro was only invoked conditionally." >&5
19652 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19653 Usually this means the macro was only invoked conditionally." >&2;}
19654    { (exit 1); exit 1; }; }
19655 fi
19656 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19657   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19658 Usually this means the macro was only invoked conditionally." >&5
19659 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19660 Usually this means the macro was only invoked conditionally." >&2;}
19661    { (exit 1); exit 1; }; }
19662 fi
19663 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19664   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19665 Usually this means the macro was only invoked conditionally." >&5
19666 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19667 Usually this means the macro was only invoked conditionally." >&2;}
19668    { (exit 1); exit 1; }; }
19669 fi
19670 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19671   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19672 Usually this means the macro was only invoked conditionally." >&5
19673 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19674 Usually this means the macro was only invoked conditionally." >&2;}
19675    { (exit 1); exit 1; }; }
19676 fi
19677 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19678   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19679 Usually this means the macro was only invoked conditionally." >&5
19680 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19681 Usually this means the macro was only invoked conditionally." >&2;}
19682    { (exit 1); exit 1; }; }
19683 fi
19684 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19685   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19686 Usually this means the macro was only invoked conditionally." >&5
19687 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19688 Usually this means the macro was only invoked conditionally." >&2;}
19689    { (exit 1); exit 1; }; }
19690 fi
19691 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19692   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19693 Usually this means the macro was only invoked conditionally." >&5
19694 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19695 Usually this means the macro was only invoked conditionally." >&2;}
19696    { (exit 1); exit 1; }; }
19697 fi
19698 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19699   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19700 Usually this means the macro was only invoked conditionally." >&5
19701 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19702 Usually this means the macro was only invoked conditionally." >&2;}
19703    { (exit 1); exit 1; }; }
19704 fi
19705 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19706   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19707 Usually this means the macro was only invoked conditionally." >&5
19708 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19709 Usually this means the macro was only invoked conditionally." >&2;}
19710    { (exit 1); exit 1; }; }
19711 fi
19712 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19713   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19714 Usually this means the macro was only invoked conditionally." >&5
19715 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19716 Usually this means the macro was only invoked conditionally." >&2;}
19717    { (exit 1); exit 1; }; }
19718 fi
19719 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19720   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19721 Usually this means the macro was only invoked conditionally." >&5
19722 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19723 Usually this means the macro was only invoked conditionally." >&2;}
19724    { (exit 1); exit 1; }; }
19725 fi
19726 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19727   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19728 Usually this means the macro was only invoked conditionally." >&5
19729 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19730 Usually this means the macro was only invoked conditionally." >&2;}
19731    { (exit 1); exit 1; }; }
19732 fi
19733 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19734   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19735 Usually this means the macro was only invoked conditionally." >&5
19736 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19737 Usually this means the macro was only invoked conditionally." >&2;}
19738    { (exit 1); exit 1; }; }
19739 fi
19740 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19741   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19742 Usually this means the macro was only invoked conditionally." >&5
19743 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19744 Usually this means the macro was only invoked conditionally." >&2;}
19745    { (exit 1); exit 1; }; }
19746 fi
19747 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19748   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19749 Usually this means the macro was only invoked conditionally." >&5
19750 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19751 Usually this means the macro was only invoked conditionally." >&2;}
19752    { (exit 1); exit 1; }; }
19753 fi
19754 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19755   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19756 Usually this means the macro was only invoked conditionally." >&5
19757 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19758 Usually this means the macro was only invoked conditionally." >&2;}
19759    { (exit 1); exit 1; }; }
19760 fi
19761 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19762   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19763 Usually this means the macro was only invoked conditionally." >&5
19764 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19765 Usually this means the macro was only invoked conditionally." >&2;}
19766    { (exit 1); exit 1; }; }
19767 fi
19768 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19769   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19770 Usually this means the macro was only invoked conditionally." >&5
19771 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19772 Usually this means the macro was only invoked conditionally." >&2;}
19773    { (exit 1); exit 1; }; }
19774 fi
19775 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19776   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19777 Usually this means the macro was only invoked conditionally." >&5
19778 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19779 Usually this means the macro was only invoked conditionally." >&2;}
19780    { (exit 1); exit 1; }; }
19781 fi
19782 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19783   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19784 Usually this means the macro was only invoked conditionally." >&5
19785 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19786 Usually this means the macro was only invoked conditionally." >&2;}
19787    { (exit 1); exit 1; }; }
19788 fi
19789 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
19790   { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
19791 Usually this means the macro was only invoked conditionally." >&5
19792 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
19793 Usually this means the macro was only invoked conditionally." >&2;}
19794    { (exit 1); exit 1; }; }
19795 fi
19796 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
19797   { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
19798 Usually this means the macro was only invoked conditionally." >&5
19799 echo "$as_me: error: conditional \"WINDRV\" was never defined.
19800 Usually this means the macro was only invoked conditionally." >&2;}
19801    { (exit 1); exit 1; }; }
19802 fi
19803 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
19804   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
19805 Usually this means the macro was only invoked conditionally." >&5
19806 echo "$as_me: error: conditional \"MSYS\" was never defined.
19807 Usually this means the macro was only invoked conditionally." >&2;}
19808    { (exit 1); exit 1; }; }
19809 fi
19810 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
19811   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
19812 Usually this means the macro was only invoked conditionally." >&5
19813 echo "$as_me: error: conditional \"VCPP\" was never defined.
19814 Usually this means the macro was only invoked conditionally." >&2;}
19815    { (exit 1); exit 1; }; }
19816 fi
19817 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
19818   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
19819 Usually this means the macro was only invoked conditionally." >&5
19820 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
19821 Usually this means the macro was only invoked conditionally." >&2;}
19822    { (exit 1); exit 1; }; }
19823 fi
19824 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
19825   { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
19826 Usually this means the macro was only invoked conditionally." >&5
19827 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
19828 Usually this means the macro was only invoked conditionally." >&2;}
19829    { (exit 1); exit 1; }; }
19830 fi
19831 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
19832   { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
19833 Usually this means the macro was only invoked conditionally." >&5
19834 echo "$as_me: error: conditional \"DMC\" was never defined.
19835 Usually this means the macro was only invoked conditionally." >&2;}
19836    { (exit 1); exit 1; }; }
19837 fi
19838 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
19839   { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
19840 Usually this means the macro was only invoked conditionally." >&5
19841 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
19842 Usually this means the macro was only invoked conditionally." >&2;}
19843    { (exit 1); exit 1; }; }
19844 fi
19845 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19846   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19847 Usually this means the macro was only invoked conditionally." >&5
19848 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19849 Usually this means the macro was only invoked conditionally." >&2;}
19850    { (exit 1); exit 1; }; }
19851 fi
19852
19853 : ${CONFIG_STATUS=./config.status}
19854 ac_clean_files_save=$ac_clean_files
19855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19856 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19857 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19858 cat >$CONFIG_STATUS <<_ACEOF
19859 #! $SHELL
19860 # Generated by $as_me.
19861 # Run this file to recreate the current configuration.
19862 # Compiler output produced by configure, useful for debugging
19863 # configure, is in config.log if it exists.
19864
19865 debug=false
19866 ac_cs_recheck=false
19867 ac_cs_silent=false
19868 SHELL=\${CONFIG_SHELL-$SHELL}
19869 _ACEOF
19870
19871 cat >>$CONFIG_STATUS <<\_ACEOF
19872 ## --------------------- ##
19873 ## M4sh Initialization.  ##
19874 ## --------------------- ##
19875
19876 # Be Bourne compatible
19877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19878   emulate sh
19879   NULLCMD=:
19880   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19881   # is contrary to our usage.  Disable this feature.
19882   alias -g '${1+"$@"}'='"$@"'
19883 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19884   set -o posix
19885 fi
19886 DUALCASE=1; export DUALCASE # for MKS sh
19887
19888 # Support unset when possible.
19889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19890   as_unset=unset
19891 else
19892   as_unset=false
19893 fi
19894
19895
19896 # Work around bugs in pre-3.0 UWIN ksh.
19897 $as_unset ENV MAIL MAILPATH
19898 PS1='$ '
19899 PS2='> '
19900 PS4='+ '
19901
19902 # NLS nuisances.
19903 for as_var in \
19904   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19905   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19906   LC_TELEPHONE LC_TIME
19907 do
19908   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19909     eval $as_var=C; export $as_var
19910   else
19911     $as_unset $as_var
19912   fi
19913 done
19914
19915 # Required to use basename.
19916 if expr a : '\(a\)' >/dev/null 2>&1; then
19917   as_expr=expr
19918 else
19919   as_expr=false
19920 fi
19921
19922 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19923   as_basename=basename
19924 else
19925   as_basename=false
19926 fi
19927
19928
19929 # Name of the executable.
19930 as_me=`$as_basename "$0" ||
19931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19932          X"$0" : 'X\(//\)$' \| \
19933          X"$0" : 'X\(/\)$' \| \
19934          .     : '\(.\)' 2>/dev/null ||
19935 echo X/"$0" |
19936     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19937           /^X\/\(\/\/\)$/{ s//\1/; q; }
19938           /^X\/\(\/\).*/{ s//\1/; q; }
19939           s/.*/./; q'`
19940
19941
19942 # PATH needs CR, and LINENO needs CR and PATH.
19943 # Avoid depending upon Character Ranges.
19944 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19945 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19946 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19947 as_cr_digits='0123456789'
19948 as_cr_alnum=$as_cr_Letters$as_cr_digits
19949
19950 # The user is always right.
19951 if test "${PATH_SEPARATOR+set}" != set; then
19952   echo "#! /bin/sh" >conf$$.sh
19953   echo  "exit 0"   >>conf$$.sh
19954   chmod +x conf$$.sh
19955   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19956     PATH_SEPARATOR=';'
19957   else
19958     PATH_SEPARATOR=:
19959   fi
19960   rm -f conf$$.sh
19961 fi
19962
19963
19964   as_lineno_1=$LINENO
19965   as_lineno_2=$LINENO
19966   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19967   test "x$as_lineno_1" != "x$as_lineno_2" &&
19968   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19969   # Find who we are.  Look in the path if we contain no path at all
19970   # relative or not.
19971   case $0 in
19972     *[\\/]* ) as_myself=$0 ;;
19973     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19974 for as_dir in $PATH
19975 do
19976   IFS=$as_save_IFS
19977   test -z "$as_dir" && as_dir=.
19978   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19979 done
19980
19981        ;;
19982   esac
19983   # We did not find ourselves, most probably we were run as `sh COMMAND'
19984   # in which case we are not to be found in the path.
19985   if test "x$as_myself" = x; then
19986     as_myself=$0
19987   fi
19988   if test ! -f "$as_myself"; then
19989     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19990 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19991    { (exit 1); exit 1; }; }
19992   fi
19993   case $CONFIG_SHELL in
19994   '')
19995     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19996 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19997 do
19998   IFS=$as_save_IFS
19999   test -z "$as_dir" && as_dir=.
20000   for as_base in sh bash ksh sh5; do
20001          case $as_dir in
20002          /*)
20003            if ("$as_dir/$as_base" -c '
20004   as_lineno_1=$LINENO
20005   as_lineno_2=$LINENO
20006   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20007   test "x$as_lineno_1" != "x$as_lineno_2" &&
20008   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20009              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20010              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20011              CONFIG_SHELL=$as_dir/$as_base
20012              export CONFIG_SHELL
20013              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20014            fi;;
20015          esac
20016        done
20017 done
20018 ;;
20019   esac
20020
20021   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20022   # uniformly replaced by the line number.  The first 'sed' inserts a
20023   # line-number line before each line; the second 'sed' does the real
20024   # work.  The second script uses 'N' to pair each line-number line
20025   # with the numbered line, and appends trailing '-' during
20026   # substitution so that $LINENO is not a special case at line end.
20027   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20028   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20029   sed '=' <$as_myself |
20030     sed '
20031       N
20032       s,$,-,
20033       : loop
20034       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20035       t loop
20036       s,-$,,
20037       s,^['$as_cr_digits']*\n,,
20038     ' >$as_me.lineno &&
20039   chmod +x $as_me.lineno ||
20040     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20041 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20042    { (exit 1); exit 1; }; }
20043
20044   # Don't try to exec as it changes $[0], causing all sort of problems
20045   # (the dirname of $[0] is not the place where we might find the
20046   # original and so on.  Autoconf is especially sensible to this).
20047   . ./$as_me.lineno
20048   # Exit status is that of the last command.
20049   exit
20050 }
20051
20052
20053 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20054   *c*,-n*) ECHO_N= ECHO_C='
20055 ' ECHO_T='      ' ;;
20056   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20057   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20058 esac
20059
20060 if expr a : '\(a\)' >/dev/null 2>&1; then
20061   as_expr=expr
20062 else
20063   as_expr=false
20064 fi
20065
20066 rm -f conf$$ conf$$.exe conf$$.file
20067 echo >conf$$.file
20068 if ln -s conf$$.file conf$$ 2>/dev/null; then
20069   # We could just check for DJGPP; but this test a) works b) is more generic
20070   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20071   if test -f conf$$.exe; then
20072     # Don't use ln at all; we don't have any links
20073     as_ln_s='cp -p'
20074   else
20075     as_ln_s='ln -s'
20076   fi
20077 elif ln conf$$.file conf$$ 2>/dev/null; then
20078   as_ln_s=ln
20079 else
20080   as_ln_s='cp -p'
20081 fi
20082 rm -f conf$$ conf$$.exe conf$$.file
20083
20084 if mkdir -p . 2>/dev/null; then
20085   as_mkdir_p=:
20086 else
20087   test -d ./-p && rmdir ./-p
20088   as_mkdir_p=false
20089 fi
20090
20091 as_executable_p="test -f"
20092
20093 # Sed expression to map a string onto a valid CPP name.
20094 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20095
20096 # Sed expression to map a string onto a valid variable name.
20097 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20098
20099
20100 # IFS
20101 # We need space, tab and new line, in precisely that order.
20102 as_nl='
20103 '
20104 IFS="   $as_nl"
20105
20106 # CDPATH.
20107 $as_unset CDPATH
20108
20109 exec 6>&1
20110
20111 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20112 # report actual input values of CONFIG_FILES etc. instead of their
20113 # values after options handling.  Logging --version etc. is OK.
20114 exec 5>>config.log
20115 {
20116   echo
20117   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20118 ## Running $as_me. ##
20119 _ASBOX
20120 } >&5
20121 cat >&5 <<_CSEOF
20122
20123 This file was extended by TiMidity++ $as_me 2.13.2, which was
20124 generated by GNU Autoconf 2.59.  Invocation command line was
20125
20126   CONFIG_FILES    = $CONFIG_FILES
20127   CONFIG_HEADERS  = $CONFIG_HEADERS
20128   CONFIG_LINKS    = $CONFIG_LINKS
20129   CONFIG_COMMANDS = $CONFIG_COMMANDS
20130   $ $0 $@
20131
20132 _CSEOF
20133 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20134 echo >&5
20135 _ACEOF
20136
20137 # Files that config.status was made for.
20138 if test -n "$ac_config_files"; then
20139   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20140 fi
20141
20142 if test -n "$ac_config_headers"; then
20143   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20144 fi
20145
20146 if test -n "$ac_config_links"; then
20147   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20148 fi
20149
20150 if test -n "$ac_config_commands"; then
20151   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20152 fi
20153
20154 cat >>$CONFIG_STATUS <<\_ACEOF
20155
20156 ac_cs_usage="\
20157 \`$as_me' instantiates files from templates according to the
20158 current configuration.
20159
20160 Usage: $0 [OPTIONS] [FILE]...
20161
20162   -h, --help       print this help, then exit
20163   -V, --version    print version number, then exit
20164   -q, --quiet      do not print progress messages
20165   -d, --debug      don't remove temporary files
20166       --recheck    update $as_me by reconfiguring in the same conditions
20167   --file=FILE[:TEMPLATE]
20168                    instantiate the configuration file FILE
20169   --header=FILE[:TEMPLATE]
20170                    instantiate the configuration header FILE
20171
20172 Configuration files:
20173 $config_files
20174
20175 Configuration headers:
20176 $config_headers
20177
20178 Configuration commands:
20179 $config_commands
20180
20181 Report bugs to <bug-autoconf@gnu.org>."
20182 _ACEOF
20183
20184 cat >>$CONFIG_STATUS <<_ACEOF
20185 ac_cs_version="\\
20186 TiMidity++ config.status 2.13.2
20187 configured by $0, generated by GNU Autoconf 2.59,
20188   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20189
20190 Copyright (C) 2003 Free Software Foundation, Inc.
20191 This config.status script is free software; the Free Software Foundation
20192 gives unlimited permission to copy, distribute and modify it."
20193 srcdir=$srcdir
20194 INSTALL="$INSTALL"
20195 _ACEOF
20196
20197 cat >>$CONFIG_STATUS <<\_ACEOF
20198 # If no file are specified by the user, then we need to provide default
20199 # value.  By we need to know if files were specified by the user.
20200 ac_need_defaults=:
20201 while test $# != 0
20202 do
20203   case $1 in
20204   --*=*)
20205     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20206     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20207     ac_shift=:
20208     ;;
20209   -*)
20210     ac_option=$1
20211     ac_optarg=$2
20212     ac_shift=shift
20213     ;;
20214   *) # This is not an option, so the user has probably given explicit
20215      # arguments.
20216      ac_option=$1
20217      ac_need_defaults=false;;
20218   esac
20219
20220   case $ac_option in
20221   # Handling of the options.
20222 _ACEOF
20223 cat >>$CONFIG_STATUS <<\_ACEOF
20224   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20225     ac_cs_recheck=: ;;
20226   --version | --vers* | -V )
20227     echo "$ac_cs_version"; exit 0 ;;
20228   --he | --h)
20229     # Conflict between --help and --header
20230     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20231 Try \`$0 --help' for more information." >&5
20232 echo "$as_me: error: ambiguous option: $1
20233 Try \`$0 --help' for more information." >&2;}
20234    { (exit 1); exit 1; }; };;
20235   --help | --hel | -h )
20236     echo "$ac_cs_usage"; exit 0 ;;
20237   --debug | --d* | -d )
20238     debug=: ;;
20239   --file | --fil | --fi | --f )
20240     $ac_shift
20241     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20242     ac_need_defaults=false;;
20243   --header | --heade | --head | --hea )
20244     $ac_shift
20245     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20246     ac_need_defaults=false;;
20247   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20248   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20249     ac_cs_silent=: ;;
20250
20251   # This is an error.
20252   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20253 Try \`$0 --help' for more information." >&5
20254 echo "$as_me: error: unrecognized option: $1
20255 Try \`$0 --help' for more information." >&2;}
20256    { (exit 1); exit 1; }; } ;;
20257
20258   *) ac_config_targets="$ac_config_targets $1" ;;
20259
20260   esac
20261   shift
20262 done
20263
20264 ac_configure_extra_args=
20265
20266 if $ac_cs_silent; then
20267   exec 6>/dev/null
20268   ac_configure_extra_args="$ac_configure_extra_args --silent"
20269 fi
20270
20271 _ACEOF
20272 cat >>$CONFIG_STATUS <<_ACEOF
20273 if \$ac_cs_recheck; then
20274   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20275   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20276 fi
20277
20278 _ACEOF
20279
20280 cat >>$CONFIG_STATUS <<_ACEOF
20281 #
20282 # INIT-COMMANDS section.
20283 #
20284
20285 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20286
20287 _ACEOF
20288
20289
20290
20291 cat >>$CONFIG_STATUS <<\_ACEOF
20292 for ac_config_target in $ac_config_targets
20293 do
20294   case "$ac_config_target" in
20295   # Handling of arguments.
20296   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20297   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20298   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20299   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20300   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20301   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20302   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20303   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20304   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20305   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20306   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20307   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20308   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20309   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20310   "windrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20311   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20312   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20313   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20314   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20315   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20316   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20317   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20318   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20319 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20320    { (exit 1); exit 1; }; };;
20321   esac
20322 done
20323
20324 # If the user did not use the arguments to specify the items to instantiate,
20325 # then the envvar interface is used.  Set only those that are not.
20326 # We use the long form for the default assignment because of an extremely
20327 # bizarre bug on SunOS 4.1.3.
20328 if $ac_need_defaults; then
20329   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20330   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20331   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20332 fi
20333
20334 # Have a temporary directory for convenience.  Make it in the build tree
20335 # simply because there is no reason to put it here, and in addition,
20336 # creating and moving files from /tmp can sometimes cause problems.
20337 # Create a temporary directory, and hook for its removal unless debugging.
20338 $debug ||
20339 {
20340   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20341   trap '{ (exit 1); exit 1; }' 1 2 13 15
20342 }
20343
20344 # Create a (secure) tmp directory for tmp files.
20345
20346 {
20347   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20348   test -n "$tmp" && test -d "$tmp"
20349 }  ||
20350 {
20351   tmp=./confstat$$-$RANDOM
20352   (umask 077 && mkdir $tmp)
20353 } ||
20354 {
20355    echo "$me: cannot create a temporary directory in ." >&2
20356    { (exit 1); exit 1; }
20357 }
20358
20359 _ACEOF
20360
20361 cat >>$CONFIG_STATUS <<_ACEOF
20362
20363 #
20364 # CONFIG_FILES section.
20365 #
20366
20367 # No need to generate the scripts if there are no CONFIG_FILES.
20368 # This happens for instance when ./config.status config.h
20369 if test -n "\$CONFIG_FILES"; then
20370   # Protect against being on the right side of a sed subst in config.status.
20371   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20372    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20373 s,@SHELL@,$SHELL,;t t
20374 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20375 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20376 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20377 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20378 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20379 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20380 s,@exec_prefix@,$exec_prefix,;t t
20381 s,@prefix@,$prefix,;t t
20382 s,@program_transform_name@,$program_transform_name,;t t
20383 s,@bindir@,$bindir,;t t
20384 s,@sbindir@,$sbindir,;t t
20385 s,@libexecdir@,$libexecdir,;t t
20386 s,@datadir@,$datadir,;t t
20387 s,@sysconfdir@,$sysconfdir,;t t
20388 s,@sharedstatedir@,$sharedstatedir,;t t
20389 s,@localstatedir@,$localstatedir,;t t
20390 s,@libdir@,$libdir,;t t
20391 s,@includedir@,$includedir,;t t
20392 s,@oldincludedir@,$oldincludedir,;t t
20393 s,@infodir@,$infodir,;t t
20394 s,@mandir@,$mandir,;t t
20395 s,@build_alias@,$build_alias,;t t
20396 s,@host_alias@,$host_alias,;t t
20397 s,@target_alias@,$target_alias,;t t
20398 s,@DEFS@,$DEFS,;t t
20399 s,@ECHO_C@,$ECHO_C,;t t
20400 s,@ECHO_N@,$ECHO_N,;t t
20401 s,@ECHO_T@,$ECHO_T,;t t
20402 s,@LIBS@,$LIBS,;t t
20403 s,@build@,$build,;t t
20404 s,@build_cpu@,$build_cpu,;t t
20405 s,@build_vendor@,$build_vendor,;t t
20406 s,@build_os@,$build_os,;t t
20407 s,@host@,$host,;t t
20408 s,@host_cpu@,$host_cpu,;t t
20409 s,@host_vendor@,$host_vendor,;t t
20410 s,@host_os@,$host_os,;t t
20411 s,@target@,$target,;t t
20412 s,@target_cpu@,$target_cpu,;t t
20413 s,@target_vendor@,$target_vendor,;t t
20414 s,@target_os@,$target_os,;t t
20415 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20416 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20417 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20418 s,@CYGPATH_W@,$CYGPATH_W,;t t
20419 s,@PACKAGE@,$PACKAGE,;t t
20420 s,@VERSION@,$VERSION,;t t
20421 s,@ACLOCAL@,$ACLOCAL,;t t
20422 s,@AUTOCONF@,$AUTOCONF,;t t
20423 s,@AUTOMAKE@,$AUTOMAKE,;t t
20424 s,@AUTOHEADER@,$AUTOHEADER,;t t
20425 s,@MAKEINFO@,$MAKEINFO,;t t
20426 s,@AMTAR@,$AMTAR,;t t
20427 s,@install_sh@,$install_sh,;t t
20428 s,@STRIP@,$STRIP,;t t
20429 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20430 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20431 s,@mkdir_p@,$mkdir_p,;t t
20432 s,@AWK@,$AWK,;t t
20433 s,@SET_MAKE@,$SET_MAKE,;t t
20434 s,@am__leading_dot@,$am__leading_dot,;t t
20435 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20436 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20437 s,@MAINT@,$MAINT,;t t
20438 s,@EMACS@,$EMACS,;t t
20439 s,@EMACSLOADPATH@,$EMACSLOADPATH,;t t
20440 s,@lispdir@,$lispdir,;t t
20441 s,@CC@,$CC,;t t
20442 s,@CFLAGS@,$CFLAGS,;t t
20443 s,@LDFLAGS@,$LDFLAGS,;t t
20444 s,@CPPFLAGS@,$CPPFLAGS,;t t
20445 s,@ac_ct_CC@,$ac_ct_CC,;t t
20446 s,@EXEEXT@,$EXEEXT,;t t
20447 s,@OBJEXT@,$OBJEXT,;t t
20448 s,@DEPDIR@,$DEPDIR,;t t
20449 s,@am__include@,$am__include,;t t
20450 s,@am__quote@,$am__quote,;t t
20451 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20452 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20453 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20454 s,@CCDEPMODE@,$CCDEPMODE,;t t
20455 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20456 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20457 s,@CPP@,$CPP,;t t
20458 s,@EGREP@,$EGREP,;t t
20459 s,@RANLIB@,$RANLIB,;t t
20460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20461 s,@LN_S@,$LN_S,;t t
20462 s,@X_CFLAGS@,$X_CFLAGS,;t t
20463 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20464 s,@X_LIBS@,$X_LIBS,;t t
20465 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20466 s,@LIBOBJS@,$LIBOBJS,;t t
20467 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20468 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20469 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20470 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20471 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20472 s,@ARTSLIBS@,$ARTSLIBS,;t t
20473 s,@ARTSINCL@,$ARTSINCL,;t t
20474 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20475 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20476 s,@ESD_LIBS@,$ESD_LIBS,;t t
20477 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20478 s,@AO_LIBS@,$AO_LIBS,;t t
20479 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20480 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20481 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20482 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20483 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20484 s,@OGG_LIBS@,$OGG_LIBS,;t t
20485 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20486 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20487 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20488 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20489 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20490 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20491 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20492 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20493 s,@n_so_libs@,$n_so_libs,;t t
20494 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20495 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20496 s,@s_so_libs@,$s_so_libs,;t t
20497 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20498 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20499 s,@m_so_libs@,$m_so_libs,;t t
20500 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20501 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20502 s,@k_so_libs@,$k_so_libs,;t t
20503 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20504 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20505 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20506 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20507 s,@e_so_libs@,$e_so_libs,;t t
20508 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
20509 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
20510 s,@T_so_libs@,$T_so_libs,;t t
20511 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
20512 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
20513 s,@a_so_libs@,$a_so_libs,;t t
20514 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
20515 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
20516 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
20517 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
20518 s,@i_so_libs@,$i_so_libs,;t t
20519 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
20520 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
20521 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20522 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20523 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20524 s,@GTK_LIBS@,$GTK_LIBS,;t t
20525 s,@g_so_libs@,$g_so_libs,;t t
20526 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
20527 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
20528 s,@r_so_libs@,$r_so_libs,;t t
20529 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
20530 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
20531 s,@A_so_libs@,$A_so_libs,;t t
20532 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
20533 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
20534 s,@W_so_libs@,$W_so_libs,;t t
20535 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
20536 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
20537 s,@P_so_libs@,$P_so_libs,;t t
20538 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
20539 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
20540 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
20541 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
20542 s,@w_so_libs@,$w_so_libs,;t t
20543 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
20544 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
20545 s,@p_so_libs@,$p_so_libs,;t t
20546 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
20547 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
20548 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
20549 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
20550 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
20551 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
20552 s,@W32G_GUI_TRUE@,$W32G_GUI_TRUE,;t t
20553 s,@W32G_GUI_FALSE@,$W32G_GUI_FALSE,;t t
20554 s,@WINDRV_TRUE@,$WINDRV_TRUE,;t t
20555 s,@WINDRV_FALSE@,$WINDRV_FALSE,;t t
20556 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
20557 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
20558 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
20559 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
20560 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
20561 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
20562 s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t
20563 s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t
20564 s,@DMC_TRUE@,$DMC_TRUE,;t t
20565 s,@DMC_FALSE@,$DMC_FALSE,;t t
20566 s,@MINGWGCC_TRUE@,$MINGWGCC_TRUE,;t t
20567 s,@MINGWGCC_FALSE@,$MINGWGCC_FALSE,;t t
20568 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
20569 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
20570 s,@BORLANDC_START@,$BORLANDC_START,;t t
20571 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
20572 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
20573 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
20574 s,@DMC_LDFLAGS@,$DMC_LDFLAGS,;t t
20575 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
20576 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
20577 s,@EXTRALIBS@,$EXTRALIBS,;t t
20578 s,@NETSRCS@,$NETSRCS,;t t
20579 s,@ELFILES@,$ELFILES,;t t
20580 s,@SHLD@,$SHLD,;t t
20581 s,@SHCFLAGS@,$SHCFLAGS,;t t
20582 s,@dynamic_targets@,$dynamic_targets,;t t
20583 s,@so@,$so,;t t
20584 s,@WISH@,$WISH,;t t
20585 s,@tcltk_dep@,$tcltk_dep,;t t
20586 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
20587 s,@pkgdatadir@,$pkgdatadir,;t t
20588 s,@pkglibdir@,$pkglibdir,;t t
20589 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20590 CEOF
20591
20592 _ACEOF
20593
20594   cat >>$CONFIG_STATUS <<\_ACEOF
20595   # Split the substitutions into bite-sized pieces for seds with
20596   # small command number limits, like on Digital OSF/1 and HP-UX.
20597   ac_max_sed_lines=48
20598   ac_sed_frag=1 # Number of current file.
20599   ac_beg=1 # First line for current file.
20600   ac_end=$ac_max_sed_lines # Line after last line for current file.
20601   ac_more_lines=:
20602   ac_sed_cmds=
20603   while $ac_more_lines; do
20604     if test $ac_beg -gt 1; then
20605       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20606     else
20607       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20608     fi
20609     if test ! -s $tmp/subs.frag; then
20610       ac_more_lines=false
20611     else
20612       # The purpose of the label and of the branching condition is to
20613       # speed up the sed processing (if there are no `@' at all, there
20614       # is no need to browse any of the substitutions).
20615       # These are the two extra sed commands mentioned above.
20616       (echo ':t
20617   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20618       if test -z "$ac_sed_cmds"; then
20619         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20620       else
20621         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20622       fi
20623       ac_sed_frag=`expr $ac_sed_frag + 1`
20624       ac_beg=$ac_end
20625       ac_end=`expr $ac_end + $ac_max_sed_lines`
20626     fi
20627   done
20628   if test -z "$ac_sed_cmds"; then
20629     ac_sed_cmds=cat
20630   fi
20631 fi # test -n "$CONFIG_FILES"
20632
20633 _ACEOF
20634 cat >>$CONFIG_STATUS <<\_ACEOF
20635 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20636   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20637   case $ac_file in
20638   - | *:- | *:-:* ) # input from stdin
20639         cat >$tmp/stdin
20640         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20641         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20642   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20643         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20644   * )   ac_file_in=$ac_file.in ;;
20645   esac
20646
20647   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20648   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20650          X"$ac_file" : 'X\(//\)[^/]' \| \
20651          X"$ac_file" : 'X\(//\)$' \| \
20652          X"$ac_file" : 'X\(/\)' \| \
20653          .     : '\(.\)' 2>/dev/null ||
20654 echo X"$ac_file" |
20655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20656           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20657           /^X\(\/\/\)$/{ s//\1/; q; }
20658           /^X\(\/\).*/{ s//\1/; q; }
20659           s/.*/./; q'`
20660   { if $as_mkdir_p; then
20661     mkdir -p "$ac_dir"
20662   else
20663     as_dir="$ac_dir"
20664     as_dirs=
20665     while test ! -d "$as_dir"; do
20666       as_dirs="$as_dir $as_dirs"
20667       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20669          X"$as_dir" : 'X\(//\)[^/]' \| \
20670          X"$as_dir" : 'X\(//\)$' \| \
20671          X"$as_dir" : 'X\(/\)' \| \
20672          .     : '\(.\)' 2>/dev/null ||
20673 echo X"$as_dir" |
20674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20676           /^X\(\/\/\)$/{ s//\1/; q; }
20677           /^X\(\/\).*/{ s//\1/; q; }
20678           s/.*/./; q'`
20679     done
20680     test ! -n "$as_dirs" || mkdir $as_dirs
20681   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20683    { (exit 1); exit 1; }; }; }
20684
20685   ac_builddir=.
20686
20687 if test "$ac_dir" != .; then
20688   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20689   # A "../" for each directory in $ac_dir_suffix.
20690   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20691 else
20692   ac_dir_suffix= ac_top_builddir=
20693 fi
20694
20695 case $srcdir in
20696   .)  # No --srcdir option.  We are building in place.
20697     ac_srcdir=.
20698     if test -z "$ac_top_builddir"; then
20699        ac_top_srcdir=.
20700     else
20701        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20702     fi ;;
20703   [\\/]* | ?:[\\/]* )  # Absolute path.
20704     ac_srcdir=$srcdir$ac_dir_suffix;
20705     ac_top_srcdir=$srcdir ;;
20706   *) # Relative path.
20707     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20708     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20709 esac
20710
20711 # Do not use `cd foo && pwd` to compute absolute paths, because
20712 # the directories may not exist.
20713 case `pwd` in
20714 .) ac_abs_builddir="$ac_dir";;
20715 *)
20716   case "$ac_dir" in
20717   .) ac_abs_builddir=`pwd`;;
20718   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20719   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20720   esac;;
20721 esac
20722 case $ac_abs_builddir in
20723 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20724 *)
20725   case ${ac_top_builddir}. in
20726   .) ac_abs_top_builddir=$ac_abs_builddir;;
20727   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20728   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20729   esac;;
20730 esac
20731 case $ac_abs_builddir in
20732 .) ac_abs_srcdir=$ac_srcdir;;
20733 *)
20734   case $ac_srcdir in
20735   .) ac_abs_srcdir=$ac_abs_builddir;;
20736   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20737   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20738   esac;;
20739 esac
20740 case $ac_abs_builddir in
20741 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20742 *)
20743   case $ac_top_srcdir in
20744   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20745   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20746   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20747   esac;;
20748 esac
20749
20750
20751   case $INSTALL in
20752   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20753   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20754   esac
20755
20756   if test x"$ac_file" != x-; then
20757     { echo "$as_me:$LINENO: creating $ac_file" >&5
20758 echo "$as_me: creating $ac_file" >&6;}
20759     rm -f "$ac_file"
20760   fi
20761   # Let's still pretend it is `configure' which instantiates (i.e., don't
20762   # use $as_me), people would be surprised to read:
20763   #    /* config.h.  Generated by config.status.  */
20764   if test x"$ac_file" = x-; then
20765     configure_input=
20766   else
20767     configure_input="$ac_file.  "
20768   fi
20769   configure_input=$configure_input"Generated from `echo $ac_file_in |
20770                                      sed 's,.*/,,'` by configure."
20771
20772   # First look for the input files in the build tree, otherwise in the
20773   # src tree.
20774   ac_file_inputs=`IFS=:
20775     for f in $ac_file_in; do
20776       case $f in
20777       -) echo $tmp/stdin ;;
20778       [\\/$]*)
20779          # Absolute (can't be DOS-style, as IFS=:)
20780          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20781 echo "$as_me: error: cannot find input file: $f" >&2;}
20782    { (exit 1); exit 1; }; }
20783          echo "$f";;
20784       *) # Relative
20785          if test -f "$f"; then
20786            # Build tree
20787            echo "$f"
20788          elif test -f "$srcdir/$f"; then
20789            # Source tree
20790            echo "$srcdir/$f"
20791          else
20792            # /dev/null tree
20793            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20794 echo "$as_me: error: cannot find input file: $f" >&2;}
20795    { (exit 1); exit 1; }; }
20796          fi;;
20797       esac
20798     done` || { (exit 1); exit 1; }
20799 _ACEOF
20800 cat >>$CONFIG_STATUS <<_ACEOF
20801   sed "$ac_vpsub
20802 $extrasub
20803 _ACEOF
20804 cat >>$CONFIG_STATUS <<\_ACEOF
20805 :t
20806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20807 s,@configure_input@,$configure_input,;t t
20808 s,@srcdir@,$ac_srcdir,;t t
20809 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20810 s,@top_srcdir@,$ac_top_srcdir,;t t
20811 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20812 s,@builddir@,$ac_builddir,;t t
20813 s,@abs_builddir@,$ac_abs_builddir,;t t
20814 s,@top_builddir@,$ac_top_builddir,;t t
20815 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20816 s,@INSTALL@,$ac_INSTALL,;t t
20817 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20818   rm -f $tmp/stdin
20819   if test x"$ac_file" != x-; then
20820     mv $tmp/out $ac_file
20821   else
20822     cat $tmp/out
20823     rm -f $tmp/out
20824   fi
20825
20826 done
20827 _ACEOF
20828 cat >>$CONFIG_STATUS <<\_ACEOF
20829
20830 #
20831 # CONFIG_HEADER section.
20832 #
20833
20834 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20835 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20836 #
20837 # ac_d sets the value in "#define NAME VALUE" lines.
20838 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20839 ac_dB='[         ].*$,\1#\2'
20840 ac_dC=' '
20841 ac_dD=',;t'
20842 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20843 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20844 ac_uB='$,\1#\2define\3'
20845 ac_uC=' '
20846 ac_uD=',;t'
20847
20848 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20849   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20850   case $ac_file in
20851   - | *:- | *:-:* ) # input from stdin
20852         cat >$tmp/stdin
20853         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20854         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20855   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20856         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20857   * )   ac_file_in=$ac_file.in ;;
20858   esac
20859
20860   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20861 echo "$as_me: creating $ac_file" >&6;}
20862
20863   # First look for the input files in the build tree, otherwise in the
20864   # src tree.
20865   ac_file_inputs=`IFS=:
20866     for f in $ac_file_in; do
20867       case $f in
20868       -) echo $tmp/stdin ;;
20869       [\\/$]*)
20870          # Absolute (can't be DOS-style, as IFS=:)
20871          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20872 echo "$as_me: error: cannot find input file: $f" >&2;}
20873    { (exit 1); exit 1; }; }
20874          # Do quote $f, to prevent DOS paths from being IFS'd.
20875          echo "$f";;
20876       *) # Relative
20877          if test -f "$f"; then
20878            # Build tree
20879            echo "$f"
20880          elif test -f "$srcdir/$f"; then
20881            # Source tree
20882            echo "$srcdir/$f"
20883          else
20884            # /dev/null tree
20885            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20886 echo "$as_me: error: cannot find input file: $f" >&2;}
20887    { (exit 1); exit 1; }; }
20888          fi;;
20889       esac
20890     done` || { (exit 1); exit 1; }
20891   # Remove the trailing spaces.
20892   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20893
20894 _ACEOF
20895
20896 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20897 # `conftest.undefs', that substitutes the proper values into
20898 # config.h.in to produce config.h.  The first handles `#define'
20899 # templates, and the second `#undef' templates.
20900 # And first: Protect against being on the right side of a sed subst in
20901 # config.status.  Protect against being in an unquoted here document
20902 # in config.status.
20903 rm -f conftest.defines conftest.undefs
20904 # Using a here document instead of a string reduces the quoting nightmare.
20905 # Putting comments in sed scripts is not portable.
20906 #
20907 # `end' is used to avoid that the second main sed command (meant for
20908 # 0-ary CPP macros) applies to n-ary macro definitions.
20909 # See the Autoconf documentation for `clear'.
20910 cat >confdef2sed.sed <<\_ACEOF
20911 s/[\\&,]/\\&/g
20912 s,[\\$`],\\&,g
20913 t clear
20914 : clear
20915 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20916 t end
20917 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20918 : end
20919 _ACEOF
20920 # If some macros were called several times there might be several times
20921 # the same #defines, which is useless.  Nevertheless, we may not want to
20922 # sort them, since we want the *last* AC-DEFINE to be honored.
20923 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20924 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20925 rm -f confdef2sed.sed
20926
20927 # This sed command replaces #undef with comments.  This is necessary, for
20928 # example, in the case of _POSIX_SOURCE, which is predefined and required
20929 # on some systems where configure will not decide to define it.
20930 cat >>conftest.undefs <<\_ACEOF
20931 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20932 _ACEOF
20933
20934 # Break up conftest.defines because some shells have a limit on the size
20935 # of here documents, and old seds have small limits too (100 cmds).
20936 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20937 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20938 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20939 echo '  :' >>$CONFIG_STATUS
20940 rm -f conftest.tail
20941 while grep . conftest.defines >/dev/null
20942 do
20943   # Write a limited-size here document to $tmp/defines.sed.
20944   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20945   # Speed up: don't consider the non `#define' lines.
20946   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20947   # Work around the forget-to-reset-the-flag bug.
20948   echo 't clr' >>$CONFIG_STATUS
20949   echo ': clr' >>$CONFIG_STATUS
20950   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20951   echo 'CEOF
20952   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20953   rm -f $tmp/in
20954   mv $tmp/out $tmp/in
20955 ' >>$CONFIG_STATUS
20956   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20957   rm -f conftest.defines
20958   mv conftest.tail conftest.defines
20959 done
20960 rm -f conftest.defines
20961 echo '  fi # grep' >>$CONFIG_STATUS
20962 echo >>$CONFIG_STATUS
20963
20964 # Break up conftest.undefs because some shells have a limit on the size
20965 # of here documents, and old seds have small limits too (100 cmds).
20966 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20967 rm -f conftest.tail
20968 while grep . conftest.undefs >/dev/null
20969 do
20970   # Write a limited-size here document to $tmp/undefs.sed.
20971   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20972   # Speed up: don't consider the non `#undef'
20973   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20974   # Work around the forget-to-reset-the-flag bug.
20975   echo 't clr' >>$CONFIG_STATUS
20976   echo ': clr' >>$CONFIG_STATUS
20977   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20978   echo 'CEOF
20979   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20980   rm -f $tmp/in
20981   mv $tmp/out $tmp/in
20982 ' >>$CONFIG_STATUS
20983   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20984   rm -f conftest.undefs
20985   mv conftest.tail conftest.undefs
20986 done
20987 rm -f conftest.undefs
20988
20989 cat >>$CONFIG_STATUS <<\_ACEOF
20990   # Let's still pretend it is `configure' which instantiates (i.e., don't
20991   # use $as_me), people would be surprised to read:
20992   #    /* config.h.  Generated by config.status.  */
20993   if test x"$ac_file" = x-; then
20994     echo "/* Generated by configure.  */" >$tmp/config.h
20995   else
20996     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20997   fi
20998   cat $tmp/in >>$tmp/config.h
20999   rm -f $tmp/in
21000   if test x"$ac_file" != x-; then
21001     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21002       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21003 echo "$as_me: $ac_file is unchanged" >&6;}
21004     else
21005       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21007          X"$ac_file" : 'X\(//\)[^/]' \| \
21008          X"$ac_file" : 'X\(//\)$' \| \
21009          X"$ac_file" : 'X\(/\)' \| \
21010          .     : '\(.\)' 2>/dev/null ||
21011 echo X"$ac_file" |
21012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21014           /^X\(\/\/\)$/{ s//\1/; q; }
21015           /^X\(\/\).*/{ s//\1/; q; }
21016           s/.*/./; q'`
21017       { if $as_mkdir_p; then
21018     mkdir -p "$ac_dir"
21019   else
21020     as_dir="$ac_dir"
21021     as_dirs=
21022     while test ! -d "$as_dir"; do
21023       as_dirs="$as_dir $as_dirs"
21024       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21026          X"$as_dir" : 'X\(//\)[^/]' \| \
21027          X"$as_dir" : 'X\(//\)$' \| \
21028          X"$as_dir" : 'X\(/\)' \| \
21029          .     : '\(.\)' 2>/dev/null ||
21030 echo X"$as_dir" |
21031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21032           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21033           /^X\(\/\/\)$/{ s//\1/; q; }
21034           /^X\(\/\).*/{ s//\1/; q; }
21035           s/.*/./; q'`
21036     done
21037     test ! -n "$as_dirs" || mkdir $as_dirs
21038   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21039 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21040    { (exit 1); exit 1; }; }; }
21041
21042       rm -f $ac_file
21043       mv $tmp/config.h $ac_file
21044     fi
21045   else
21046     cat $tmp/config.h
21047     rm -f $tmp/config.h
21048   fi
21049 # Compute $ac_file's index in $config_headers.
21050 _am_stamp_count=1
21051 for _am_header in $config_headers :; do
21052   case $_am_header in
21053     $ac_file | $ac_file:* )
21054       break ;;
21055     * )
21056       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21057   esac
21058 done
21059 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21060 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21061          X$ac_file : 'X\(//\)[^/]' \| \
21062          X$ac_file : 'X\(//\)$' \| \
21063          X$ac_file : 'X\(/\)' \| \
21064          .     : '\(.\)' 2>/dev/null ||
21065 echo X$ac_file |
21066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21068           /^X\(\/\/\)$/{ s//\1/; q; }
21069           /^X\(\/\).*/{ s//\1/; q; }
21070           s/.*/./; q'`/stamp-h$_am_stamp_count
21071 done
21072 _ACEOF
21073 cat >>$CONFIG_STATUS <<\_ACEOF
21074
21075 #
21076 # CONFIG_COMMANDS section.
21077 #
21078 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21079   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21080   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21081   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21082 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21083          X"$ac_dest" : 'X\(//\)[^/]' \| \
21084          X"$ac_dest" : 'X\(//\)$' \| \
21085          X"$ac_dest" : 'X\(/\)' \| \
21086          .     : '\(.\)' 2>/dev/null ||
21087 echo X"$ac_dest" |
21088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21089           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21090           /^X\(\/\/\)$/{ s//\1/; q; }
21091           /^X\(\/\).*/{ s//\1/; q; }
21092           s/.*/./; q'`
21093   { if $as_mkdir_p; then
21094     mkdir -p "$ac_dir"
21095   else
21096     as_dir="$ac_dir"
21097     as_dirs=
21098     while test ! -d "$as_dir"; do
21099       as_dirs="$as_dir $as_dirs"
21100       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21102          X"$as_dir" : 'X\(//\)[^/]' \| \
21103          X"$as_dir" : 'X\(//\)$' \| \
21104          X"$as_dir" : 'X\(/\)' \| \
21105          .     : '\(.\)' 2>/dev/null ||
21106 echo X"$as_dir" |
21107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21108           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21109           /^X\(\/\/\)$/{ s//\1/; q; }
21110           /^X\(\/\).*/{ s//\1/; q; }
21111           s/.*/./; q'`
21112     done
21113     test ! -n "$as_dirs" || mkdir $as_dirs
21114   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21116    { (exit 1); exit 1; }; }; }
21117
21118   ac_builddir=.
21119
21120 if test "$ac_dir" != .; then
21121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21122   # A "../" for each directory in $ac_dir_suffix.
21123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21124 else
21125   ac_dir_suffix= ac_top_builddir=
21126 fi
21127
21128 case $srcdir in
21129   .)  # No --srcdir option.  We are building in place.
21130     ac_srcdir=.
21131     if test -z "$ac_top_builddir"; then
21132        ac_top_srcdir=.
21133     else
21134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21135     fi ;;
21136   [\\/]* | ?:[\\/]* )  # Absolute path.
21137     ac_srcdir=$srcdir$ac_dir_suffix;
21138     ac_top_srcdir=$srcdir ;;
21139   *) # Relative path.
21140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21142 esac
21143
21144 # Do not use `cd foo && pwd` to compute absolute paths, because
21145 # the directories may not exist.
21146 case `pwd` in
21147 .) ac_abs_builddir="$ac_dir";;
21148 *)
21149   case "$ac_dir" in
21150   .) ac_abs_builddir=`pwd`;;
21151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21153   esac;;
21154 esac
21155 case $ac_abs_builddir in
21156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21157 *)
21158   case ${ac_top_builddir}. in
21159   .) ac_abs_top_builddir=$ac_abs_builddir;;
21160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21162   esac;;
21163 esac
21164 case $ac_abs_builddir in
21165 .) ac_abs_srcdir=$ac_srcdir;;
21166 *)
21167   case $ac_srcdir in
21168   .) ac_abs_srcdir=$ac_abs_builddir;;
21169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21171   esac;;
21172 esac
21173 case $ac_abs_builddir in
21174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21175 *)
21176   case $ac_top_srcdir in
21177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21180   esac;;
21181 esac
21182
21183
21184   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21185 echo "$as_me: executing $ac_dest commands" >&6;}
21186   case $ac_dest in
21187     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21188   # Strip MF so we end up with the name of the file.
21189   mf=`echo "$mf" | sed -e 's/:.*$//'`
21190   # Check whether this is an Automake generated Makefile or not.
21191   # We used to match only the files named `Makefile.in', but
21192   # some people rename them; so instead we look at the file content.
21193   # Grep'ing the first line is not enough: some people post-process
21194   # each Makefile.in and add a new line on top of each file to say so.
21195   # So let's grep whole file.
21196   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21197     dirpart=`(dirname "$mf") 2>/dev/null ||
21198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21199          X"$mf" : 'X\(//\)[^/]' \| \
21200          X"$mf" : 'X\(//\)$' \| \
21201          X"$mf" : 'X\(/\)' \| \
21202          .     : '\(.\)' 2>/dev/null ||
21203 echo X"$mf" |
21204     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21205           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21206           /^X\(\/\/\)$/{ s//\1/; q; }
21207           /^X\(\/\).*/{ s//\1/; q; }
21208           s/.*/./; q'`
21209   else
21210     continue
21211   fi
21212   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21213   # Extract the definition of DEP_FILES from the Makefile without
21214   # running `make'.
21215   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21216   test -z "$DEPDIR" && continue
21217   # When using ansi2knr, U may be empty or an underscore; expand it
21218   U=`sed -n -e '/^U = / s///p' < "$mf"`
21219   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21220   # We invoke sed twice because it is the simplest approach to
21221   # changing $(DEPDIR) to its actual value in the expansion.
21222   for file in `sed -n -e '
21223     /^DEP_FILES = .*\\\\$/ {
21224       s/^DEP_FILES = //
21225       :loop
21226         s/\\\\$//
21227         p
21228         n
21229         /\\\\$/ b loop
21230       p
21231     }
21232     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21233        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21234     # Make sure the directory exists.
21235     test -f "$dirpart/$file" && continue
21236     fdir=`(dirname "$file") 2>/dev/null ||
21237 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21238          X"$file" : 'X\(//\)[^/]' \| \
21239          X"$file" : 'X\(//\)$' \| \
21240          X"$file" : 'X\(/\)' \| \
21241          .     : '\(.\)' 2>/dev/null ||
21242 echo X"$file" |
21243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21244           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21245           /^X\(\/\/\)$/{ s//\1/; q; }
21246           /^X\(\/\).*/{ s//\1/; q; }
21247           s/.*/./; q'`
21248     { if $as_mkdir_p; then
21249     mkdir -p $dirpart/$fdir
21250   else
21251     as_dir=$dirpart/$fdir
21252     as_dirs=
21253     while test ! -d "$as_dir"; do
21254       as_dirs="$as_dir $as_dirs"
21255       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257          X"$as_dir" : 'X\(//\)[^/]' \| \
21258          X"$as_dir" : 'X\(//\)$' \| \
21259          X"$as_dir" : 'X\(/\)' \| \
21260          .     : '\(.\)' 2>/dev/null ||
21261 echo X"$as_dir" |
21262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21263           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21264           /^X\(\/\/\)$/{ s//\1/; q; }
21265           /^X\(\/\).*/{ s//\1/; q; }
21266           s/.*/./; q'`
21267     done
21268     test ! -n "$as_dirs" || mkdir $as_dirs
21269   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21270 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21271    { (exit 1); exit 1; }; }; }
21272
21273     # echo "creating $dirpart/$file"
21274     echo '# dummy' > "$dirpart/$file"
21275   done
21276 done
21277  ;;
21278   esac
21279 done
21280 _ACEOF
21281
21282 cat >>$CONFIG_STATUS <<\_ACEOF
21283
21284 { (exit 0); exit 0; }
21285 _ACEOF
21286 chmod +x $CONFIG_STATUS
21287 ac_clean_files=$ac_clean_files_save
21288
21289
21290 # configure is writing to config.log, and then calls config.status.
21291 # config.status does its own redirection, appending to config.log.
21292 # Unfortunately, on DOS this fails, as config.log is still kept open
21293 # by configure, so config.status won't be able to write to it; its
21294 # output is simply discarded.  So we exec the FD to /dev/null,
21295 # effectively closing config.log, so it can be properly (re)opened and
21296 # appended to by config.status.  When coming back to configure, we
21297 # need to make the FD available again.
21298 if test "$no_create" != yes; then
21299   ac_cs_success=:
21300   ac_config_status_args=
21301   test "$silent" = yes &&
21302     ac_config_status_args="$ac_config_status_args --quiet"
21303   exec 5>/dev/null
21304   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21305   exec 5>>config.log
21306   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21307   # would make configure fail if this is the last instruction.
21308   $ac_cs_success || { (exit 1); exit 1; }
21309 fi
21310