OSDN Git Service

Autoreconf'ed
[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 AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EMACS lispdir CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE 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_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CC_set=${CC+set}
772 ac_env_CC_value=$CC
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
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   --disable-dependency-tracking Speeds up one-time builds
872   --enable-dependency-tracking  Do not reject slow dependency extractors
873   --enable-debug          Build a debugging version.
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-artstest       Do not try to compile and run a test ARTS program
898   --disable-esdtest       Do not try to compile and run a test ESD program
899   --disable-aotest       Do not try to compile and run a test ao program
900   --disable-oggtest       Do not try to compile and run a test Ogg program
901   --disable-vorbistest       Do not try to compile and run a test Vorbis program
902   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
903   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
904   --enable-interface=interface_list
905                           Comma separated interface list
906   --enable-dynamic        Enable dynamic link interface   (default is no)
907   --enable-dynamic=dynamic_list
908                           Comma separated dynamic interface list
909   --enable-ncurses        Enable ncurses interface        (default is no)
910   --enable-slang          Enable slang interface          (default is no)
911   --enable-motif          Enable motif interface          (default is no)
912   --enable-tcltk          Enable tcltk interface          (default is no)
913   --enable-emacs          Enable emacs interface          (default is no)
914   --enable-vt100          Enable VT100 interface          (default is no)
915   --enable-xaw            Enable athena interface         (default is no)
916   --enable-xskin          Enable X skin interface         (default is no)
917   --enable-gtk            Enable GTK+ interface           (default is no)
918   --disable-gtktest       do not try to compile and run a test GTK+ program
919   --disable-gtktest       Do not try to compile and run a test GTK program
920   --enable-server         Enable server interface         (default is no)
921   --enable-alsaseq        Enable ALSA sequencer server interface
922                                                           (default is no)
923   --enable-winsyn        Enable Windows Synthesizer interface
924                                                           (default is no)
925   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
926                                                           (default is no)
927   --enable-winsyng        Enable Windows GUI Synthesizer interface
928                                                           (default is no)
929   --enable-w32gui         Enable Windows GUI interface    (default is no)
930   --enable-ump            UMP configuration               (default is no)
931   --enable-windrv         Windows Driver interface(requires winsyn)
932   --enable-offix          Enable offix support            (default is no)
933   --enable-network        Enable network support          (default is no)
934   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
935   --enable-spline=method  Specify spline method.
936                                   one of no,linear,cubic,lagrange,newton,gauss
937                                                           (default is linear)
938   --enable-wrd            Enable WRD interface for X      (default is no)
939
940 Optional Packages:
941   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
942   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
943   --with-includes=DIR     Specify include directories (colon separated)
944   --with-libraries=DIR    Specify library directories (colon separated)
945   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
946   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
947   --with-lispdir          Override the default lisp directory
948   --with-elf              create ELF shared object instead of AOUT
949   --with-x                use the X Window System
950   --with-tcl-includes=DIR Tcl include file path
951   --with-tcl-libs=DIR     Tcl library file path
952   --with-tk-includes=DIR  Tk include file path
953   --with-tk-libs=DIR      Tk library file path
954   --with-offix-includes=DIR Offix include file path
955   --with-offix-libs=DIR   Offix include file path
956   --with-nas-library=library NAS absolute library path(Don't use -laudio)
957   --with-nas-includes=DIR NAS include files are in dir
958   --with-default-output=<mode>  Specify default output mode (optional):
959                                 (default|alsa|alib|arts|nas|
960                                 esd|wav|au|aiff|list|vorbis|flac|speex|
961                                 gogo|portaudio|jack|ao)
962   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
963   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
964   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
965   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
966   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
967   --with-ao=PFX   Prefix where libao is installed (optional)
968   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
969   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
970   --with-ogg=PFX   Prefix where libogg is installed (optional)
971   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
972   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
973   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
974   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
975   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
976   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
977   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
978   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
979   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
980   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
981   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
982   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
983   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
984
985 Some influential environment variables:
986   CXX         C++ compiler command
987   CXXFLAGS    C++ compiler flags
988   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
989               nonstandard directory <lib dir>
990   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
991               headers in a nonstandard directory <include dir>
992   CC          C compiler command
993   CFLAGS      C compiler flags
994   CPP         C preprocessor
995
996 Use these variables to override the choices made by `configure' or to help
997 it to find libraries and programs with nonstandard names/locations.
998
999 Report bugs to <root@mput.dip.jp>.
1000 _ACEOF
1001 fi
1002
1003 if test "$ac_init_help" = "recursive"; then
1004   # If there are subdirs, report their specific --help.
1005   ac_popdir=`pwd`
1006   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1007     test -d $ac_dir || continue
1008     ac_builddir=.
1009
1010 if test "$ac_dir" != .; then
1011   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1012   # A "../" for each directory in $ac_dir_suffix.
1013   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1014 else
1015   ac_dir_suffix= ac_top_builddir=
1016 fi
1017
1018 case $srcdir in
1019   .)  # No --srcdir option.  We are building in place.
1020     ac_srcdir=.
1021     if test -z "$ac_top_builddir"; then
1022        ac_top_srcdir=.
1023     else
1024        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1025     fi ;;
1026   [\\/]* | ?:[\\/]* )  # Absolute path.
1027     ac_srcdir=$srcdir$ac_dir_suffix;
1028     ac_top_srcdir=$srcdir ;;
1029   *) # Relative path.
1030     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1031     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1032 esac
1033
1034 # Do not use `cd foo && pwd` to compute absolute paths, because
1035 # the directories may not exist.
1036 case `pwd` in
1037 .) ac_abs_builddir="$ac_dir";;
1038 *)
1039   case "$ac_dir" in
1040   .) ac_abs_builddir=`pwd`;;
1041   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1042   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1043   esac;;
1044 esac
1045 case $ac_abs_builddir in
1046 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1047 *)
1048   case ${ac_top_builddir}. in
1049   .) ac_abs_top_builddir=$ac_abs_builddir;;
1050   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1051   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1052   esac;;
1053 esac
1054 case $ac_abs_builddir in
1055 .) ac_abs_srcdir=$ac_srcdir;;
1056 *)
1057   case $ac_srcdir in
1058   .) ac_abs_srcdir=$ac_abs_builddir;;
1059   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1060   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1061   esac;;
1062 esac
1063 case $ac_abs_builddir in
1064 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1065 *)
1066   case $ac_top_srcdir in
1067   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1068   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1069   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1070   esac;;
1071 esac
1072
1073     cd $ac_dir
1074     # Check for guested configure; otherwise get Cygnus style configure.
1075     if test -f $ac_srcdir/configure.gnu; then
1076       echo
1077       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1078     elif test -f $ac_srcdir/configure; then
1079       echo
1080       $SHELL $ac_srcdir/configure  --help=recursive
1081     elif test -f $ac_srcdir/configure.ac ||
1082            test -f $ac_srcdir/configure.in; then
1083       echo
1084       $ac_configure --help
1085     else
1086       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1087     fi
1088     cd $ac_popdir
1089   done
1090 fi
1091
1092 test -n "$ac_init_help" && exit 0
1093 if $ac_init_version; then
1094   cat <<\_ACEOF
1095 TiMidity++ configure 2.13.2
1096 generated by GNU Autoconf 2.59
1097
1098 Copyright (C) 2003 Free Software Foundation, Inc.
1099 This configure script is free software; the Free Software Foundation
1100 gives unlimited permission to copy, distribute and modify it.
1101 _ACEOF
1102   exit 0
1103 fi
1104 exec 5>config.log
1105 cat >&5 <<_ACEOF
1106 This file contains any messages produced by compilers while
1107 running configure, to aid debugging if configure makes a mistake.
1108
1109 It was created by TiMidity++ $as_me 2.13.2, which was
1110 generated by GNU Autoconf 2.59.  Invocation command line was
1111
1112   $ $0 $@
1113
1114 _ACEOF
1115 {
1116 cat <<_ASUNAME
1117 ## --------- ##
1118 ## Platform. ##
1119 ## --------- ##
1120
1121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1126
1127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1128 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1129
1130 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1131 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1133 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1134 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1135 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1136 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1137
1138 _ASUNAME
1139
1140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1141 for as_dir in $PATH
1142 do
1143   IFS=$as_save_IFS
1144   test -z "$as_dir" && as_dir=.
1145   echo "PATH: $as_dir"
1146 done
1147
1148 } >&5
1149
1150 cat >&5 <<_ACEOF
1151
1152
1153 ## ----------- ##
1154 ## Core tests. ##
1155 ## ----------- ##
1156
1157 _ACEOF
1158
1159
1160 # Keep a trace of the command line.
1161 # Strip out --no-create and --no-recursion so they do not pile up.
1162 # Strip out --silent because we don't want to record it for future runs.
1163 # Also quote any args containing shell meta-characters.
1164 # Make two passes to allow for proper duplicate-argument suppression.
1165 ac_configure_args=
1166 ac_configure_args0=
1167 ac_configure_args1=
1168 ac_sep=
1169 ac_must_keep_next=false
1170 for ac_pass in 1 2
1171 do
1172   for ac_arg
1173   do
1174     case $ac_arg in
1175     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1176     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177     | -silent | --silent | --silen | --sile | --sil)
1178       continue ;;
1179     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1180       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1181     esac
1182     case $ac_pass in
1183     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1184     2)
1185       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1186       if test $ac_must_keep_next = true; then
1187         ac_must_keep_next=false # Got value, back to normal.
1188       else
1189         case $ac_arg in
1190           *=* | --config-cache | -C | -disable-* | --disable-* \
1191           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1192           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1193           | -with-* | --with-* | -without-* | --without-* | --x)
1194             case "$ac_configure_args0 " in
1195               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1196             esac
1197             ;;
1198           -* ) ac_must_keep_next=true ;;
1199         esac
1200       fi
1201       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1202       # Get rid of the leading space.
1203       ac_sep=" "
1204       ;;
1205     esac
1206   done
1207 done
1208 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1209 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1210
1211 # When interrupted or exit'd, cleanup temporary files, and complete
1212 # config.log.  We remove comments because anyway the quotes in there
1213 # would cause problems or look ugly.
1214 # WARNING: Be sure not to use single quotes in there, as some shells,
1215 # such as our DU 5.0 friend, will then `close' the trap.
1216 trap 'exit_status=$?
1217   # Save into config.log some information that might help in debugging.
1218   {
1219     echo
1220
1221     cat <<\_ASBOX
1222 ## ---------------- ##
1223 ## Cache variables. ##
1224 ## ---------------- ##
1225 _ASBOX
1226     echo
1227     # The following way of writing the cache mishandles newlines in values,
1228 {
1229   (set) 2>&1 |
1230     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1231     *ac_space=\ *)
1232       sed -n \
1233         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1234           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1235       ;;
1236     *)
1237       sed -n \
1238         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1239       ;;
1240     esac;
1241 }
1242     echo
1243
1244     cat <<\_ASBOX
1245 ## ----------------- ##
1246 ## Output variables. ##
1247 ## ----------------- ##
1248 _ASBOX
1249     echo
1250     for ac_var in $ac_subst_vars
1251     do
1252       eval ac_val=$`echo $ac_var`
1253       echo "$ac_var='"'"'$ac_val'"'"'"
1254     done | sort
1255     echo
1256
1257     if test -n "$ac_subst_files"; then
1258       cat <<\_ASBOX
1259 ## ------------- ##
1260 ## Output files. ##
1261 ## ------------- ##
1262 _ASBOX
1263       echo
1264       for ac_var in $ac_subst_files
1265       do
1266         eval ac_val=$`echo $ac_var`
1267         echo "$ac_var='"'"'$ac_val'"'"'"
1268       done | sort
1269       echo
1270     fi
1271
1272     if test -s confdefs.h; then
1273       cat <<\_ASBOX
1274 ## ----------- ##
1275 ## confdefs.h. ##
1276 ## ----------- ##
1277 _ASBOX
1278       echo
1279       sed "/^$/d" confdefs.h | sort
1280       echo
1281     fi
1282     test "$ac_signal" != 0 &&
1283       echo "$as_me: caught signal $ac_signal"
1284     echo "$as_me: exit $exit_status"
1285   } >&5
1286   rm -f core *.core &&
1287   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1288     exit $exit_status
1289      ' 0
1290 for ac_signal in 1 2 13 15; do
1291   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1292 done
1293 ac_signal=0
1294
1295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1296 rm -rf conftest* confdefs.h
1297 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1298 echo >confdefs.h
1299
1300 # Predefined preprocessor variables.
1301
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_NAME "$PACKAGE_NAME"
1304 _ACEOF
1305
1306
1307 cat >>confdefs.h <<_ACEOF
1308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1309 _ACEOF
1310
1311
1312 cat >>confdefs.h <<_ACEOF
1313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1314 _ACEOF
1315
1316
1317 cat >>confdefs.h <<_ACEOF
1318 #define PACKAGE_STRING "$PACKAGE_STRING"
1319 _ACEOF
1320
1321
1322 cat >>confdefs.h <<_ACEOF
1323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1324 _ACEOF
1325
1326
1327 # Let the site file select an alternate cache file if it wants to.
1328 # Prefer explicitly selected file to automatically selected ones.
1329 if test -z "$CONFIG_SITE"; then
1330   if test "x$prefix" != xNONE; then
1331     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1332   else
1333     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1334   fi
1335 fi
1336 for ac_site_file in $CONFIG_SITE; do
1337   if test -r "$ac_site_file"; then
1338     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1339 echo "$as_me: loading site script $ac_site_file" >&6;}
1340     sed 's/^/| /' "$ac_site_file" >&5
1341     . "$ac_site_file"
1342   fi
1343 done
1344
1345 if test -r "$cache_file"; then
1346   # Some versions of bash will fail to source /dev/null (special
1347   # files actually), so we avoid doing that.
1348   if test -f "$cache_file"; then
1349     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1350 echo "$as_me: loading cache $cache_file" >&6;}
1351     case $cache_file in
1352       [\\/]* | ?:[\\/]* ) . $cache_file;;
1353       *)                      . ./$cache_file;;
1354     esac
1355   fi
1356 else
1357   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1358 echo "$as_me: creating cache $cache_file" >&6;}
1359   >$cache_file
1360 fi
1361
1362 # Check that the precious variables saved in the cache have kept the same
1363 # value.
1364 ac_cache_corrupted=false
1365 for ac_var in `(set) 2>&1 |
1366                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1367   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1368   eval ac_new_set=\$ac_env_${ac_var}_set
1369   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1370   eval ac_new_val="\$ac_env_${ac_var}_value"
1371   case $ac_old_set,$ac_new_set in
1372     set,)
1373       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1374 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1375       ac_cache_corrupted=: ;;
1376     ,set)
1377       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1378 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1379       ac_cache_corrupted=: ;;
1380     ,);;
1381     *)
1382       if test "x$ac_old_val" != "x$ac_new_val"; then
1383         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1384 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1385         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1386 echo "$as_me:   former value:  $ac_old_val" >&2;}
1387         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1388 echo "$as_me:   current value: $ac_new_val" >&2;}
1389         ac_cache_corrupted=:
1390       fi;;
1391   esac
1392   # Pass precious variables to config.status.
1393   if test "$ac_new_set" = set; then
1394     case $ac_new_val in
1395     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1396       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1397     *) ac_arg=$ac_var=$ac_new_val ;;
1398     esac
1399     case " $ac_configure_args " in
1400       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1401       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1402     esac
1403   fi
1404 done
1405 if $ac_cache_corrupted; then
1406   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1407 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1408   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1409 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1410    { (exit 1); exit 1; }; }
1411 fi
1412
1413 ac_ext=c
1414 ac_cpp='$CPP $CPPFLAGS'
1415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1445 ac_aux_dir=
1446 for ac_dir in autoconf $srcdir/autoconf; do
1447   if test -f $ac_dir/install-sh; then
1448     ac_aux_dir=$ac_dir
1449     ac_install_sh="$ac_aux_dir/install-sh -c"
1450     break
1451   elif test -f $ac_dir/install.sh; then
1452     ac_aux_dir=$ac_dir
1453     ac_install_sh="$ac_aux_dir/install.sh -c"
1454     break
1455   elif test -f $ac_dir/shtool; then
1456     ac_aux_dir=$ac_dir
1457     ac_install_sh="$ac_aux_dir/shtool install -c"
1458     break
1459   fi
1460 done
1461 if test -z "$ac_aux_dir"; then
1462   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1463 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1467 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1468 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1469
1470 # Make sure we can run config.sub.
1471 $ac_config_sub sun4 >/dev/null 2>&1 ||
1472   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1473 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1474    { (exit 1); exit 1; }; }
1475
1476 echo "$as_me:$LINENO: checking build system type" >&5
1477 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1478 if test "${ac_cv_build+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   ac_cv_build_alias=$build_alias
1482 test -z "$ac_cv_build_alias" &&
1483   ac_cv_build_alias=`$ac_config_guess`
1484 test -z "$ac_cv_build_alias" &&
1485   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1486 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1487    { (exit 1); exit 1; }; }
1488 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1489   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1491    { (exit 1); exit 1; }; }
1492
1493 fi
1494 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1495 echo "${ECHO_T}$ac_cv_build" >&6
1496 build=$ac_cv_build
1497 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1500
1501
1502 echo "$as_me:$LINENO: checking host system type" >&5
1503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1504 if test "${ac_cv_host+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   ac_cv_host_alias=$host_alias
1508 test -z "$ac_cv_host_alias" &&
1509   ac_cv_host_alias=$ac_cv_build_alias
1510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1511   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1513    { (exit 1); exit 1; }; }
1514
1515 fi
1516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1517 echo "${ECHO_T}$ac_cv_host" >&6
1518 host=$ac_cv_host
1519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1522
1523
1524 echo "$as_me:$LINENO: checking target system type" >&5
1525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1526 if test "${ac_cv_target+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   ac_cv_target_alias=$target_alias
1530 test "x$ac_cv_target_alias" = "x" &&
1531   ac_cv_target_alias=$ac_cv_host_alias
1532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1533   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 fi
1538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1539 echo "${ECHO_T}$ac_cv_target" >&6
1540 target=$ac_cv_target
1541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546 # The aliases save the names the user supplied, while $host etc.
1547 # will get canonicalized.
1548 test -n "$target_alias" &&
1549   test "$program_prefix$program_suffix$program_transform_name" = \
1550     NONENONEs,x,x, &&
1551   program_prefix=${target_alias}-
1552 am__api_version="1.7"
1553 # Find a good install program.  We prefer a C program (faster),
1554 # so one script is as good as another.  But avoid the broken or
1555 # incompatible versions:
1556 # SysV /etc/install, /usr/sbin/install
1557 # SunOS /usr/etc/install
1558 # IRIX /sbin/install
1559 # AIX /bin/install
1560 # AmigaOS /C/install, which installs bootblocks on floppy discs
1561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1564 # OS/2's system install, which has a completely different semantic
1565 # ./install, which can be erroneously created by make from ./install.sh.
1566 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1567 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1568 if test -z "$INSTALL"; then
1569 if test "${ac_cv_path_install+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   # Account for people who put trailing slashes in PATH elements.
1578 case $as_dir/ in
1579   ./ | .// | /cC/* | \
1580   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1581   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1582   /usr/ucb/* ) ;;
1583   *)
1584     # OSF1 and SCO ODT 3.0 have their own names for install.
1585     # Don't use installbsd from OSF since it installs stuff as root
1586     # by default.
1587     for ac_prog in ginstall scoinst install; do
1588       for ac_exec_ext in '' $ac_executable_extensions; do
1589         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1590           if test $ac_prog = install &&
1591             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1592             # AIX install.  It has an incompatible calling convention.
1593             :
1594           elif test $ac_prog = install &&
1595             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596             # program-specific install script used by HP pwplus--don't use.
1597             :
1598           else
1599             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1600             break 3
1601           fi
1602         fi
1603       done
1604     done
1605     ;;
1606 esac
1607 done
1608
1609
1610 fi
1611   if test "${ac_cv_path_install+set}" = set; then
1612     INSTALL=$ac_cv_path_install
1613   else
1614     # As a last resort, use the slow shell script.  We don't cache a
1615     # path for INSTALL within a source directory, because that will
1616     # break other packages using the cache if that directory is
1617     # removed, or if the path is relative.
1618     INSTALL=$ac_install_sh
1619   fi
1620 fi
1621 echo "$as_me:$LINENO: result: $INSTALL" >&5
1622 echo "${ECHO_T}$INSTALL" >&6
1623
1624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1625 # It thinks the first close brace ends the variable substitution.
1626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1627
1628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1629
1630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1631
1632 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1633 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1634 # Just in case
1635 sleep 1
1636 echo timestamp > conftest.file
1637 # Do `set' in a subshell so we don't clobber the current shell's
1638 # arguments.  Must try -L first in case configure is actually a
1639 # symlink; some systems play weird games with the mod time of symlinks
1640 # (eg FreeBSD returns the mod time of the symlink's containing
1641 # directory).
1642 if (
1643    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1644    if test "$*" = "X"; then
1645       # -L didn't work.
1646       set X `ls -t $srcdir/configure conftest.file`
1647    fi
1648    rm -f conftest.file
1649    if test "$*" != "X $srcdir/configure conftest.file" \
1650       && test "$*" != "X conftest.file $srcdir/configure"; then
1651
1652       # If neither matched, then we have a broken ls.  This can happen
1653       # if, for instance, CONFIG_SHELL is bash and it inherits a
1654       # broken ls alias from the environment.  This has actually
1655       # happened.  Such a system could not be considered "sane".
1656       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1657 alias in your environment" >&5
1658 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1659 alias in your environment" >&2;}
1660    { (exit 1); exit 1; }; }
1661    fi
1662
1663    test "$2" = conftest.file
1664    )
1665 then
1666    # Ok.
1667    :
1668 else
1669    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1670 Check your system clock" >&5
1671 echo "$as_me: error: newly created file is older than distributed files!
1672 Check your system clock" >&2;}
1673    { (exit 1); exit 1; }; }
1674 fi
1675 echo "$as_me:$LINENO: result: yes" >&5
1676 echo "${ECHO_T}yes" >&6
1677 test "$program_prefix" != NONE &&
1678   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1679 # Use a double $ so make ignores it.
1680 test "$program_suffix" != NONE &&
1681   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1682 # Double any \ or $.  echo might interpret backslashes.
1683 # By default was `s,x,x', remove it if useless.
1684 cat <<\_ACEOF >conftest.sed
1685 s/[\\$]/&&/g;s/;s,x,x,$//
1686 _ACEOF
1687 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1688 rm conftest.sed
1689
1690
1691 # expand $ac_aux_dir to an absolute path
1692 am_aux_dir=`cd $ac_aux_dir && pwd`
1693
1694 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1695 # Use eval to expand $SHELL
1696 if eval "$MISSING --run true"; then
1697   am_missing_run="$MISSING --run "
1698 else
1699   am_missing_run=
1700   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1701 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1702 fi
1703
1704 for ac_prog in gawk mawk nawk awk
1705 do
1706   # Extract the first word of "$ac_prog", so it can be a program name with args.
1707 set dummy $ac_prog; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_AWK+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   if test -n "$AWK"; then
1714   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   for ac_exec_ext in '' $ac_executable_extensions; do
1722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723     ac_cv_prog_AWK="$ac_prog"
1724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725     break 2
1726   fi
1727 done
1728 done
1729
1730 fi
1731 fi
1732 AWK=$ac_cv_prog_AWK
1733 if test -n "$AWK"; then
1734   echo "$as_me:$LINENO: result: $AWK" >&5
1735 echo "${ECHO_T}$AWK" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741   test -n "$AWK" && break
1742 done
1743
1744 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1745 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1746 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1747 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   cat >conftest.make <<\_ACEOF
1751 all:
1752         @echo 'ac_maketemp="$(MAKE)"'
1753 _ACEOF
1754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1755 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1756 if test -n "$ac_maketemp"; then
1757   eval ac_cv_prog_make_${ac_make}_set=yes
1758 else
1759   eval ac_cv_prog_make_${ac_make}_set=no
1760 fi
1761 rm -f conftest.make
1762 fi
1763 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1764   echo "$as_me:$LINENO: result: yes" >&5
1765 echo "${ECHO_T}yes" >&6
1766   SET_MAKE=
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770   SET_MAKE="MAKE=${MAKE-make}"
1771 fi
1772
1773 rm -rf .tst 2>/dev/null
1774 mkdir .tst 2>/dev/null
1775 if test -d .tst; then
1776   am__leading_dot=.
1777 else
1778   am__leading_dot=_
1779 fi
1780 rmdir .tst 2>/dev/null
1781
1782  # test to see if srcdir already configured
1783 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1784    test -f $srcdir/config.status; then
1785   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1786 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1787    { (exit 1); exit 1; }; }
1788 fi
1789
1790 # test whether we have cygpath
1791 if test -z "$CYGPATH_W"; then
1792   if (cygpath --version) >/dev/null 2>/dev/null; then
1793     CYGPATH_W='cygpath -w'
1794   else
1795     CYGPATH_W=echo
1796   fi
1797 fi
1798
1799
1800 # Define the identity of the package.
1801  PACKAGE='TiMidity++'
1802  VERSION='2.13.2'
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE "$PACKAGE"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define VERSION "$VERSION"
1812 _ACEOF
1813
1814 # Some tools Automake needs.
1815
1816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1817
1818
1819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1820
1821
1822 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1823
1824
1825 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1826
1827
1828 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1829
1830
1831 AMTAR=${AMTAR-"${am_missing_run}tar"}
1832
1833 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1834
1835 # Installed binaries are usually stripped using `strip' when the user
1836 # run `make install-strip'.  However `strip' might not be the right
1837 # tool to use in cross-compilation environments, therefore Automake
1838 # will honor the `STRIP' environment variable to overrule this program.
1839 if test "$cross_compiling" != no; then
1840   if test -n "$ac_tool_prefix"; then
1841   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}strip; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_STRIP+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   if test -n "$STRIP"; then
1849   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856   for ac_exec_ext in '' $ac_executable_extensions; do
1857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860     break 2
1861   fi
1862 done
1863 done
1864
1865 fi
1866 fi
1867 STRIP=$ac_cv_prog_STRIP
1868 if test -n "$STRIP"; then
1869   echo "$as_me:$LINENO: result: $STRIP" >&5
1870 echo "${ECHO_T}$STRIP" >&6
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876 fi
1877 if test -z "$ac_cv_prog_STRIP"; then
1878   ac_ct_STRIP=$STRIP
1879   # Extract the first word of "strip", so it can be a program name with args.
1880 set dummy strip; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$ac_ct_STRIP"; then
1887   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_ac_ct_STRIP="strip"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1904 fi
1905 fi
1906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1907 if test -n "$ac_ct_STRIP"; then
1908   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1909 echo "${ECHO_T}$ac_ct_STRIP" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915   STRIP=$ac_ct_STRIP
1916 else
1917   STRIP="$ac_cv_prog_STRIP"
1918 fi
1919
1920 fi
1921 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1922
1923 # We need awk for the "check" target.  The system "awk" is bad on
1924 # some platforms.
1925
1926
1927
1928
1929                     ac_config_headers="$ac_config_headers config.h interface.h"
1930
1931 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1932 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1933     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1934 if test "${enable_maintainer_mode+set}" = set; then
1935   enableval="$enable_maintainer_mode"
1936   USE_MAINTAINER_MODE=$enableval
1937 else
1938   USE_MAINTAINER_MODE=no
1939 fi;
1940   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1941 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1942
1943
1944 if test $USE_MAINTAINER_MODE = yes; then
1945   MAINTAINER_MODE_TRUE=
1946   MAINTAINER_MODE_FALSE='#'
1947 else
1948   MAINTAINER_MODE_TRUE='#'
1949   MAINTAINER_MODE_FALSE=
1950 fi
1951
1952   MAINT=$MAINTAINER_MODE_TRUE
1953
1954
1955 ac_ext=cc
1956 ac_cpp='$CXXCPP $CPPFLAGS'
1957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1960 if test -n "$ac_tool_prefix"; then
1961   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1962   do
1963     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CXX+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$CXX"; then
1971   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 CXX=$ac_cv_prog_CXX
1990 if test -n "$CXX"; then
1991   echo "$as_me:$LINENO: result: $CXX" >&5
1992 echo "${ECHO_T}$CXX" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998     test -n "$CXX" && break
1999   done
2000 fi
2001 if test -z "$CXX"; then
2002   ac_ct_CXX=$CXX
2003   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2004 do
2005   # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy $ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$ac_ct_CXX"; then
2013   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022     ac_cv_prog_ac_ct_CXX="$ac_prog"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028
2029 fi
2030 fi
2031 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2032 if test -n "$ac_ct_CXX"; then
2033   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2034 echo "${ECHO_T}$ac_ct_CXX" >&6
2035 else
2036   echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2038 fi
2039
2040   test -n "$ac_ct_CXX" && break
2041 done
2042 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2043
2044   CXX=$ac_ct_CXX
2045 fi
2046
2047
2048 # Provide some information about the compiler.
2049 echo "$as_me:$LINENO:" \
2050      "checking for C++ compiler version" >&5
2051 ac_compiler=`set X $ac_compile; echo $2`
2052 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2053   (eval $ac_compiler --version </dev/null >&5) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); }
2057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2058   (eval $ac_compiler -v </dev/null >&5) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }
2062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2063   (eval $ac_compiler -V </dev/null >&5) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }
2067
2068 cat >conftest.$ac_ext <<_ACEOF
2069 /* confdefs.h.  */
2070 _ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h.  */
2074
2075 int
2076 main ()
2077 {
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 ac_clean_files_save=$ac_clean_files
2084 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2085 # Try to create an executable without -o first, disregard a.out.
2086 # It will help us diagnose broken compilers, and finding out an intuition
2087 # of exeext.
2088 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2089 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2090 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2091 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2092   (eval $ac_link_default) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; then
2096   # Find the output, starting from the most likely.  This scheme is
2097 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2098 # resort.
2099
2100 # Be careful to initialize this variable, since it used to be cached.
2101 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2102 ac_cv_exeext=
2103 # b.out is created by i960 compilers.
2104 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2105 do
2106   test -f "$ac_file" || continue
2107   case $ac_file in
2108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2109         ;;
2110     conftest.$ac_ext )
2111         # This is the source file.
2112         ;;
2113     [ab].out )
2114         # We found the default executable, but exeext='' is most
2115         # certainly right.
2116         break;;
2117     *.* )
2118         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2119         # FIXME: I believe we export ac_cv_exeext for Libtool,
2120         # but it would be cool to find out if it's true.  Does anybody
2121         # maintain Libtool? --akim.
2122         export ac_cv_exeext
2123         break;;
2124     * )
2125         break;;
2126   esac
2127 done
2128 else
2129   echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: C++ compiler cannot create executables
2135 See \`config.log' for more details." >&2;}
2136    { (exit 77); exit 77; }; }
2137 fi
2138
2139 ac_exeext=$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_file" >&5
2141 echo "${ECHO_T}$ac_file" >&6
2142
2143 # Check the compiler produces executables we can run.  If not, either
2144 # the compiler is broken, or we cross compile.
2145 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2146 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2147 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2148 # If not cross compiling, check that we can run a simple program.
2149 if test "$cross_compiling" != yes; then
2150   if { ac_try='./$ac_file'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; }; then
2156     cross_compiling=no
2157   else
2158     if test "$cross_compiling" = maybe; then
2159         cross_compiling=yes
2160     else
2161         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2162 If you meant to cross compile, use \`--host'.
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot run C++ compiled programs.
2165 If you meant to cross compile, use \`--host'.
2166 See \`config.log' for more details." >&2;}
2167    { (exit 1); exit 1; }; }
2168     fi
2169   fi
2170 fi
2171 echo "$as_me:$LINENO: result: yes" >&5
2172 echo "${ECHO_T}yes" >&6
2173
2174 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2175 ac_clean_files=$ac_clean_files_save
2176 # Check the compiler produces executables we can run.  If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2179 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2180 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2181 echo "${ECHO_T}$cross_compiling" >&6
2182
2183 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2184 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2186   (eval $ac_link) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; then
2190   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2191 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2192 # work properly (i.e., refer to `conftest.exe'), while it won't with
2193 # `rm'.
2194 for ac_file in conftest.exe conftest conftest.*; do
2195   test -f "$ac_file" || continue
2196   case $ac_file in
2197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2198     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2199           export ac_cv_exeext
2200           break;;
2201     * ) break;;
2202   esac
2203 done
2204 else
2205   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&2;}
2209    { (exit 1); exit 1; }; }
2210 fi
2211
2212 rm -f conftest$ac_cv_exeext
2213 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2214 echo "${ECHO_T}$ac_cv_exeext" >&6
2215
2216 rm -f conftest.$ac_ext
2217 EXEEXT=$ac_cv_exeext
2218 ac_exeext=$EXEEXT
2219 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2220 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2221 if test "${ac_cv_objext+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h.  */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h.  */
2230
2231 int
2232 main ()
2233 {
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 rm -f conftest.o conftest.obj
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241   (eval $ac_compile) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; then
2245   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2246   case $ac_file in
2247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2248     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2249        break;;
2250   esac
2251 done
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&2;}
2260    { (exit 1); exit 1; }; }
2261 fi
2262
2263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2264 fi
2265 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2266 echo "${ECHO_T}$ac_cv_objext" >&6
2267 OBJEXT=$ac_cv_objext
2268 ac_objext=$OBJEXT
2269 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2270 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2271 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   cat >conftest.$ac_ext <<_ACEOF
2275 /* confdefs.h.  */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h.  */
2280
2281 int
2282 main ()
2283 {
2284 #ifndef __GNUC__
2285        choke me
2286 #endif
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294   (eval $ac_compile) 2>conftest.er1
2295   ac_status=$?
2296   grep -v '^ *+' conftest.er1 >conftest.err
2297   rm -f conftest.er1
2298   cat conftest.err >&5
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); } &&
2301          { ac_try='test -z "$ac_cxx_werror_flag"
2302                          || test ! -s conftest.err'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; } &&
2308          { ac_try='test -s conftest.$ac_objext'
2309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310   (eval $ac_try) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; }; then
2314   ac_compiler_gnu=yes
2315 else
2316   echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 ac_compiler_gnu=no
2320 fi
2321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2323
2324 fi
2325 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2326 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2327 GXX=`test $ac_compiler_gnu = yes && echo yes`
2328 ac_test_CXXFLAGS=${CXXFLAGS+set}
2329 ac_save_CXXFLAGS=$CXXFLAGS
2330 CXXFLAGS="-g"
2331 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2332 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2333 if test "${ac_cv_prog_cxx_g+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342
2343 int
2344 main ()
2345 {
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>conftest.er1
2354   ac_status=$?
2355   grep -v '^ *+' conftest.er1 >conftest.err
2356   rm -f conftest.er1
2357   cat conftest.err >&5
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -z "$ac_cxx_werror_flag"
2361                          || test ! -s conftest.err'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   ac_cv_prog_cxx_g=yes
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 ac_cv_prog_cxx_g=no
2379 fi
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 fi
2382 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2383 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2384 if test "$ac_test_CXXFLAGS" = set; then
2385   CXXFLAGS=$ac_save_CXXFLAGS
2386 elif test $ac_cv_prog_cxx_g = yes; then
2387   if test "$GXX" = yes; then
2388     CXXFLAGS="-g -O2"
2389   else
2390     CXXFLAGS="-g"
2391   fi
2392 else
2393   if test "$GXX" = yes; then
2394     CXXFLAGS="-O2"
2395   else
2396     CXXFLAGS=
2397   fi
2398 fi
2399 for ac_declaration in \
2400    '' \
2401    'extern "C" void std::exit (int) throw (); using std::exit;' \
2402    'extern "C" void std::exit (int); using std::exit;' \
2403    'extern "C" void exit (int) throw ();' \
2404    'extern "C" void exit (int);' \
2405    'void exit (int);'
2406 do
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413 $ac_declaration
2414 #include <stdlib.h>
2415 int
2416 main ()
2417 {
2418 exit (42);
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425   (eval $ac_compile) 2>conftest.er1
2426   ac_status=$?
2427   grep -v '^ *+' conftest.er1 >conftest.err
2428   rm -f conftest.er1
2429   cat conftest.err >&5
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); } &&
2432          { ac_try='test -z "$ac_cxx_werror_flag"
2433                          || test ! -s conftest.err'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445   :
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 continue
2451 fi
2452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459 $ac_declaration
2460 int
2461 main ()
2462 {
2463 exit (42);
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470   (eval $ac_compile) 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_cxx_werror_flag"
2478                          || test ! -s conftest.err'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; } &&
2484          { ac_try='test -s conftest.$ac_objext'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   break
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 fi
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 done
2498 rm -f conftest*
2499 if test -n "$ac_declaration"; then
2500   echo '#ifdef __cplusplus' >>confdefs.h
2501   echo $ac_declaration      >>confdefs.h
2502   echo '#endif'             >>confdefs.h
2503 fi
2504
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 DEPDIR="${am__leading_dot}deps"
2511
2512           ac_config_commands="$ac_config_commands depfiles"
2513
2514
2515 am_make=${MAKE-make}
2516 cat > confinc << 'END'
2517 am__doit:
2518         @echo done
2519 .PHONY: am__doit
2520 END
2521 # If we don't find an include directive, just comment out the code.
2522 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2523 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2524 am__include="#"
2525 am__quote=
2526 _am_result=none
2527 # First try GNU make style include.
2528 echo "include confinc" > confmf
2529 # We grep out `Entering directory' and `Leaving directory'
2530 # messages which can occur if `w' ends up in MAKEFLAGS.
2531 # In particular we don't look at `^make:' because GNU make might
2532 # be invoked under some other name (usually "gmake"), in which
2533 # case it prints its new name instead of `make'.
2534 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2535    am__include=include
2536    am__quote=
2537    _am_result=GNU
2538 fi
2539 # Now try BSD make style include.
2540 if test "$am__include" = "#"; then
2541    echo '.include "confinc"' > confmf
2542    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2543       am__include=.include
2544       am__quote="\""
2545       _am_result=BSD
2546    fi
2547 fi
2548
2549
2550 echo "$as_me:$LINENO: result: $_am_result" >&5
2551 echo "${ECHO_T}$_am_result" >&6
2552 rm -f confinc confmf
2553
2554 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2555 if test "${enable_dependency_tracking+set}" = set; then
2556   enableval="$enable_dependency_tracking"
2557
2558 fi;
2559 if test "x$enable_dependency_tracking" != xno; then
2560   am_depcomp="$ac_aux_dir/depcomp"
2561   AMDEPBACKSLASH='\'
2562 fi
2563
2564
2565 if test "x$enable_dependency_tracking" != xno; then
2566   AMDEP_TRUE=
2567   AMDEP_FALSE='#'
2568 else
2569   AMDEP_TRUE='#'
2570   AMDEP_FALSE=
2571 fi
2572
2573
2574
2575
2576 depcc="$CXX"  am_compiler_list=
2577
2578 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2579 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2580 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2584   # We make a subdir and do the tests there.  Otherwise we can end up
2585   # making bogus files that we don't know about and never remove.  For
2586   # instance it was reported that on HP-UX the gcc test will end up
2587   # making a dummy file named `D' -- because `-MD' means `put the output
2588   # in D'.
2589   mkdir conftest.dir
2590   # Copy depcomp to subdir because otherwise we won't find it if we're
2591   # using a relative directory.
2592   cp "$am_depcomp" conftest.dir
2593   cd conftest.dir
2594   # We will build objects and dependencies in a subdirectory because
2595   # it helps to detect inapplicable dependency modes.  For instance
2596   # both Tru64's cc and ICC support -MD to output dependencies as a
2597   # side effect of compilation, but ICC will put the dependencies in
2598   # the current directory while Tru64 will put them in the object
2599   # directory.
2600   mkdir sub
2601
2602   am_cv_CXX_dependencies_compiler_type=none
2603   if test "$am_compiler_list" = ""; then
2604      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2605   fi
2606   for depmode in $am_compiler_list; do
2607     # Setup a source with many dependencies, because some compilers
2608     # like to wrap large dependency lists on column 80 (with \), and
2609     # we should not choose a depcomp mode which is confused by this.
2610     #
2611     # We need to recreate these files for each test, as the compiler may
2612     # overwrite some of them when testing with obscure command lines.
2613     # This happens at least with the AIX C compiler.
2614     : > sub/conftest.c
2615     for i in 1 2 3 4 5 6; do
2616       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2617       : > sub/conftst$i.h
2618     done
2619     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2620
2621     case $depmode in
2622     nosideeffect)
2623       # after this tag, mechanisms are not by side-effect, so they'll
2624       # only be used when explicitly requested
2625       if test "x$enable_dependency_tracking" = xyes; then
2626         continue
2627       else
2628         break
2629       fi
2630       ;;
2631     none) break ;;
2632     esac
2633     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2634     # mode.  It turns out that the SunPro C++ compiler does not properly
2635     # handle `-M -o', and we need to detect this.
2636     if depmode=$depmode \
2637        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2638        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2639        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2640          >/dev/null 2>conftest.err &&
2641        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2642        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2643        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2644       # icc doesn't choke on unknown options, it will just issue warnings
2645       # (even with -Werror).  So we grep stderr for any message
2646       # that says an option was ignored.
2647       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2648         am_cv_CXX_dependencies_compiler_type=$depmode
2649         break
2650       fi
2651     fi
2652   done
2653
2654   cd ..
2655   rm -rf conftest.dir
2656 else
2657   am_cv_CXX_dependencies_compiler_type=none
2658 fi
2659
2660 fi
2661 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2662 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2663 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2664
2665
2666
2667 if
2668   test "x$enable_dependency_tracking" != xno \
2669   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2670   am__fastdepCXX_TRUE=
2671   am__fastdepCXX_FALSE='#'
2672 else
2673   am__fastdepCXX_TRUE='#'
2674   am__fastdepCXX_FALSE=
2675 fi
2676
2677
2678
2679 SHELL=${CONFIG_SHELL-"/bin/sh"}
2680 WISH=${WISH-"wish"}
2681
2682 echo "$as_me:$LINENO: checking whether grep returns status" >&5
2683 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
2684 echo "grimblepritz" >grimble
2685 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2686         contains="./contains"
2687 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2688         contains=grep
2689 else
2690         contains="./contains"
2691 fi
2692 rm -f grimble
2693 case "$contains" in
2694 grep)   echo "$as_me:$LINENO: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6
2696         ;;
2697 ./contains)
2698         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
2699 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
2700         cat >./contains <<'EOSS'
2701 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2702 EOSS
2703         chmod +x "./contains"
2704         ;;
2705 esac
2706
2707
2708 # Check for compiler options -- such as debug flags.
2709
2710 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2711 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
2712 # Check whether --enable-debug or --disable-debug was given.
2713 if test "${enable_debug+set}" = set; then
2714   enableval="$enable_debug"
2715   timidity_cv_debug="yes"
2716 else
2717   timidity_cv_debug="no"
2718 fi;
2719 if test "x$timidity_cv_debug" = "xyes"; then
2720
2721 cat >>confdefs.h <<\_ACEOF
2722 #define DEBUG 1
2723 _ACEOF
2724
2725   CFLAGS=${CFLAGS-"-g"}
2726 fi
2727 if test "x$timidity_cv_debug" = "xno"; then
2728
2729 cat >>confdefs.h <<\_ACEOF
2730 #define NDEBUG 1
2731 _ACEOF
2732
2733 fi
2734 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2735 echo "${ECHO_T}$timidity_cv_debug" >&6
2736
2737 if test "x$CFLAGS" = "x"; then
2738   NOCFLAGS="yes"
2739 fi
2740
2741 if test "x$with_x" = x; then
2742   with_x=yes
2743 else
2744   x_config_flag=yes
2745 fi
2746
2747 # Checking gcc environment
2748 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2749   LDFLAGS="$LDFLAGS -L${i}"
2750 done
2751 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2752   CPPFLAGS="$CPPFLAGS -I${i}"
2753 done
2754
2755 # add $prefix if specified.
2756 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2757   LDFLAGS="-L$prefix/lib $LDFLAGS"
2758   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2759   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2760 fi
2761
2762
2763 # Check whether --with-includes or --without-includes was given.
2764 if test "${with_includes+set}" = set; then
2765   withval="$with_includes"
2766    j=' '
2767     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2768       j="${j}-I${i} "
2769     done
2770     CPPFLAGS="$j$CPPFLAGS"
2771
2772 fi;
2773
2774
2775 # Check whether --with-libraries or --without-libraries was given.
2776 if test "${with_libraries+set}" = set; then
2777   withval="$with_libraries"
2778    j=' '
2779     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2780       j="${j}-L${i} "
2781     done
2782     LDFLAGS="$j$LDFLAGS"
2783
2784 fi;
2785
2786
2787
2788 # Check whether --with-default-path or --without-default-path was given.
2789 if test "${with_default_path+set}" = set; then
2790   withval="$with_default_path"
2791   pkgdatadir=$withval
2792 else
2793
2794    if test "x$prefix" != "xNONE"; then
2795       pkgdatadir='${prefix}/share/timidity'
2796    else
2797       pkgdatadir='/usr/local/share/timidity'
2798    fi
2799
2800 fi;
2801 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define DEFAULT_PATH "$tmpdefpath"
2805 _ACEOF
2806
2807
2808 cat >>confdefs.h <<\_ACEOF
2809 #define PKGDATADIR DEFAULT_PATH
2810 _ACEOF
2811
2812
2813
2814 # Check whether --with-module-dir or --without-module-dir was given.
2815 if test "${with_module_dir+set}" = set; then
2816   withval="$with_module_dir"
2817   pkglibdir=$withval
2818 else
2819
2820    if test "x$prefix" != "xNONE"; then
2821       pkglibdir='${prefix}/lib/timidity'
2822    else
2823       pkglibdir='/usr/local/lib/timidity'
2824    fi
2825
2826 fi;
2827 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PKGLIBDIR "$tmplibdir"
2831 _ACEOF
2832
2833
2834
2835 # Checks for programs.
2836
2837 # Check whether --with-lispdir or --without-lispdir was given.
2838 if test "${with_lispdir+set}" = set; then
2839   withval="$with_lispdir"
2840    lispdir="$withval"
2841    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2842 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2843    echo "$as_me:$LINENO: result: $lispdir" >&5
2844 echo "${ECHO_T}$lispdir" >&6
2845 else
2846
2847  # If set to t, that means we are running in a shell under Emacs.
2848  # If you have an Emacs named "t", then use the full path.
2849  test x"$EMACS" = xt && EMACS=
2850  for ac_prog in emacs xemacs
2851 do
2852   # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856 if test "${ac_cv_prog_EMACS+set}" = set; then
2857   echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859   if test -n "$EMACS"; then
2860   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865   IFS=$as_save_IFS
2866   test -z "$as_dir" && as_dir=.
2867   for ac_exec_ext in '' $ac_executable_extensions; do
2868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869     ac_cv_prog_EMACS="$ac_prog"
2870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871     break 2
2872   fi
2873 done
2874 done
2875
2876 fi
2877 fi
2878 EMACS=$ac_cv_prog_EMACS
2879 if test -n "$EMACS"; then
2880   echo "$as_me:$LINENO: result: $EMACS" >&5
2881 echo "${ECHO_T}$EMACS" >&6
2882 else
2883   echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885 fi
2886
2887   test -n "$EMACS" && break
2888 done
2889 test -n "$EMACS" || EMACS="no"
2890
2891  if test $EMACS != "no"; then
2892    if test x${lispdir+set} != xset; then
2893      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2894 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2895 if test "${am_cv_lispdir+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2899   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2900   #  which is non-obvious for non-emacs users.
2901   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2902   #  emacsen earlier and avoid running this altogether.
2903   { (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
2904   ($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
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }
2908         am_cv_lispdir=`sed -n \
2909        -e 's,/$,,' \
2910        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2911        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2912        conftest.out`
2913        rm conftest.out
2914        if test -z "$am_cv_lispdir"; then
2915          am_cv_lispdir='${datadir}/emacs/site-lisp'
2916        fi
2917
2918 fi
2919 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2920 echo "${ECHO_T}$am_cv_lispdir" >&6
2921      lispdir="$am_cv_lispdir"
2922    fi
2923  fi
2924
2925 fi;
2926
2927
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949   for ac_exec_ext in '' $ac_executable_extensions; do
2950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956 done
2957
2958 fi
2959 fi
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962   echo "$as_me:$LINENO: result: $CC" >&5
2963 echo "${ECHO_T}$CC" >&6
2964 else
2965   echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2967 fi
2968
2969 fi
2970 if test -z "$ac_cv_prog_CC"; then
2971   ac_ct_CC=$CC
2972   # Extract the first word of "gcc", so it can be a program name with args.
2973 set dummy gcc; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$ac_ct_CC"; then
2980   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987   for ac_exec_ext in '' $ac_executable_extensions; do
2988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989     ac_cv_prog_ac_ct_CC="gcc"
2990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994 done
2995
2996 fi
2997 fi
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6
3002 else
3003   echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005 fi
3006
3007   CC=$ac_ct_CC
3008 else
3009   CC="$ac_cv_prog_CC"
3010 fi
3011
3012 if test -z "$CC"; then
3013   if test -n "$ac_tool_prefix"; then
3014   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}cc; ac_word=$2
3016 echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3018 if test "${ac_cv_prog_CC+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   if test -n "$CC"; then
3022   ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029   for ac_exec_ext in '' $ac_executable_extensions; do
3030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031     ac_cv_prog_CC="${ac_tool_prefix}cc"
3032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033     break 2
3034   fi
3035 done
3036 done
3037
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042   echo "$as_me:$LINENO: result: $CC" >&5
3043 echo "${ECHO_T}$CC" >&6
3044 else
3045   echo "$as_me:$LINENO: result: no" >&5
3046 echo "${ECHO_T}no" >&6
3047 fi
3048
3049 fi
3050 if test -z "$ac_cv_prog_CC"; then
3051   ac_ct_CC=$CC
3052   # Extract the first word of "cc", so it can be a program name with args.
3053 set dummy cc; ac_word=$2
3054 echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   if test -n "$ac_ct_CC"; then
3060   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065   IFS=$as_save_IFS
3066   test -z "$as_dir" && as_dir=.
3067   for ac_exec_ext in '' $ac_executable_extensions; do
3068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069     ac_cv_prog_ac_ct_CC="cc"
3070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071     break 2
3072   fi
3073 done
3074 done
3075
3076 fi
3077 fi
3078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3081 echo "${ECHO_T}$ac_ct_CC" >&6
3082 else
3083   echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3085 fi
3086
3087   CC=$ac_ct_CC
3088 else
3089   CC="$ac_cv_prog_CC"
3090 fi
3091
3092 fi
3093 if test -z "$CC"; then
3094   # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_CC+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104   ac_prog_rejected=no
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110   for ac_exec_ext in '' $ac_executable_extensions; do
3111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113        ac_prog_rejected=yes
3114        continue
3115      fi
3116     ac_cv_prog_CC="cc"
3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122
3123 if test $ac_prog_rejected = yes; then
3124   # We found a bogon in the path, so make sure we never use it.
3125   set dummy $ac_cv_prog_CC
3126   shift
3127   if test $# != 0; then
3128     # We chose a different compiler from the bogus one.
3129     # However, it has the same basename, so the bogon will be chosen
3130     # first if we set CC to just the basename; use the full file name.
3131     shift
3132     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3133   fi
3134 fi
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139   echo "$as_me:$LINENO: result: $CC" >&5
3140 echo "${ECHO_T}$CC" >&6
3141 else
3142   echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3144 fi
3145
3146 fi
3147 if test -z "$CC"; then
3148   if test -n "$ac_tool_prefix"; then
3149   for ac_prog in cl
3150   do
3151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_CC+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   if test -n "$CC"; then
3159   ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166   for ac_exec_ext in '' $ac_executable_extensions; do
3167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173 done
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   echo "$as_me:$LINENO: result: $CC" >&5
3180 echo "${ECHO_T}$CC" >&6
3181 else
3182   echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3184 fi
3185
3186     test -n "$CC" && break
3187   done
3188 fi
3189 if test -z "$CC"; then
3190   ac_ct_CC=$CC
3191   for ac_prog in cl
3192 do
3193   # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   if test -n "$ac_ct_CC"; then
3201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   for ac_exec_ext in '' $ac_executable_extensions; do
3209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210     ac_cv_prog_ac_ct_CC="$ac_prog"
3211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215 done
3216
3217 fi
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3222 echo "${ECHO_T}$ac_ct_CC" >&6
3223 else
3224   echo "$as_me:$LINENO: result: no" >&5
3225 echo "${ECHO_T}no" >&6
3226 fi
3227
3228   test -n "$ac_ct_CC" && break
3229 done
3230
3231   CC=$ac_ct_CC
3232 fi
3233
3234 fi
3235
3236
3237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241    { (exit 1); exit 1; }; }
3242
3243 # Provide some information about the compiler.
3244 echo "$as_me:$LINENO:" \
3245      "checking for C compiler version" >&5
3246 ac_compiler=`set X $ac_compile; echo $2`
3247 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3248   (eval $ac_compiler --version </dev/null >&5) 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }
3252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3253   (eval $ac_compiler -v </dev/null >&5) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); }
3257 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3258   (eval $ac_compiler -V </dev/null >&5) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }
3262
3263 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3264 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3265 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278 #ifndef __GNUC__
3279        choke me
3280 #endif
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.$ac_objext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288   (eval $ac_compile) 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } &&
3295          { ac_try='test -z "$ac_c_werror_flag"
3296                          || test ! -s conftest.err'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; } &&
3302          { ac_try='test -s conftest.$ac_objext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_compiler_gnu=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 ac_compiler_gnu=no
3314 fi
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3317
3318 fi
3319 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3320 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3321 GCC=`test $ac_compiler_gnu = yes && echo yes`
3322 ac_test_CFLAGS=${CFLAGS+set}
3323 ac_save_CFLAGS=$CFLAGS
3324 CFLAGS="-g"
3325 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3326 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3327 if test "${ac_cv_prog_cc_g+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347   (eval $ac_compile) 2>conftest.er1
3348   ac_status=$?
3349   grep -v '^ *+' conftest.er1 >conftest.err
3350   rm -f conftest.er1
3351   cat conftest.err >&5
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); } &&
3354          { ac_try='test -z "$ac_c_werror_flag"
3355                          || test ! -s conftest.err'
3356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357   (eval $ac_try) 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; } &&
3361          { ac_try='test -s conftest.$ac_objext'
3362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363   (eval $ac_try) 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; }; then
3367   ac_cv_prog_cc_g=yes
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 ac_cv_prog_cc_g=no
3373 fi
3374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3375 fi
3376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3378 if test "$ac_test_CFLAGS" = set; then
3379   CFLAGS=$ac_save_CFLAGS
3380 elif test $ac_cv_prog_cc_g = yes; then
3381   if test "$GCC" = yes; then
3382     CFLAGS="-g -O2"
3383   else
3384     CFLAGS="-g"
3385   fi
3386 else
3387   if test "$GCC" = yes; then
3388     CFLAGS="-O2"
3389   else
3390     CFLAGS=
3391   fi
3392 fi
3393 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3394 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3395 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   ac_cv_prog_cc_stdc=no
3399 ac_save_CC=$CC
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 #include <stdarg.h>
3407 #include <stdio.h>
3408 #include <sys/types.h>
3409 #include <sys/stat.h>
3410 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3411 struct buf { int x; };
3412 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413 static char *e (p, i)
3414      char **p;
3415      int i;
3416 {
3417   return p[i];
3418 }
3419 static char *f (char * (*g) (char **, int), char **p, ...)
3420 {
3421   char *s;
3422   va_list v;
3423   va_start (v,p);
3424   s = g (p, va_arg (v,int));
3425   va_end (v);
3426   return s;
3427 }
3428
3429 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3430    function prototypes and stuff, but not '\xHH' hex character constants.
3431    These don't provoke an error unfortunately, instead are silently treated
3432    as 'x'.  The following induces an error, until -std1 is added to get
3433    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3434    array size at least.  It's necessary to write '\x00'==0 to get something
3435    that's true only with -std1.  */
3436 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3437
3438 int test (int i, double x);
3439 struct s1 {int (*f) (int a);};
3440 struct s2 {int (*f) (double a);};
3441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442 int argc;
3443 char **argv;
3444 int
3445 main ()
3446 {
3447 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 # Don't try gcc -ansi; that turns off useful extensions and
3453 # breaks some systems' header files.
3454 # AIX                   -qlanglvl=ansi
3455 # Ultrix and OSF/1      -std1
3456 # HP-UX 10.20 and later -Ae
3457 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3458 # SVR4                  -Xc -D__EXTENSIONS__
3459 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3460 do
3461   CC="$ac_save_CC $ac_arg"
3462   rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464   (eval $ac_compile) 2>conftest.er1
3465   ac_status=$?
3466   grep -v '^ *+' conftest.er1 >conftest.err
3467   rm -f conftest.er1
3468   cat conftest.err >&5
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } &&
3471          { ac_try='test -z "$ac_c_werror_flag"
3472                          || test ! -s conftest.err'
3473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474   (eval $ac_try) 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); }; } &&
3478          { ac_try='test -s conftest.$ac_objext'
3479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480   (eval $ac_try) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }; }; then
3484   ac_cv_prog_cc_stdc=$ac_arg
3485 break
3486 else
3487   echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 fi
3491 rm -f conftest.err conftest.$ac_objext
3492 done
3493 rm -f conftest.$ac_ext conftest.$ac_objext
3494 CC=$ac_save_CC
3495
3496 fi
3497
3498 case "x$ac_cv_prog_cc_stdc" in
3499   x|xno)
3500     echo "$as_me:$LINENO: result: none needed" >&5
3501 echo "${ECHO_T}none needed" >&6 ;;
3502   *)
3503     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3505     CC="$CC $ac_cv_prog_cc_stdc" ;;
3506 esac
3507
3508 # Some people use a C++ compiler to compile C.  Since we use `exit',
3509 # in C++ we need to declare it.  In case someone uses the same compiler
3510 # for both compiling C and C++ we need to have the C++ compiler decide
3511 # the declaration of exit, since it's the most demanding environment.
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #ifndef __cplusplus
3514   choke me
3515 #endif
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519   (eval $ac_compile) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526          { ac_try='test -z "$ac_c_werror_flag"
3527                          || test ! -s conftest.err'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; } &&
3533          { ac_try='test -s conftest.$ac_objext'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; }; then
3539   for ac_declaration in \
3540    '' \
3541    'extern "C" void std::exit (int) throw (); using std::exit;' \
3542    'extern "C" void std::exit (int); using std::exit;' \
3543    'extern "C" void exit (int) throw ();' \
3544    'extern "C" void exit (int);' \
3545    'void exit (int);'
3546 do
3547   cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553 $ac_declaration
3554 #include <stdlib.h>
3555 int
3556 main ()
3557 {
3558 exit (42);
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565   (eval $ac_compile) 2>conftest.er1
3566   ac_status=$?
3567   grep -v '^ *+' conftest.er1 >conftest.err
3568   rm -f conftest.er1
3569   cat conftest.err >&5
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } &&
3572          { ac_try='test -z "$ac_c_werror_flag"
3573                          || test ! -s conftest.err'
3574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; } &&
3579          { ac_try='test -s conftest.$ac_objext'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; }; then
3585   :
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 continue
3591 fi
3592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593   cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 $ac_declaration
3600 int
3601 main ()
3602 {
3603 exit (42);
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610   (eval $ac_compile) 2>conftest.er1
3611   ac_status=$?
3612   grep -v '^ *+' conftest.er1 >conftest.err
3613   rm -f conftest.er1
3614   cat conftest.err >&5
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } &&
3617          { ac_try='test -z "$ac_c_werror_flag"
3618                          || test ! -s conftest.err'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; }; then
3630   break
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 fi
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 done
3638 rm -f conftest*
3639 if test -n "$ac_declaration"; then
3640   echo '#ifdef __cplusplus' >>confdefs.h
3641   echo $ac_declaration      >>confdefs.h
3642   echo '#endif'             >>confdefs.h
3643 fi
3644
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 fi
3650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657 depcc="$CC"   am_compiler_list=
3658
3659 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3660 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3661 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3665   # We make a subdir and do the tests there.  Otherwise we can end up
3666   # making bogus files that we don't know about and never remove.  For
3667   # instance it was reported that on HP-UX the gcc test will end up
3668   # making a dummy file named `D' -- because `-MD' means `put the output
3669   # in D'.
3670   mkdir conftest.dir
3671   # Copy depcomp to subdir because otherwise we won't find it if we're
3672   # using a relative directory.
3673   cp "$am_depcomp" conftest.dir
3674   cd conftest.dir
3675   # We will build objects and dependencies in a subdirectory because
3676   # it helps to detect inapplicable dependency modes.  For instance
3677   # both Tru64's cc and ICC support -MD to output dependencies as a
3678   # side effect of compilation, but ICC will put the dependencies in
3679   # the current directory while Tru64 will put them in the object
3680   # directory.
3681   mkdir sub
3682
3683   am_cv_CC_dependencies_compiler_type=none
3684   if test "$am_compiler_list" = ""; then
3685      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3686   fi
3687   for depmode in $am_compiler_list; do
3688     # Setup a source with many dependencies, because some compilers
3689     # like to wrap large dependency lists on column 80 (with \), and
3690     # we should not choose a depcomp mode which is confused by this.
3691     #
3692     # We need to recreate these files for each test, as the compiler may
3693     # overwrite some of them when testing with obscure command lines.
3694     # This happens at least with the AIX C compiler.
3695     : > sub/conftest.c
3696     for i in 1 2 3 4 5 6; do
3697       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3698       : > sub/conftst$i.h
3699     done
3700     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3701
3702     case $depmode in
3703     nosideeffect)
3704       # after this tag, mechanisms are not by side-effect, so they'll
3705       # only be used when explicitly requested
3706       if test "x$enable_dependency_tracking" = xyes; then
3707         continue
3708       else
3709         break
3710       fi
3711       ;;
3712     none) break ;;
3713     esac
3714     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3715     # mode.  It turns out that the SunPro C++ compiler does not properly
3716     # handle `-M -o', and we need to detect this.
3717     if depmode=$depmode \
3718        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3719        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3720        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3721          >/dev/null 2>conftest.err &&
3722        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3723        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3724        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3725       # icc doesn't choke on unknown options, it will just issue warnings
3726       # (even with -Werror).  So we grep stderr for any message
3727       # that says an option was ignored.
3728       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3729         am_cv_CC_dependencies_compiler_type=$depmode
3730         break
3731       fi
3732     fi
3733   done
3734
3735   cd ..
3736   rm -rf conftest.dir
3737 else
3738   am_cv_CC_dependencies_compiler_type=none
3739 fi
3740
3741 fi
3742 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3743 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3744 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3745
3746
3747
3748 if
3749   test "x$enable_dependency_tracking" != xno \
3750   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3751   am__fastdepCC_TRUE=
3752   am__fastdepCC_FALSE='#'
3753 else
3754   am__fastdepCC_TRUE='#'
3755   am__fastdepCC_FALSE=
3756 fi
3757
3758
3759
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3766 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3767 # On Suns, sometimes $CPP names a directory.
3768 if test -n "$CPP" && test -d "$CPP"; then
3769   CPP=
3770 fi
3771 if test -z "$CPP"; then
3772   if test "${ac_cv_prog_CPP+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775       # Double quotes because CPP needs to be expanded
3776     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3777     do
3778       ac_preproc_ok=false
3779 for ac_c_preproc_warn_flag in '' yes
3780 do
3781   # Use a header file that comes with gcc, so configuring glibc
3782   # with a fresh cross-compiler works.
3783   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3784   # <limits.h> exists even on freestanding compilers.
3785   # On the NeXT, cc -E runs the code through the compiler's parser,
3786   # not just through cpp. "Syntax error" is here to catch this case.
3787   cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h.  */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h.  */
3793 #ifdef __STDC__
3794 # include <limits.h>
3795 #else
3796 # include <assert.h>
3797 #endif
3798                      Syntax error
3799 _ACEOF
3800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3802   ac_status=$?
3803   grep -v '^ *+' conftest.er1 >conftest.err
3804   rm -f conftest.er1
3805   cat conftest.err >&5
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); } >/dev/null; then
3808   if test -s conftest.err; then
3809     ac_cpp_err=$ac_c_preproc_warn_flag
3810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3811   else
3812     ac_cpp_err=
3813   fi
3814 else
3815   ac_cpp_err=yes
3816 fi
3817 if test -z "$ac_cpp_err"; then
3818   :
3819 else
3820   echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823   # Broken: fails on valid input.
3824 continue
3825 fi
3826 rm -f conftest.err conftest.$ac_ext
3827
3828   # OK, works on sane cases.  Now check whether non-existent headers
3829   # can be detected and how.
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 #include <ac_nonexistent.h>
3837 _ACEOF
3838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3840   ac_status=$?
3841   grep -v '^ *+' conftest.er1 >conftest.err
3842   rm -f conftest.er1
3843   cat conftest.err >&5
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } >/dev/null; then
3846   if test -s conftest.err; then
3847     ac_cpp_err=$ac_c_preproc_warn_flag
3848     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3849   else
3850     ac_cpp_err=
3851   fi
3852 else
3853   ac_cpp_err=yes
3854 fi
3855 if test -z "$ac_cpp_err"; then
3856   # Broken: success on invalid input.
3857 continue
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862   # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3865 fi
3866 rm -f conftest.err conftest.$ac_ext
3867
3868 done
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.$ac_ext
3871 if $ac_preproc_ok; then
3872   break
3873 fi
3874
3875     done
3876     ac_cv_prog_CPP=$CPP
3877
3878 fi
3879   CPP=$ac_cv_prog_CPP
3880 else
3881   ac_cv_prog_CPP=$CPP
3882 fi
3883 echo "$as_me:$LINENO: result: $CPP" >&5
3884 echo "${ECHO_T}$CPP" >&6
3885 ac_preproc_ok=false
3886 for ac_c_preproc_warn_flag in '' yes
3887 do
3888   # Use a header file that comes with gcc, so configuring glibc
3889   # with a fresh cross-compiler works.
3890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891   # <limits.h> exists even on freestanding compilers.
3892   # On the NeXT, cc -E runs the code through the compiler's parser,
3893   # not just through cpp. "Syntax error" is here to catch this case.
3894   cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h.  */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h.  */
3900 #ifdef __STDC__
3901 # include <limits.h>
3902 #else
3903 # include <assert.h>
3904 #endif
3905                      Syntax error
3906 _ACEOF
3907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3909   ac_status=$?
3910   grep -v '^ *+' conftest.er1 >conftest.err
3911   rm -f conftest.er1
3912   cat conftest.err >&5
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); } >/dev/null; then
3915   if test -s conftest.err; then
3916     ac_cpp_err=$ac_c_preproc_warn_flag
3917     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3918   else
3919     ac_cpp_err=
3920   fi
3921 else
3922   ac_cpp_err=yes
3923 fi
3924 if test -z "$ac_cpp_err"; then
3925   :
3926 else
3927   echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930   # Broken: fails on valid input.
3931 continue
3932 fi
3933 rm -f conftest.err conftest.$ac_ext
3934
3935   # OK, works on sane cases.  Now check whether non-existent headers
3936   # can be detected and how.
3937   cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <ac_nonexistent.h>
3944 _ACEOF
3945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } >/dev/null; then
3953   if test -s conftest.err; then
3954     ac_cpp_err=$ac_c_preproc_warn_flag
3955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3956   else
3957     ac_cpp_err=
3958   fi
3959 else
3960   ac_cpp_err=yes
3961 fi
3962 if test -z "$ac_cpp_err"; then
3963   # Broken: success on invalid input.
3964 continue
3965 else
3966   echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969   # Passes both tests.
3970 ac_preproc_ok=:
3971 break
3972 fi
3973 rm -f conftest.err conftest.$ac_ext
3974
3975 done
3976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977 rm -f conftest.err conftest.$ac_ext
3978 if $ac_preproc_ok; then
3979   :
3980 else
3981   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3982 See \`config.log' for more details." >&5
3983 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3984 See \`config.log' for more details." >&2;}
3985    { (exit 1); exit 1; }; }
3986 fi
3987
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
3994
3995 echo "$as_me:$LINENO: checking for egrep" >&5
3996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3997 if test "${ac_cv_prog_egrep+set}" = set; then
3998   echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4001     then ac_cv_prog_egrep='grep -E'
4002     else ac_cv_prog_egrep='egrep'
4003     fi
4004 fi
4005 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4006 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4007  EGREP=$ac_cv_prog_egrep
4008
4009
4010 if test $ac_cv_c_compiler_gnu = yes; then
4011     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4012 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4013 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016     ac_pattern="Autoconf.*'x'"
4017   cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 #include <sgtty.h>
4024 Autoconf TIOCGETP
4025 _ACEOF
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4028   ac_cv_prog_gcc_traditional=yes
4029 else
4030   ac_cv_prog_gcc_traditional=no
4031 fi
4032 rm -f conftest*
4033
4034
4035   if test $ac_cv_prog_gcc_traditional = no; then
4036     cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h.  */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h.  */
4042 #include <termio.h>
4043 Autoconf TCGETA
4044 _ACEOF
4045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4046   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4047   ac_cv_prog_gcc_traditional=yes
4048 fi
4049 rm -f conftest*
4050
4051   fi
4052 fi
4053 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4054 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4055   if test $ac_cv_prog_gcc_traditional = yes; then
4056     CC="$CC -traditional"
4057   fi
4058 fi
4059
4060 # Find a good install program.  We prefer a C program (faster),
4061 # so one script is as good as another.  But avoid the broken or
4062 # incompatible versions:
4063 # SysV /etc/install, /usr/sbin/install
4064 # SunOS /usr/etc/install
4065 # IRIX /sbin/install
4066 # AIX /bin/install
4067 # AmigaOS /C/install, which installs bootblocks on floppy discs
4068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4071 # OS/2's system install, which has a completely different semantic
4072 # ./install, which can be erroneously created by make from ./install.sh.
4073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4075 if test -z "$INSTALL"; then
4076 if test "${ac_cv_path_install+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082   IFS=$as_save_IFS
4083   test -z "$as_dir" && as_dir=.
4084   # Account for people who put trailing slashes in PATH elements.
4085 case $as_dir/ in
4086   ./ | .// | /cC/* | \
4087   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4088   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4089   /usr/ucb/* ) ;;
4090   *)
4091     # OSF1 and SCO ODT 3.0 have their own names for install.
4092     # Don't use installbsd from OSF since it installs stuff as root
4093     # by default.
4094     for ac_prog in ginstall scoinst install; do
4095       for ac_exec_ext in '' $ac_executable_extensions; do
4096         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4097           if test $ac_prog = install &&
4098             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4099             # AIX install.  It has an incompatible calling convention.
4100             :
4101           elif test $ac_prog = install &&
4102             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4103             # program-specific install script used by HP pwplus--don't use.
4104             :
4105           else
4106             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4107             break 3
4108           fi
4109         fi
4110       done
4111     done
4112     ;;
4113 esac
4114 done
4115
4116
4117 fi
4118   if test "${ac_cv_path_install+set}" = set; then
4119     INSTALL=$ac_cv_path_install
4120   else
4121     # As a last resort, use the slow shell script.  We don't cache a
4122     # path for INSTALL within a source directory, because that will
4123     # break other packages using the cache if that directory is
4124     # removed, or if the path is relative.
4125     INSTALL=$ac_install_sh
4126   fi
4127 fi
4128 echo "$as_me:$LINENO: result: $INSTALL" >&5
4129 echo "${ECHO_T}$INSTALL" >&6
4130
4131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4132 # It thinks the first close brace ends the variable substitution.
4133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4134
4135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4136
4137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4138
4139 for ac_prog in gawk mawk nawk awk
4140 do
4141   # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_AWK+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   if test -n "$AWK"; then
4149   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156   for ac_exec_ext in '' $ac_executable_extensions; do
4157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158     ac_cv_prog_AWK="$ac_prog"
4159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163 done
4164
4165 fi
4166 fi
4167 AWK=$ac_cv_prog_AWK
4168 if test -n "$AWK"; then
4169   echo "$as_me:$LINENO: result: $AWK" >&5
4170 echo "${ECHO_T}$AWK" >&6
4171 else
4172   echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4174 fi
4175
4176   test -n "$AWK" && break
4177 done
4178
4179 if test -n "$ac_tool_prefix"; then
4180   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_RANLIB+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   if test -n "$RANLIB"; then
4188   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203
4204 fi
4205 fi
4206 RANLIB=$ac_cv_prog_RANLIB
4207 if test -n "$RANLIB"; then
4208   echo "$as_me:$LINENO: result: $RANLIB" >&5
4209 echo "${ECHO_T}$RANLIB" >&6
4210 else
4211   echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4213 fi
4214
4215 fi
4216 if test -z "$ac_cv_prog_RANLIB"; then
4217   ac_ct_RANLIB=$RANLIB
4218   # Extract the first word of "ranlib", so it can be a program name with args.
4219 set dummy ranlib; ac_word=$2
4220 echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -n "$ac_ct_RANLIB"; then
4226   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     ac_cv_prog_ac_ct_RANLIB="ranlib"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241
4242   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4243 fi
4244 fi
4245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4246 if test -n "$ac_ct_RANLIB"; then
4247   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4248 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4249 else
4250   echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254   RANLIB=$ac_ct_RANLIB
4255 else
4256   RANLIB="$ac_cv_prog_RANLIB"
4257 fi
4258
4259 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4260 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4261 LN_S=$as_ln_s
4262 if test "$LN_S" = "ln -s"; then
4263   echo "$as_me:$LINENO: result: yes" >&5
4264 echo "${ECHO_T}yes" >&6
4265 else
4266   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4267 echo "${ECHO_T}no, using $LN_S" >&6
4268 fi
4269
4270 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4271 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
4272 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4273 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   cat > conftest.$ac_ext <<EOF
4277 int main() {return 0;}
4278 EOF
4279 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4280     if test -s conftest.out; then
4281         eval "timidity_cv_ccoption_$ac_ccoption=no"
4282     else
4283         eval "timidity_cv_ccoption_$ac_ccoption=yes"
4284     fi
4285 else
4286     eval "timidity_cv_ccoption_$ac_ccoption=no"
4287 fi
4288
4289 fi
4290
4291 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4292   echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6
4294
4295 else
4296   echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4298
4299 fi
4300
4301
4302 if test "x$NOCFLAGS" = "xyes"; then
4303   if test "x$GCC" = "xyes"; then
4304     CFLAGS="-O2"
4305   else
4306     CFLAGS=""
4307   fi
4308 fi
4309
4310 # Checks for target dependencies
4311
4312
4313 # Check whether --with-elf or --without-elf was given.
4314 if test "${with_elf+set}" = set; then
4315   withval="$with_elf"
4316    ELFFORMAT=$withval
4317 else
4318    ELFFORMAT="yes"
4319 fi;
4320
4321 # AC_ARG_WITH(simd,
4322 #  [  --with-simd             create SIMD friendly binary (default is no) ],
4323 #  [ SIMD=$withval ], [ SIMD="no" ])
4324
4325 case "$target" in
4326   *-*-hpux*)
4327     EXTRADEFS="-DHPUX"
4328     test -n "$SHLD" || SHLD="ld -b"
4329     so="sl"
4330     ;;
4331   *-sgi-irix*)
4332         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4333     test -n "$SHLD" || SHLD="cc -shared -all"
4334     so="so"
4335     ;;
4336   *-*-netbsd*)
4337     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4338     so="so"
4339     ;;
4340
4341   *-*-freebsd2*)
4342         test -n "$SHLD" || SHLD="ld -Bshareable"
4343     so="so"
4344     ;;
4345   *-*-freebsd*)
4346     if test "$ELFFORMAT" = yes; then
4347         test -n "$SHLD" || SHLD="ld -Bshareable"
4348     else
4349         SHCFLAGS=-aou
4350         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4351         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4352     fi
4353         so="so"
4354     ;;
4355
4356 #  *-*-freebsd*)
4357 #    EXTRALIBS="$EXTRALIBS -lxpg4"
4358 #    test -n "$SHLD" || SHLD="ld -Bshareable"
4359 #    so="so"
4360 #  ;;
4361
4362   *-*-cygwin*|*-*-mingw*)
4363     EXTRADEFS="-D__W32__"
4364     # ??
4365     case "x${CC} " in
4366       "xbcc32 "*)
4367 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
4368         test -n "$SHLD" || SHLD="BCC32 -WD"
4369         BORLANDC=yes
4370         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4371         BORLANDC_START='C0X32.OBJ'
4372         CFLAGS="$CFLAGS  -tWM -VM"
4373         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4374         ;;
4375       "xdmc "*)
4376         test -n "$SHLD" || SHLD="dmc -WD"
4377         DMC=yes
4378         DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
4379         CFLAGS="$CFLAGS  -mn -j0"
4380         DLLFLAG=" "
4381         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4382         ;;
4383       "xwcc386_w.sh "*)
4384          WATCOM_C=yes
4385          CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4386          DLLFLAG=" "
4387          WATCOM_LDFLAGS=
4388          EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4389          ;;
4390       "xcl "*)
4391          test -n "$SHLD" || SHLD="link -dll"
4392          VCPP=yes
4393          case " $CFLAGS " in
4394            *" -MT "*)  NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4395            *" -MD "*)  NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4396            *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4397            *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4398            *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4399          esac
4400          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"
4401          CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX  -Ob2"
4402          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
4403          ;;
4404       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4405       *) test -n "$SHLD" || SHLD="unknown" ;;
4406     esac
4407     so="dll"
4408     MSYS=yes
4409     lib_user32_test=-luser32
4410     ;;
4411   *-dec-*)
4412     EXTRADEFS="-DDEC"
4413     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4414     so="so"
4415     ;;
4416   *-*-solaris*)
4417     EXTRADEFS="-DSOLARIS"
4418     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4419     so="so"
4420     ;;
4421   *-*-nextstep*)
4422     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4423     so="so"
4424     ;;
4425   *-*-darwin*)
4426     if test "x$SIMD" = "xyes"; then
4427
4428 cat >>confdefs.h <<\_ACEOF
4429 #define USE_ALTIVEC 1
4430 _ACEOF
4431
4432        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4433        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4434     else
4435
4436 cat >>confdefs.h <<\_ACEOF
4437 #define USE_ALTIVEC 0
4438 _ACEOF
4439
4440     fi
4441     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4442     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4443     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4444     so="bundle"
4445     ;;
4446   *)
4447     test -n "$SHLD" || \
4448       if test "x$GCC" = xyes; then
4449         SHLD="$CC -shared"
4450       else
4451         SHLD="ld -Bdynamic -G"
4452       fi
4453     so="so"
4454     ;;
4455 esac
4456
4457
4458 # Checks for libraries.
4459
4460 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4461 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4462 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   ac_check_lib_save_LIBS=$LIBS
4466 LIBS="-lm  $LIBS"
4467 cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473
4474 /* Override any gcc2 internal prototype to avoid an error.  */
4475 #ifdef __cplusplus
4476 extern "C"
4477 #endif
4478 /* We use char because int might match the return type of a gcc2
4479    builtin and then its argument prototype would still apply.  */
4480 char sqrt ();
4481 int
4482 main ()
4483 {
4484 sqrt ();
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491   (eval $ac_link) 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } &&
4498          { ac_try='test -z "$ac_c_werror_flag"
4499                          || test ! -s conftest.err'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; } &&
4505          { ac_try='test -s conftest$ac_exeext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_cv_lib_m_sqrt=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 ac_cv_lib_m_sqrt=no
4517 fi
4518 rm -f conftest.err conftest.$ac_objext \
4519       conftest$ac_exeext conftest.$ac_ext
4520 LIBS=$ac_check_lib_save_LIBS
4521 fi
4522 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4523 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4524 if test $ac_cv_lib_m_sqrt = yes; then
4525   cat >>confdefs.h <<_ACEOF
4526 #define HAVE_LIBM 1
4527 _ACEOF
4528
4529   LIBS="-lm $LIBS"
4530
4531 fi
4532
4533
4534 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4535 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4536 if test "${ac_cv_lib_socket_socket+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   ac_check_lib_save_LIBS=$LIBS
4540 LIBS="-lsocket  $LIBS"
4541 cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h.  */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h.  */
4547
4548 /* Override any gcc2 internal prototype to avoid an error.  */
4549 #ifdef __cplusplus
4550 extern "C"
4551 #endif
4552 /* We use char because int might match the return type of a gcc2
4553    builtin and then its argument prototype would still apply.  */
4554 char socket ();
4555 int
4556 main ()
4557 {
4558 socket ();
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565   (eval $ac_link) 2>conftest.er1
4566   ac_status=$?
4567   grep -v '^ *+' conftest.er1 >conftest.err
4568   rm -f conftest.er1
4569   cat conftest.err >&5
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } &&
4572          { ac_try='test -z "$ac_c_werror_flag"
4573                          || test ! -s conftest.err'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; } &&
4579          { ac_try='test -s conftest$ac_exeext'
4580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581   (eval $ac_try) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   ac_cv_lib_socket_socket=yes
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 ac_cv_lib_socket_socket=no
4591 fi
4592 rm -f conftest.err conftest.$ac_objext \
4593       conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4595 fi
4596 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4597 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4598 if test $ac_cv_lib_socket_socket = yes; then
4599   cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBSOCKET 1
4601 _ACEOF
4602
4603   LIBS="-lsocket $LIBS"
4604
4605 fi
4606
4607 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4608 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   ac_check_lib_save_LIBS=$LIBS
4613 LIBS="-ldl  $LIBS"
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620
4621 /* Override any gcc2 internal prototype to avoid an error.  */
4622 #ifdef __cplusplus
4623 extern "C"
4624 #endif
4625 /* We use char because int might match the return type of a gcc2
4626    builtin and then its argument prototype would still apply.  */
4627 char dlopen ();
4628 int
4629 main ()
4630 {
4631 dlopen ();
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext conftest$ac_exeext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638   (eval $ac_link) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -z "$ac_c_werror_flag"
4646                          || test ! -s conftest.err'
4647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648   (eval $ac_try) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; } &&
4652          { ac_try='test -s conftest$ac_exeext'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; }; then
4658   ac_cv_lib_dl_dlopen=yes
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 ac_cv_lib_dl_dlopen=no
4664 fi
4665 rm -f conftest.err conftest.$ac_objext \
4666       conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4668 fi
4669 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4670 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4671 if test $ac_cv_lib_dl_dlopen = yes; then
4672   lib_dl_opt=-ldl
4673 fi
4674
4675 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4676 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4677 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   ac_check_lib_save_LIBS=$LIBS
4681 LIBS="-lobjc  $LIBS"
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688
4689 /* Override any gcc2 internal prototype to avoid an error.  */
4690 #ifdef __cplusplus
4691 extern "C"
4692 #endif
4693 /* We use char because int might match the return type of a gcc2
4694    builtin and then its argument prototype would still apply.  */
4695 char NSLinkModule ();
4696 int
4697 main ()
4698 {
4699 NSLinkModule ();
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706   (eval $ac_link) 2>conftest.er1
4707   ac_status=$?
4708   grep -v '^ *+' conftest.er1 >conftest.err
4709   rm -f conftest.er1
4710   cat conftest.err >&5
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); } &&
4713          { ac_try='test -z "$ac_c_werror_flag"
4714                          || test ! -s conftest.err'
4715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716   (eval $ac_try) 2>&5
4717   ac_status=$?
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }; } &&
4720          { ac_try='test -s conftest$ac_exeext'
4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; }; then
4726   ac_cv_lib_objc_NSLinkModule=yes
4727 else
4728   echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731 ac_cv_lib_objc_NSLinkModule=no
4732 fi
4733 rm -f conftest.err conftest.$ac_objext \
4734       conftest$ac_exeext conftest.$ac_ext
4735 LIBS=$ac_check_lib_save_LIBS
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4738 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4739 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4740   lib_dl_opt=-lobjc
4741 fi
4742  # Mac OS X need this.
4743 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
4744
4745 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4746 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4747 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   ac_check_lib_save_LIBS=$LIBS
4751 LIBS="-lxpg4  $LIBS"
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 /* Override any gcc2 internal prototype to avoid an error.  */
4760 #ifdef __cplusplus
4761 extern "C"
4762 #endif
4763 /* We use char because int might match the return type of a gcc2
4764    builtin and then its argument prototype would still apply.  */
4765 char setlocale ();
4766 int
4767 main ()
4768 {
4769 setlocale ();
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776   (eval $ac_link) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } &&
4783          { ac_try='test -z "$ac_c_werror_flag"
4784                          || test ! -s conftest.err'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; } &&
4790          { ac_try='test -s conftest$ac_exeext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   ac_cv_lib_xpg4_setlocale=yes
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 ac_cv_lib_xpg4_setlocale=no
4802 fi
4803 rm -f conftest.err conftest.$ac_objext \
4804       conftest$ac_exeext conftest.$ac_ext
4805 LIBS=$ac_check_lib_save_LIBS
4806 fi
4807 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4808 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4809 if test $ac_cv_lib_xpg4_setlocale = yes; then
4810   cat >>confdefs.h <<_ACEOF
4811 #define HAVE_LIBXPG4 1
4812 _ACEOF
4813
4814   LIBS="-lxpg4 $LIBS"
4815
4816 fi
4817  # Mac OS X (and maybe NetBSD) need this.
4818 fi
4819
4820 for ac_func in gethostbyname
4821 do
4822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4823 echo "$as_me:$LINENO: checking for $ac_func" >&5
4824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4825 if eval "test \"\${$as_ac_var+set}\" = set"; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4836 #define $ac_func innocuous_$ac_func
4837
4838 /* System header to define __stub macros and hopefully few prototypes,
4839     which can conflict with char $ac_func (); below.
4840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841     <limits.h> exists even on freestanding compilers.  */
4842
4843 #ifdef __STDC__
4844 # include <limits.h>
4845 #else
4846 # include <assert.h>
4847 #endif
4848
4849 #undef $ac_func
4850
4851 /* Override any gcc2 internal prototype to avoid an error.  */
4852 #ifdef __cplusplus
4853 extern "C"
4854 {
4855 #endif
4856 /* We use char because int might match the return type of a gcc2
4857    builtin and then its argument prototype would still apply.  */
4858 char $ac_func ();
4859 /* The GNU C library defines this for functions which it implements
4860     to always fail with ENOSYS.  Some functions are actually named
4861     something starting with __ and the normal name is an alias.  */
4862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4863 choke me
4864 #else
4865 char (*f) () = $ac_func;
4866 #endif
4867 #ifdef __cplusplus
4868 }
4869 #endif
4870
4871 int
4872 main ()
4873 {
4874 return f != $ac_func;
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881   (eval $ac_link) 2>conftest.er1
4882   ac_status=$?
4883   grep -v '^ *+' conftest.er1 >conftest.err
4884   rm -f conftest.er1
4885   cat conftest.err >&5
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); } &&
4888          { ac_try='test -z "$ac_c_werror_flag"
4889                          || test ! -s conftest.err'
4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891   (eval $ac_try) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; } &&
4895          { ac_try='test -s conftest$ac_exeext'
4896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897   (eval $ac_try) 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); }; }; then
4901   eval "$as_ac_var=yes"
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 eval "$as_ac_var=no"
4907 fi
4908 rm -f conftest.err conftest.$ac_objext \
4909       conftest$ac_exeext conftest.$ac_ext
4910 fi
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4913 if test `eval echo '${'$as_ac_var'}'` = yes; then
4914   cat >>confdefs.h <<_ACEOF
4915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4916 _ACEOF
4917
4918 else
4919
4920 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4921 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4922 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   ac_check_lib_save_LIBS=$LIBS
4926 LIBS="-lnsl  $LIBS"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 /* Override any gcc2 internal prototype to avoid an error.  */
4935 #ifdef __cplusplus
4936 extern "C"
4937 #endif
4938 /* We use char because int might match the return type of a gcc2
4939    builtin and then its argument prototype would still apply.  */
4940 char gethostbyname ();
4941 int
4942 main ()
4943 {
4944 gethostbyname ();
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951   (eval $ac_link) 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } &&
4958          { ac_try='test -z "$ac_c_werror_flag"
4959                          || test ! -s conftest.err'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; } &&
4965          { ac_try='test -s conftest$ac_exeext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_cv_lib_nsl_gethostbyname=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ac_cv_lib_nsl_gethostbyname=no
4977 fi
4978 rm -f conftest.err conftest.$ac_objext \
4979       conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4983 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4984 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4985   cat >>confdefs.h <<_ACEOF
4986 #define HAVE_LIBNSL 1
4987 _ACEOF
4988
4989   LIBS="-lnsl $LIBS"
4990
4991 fi
4992
4993 fi
4994 done
4995
4996 echo "$as_me:$LINENO: checking for X" >&5
4997 echo $ECHO_N "checking for X... $ECHO_C" >&6
4998
4999
5000 # Check whether --with-x or --without-x was given.
5001 if test "${with_x+set}" = set; then
5002   withval="$with_x"
5003
5004 fi;
5005 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5006 if test "x$with_x" = xno; then
5007   # The user explicitly disabled X.
5008   have_x=disabled
5009 else
5010   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5011     # Both variables are already set.
5012     have_x=yes
5013   else
5014     if test "${ac_cv_have_x+set}" = set; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017   # One or both of the vars are not set, and there is no cached value.
5018 ac_x_includes=no ac_x_libraries=no
5019 rm -fr conftest.dir
5020 if mkdir conftest.dir; then
5021   cd conftest.dir
5022   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5023   cat >Imakefile <<'_ACEOF'
5024 acfindx:
5025         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5026 _ACEOF
5027   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5028     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5029     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5030     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5031     for ac_extension in a so sl; do
5032       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5033          test -f $ac_im_libdir/libX11.$ac_extension; then
5034         ac_im_usrlibdir=$ac_im_libdir; break
5035       fi
5036     done
5037     # Screen out bogus values from the imake configuration.  They are
5038     # bogus both because they are the default anyway, and because
5039     # using them would break gcc on systems where it needs fixed includes.
5040     case $ac_im_incroot in
5041         /usr/include) ;;
5042         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5043     esac
5044     case $ac_im_usrlibdir in
5045         /usr/lib | /lib) ;;
5046         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5047     esac
5048   fi
5049   cd ..
5050   rm -fr conftest.dir
5051 fi
5052
5053 # Standard set of common directories for X headers.
5054 # Check X11 before X11Rn because it is often a symlink to the current release.
5055 ac_x_header_dirs='
5056 /usr/X11/include
5057 /usr/X11R6/include
5058 /usr/X11R5/include
5059 /usr/X11R4/include
5060
5061 /usr/include/X11
5062 /usr/include/X11R6
5063 /usr/include/X11R5
5064 /usr/include/X11R4
5065
5066 /usr/local/X11/include
5067 /usr/local/X11R6/include
5068 /usr/local/X11R5/include
5069 /usr/local/X11R4/include
5070
5071 /usr/local/include/X11
5072 /usr/local/include/X11R6
5073 /usr/local/include/X11R5
5074 /usr/local/include/X11R4
5075
5076 /usr/X386/include
5077 /usr/x386/include
5078 /usr/XFree86/include/X11
5079
5080 /usr/include
5081 /usr/local/include
5082 /usr/unsupported/include
5083 /usr/athena/include
5084 /usr/local/x11r5/include
5085 /usr/lpp/Xamples/include
5086
5087 /usr/openwin/include
5088 /usr/openwin/share/include'
5089
5090 if test "$ac_x_includes" = no; then
5091   # Guess where to find include files, by looking for Intrinsic.h.
5092   # First, try using that file with no special directory specified.
5093   cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 #include <X11/Intrinsic.h>
5100 _ACEOF
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103   ac_status=$?
5104   grep -v '^ *+' conftest.er1 >conftest.err
5105   rm -f conftest.er1
5106   cat conftest.err >&5
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } >/dev/null; then
5109   if test -s conftest.err; then
5110     ac_cpp_err=$ac_c_preproc_warn_flag
5111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5112   else
5113     ac_cpp_err=
5114   fi
5115 else
5116   ac_cpp_err=yes
5117 fi
5118 if test -z "$ac_cpp_err"; then
5119   # We can compile using X headers with no special include directory.
5120 ac_x_includes=
5121 else
5122   echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125   for ac_dir in $ac_x_header_dirs; do
5126   if test -r "$ac_dir/X11/Intrinsic.h"; then
5127     ac_x_includes=$ac_dir
5128     break
5129   fi
5130 done
5131 fi
5132 rm -f conftest.err conftest.$ac_ext
5133 fi # $ac_x_includes = no
5134
5135 if test "$ac_x_libraries" = no; then
5136   # Check for the libraries.
5137   # See if we find them without any special options.
5138   # Don't add to $LIBS permanently.
5139   ac_save_LIBS=$LIBS
5140   LIBS="-lXt $LIBS"
5141   cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 #include <X11/Intrinsic.h>
5148 int
5149 main ()
5150 {
5151 XtMalloc (0)
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158   (eval $ac_link) 2>conftest.er1
5159   ac_status=$?
5160   grep -v '^ *+' conftest.er1 >conftest.err
5161   rm -f conftest.er1
5162   cat conftest.err >&5
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } &&
5165          { ac_try='test -z "$ac_c_werror_flag"
5166                          || test ! -s conftest.err'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; } &&
5172          { ac_try='test -s conftest$ac_exeext'
5173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174   (eval $ac_try) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }; }; then
5178   LIBS=$ac_save_LIBS
5179 # We can link X programs with no special library path.
5180 ac_x_libraries=
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 LIBS=$ac_save_LIBS
5186 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5187 do
5188   # Don't even attempt the hair of trying to link an X program!
5189   for ac_extension in a so sl; do
5190     if test -r $ac_dir/libXt.$ac_extension; then
5191       ac_x_libraries=$ac_dir
5192       break 2
5193     fi
5194   done
5195 done
5196 fi
5197 rm -f conftest.err conftest.$ac_objext \
5198       conftest$ac_exeext conftest.$ac_ext
5199 fi # $ac_x_libraries = no
5200
5201 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5202   # Didn't find X anywhere.  Cache the known absence of X.
5203   ac_cv_have_x="have_x=no"
5204 else
5205   # Record where we found X for the cache.
5206   ac_cv_have_x="have_x=yes \
5207                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5208 fi
5209 fi
5210
5211   fi
5212   eval "$ac_cv_have_x"
5213 fi # $with_x != no
5214
5215 if test "$have_x" != yes; then
5216   echo "$as_me:$LINENO: result: $have_x" >&5
5217 echo "${ECHO_T}$have_x" >&6
5218   no_x=yes
5219 else
5220   # If each of the values was on the command line, it overrides each guess.
5221   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5222   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5223   # Update the cache value to reflect the command line values.
5224   ac_cv_have_x="have_x=yes \
5225                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5226   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5227 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5228 fi
5229
5230 if test "$no_x" = yes; then
5231   # Not all programs may use this symbol, but it does not hurt to define it.
5232
5233 cat >>confdefs.h <<\_ACEOF
5234 #define X_DISPLAY_MISSING 1
5235 _ACEOF
5236
5237   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5238 else
5239   if test -n "$x_includes"; then
5240     X_CFLAGS="$X_CFLAGS -I$x_includes"
5241   fi
5242
5243   # It would also be nice to do this for all -L options, not just this one.
5244   if test -n "$x_libraries"; then
5245     X_LIBS="$X_LIBS -L$x_libraries"
5246     # For Solaris; some versions of Sun CC require a space after -R and
5247     # others require no space.  Words are not sufficient . . . .
5248     case `(uname -sr) 2>/dev/null` in
5249     "SunOS 5"*)
5250       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5251 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5252       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5253       cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259
5260 int
5261 main ()
5262 {
5263
5264   ;
5265   return 0;
5266 }
5267 _ACEOF
5268 rm -f conftest.$ac_objext conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270   (eval $ac_link) 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } &&
5277          { ac_try='test -z "$ac_c_werror_flag"
5278                          || test ! -s conftest.err'
5279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280   (eval $ac_try) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); }; } &&
5284          { ac_try='test -s conftest$ac_exeext'
5285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286   (eval $ac_try) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; }; then
5290   ac_R_nospace=yes
5291 else
5292   echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_R_nospace=no
5296 fi
5297 rm -f conftest.err conftest.$ac_objext \
5298       conftest$ac_exeext conftest.$ac_ext
5299       if test $ac_R_nospace = yes; then
5300         echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5302         X_LIBS="$X_LIBS -R$x_libraries"
5303       else
5304         LIBS="$ac_xsave_LIBS -R $x_libraries"
5305         cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311
5312 int
5313 main ()
5314 {
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest.$ac_objext conftest$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322   (eval $ac_link) 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } &&
5329          { ac_try='test -z "$ac_c_werror_flag"
5330                          || test ! -s conftest.err'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; } &&
5336          { ac_try='test -s conftest$ac_exeext'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; }; then
5342   ac_R_space=yes
5343 else
5344   echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 ac_R_space=no
5348 fi
5349 rm -f conftest.err conftest.$ac_objext \
5350       conftest$ac_exeext conftest.$ac_ext
5351         if test $ac_R_space = yes; then
5352           echo "$as_me:$LINENO: result: yes" >&5
5353 echo "${ECHO_T}yes" >&6
5354           X_LIBS="$X_LIBS -R $x_libraries"
5355         else
5356           echo "$as_me:$LINENO: result: neither works" >&5
5357 echo "${ECHO_T}neither works" >&6
5358         fi
5359       fi
5360       LIBS=$ac_xsave_LIBS
5361     esac
5362   fi
5363
5364   # Check for system-dependent libraries X programs must link with.
5365   # Do this before checking for the system-independent R6 libraries
5366   # (-lICE), since we may need -lsocket or whatever for X linking.
5367
5368   if test "$ISC" = yes; then
5369     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5370   else
5371     # Martyn Johnson says this is needed for Ultrix, if the X
5372     # libraries were built with DECnet support.  And Karl Berry says
5373     # the Alpha needs dnet_stub (dnet does not exist).
5374     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5375     cat >conftest.$ac_ext <<_ACEOF
5376 /* confdefs.h.  */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h.  */
5381
5382 /* Override any gcc2 internal prototype to avoid an error.  */
5383 #ifdef __cplusplus
5384 extern "C"
5385 #endif
5386 /* We use char because int might match the return type of a gcc2
5387    builtin and then its argument prototype would still apply.  */
5388 char XOpenDisplay ();
5389 int
5390 main ()
5391 {
5392 XOpenDisplay ();
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399   (eval $ac_link) 2>conftest.er1
5400   ac_status=$?
5401   grep -v '^ *+' conftest.er1 >conftest.err
5402   rm -f conftest.er1
5403   cat conftest.err >&5
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } &&
5406          { ac_try='test -z "$ac_c_werror_flag"
5407                          || test ! -s conftest.err'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; } &&
5413          { ac_try='test -s conftest$ac_exeext'
5414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415   (eval $ac_try) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }; }; then
5419   :
5420 else
5421   echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5425 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5426 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-ldnet  $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437
5438 /* Override any gcc2 internal prototype to avoid an error.  */
5439 #ifdef __cplusplus
5440 extern "C"
5441 #endif
5442 /* We use char because int might match the return type of a gcc2
5443    builtin and then its argument prototype would still apply.  */
5444 char dnet_ntoa ();
5445 int
5446 main ()
5447 {
5448 dnet_ntoa ();
5449   ;
5450   return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455   (eval $ac_link) 2>conftest.er1
5456   ac_status=$?
5457   grep -v '^ *+' conftest.er1 >conftest.err
5458   rm -f conftest.er1
5459   cat conftest.err >&5
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } &&
5462          { ac_try='test -z "$ac_c_werror_flag"
5463                          || test ! -s conftest.err'
5464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465   (eval $ac_try) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; } &&
5469          { ac_try='test -s conftest$ac_exeext'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; }; then
5475   ac_cv_lib_dnet_dnet_ntoa=yes
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ac_cv_lib_dnet_dnet_ntoa=no
5481 fi
5482 rm -f conftest.err conftest.$ac_objext \
5483       conftest$ac_exeext conftest.$ac_ext
5484 LIBS=$ac_check_lib_save_LIBS
5485 fi
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5487 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5488 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5489   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5490 fi
5491
5492     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5493       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5494 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5495 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   ac_check_lib_save_LIBS=$LIBS
5499 LIBS="-ldnet_stub  $LIBS"
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h.  */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h.  */
5506
5507 /* Override any gcc2 internal prototype to avoid an error.  */
5508 #ifdef __cplusplus
5509 extern "C"
5510 #endif
5511 /* We use char because int might match the return type of a gcc2
5512    builtin and then its argument prototype would still apply.  */
5513 char dnet_ntoa ();
5514 int
5515 main ()
5516 {
5517 dnet_ntoa ();
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext conftest$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524   (eval $ac_link) 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } &&
5531          { ac_try='test -z "$ac_c_werror_flag"
5532                          || test ! -s conftest.err'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; } &&
5538          { ac_try='test -s conftest$ac_exeext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 ac_cv_lib_dnet_stub_dnet_ntoa=no
5550 fi
5551 rm -f conftest.err conftest.$ac_objext \
5552       conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5554 fi
5555 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5556 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5557 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5558   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5559 fi
5560
5561     fi
5562 fi
5563 rm -f conftest.err conftest.$ac_objext \
5564       conftest$ac_exeext conftest.$ac_ext
5565     LIBS="$ac_xsave_LIBS"
5566
5567     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5568     # to get the SysV transport functions.
5569     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5570     # needs -lnsl.
5571     # The nsl library prevents programs from opening the X display
5572     # on Irix 5.2, according to T.E. Dickey.
5573     # The functions gethostbyname, getservbyname, and inet_addr are
5574     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5575     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5576 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5577 if test "${ac_cv_func_gethostbyname+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5588 #define gethostbyname innocuous_gethostbyname
5589
5590 /* System header to define __stub macros and hopefully few prototypes,
5591     which can conflict with char gethostbyname (); below.
5592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5593     <limits.h> exists even on freestanding compilers.  */
5594
5595 #ifdef __STDC__
5596 # include <limits.h>
5597 #else
5598 # include <assert.h>
5599 #endif
5600
5601 #undef gethostbyname
5602
5603 /* Override any gcc2 internal prototype to avoid an error.  */
5604 #ifdef __cplusplus
5605 extern "C"
5606 {
5607 #endif
5608 /* We use char because int might match the return type of a gcc2
5609    builtin and then its argument prototype would still apply.  */
5610 char gethostbyname ();
5611 /* The GNU C library defines this for functions which it implements
5612     to always fail with ENOSYS.  Some functions are actually named
5613     something starting with __ and the normal name is an alias.  */
5614 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5615 choke me
5616 #else
5617 char (*f) () = gethostbyname;
5618 #endif
5619 #ifdef __cplusplus
5620 }
5621 #endif
5622
5623 int
5624 main ()
5625 {
5626 return f != gethostbyname;
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633   (eval $ac_link) 2>conftest.er1
5634   ac_status=$?
5635   grep -v '^ *+' conftest.er1 >conftest.err
5636   rm -f conftest.er1
5637   cat conftest.err >&5
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } &&
5640          { ac_try='test -z "$ac_c_werror_flag"
5641                          || test ! -s conftest.err'
5642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; } &&
5647          { ac_try='test -s conftest$ac_exeext'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; }; then
5653   ac_cv_func_gethostbyname=yes
5654 else
5655   echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658 ac_cv_func_gethostbyname=no
5659 fi
5660 rm -f conftest.err conftest.$ac_objext \
5661       conftest$ac_exeext conftest.$ac_ext
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5664 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5665
5666     if test $ac_cv_func_gethostbyname = no; then
5667       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5668 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5669 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   ac_check_lib_save_LIBS=$LIBS
5673 LIBS="-lnsl  $LIBS"
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680
5681 /* Override any gcc2 internal prototype to avoid an error.  */
5682 #ifdef __cplusplus
5683 extern "C"
5684 #endif
5685 /* We use char because int might match the return type of a gcc2
5686    builtin and then its argument prototype would still apply.  */
5687 char gethostbyname ();
5688 int
5689 main ()
5690 {
5691 gethostbyname ();
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698   (eval $ac_link) 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -z "$ac_c_werror_flag"
5706                          || test ! -s conftest.err'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; } &&
5712          { ac_try='test -s conftest$ac_exeext'
5713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714   (eval $ac_try) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   ac_cv_lib_nsl_gethostbyname=yes
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 ac_cv_lib_nsl_gethostbyname=no
5724 fi
5725 rm -f conftest.err conftest.$ac_objext \
5726       conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5728 fi
5729 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5730 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5731 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5732   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5733 fi
5734
5735       if test $ac_cv_lib_nsl_gethostbyname = no; then
5736         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5737 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5738 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   ac_check_lib_save_LIBS=$LIBS
5742 LIBS="-lbsd  $LIBS"
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749
5750 /* Override any gcc2 internal prototype to avoid an error.  */
5751 #ifdef __cplusplus
5752 extern "C"
5753 #endif
5754 /* We use char because int might match the return type of a gcc2
5755    builtin and then its argument prototype would still apply.  */
5756 char gethostbyname ();
5757 int
5758 main ()
5759 {
5760 gethostbyname ();
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767   (eval $ac_link) 2>conftest.er1
5768   ac_status=$?
5769   grep -v '^ *+' conftest.er1 >conftest.err
5770   rm -f conftest.er1
5771   cat conftest.err >&5
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); } &&
5774          { ac_try='test -z "$ac_c_werror_flag"
5775                          || test ! -s conftest.err'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; } &&
5781          { ac_try='test -s conftest$ac_exeext'
5782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783   (eval $ac_try) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); }; }; then
5787   ac_cv_lib_bsd_gethostbyname=yes
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 ac_cv_lib_bsd_gethostbyname=no
5793 fi
5794 rm -f conftest.err conftest.$ac_objext \
5795       conftest$ac_exeext conftest.$ac_ext
5796 LIBS=$ac_check_lib_save_LIBS
5797 fi
5798 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5799 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5800 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5801   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5802 fi
5803
5804       fi
5805     fi
5806
5807     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5808     # socket/setsockopt and other routines are undefined under SCO ODT
5809     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5810     # on later versions), says Simon Leinen: it contains gethostby*
5811     # variants that don't use the name server (or something).  -lsocket
5812     # must be given before -lnsl if both are needed.  We assume that
5813     # if connect needs -lnsl, so does gethostbyname.
5814     echo "$as_me:$LINENO: checking for connect" >&5
5815 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5816 if test "${ac_cv_func_connect+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h.  */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h.  */
5825 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5827 #define connect innocuous_connect
5828
5829 /* System header to define __stub macros and hopefully few prototypes,
5830     which can conflict with char connect (); below.
5831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832     <limits.h> exists even on freestanding compilers.  */
5833
5834 #ifdef __STDC__
5835 # include <limits.h>
5836 #else
5837 # include <assert.h>
5838 #endif
5839
5840 #undef connect
5841
5842 /* Override any gcc2 internal prototype to avoid an error.  */
5843 #ifdef __cplusplus
5844 extern "C"
5845 {
5846 #endif
5847 /* We use char because int might match the return type of a gcc2
5848    builtin and then its argument prototype would still apply.  */
5849 char connect ();
5850 /* The GNU C library defines this for functions which it implements
5851     to always fail with ENOSYS.  Some functions are actually named
5852     something starting with __ and the normal name is an alias.  */
5853 #if defined (__stub_connect) || defined (__stub___connect)
5854 choke me
5855 #else
5856 char (*f) () = connect;
5857 #endif
5858 #ifdef __cplusplus
5859 }
5860 #endif
5861
5862 int
5863 main ()
5864 {
5865 return f != connect;
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872   (eval $ac_link) 2>conftest.er1
5873   ac_status=$?
5874   grep -v '^ *+' conftest.er1 >conftest.err
5875   rm -f conftest.er1
5876   cat conftest.err >&5
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); } &&
5879          { ac_try='test -z "$ac_c_werror_flag"
5880                          || test ! -s conftest.err'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; } &&
5886          { ac_try='test -s conftest$ac_exeext'
5887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888   (eval $ac_try) 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; }; then
5892   ac_cv_func_connect=yes
5893 else
5894   echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 ac_cv_func_connect=no
5898 fi
5899 rm -f conftest.err conftest.$ac_objext \
5900       conftest$ac_exeext conftest.$ac_ext
5901 fi
5902 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5903 echo "${ECHO_T}$ac_cv_func_connect" >&6
5904
5905     if test $ac_cv_func_connect = no; then
5906       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5907 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5908 if test "${ac_cv_lib_socket_connect+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   ac_check_lib_save_LIBS=$LIBS
5912 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919
5920 /* Override any gcc2 internal prototype to avoid an error.  */
5921 #ifdef __cplusplus
5922 extern "C"
5923 #endif
5924 /* We use char because int might match the return type of a gcc2
5925    builtin and then its argument prototype would still apply.  */
5926 char connect ();
5927 int
5928 main ()
5929 {
5930 connect ();
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937   (eval $ac_link) 2>conftest.er1
5938   ac_status=$?
5939   grep -v '^ *+' conftest.er1 >conftest.err
5940   rm -f conftest.er1
5941   cat conftest.err >&5
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } &&
5944          { ac_try='test -z "$ac_c_werror_flag"
5945                          || test ! -s conftest.err'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; } &&
5951          { ac_try='test -s conftest$ac_exeext'
5952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953   (eval $ac_try) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); }; }; then
5957   ac_cv_lib_socket_connect=yes
5958 else
5959   echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962 ac_cv_lib_socket_connect=no
5963 fi
5964 rm -f conftest.err conftest.$ac_objext \
5965       conftest$ac_exeext conftest.$ac_ext
5966 LIBS=$ac_check_lib_save_LIBS
5967 fi
5968 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5969 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5970 if test $ac_cv_lib_socket_connect = yes; then
5971   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5972 fi
5973
5974     fi
5975
5976     # Guillermo Gomez says -lposix is necessary on A/UX.
5977     echo "$as_me:$LINENO: checking for remove" >&5
5978 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5979 if test "${ac_cv_func_remove+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5990 #define remove innocuous_remove
5991
5992 /* System header to define __stub macros and hopefully few prototypes,
5993     which can conflict with char remove (); below.
5994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995     <limits.h> exists even on freestanding compilers.  */
5996
5997 #ifdef __STDC__
5998 # include <limits.h>
5999 #else
6000 # include <assert.h>
6001 #endif
6002
6003 #undef remove
6004
6005 /* Override any gcc2 internal prototype to avoid an error.  */
6006 #ifdef __cplusplus
6007 extern "C"
6008 {
6009 #endif
6010 /* We use char because int might match the return type of a gcc2
6011    builtin and then its argument prototype would still apply.  */
6012 char remove ();
6013 /* The GNU C library defines this for functions which it implements
6014     to always fail with ENOSYS.  Some functions are actually named
6015     something starting with __ and the normal name is an alias.  */
6016 #if defined (__stub_remove) || defined (__stub___remove)
6017 choke me
6018 #else
6019 char (*f) () = remove;
6020 #endif
6021 #ifdef __cplusplus
6022 }
6023 #endif
6024
6025 int
6026 main ()
6027 {
6028 return f != remove;
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035   (eval $ac_link) 2>conftest.er1
6036   ac_status=$?
6037   grep -v '^ *+' conftest.er1 >conftest.err
6038   rm -f conftest.er1
6039   cat conftest.err >&5
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); } &&
6042          { ac_try='test -z "$ac_c_werror_flag"
6043                          || test ! -s conftest.err'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; } &&
6049          { ac_try='test -s conftest$ac_exeext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_cv_func_remove=yes
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_cv_func_remove=no
6061 fi
6062 rm -f conftest.err conftest.$ac_objext \
6063       conftest$ac_exeext conftest.$ac_ext
6064 fi
6065 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6066 echo "${ECHO_T}$ac_cv_func_remove" >&6
6067
6068     if test $ac_cv_func_remove = no; then
6069       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6070 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6071 if test "${ac_cv_lib_posix_remove+set}" = set; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074   ac_check_lib_save_LIBS=$LIBS
6075 LIBS="-lposix  $LIBS"
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082
6083 /* Override any gcc2 internal prototype to avoid an error.  */
6084 #ifdef __cplusplus
6085 extern "C"
6086 #endif
6087 /* We use char because int might match the return type of a gcc2
6088    builtin and then its argument prototype would still apply.  */
6089 char remove ();
6090 int
6091 main ()
6092 {
6093 remove ();
6094   ;
6095   return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext conftest$ac_exeext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100   (eval $ac_link) 2>conftest.er1
6101   ac_status=$?
6102   grep -v '^ *+' conftest.er1 >conftest.err
6103   rm -f conftest.er1
6104   cat conftest.err >&5
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); } &&
6107          { ac_try='test -z "$ac_c_werror_flag"
6108                          || test ! -s conftest.err'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_lib_posix_remove=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_cv_lib_posix_remove=no
6126 fi
6127 rm -f conftest.err conftest.$ac_objext \
6128       conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6130 fi
6131 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6132 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6133 if test $ac_cv_lib_posix_remove = yes; then
6134   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6135 fi
6136
6137     fi
6138
6139     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6140     echo "$as_me:$LINENO: checking for shmat" >&5
6141 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6142 if test "${ac_cv_func_shmat+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6153 #define shmat innocuous_shmat
6154
6155 /* System header to define __stub macros and hopefully few prototypes,
6156     which can conflict with char shmat (); below.
6157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158     <limits.h> exists even on freestanding compilers.  */
6159
6160 #ifdef __STDC__
6161 # include <limits.h>
6162 #else
6163 # include <assert.h>
6164 #endif
6165
6166 #undef shmat
6167
6168 /* Override any gcc2 internal prototype to avoid an error.  */
6169 #ifdef __cplusplus
6170 extern "C"
6171 {
6172 #endif
6173 /* We use char because int might match the return type of a gcc2
6174    builtin and then its argument prototype would still apply.  */
6175 char shmat ();
6176 /* The GNU C library defines this for functions which it implements
6177     to always fail with ENOSYS.  Some functions are actually named
6178     something starting with __ and the normal name is an alias.  */
6179 #if defined (__stub_shmat) || defined (__stub___shmat)
6180 choke me
6181 #else
6182 char (*f) () = shmat;
6183 #endif
6184 #ifdef __cplusplus
6185 }
6186 #endif
6187
6188 int
6189 main ()
6190 {
6191 return f != shmat;
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198   (eval $ac_link) 2>conftest.er1
6199   ac_status=$?
6200   grep -v '^ *+' conftest.er1 >conftest.err
6201   rm -f conftest.er1
6202   cat conftest.err >&5
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); } &&
6205          { ac_try='test -z "$ac_c_werror_flag"
6206                          || test ! -s conftest.err'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; } &&
6212          { ac_try='test -s conftest$ac_exeext'
6213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214   (eval $ac_try) 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }; }; then
6218   ac_cv_func_shmat=yes
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 ac_cv_func_shmat=no
6224 fi
6225 rm -f conftest.err conftest.$ac_objext \
6226       conftest$ac_exeext conftest.$ac_ext
6227 fi
6228 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6229 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6230
6231     if test $ac_cv_func_shmat = no; then
6232       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6233 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6234 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   ac_check_lib_save_LIBS=$LIBS
6238 LIBS="-lipc  $LIBS"
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245
6246 /* Override any gcc2 internal prototype to avoid an error.  */
6247 #ifdef __cplusplus
6248 extern "C"
6249 #endif
6250 /* We use char because int might match the return type of a gcc2
6251    builtin and then its argument prototype would still apply.  */
6252 char shmat ();
6253 int
6254 main ()
6255 {
6256 shmat ();
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>conftest.er1
6264   ac_status=$?
6265   grep -v '^ *+' conftest.er1 >conftest.err
6266   rm -f conftest.er1
6267   cat conftest.err >&5
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -z "$ac_c_werror_flag"
6271                          || test ! -s conftest.err'
6272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273   (eval $ac_try) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; } &&
6277          { ac_try='test -s conftest$ac_exeext'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; }; then
6283   ac_cv_lib_ipc_shmat=yes
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 ac_cv_lib_ipc_shmat=no
6289 fi
6290 rm -f conftest.err conftest.$ac_objext \
6291       conftest$ac_exeext conftest.$ac_ext
6292 LIBS=$ac_check_lib_save_LIBS
6293 fi
6294 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6295 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6296 if test $ac_cv_lib_ipc_shmat = yes; then
6297   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6298 fi
6299
6300     fi
6301   fi
6302
6303   # Check for libraries that X11R6 Xt/Xaw programs need.
6304   ac_save_LDFLAGS=$LDFLAGS
6305   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6306   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6307   # check for ICE first), but we must link in the order -lSM -lICE or
6308   # we get undefined symbols.  So assume we have SM if we have ICE.
6309   # These have to be linked with before -lX11, unlike the other
6310   # libraries we check for below, so use a different variable.
6311   # John Interrante, Karl Berry
6312   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6313 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6314 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   ac_check_lib_save_LIBS=$LIBS
6318 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char IceConnectionNumber ();
6333 int
6334 main ()
6335 {
6336 IceConnectionNumber ();
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -z "$ac_c_werror_flag"
6351                          || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_cv_lib_ICE_IceConnectionNumber=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 ac_cv_lib_ICE_IceConnectionNumber=no
6369 fi
6370 rm -f conftest.err conftest.$ac_objext \
6371       conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6373 fi
6374 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6375 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6376 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6377   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6378 fi
6379
6380   LDFLAGS=$ac_save_LDFLAGS
6381
6382 fi
6383
6384
6385 # Checks for X
6386 if test "x$with_x" = xyes; then
6387   if test "x$have_x" = xno; then
6388     if test "x$x_config_flag" = xyes; then
6389       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6390 echo "$as_me: error: Could not configure X" >&2;}
6391    { (exit 1); exit 1; }; }
6392     else
6393       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6394 echo "$as_me: WARNING: Could not configure X" >&2;}
6395     fi
6396   fi
6397 fi
6398 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6399   if test "x$x_libraries" != x; then
6400     ldflags_x_opt="-L$x_libraries"
6401     LDFLAGS="$LDFLAGS $ldflags_x_opt"
6402     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6403   else
6404     ldflags_x_opt=
6405   fi
6406   if test "x$x_includes" != x; then
6407     CPPFLAGS="$CPPFLAGS -I$x_includes"
6408   fi
6409
6410
6411 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6412 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
6413 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   ac_check_lib_save_LIBS=$LIBS
6417 LIBS="-lX11  $LIBS"
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424
6425 /* Override any gcc2 internal prototype to avoid an error.  */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 /* We use char because int might match the return type of a gcc2
6430    builtin and then its argument prototype would still apply.  */
6431 char XOpenDisplay ();
6432 int
6433 main ()
6434 {
6435 XOpenDisplay ();
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442   (eval $ac_link) 2>conftest.er1
6443   ac_status=$?
6444   grep -v '^ *+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -z "$ac_c_werror_flag"
6450                          || test ! -s conftest.err'
6451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452   (eval $ac_try) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; } &&
6456          { ac_try='test -s conftest$ac_exeext'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; }; then
6462   ac_cv_lib_X11_XOpenDisplay=yes
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 ac_cv_lib_X11_XOpenDisplay=no
6468 fi
6469 rm -f conftest.err conftest.$ac_objext \
6470       conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_check_lib_save_LIBS
6472 fi
6473 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6474 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6475 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6476   cat >>confdefs.h <<_ACEOF
6477 #define HAVE_LIBX11 1
6478 _ACEOF
6479
6480   LIBS="-lX11 $LIBS"
6481
6482 fi
6483
6484   echo "$as_me:$LINENO: checking X11 version 6" >&5
6485 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6486   if test "${timidity_cv_x11_version_6+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 #include <X11/Xlib.h>
6496 int
6497 main ()
6498 {
6499
6500 #if XlibSpecificationRelease < 6
6501 fail;
6502 #endif
6503
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510   (eval $ac_link) 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -z "$ac_c_werror_flag"
6518                          || test ! -s conftest.err'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; } &&
6524          { ac_try='test -s conftest$ac_exeext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   timidity_cv_x11_version_6=yes
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 timidity_cv_x11_version_6=no
6536 fi
6537 rm -f conftest.err conftest.$ac_objext \
6538       conftest$ac_exeext conftest.$ac_ext
6539 fi
6540
6541   if test "$timidity_cv_x11_version_6" = "yes"; then
6542     echo "$as_me:$LINENO: result: 6 or newer" >&5
6543 echo "${ECHO_T}6 or newer" >&6
6544       else
6545     echo "$as_me:$LINENO: result: before 6" >&5
6546 echo "${ECHO_T}before 6" >&6
6547   fi
6548
6549     KEEPLIBS=$LIBS
6550   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6551 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6552 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   ac_check_lib_save_LIBS=$LIBS
6556 LIBS="-lXext  $LIBS"
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563
6564 /* Override any gcc2 internal prototype to avoid an error.  */
6565 #ifdef __cplusplus
6566 extern "C"
6567 #endif
6568 /* We use char because int might match the return type of a gcc2
6569    builtin and then its argument prototype would still apply.  */
6570 char XShapeCombineMask ();
6571 int
6572 main ()
6573 {
6574 XShapeCombineMask ();
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581   (eval $ac_link) 2>conftest.er1
6582   ac_status=$?
6583   grep -v '^ *+' conftest.er1 >conftest.err
6584   rm -f conftest.er1
6585   cat conftest.err >&5
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -z "$ac_c_werror_flag"
6589                          || test ! -s conftest.err'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; } &&
6595          { ac_try='test -s conftest$ac_exeext'
6596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597   (eval $ac_try) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); }; }; then
6601   ac_cv_lib_Xext_XShapeCombineMask=yes
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_cv_lib_Xext_XShapeCombineMask=no
6607 fi
6608 rm -f conftest.err conftest.$ac_objext \
6609       conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6611 fi
6612 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6613 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6614 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6615   have_xext=yes; LIBS="-lXext $LIBS"
6616 else
6617   have_xext=no
6618 fi
6619
6620
6621 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6622 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6623 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   ac_check_lib_save_LIBS=$LIBS
6627 LIBS="-lICE  $LIBS"
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634
6635 /* Override any gcc2 internal prototype to avoid an error.  */
6636 #ifdef __cplusplus
6637 extern "C"
6638 #endif
6639 /* We use char because int might match the return type of a gcc2
6640    builtin and then its argument prototype would still apply.  */
6641 char IceConnectionNumber ();
6642 int
6643 main ()
6644 {
6645 IceConnectionNumber ();
6646   ;
6647   return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652   (eval $ac_link) 2>conftest.er1
6653   ac_status=$?
6654   grep -v '^ *+' conftest.er1 >conftest.err
6655   rm -f conftest.er1
6656   cat conftest.err >&5
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); } &&
6659          { ac_try='test -z "$ac_c_werror_flag"
6660                          || test ! -s conftest.err'
6661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; } &&
6666          { ac_try='test -s conftest$ac_exeext'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; }; then
6672   ac_cv_lib_ICE_IceConnectionNumber=yes
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 ac_cv_lib_ICE_IceConnectionNumber=no
6678 fi
6679 rm -f conftest.err conftest.$ac_objext \
6680       conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_check_lib_save_LIBS
6682 fi
6683 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6684 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6685 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6686   cat >>confdefs.h <<_ACEOF
6687 #define HAVE_LIBICE 1
6688 _ACEOF
6689
6690   LIBS="-lICE $LIBS"
6691
6692 fi
6693
6694   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6695 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6696 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   ac_check_lib_save_LIBS=$LIBS
6700 LIBS="-lSM  $LIBS"
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707
6708 /* Override any gcc2 internal prototype to avoid an error.  */
6709 #ifdef __cplusplus
6710 extern "C"
6711 #endif
6712 /* We use char because int might match the return type of a gcc2
6713    builtin and then its argument prototype would still apply.  */
6714 char SmcOpenConnection ();
6715 int
6716 main ()
6717 {
6718 SmcOpenConnection ();
6719   ;
6720   return 0;
6721 }
6722 _ACEOF
6723 rm -f conftest.$ac_objext conftest$ac_exeext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725   (eval $ac_link) 2>conftest.er1
6726   ac_status=$?
6727   grep -v '^ *+' conftest.er1 >conftest.err
6728   rm -f conftest.er1
6729   cat conftest.err >&5
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } &&
6732          { ac_try='test -z "$ac_c_werror_flag"
6733                          || test ! -s conftest.err'
6734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735   (eval $ac_try) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; } &&
6739          { ac_try='test -s conftest$ac_exeext'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; }; then
6745   ac_cv_lib_SM_SmcOpenConnection=yes
6746 else
6747   echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750 ac_cv_lib_SM_SmcOpenConnection=no
6751 fi
6752 rm -f conftest.err conftest.$ac_objext \
6753       conftest$ac_exeext conftest.$ac_ext
6754 LIBS=$ac_check_lib_save_LIBS
6755 fi
6756 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6757 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6758 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6759   have_xprelibs=yes; LIBS="-lSM $LIBS"
6760 else
6761   have_xprelibs=no
6762 fi
6763
6764   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6765 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6766 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   ac_check_lib_save_LIBS=$LIBS
6770 LIBS="-lXt  $LIBS"
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h.  */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h.  */
6777
6778 /* Override any gcc2 internal prototype to avoid an error.  */
6779 #ifdef __cplusplus
6780 extern "C"
6781 #endif
6782 /* We use char because int might match the return type of a gcc2
6783    builtin and then its argument prototype would still apply.  */
6784 char XtVaAppInitialize ();
6785 int
6786 main ()
6787 {
6788 XtVaAppInitialize ();
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795   (eval $ac_link) 2>conftest.er1
6796   ac_status=$?
6797   grep -v '^ *+' conftest.er1 >conftest.err
6798   rm -f conftest.er1
6799   cat conftest.err >&5
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } &&
6802          { ac_try='test -z "$ac_c_werror_flag"
6803                          || test ! -s conftest.err'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; } &&
6809          { ac_try='test -s conftest$ac_exeext'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815   ac_cv_lib_Xt_XtVaAppInitialize=yes
6816 else
6817   echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6819
6820 ac_cv_lib_Xt_XtVaAppInitialize=no
6821 fi
6822 rm -f conftest.err conftest.$ac_objext \
6823       conftest$ac_exeext conftest.$ac_ext
6824 LIBS=$ac_check_lib_save_LIBS
6825 fi
6826 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6827 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6828 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6829   have_xt=yes; LIBS="-lXt $LIBS"
6830 else
6831   have_xt=no
6832 fi
6833
6834   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6835 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6836 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6837   echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839   ac_check_lib_save_LIBS=$LIBS
6840 LIBS="-lXmu  $LIBS"
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h.  */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h.  */
6847
6848 /* Override any gcc2 internal prototype to avoid an error.  */
6849 #ifdef __cplusplus
6850 extern "C"
6851 #endif
6852 /* We use char because int might match the return type of a gcc2
6853    builtin and then its argument prototype would still apply.  */
6854 char XmuInternAtom ();
6855 int
6856 main ()
6857 {
6858 XmuInternAtom ();
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865   (eval $ac_link) 2>conftest.er1
6866   ac_status=$?
6867   grep -v '^ *+' conftest.er1 >conftest.err
6868   rm -f conftest.er1
6869   cat conftest.err >&5
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } &&
6872          { ac_try='test -z "$ac_c_werror_flag"
6873                          || test ! -s conftest.err'
6874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875   (eval $ac_try) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); }; } &&
6879          { ac_try='test -s conftest$ac_exeext'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; }; then
6885   ac_cv_lib_Xmu_XmuInternAtom=yes
6886 else
6887   echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6889
6890 ac_cv_lib_Xmu_XmuInternAtom=no
6891 fi
6892 rm -f conftest.err conftest.$ac_objext \
6893       conftest$ac_exeext conftest.$ac_ext
6894 LIBS=$ac_check_lib_save_LIBS
6895 fi
6896 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6897 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6898 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6899   LIBS="-lXmu $LIBS"
6900 fi
6901
6902
6903 for ac_func in XmuRegisterExternalAgent
6904 do
6905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6906 echo "$as_me:$LINENO: checking for $ac_func" >&5
6907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_var+set}\" = set"; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h.  */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h.  */
6917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6919 #define $ac_func innocuous_$ac_func
6920
6921 /* System header to define __stub macros and hopefully few prototypes,
6922     which can conflict with char $ac_func (); below.
6923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6924     <limits.h> exists even on freestanding compilers.  */
6925
6926 #ifdef __STDC__
6927 # include <limits.h>
6928 #else
6929 # include <assert.h>
6930 #endif
6931
6932 #undef $ac_func
6933
6934 /* Override any gcc2 internal prototype to avoid an error.  */
6935 #ifdef __cplusplus
6936 extern "C"
6937 {
6938 #endif
6939 /* We use char because int might match the return type of a gcc2
6940    builtin and then its argument prototype would still apply.  */
6941 char $ac_func ();
6942 /* The GNU C library defines this for functions which it implements
6943     to always fail with ENOSYS.  Some functions are actually named
6944     something starting with __ and the normal name is an alias.  */
6945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6946 choke me
6947 #else
6948 char (*f) () = $ac_func;
6949 #endif
6950 #ifdef __cplusplus
6951 }
6952 #endif
6953
6954 int
6955 main ()
6956 {
6957 return f != $ac_func;
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964   (eval $ac_link) 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -z "$ac_c_werror_flag"
6972                          || test ! -s conftest.err'
6973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   eval "$as_ac_var=yes"
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 eval "$as_ac_var=no"
6990 fi
6991 rm -f conftest.err conftest.$ac_objext \
6992       conftest$ac_exeext conftest.$ac_ext
6993 fi
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6996 if test `eval echo '${'$as_ac_var'}'` = yes; then
6997   cat >>confdefs.h <<_ACEOF
6998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6999 _ACEOF
7000
7001 fi
7002 done
7003
7004   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7005 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
7006 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   ac_check_lib_save_LIBS=$LIBS
7010 LIBS="-lXaw3d  $LIBS"
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h.  */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h.  */
7017
7018 /* Override any gcc2 internal prototype to avoid an error.  */
7019 #ifdef __cplusplus
7020 extern "C"
7021 #endif
7022 /* We use char because int might match the return type of a gcc2
7023    builtin and then its argument prototype would still apply.  */
7024 char XawInitializeWidgetSet ();
7025 int
7026 main ()
7027 {
7028 XawInitializeWidgetSet ();
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest.$ac_objext conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035   (eval $ac_link) 2>conftest.er1
7036   ac_status=$?
7037   grep -v '^ *+' conftest.er1 >conftest.err
7038   rm -f conftest.er1
7039   cat conftest.err >&5
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); } &&
7042          { ac_try='test -z "$ac_c_werror_flag"
7043                          || test ! -s conftest.err'
7044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045   (eval $ac_try) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); }; } &&
7049          { ac_try='test -s conftest$ac_exeext'
7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051   (eval $ac_try) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; }; then
7055   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7061 fi
7062 rm -f conftest.err conftest.$ac_objext \
7063       conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7065 fi
7066 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7067 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
7068 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7069   have_xaw=3d
7070 else
7071    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7072 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
7073 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   ac_check_lib_save_LIBS=$LIBS
7077 LIBS="-lXaw  $LIBS"
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084
7085 /* Override any gcc2 internal prototype to avoid an error.  */
7086 #ifdef __cplusplus
7087 extern "C"
7088 #endif
7089 /* We use char because int might match the return type of a gcc2
7090    builtin and then its argument prototype would still apply.  */
7091 char XawInitializeWidgetSet ();
7092 int
7093 main ()
7094 {
7095 XawInitializeWidgetSet ();
7096   ;
7097   return 0;
7098 }
7099 _ACEOF
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102   (eval $ac_link) 2>conftest.er1
7103   ac_status=$?
7104   grep -v '^ *+' conftest.er1 >conftest.err
7105   rm -f conftest.er1
7106   cat conftest.err >&5
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -z "$ac_c_werror_flag"
7110                          || test ! -s conftest.err'
7111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); }; } &&
7116          { ac_try='test -s conftest$ac_exeext'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; }; then
7122   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7128 fi
7129 rm -f conftest.err conftest.$ac_objext \
7130       conftest$ac_exeext conftest.$ac_ext
7131 LIBS=$ac_check_lib_save_LIBS
7132 fi
7133 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7134 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
7135 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7136   have_xaw=yes
7137 else
7138   have_xaw=no
7139 fi
7140
7141 fi
7142
7143   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7144 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
7145 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lXm  $LIBS"
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156
7157 /* Override any gcc2 internal prototype to avoid an error.  */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 /* We use char because int might match the return type of a gcc2
7162    builtin and then its argument prototype would still apply.  */
7163 char XmCreateForm ();
7164 int
7165 main ()
7166 {
7167 XmCreateForm ();
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174   (eval $ac_link) 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } &&
7181          { ac_try='test -z "$ac_c_werror_flag"
7182                          || test ! -s conftest.err'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; } &&
7188          { ac_try='test -s conftest$ac_exeext'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; }; then
7194   ac_cv_lib_Xm_XmCreateForm=yes
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199 ac_cv_lib_Xm_XmCreateForm=no
7200 fi
7201 rm -f conftest.err conftest.$ac_objext \
7202       conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7204 fi
7205 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
7206 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
7207 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
7208   have_xm=yes
7209 else
7210   have_xm=no
7211 fi
7212
7213
7214 for ac_func in XShmCreatePixmap
7215 do
7216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7217 echo "$as_me:$LINENO: checking for $ac_func" >&5
7218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7219 if eval "test \"\${$as_ac_var+set}\" = set"; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h.  */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h.  */
7228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7230 #define $ac_func innocuous_$ac_func
7231
7232 /* System header to define __stub macros and hopefully few prototypes,
7233     which can conflict with char $ac_func (); below.
7234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235     <limits.h> exists even on freestanding compilers.  */
7236
7237 #ifdef __STDC__
7238 # include <limits.h>
7239 #else
7240 # include <assert.h>
7241 #endif
7242
7243 #undef $ac_func
7244
7245 /* Override any gcc2 internal prototype to avoid an error.  */
7246 #ifdef __cplusplus
7247 extern "C"
7248 {
7249 #endif
7250 /* We use char because int might match the return type of a gcc2
7251    builtin and then its argument prototype would still apply.  */
7252 char $ac_func ();
7253 /* The GNU C library defines this for functions which it implements
7254     to always fail with ENOSYS.  Some functions are actually named
7255     something starting with __ and the normal name is an alias.  */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 choke me
7258 #else
7259 char (*f) () = $ac_func;
7260 #endif
7261 #ifdef __cplusplus
7262 }
7263 #endif
7264
7265 int
7266 main ()
7267 {
7268 return f != $ac_func;
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 rm -f conftest.$ac_objext conftest$ac_exeext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7275   (eval $ac_link) 2>conftest.er1
7276   ac_status=$?
7277   grep -v '^ *+' conftest.er1 >conftest.err
7278   rm -f conftest.er1
7279   cat conftest.err >&5
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } &&
7282          { ac_try='test -z "$ac_c_werror_flag"
7283                          || test ! -s conftest.err'
7284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285   (eval $ac_try) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; } &&
7289          { ac_try='test -s conftest$ac_exeext'
7290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291   (eval $ac_try) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; }; then
7295   eval "$as_ac_var=yes"
7296 else
7297   echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 eval "$as_ac_var=no"
7301 fi
7302 rm -f conftest.err conftest.$ac_objext \
7303       conftest$ac_exeext conftest.$ac_ext
7304 fi
7305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7307 if test `eval echo '${'$as_ac_var'}'` = yes; then
7308   cat >>confdefs.h <<_ACEOF
7309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7310 _ACEOF
7311
7312 fi
7313 done
7314
7315   LIBS=$KEEPLIBS
7316 fi
7317
7318 # Checks for header files.
7319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7321 if test "${ac_cv_header_stdc+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h.  */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h.  */
7330 #include <stdlib.h>
7331 #include <stdarg.h>
7332 #include <string.h>
7333 #include <float.h>
7334
7335 int
7336 main ()
7337 {
7338
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345   (eval $ac_compile) 2>conftest.er1
7346   ac_status=$?
7347   grep -v '^ *+' conftest.er1 >conftest.err
7348   rm -f conftest.er1
7349   cat conftest.err >&5
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } &&
7352          { ac_try='test -z "$ac_c_werror_flag"
7353                          || test ! -s conftest.err'
7354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355   (eval $ac_try) 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; } &&
7359          { ac_try='test -s conftest.$ac_objext'
7360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361   (eval $ac_try) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); }; }; then
7365   ac_cv_header_stdc=yes
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 ac_cv_header_stdc=no
7371 fi
7372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7373
7374 if test $ac_cv_header_stdc = yes; then
7375   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7376   cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h.  */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h.  */
7382 #include <string.h>
7383
7384 _ACEOF
7385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7386   $EGREP "memchr" >/dev/null 2>&1; then
7387   :
7388 else
7389   ac_cv_header_stdc=no
7390 fi
7391 rm -f conftest*
7392
7393 fi
7394
7395 if test $ac_cv_header_stdc = yes; then
7396   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7397   cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 #include <stdlib.h>
7404
7405 _ACEOF
7406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7407   $EGREP "free" >/dev/null 2>&1; then
7408   :
7409 else
7410   ac_cv_header_stdc=no
7411 fi
7412 rm -f conftest*
7413
7414 fi
7415
7416 if test $ac_cv_header_stdc = yes; then
7417   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7418   if test "$cross_compiling" = yes; then
7419   :
7420 else
7421   cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h.  */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h.  */
7427 #include <ctype.h>
7428 #if ((' ' & 0x0FF) == 0x020)
7429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7431 #else
7432 # define ISLOWER(c) \
7433                    (('a' <= (c) && (c) <= 'i') \
7434                      || ('j' <= (c) && (c) <= 'r') \
7435                      || ('s' <= (c) && (c) <= 'z'))
7436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7437 #endif
7438
7439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7440 int
7441 main ()
7442 {
7443   int i;
7444   for (i = 0; i < 256; i++)
7445     if (XOR (islower (i), ISLOWER (i))
7446         || toupper (i) != TOUPPER (i))
7447       exit(2);
7448   exit (0);
7449 }
7450 _ACEOF
7451 rm -f conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453   (eval $ac_link) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462   :
7463 else
7464   echo "$as_me: program exited with status $ac_status" >&5
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 ( exit $ac_status )
7469 ac_cv_header_stdc=no
7470 fi
7471 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7472 fi
7473 fi
7474 fi
7475 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7476 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7477 if test $ac_cv_header_stdc = yes; then
7478
7479 cat >>confdefs.h <<\_ACEOF
7480 #define STDC_HEADERS 1
7481 _ACEOF
7482
7483 fi
7484
7485 #AC_HEADER_STDBOOL
7486 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h.  */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h.  */
7497 #include <sys/types.h>
7498 #include <sys/wait.h>
7499 #ifndef WEXITSTATUS
7500 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7501 #endif
7502 #ifndef WIFEXITED
7503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7504 #endif
7505
7506 int
7507 main ()
7508 {
7509   int s;
7510   wait (&s);
7511   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7518   (eval $ac_compile) 2>conftest.er1
7519   ac_status=$?
7520   grep -v '^ *+' conftest.er1 >conftest.err
7521   rm -f conftest.er1
7522   cat conftest.err >&5
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); } &&
7525          { ac_try='test -z "$ac_c_werror_flag"
7526                          || test ! -s conftest.err'
7527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528   (eval $ac_try) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; } &&
7532          { ac_try='test -s conftest.$ac_objext'
7533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534   (eval $ac_try) 2>&5
7535   ac_status=$?
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); }; }; then
7538   ac_cv_header_sys_wait_h=yes
7539 else
7540   echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_cv_header_sys_wait_h=no
7544 fi
7545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7546 fi
7547 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7548 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7549 if test $ac_cv_header_sys_wait_h = yes; then
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_SYS_WAIT_H 1
7553 _ACEOF
7554
7555 fi
7556
7557 if test "x$WATCOM_C" != xyes ; then
7558 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7559 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7560 if test "${ac_cv_header_time+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h.  */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h.  */
7569 #include <sys/types.h>
7570 #include <sys/time.h>
7571 #include <time.h>
7572
7573 int
7574 main ()
7575 {
7576 if ((struct tm *) 0)
7577 return 0;
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584   (eval $ac_compile) 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } &&
7591          { ac_try='test -z "$ac_c_werror_flag"
7592                          || test ! -s conftest.err'
7593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594   (eval $ac_try) 2>&5
7595   ac_status=$?
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); }; } &&
7598          { ac_try='test -s conftest.$ac_objext'
7599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600   (eval $ac_try) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); }; }; then
7604   ac_cv_header_time=yes
7605 else
7606   echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609 ac_cv_header_time=no
7610 fi
7611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7612 fi
7613 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7614 echo "${ECHO_T}$ac_cv_header_time" >&6
7615 if test $ac_cv_header_time = yes; then
7616
7617 cat >>confdefs.h <<\_ACEOF
7618 #define TIME_WITH_SYS_TIME 1
7619 _ACEOF
7620
7621 fi
7622
7623 fi
7624
7625
7626
7627
7628
7629 ac_header_dirent=no
7630 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7631   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7632 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7633 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h.  */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h.  */
7643 #include <sys/types.h>
7644 #include <$ac_hdr>
7645
7646 int
7647 main ()
7648 {
7649 if ((DIR *) 0)
7650 return 0;
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 rm -f conftest.$ac_objext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657   (eval $ac_compile) 2>conftest.er1
7658   ac_status=$?
7659   grep -v '^ *+' conftest.er1 >conftest.err
7660   rm -f conftest.er1
7661   cat conftest.err >&5
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } &&
7664          { ac_try='test -z "$ac_c_werror_flag"
7665                          || test ! -s conftest.err'
7666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667   (eval $ac_try) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }; } &&
7671          { ac_try='test -s conftest.$ac_objext'
7672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673   (eval $ac_try) 2>&5
7674   ac_status=$?
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); }; }; then
7677   eval "$as_ac_Header=yes"
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 eval "$as_ac_Header=no"
7683 fi
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689   cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7691 _ACEOF
7692
7693 ac_header_dirent=$ac_hdr; break
7694 fi
7695
7696 done
7697 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7698 if test $ac_header_dirent = dirent.h; then
7699   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7700 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7701 if test "${ac_cv_search_opendir+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   ac_func_search_save_LIBS=$LIBS
7705 ac_cv_search_opendir=no
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h.  */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h.  */
7712
7713 /* Override any gcc2 internal prototype to avoid an error.  */
7714 #ifdef __cplusplus
7715 extern "C"
7716 #endif
7717 /* We use char because int might match the return type of a gcc2
7718    builtin and then its argument prototype would still apply.  */
7719 char opendir ();
7720 int
7721 main ()
7722 {
7723 opendir ();
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730   (eval $ac_link) 2>conftest.er1
7731   ac_status=$?
7732   grep -v '^ *+' conftest.er1 >conftest.err
7733   rm -f conftest.er1
7734   cat conftest.err >&5
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } &&
7737          { ac_try='test -z "$ac_c_werror_flag"
7738                          || test ! -s conftest.err'
7739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740   (eval $ac_try) 2>&5
7741   ac_status=$?
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); }; } &&
7744          { ac_try='test -s conftest$ac_exeext'
7745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746   (eval $ac_try) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); }; }; then
7750   ac_cv_search_opendir="none required"
7751 else
7752   echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755 fi
7756 rm -f conftest.err conftest.$ac_objext \
7757       conftest$ac_exeext conftest.$ac_ext
7758 if test "$ac_cv_search_opendir" = no; then
7759   for ac_lib in dir; do
7760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7761     cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767
7768 /* Override any gcc2 internal prototype to avoid an error.  */
7769 #ifdef __cplusplus
7770 extern "C"
7771 #endif
7772 /* We use char because int might match the return type of a gcc2
7773    builtin and then its argument prototype would still apply.  */
7774 char opendir ();
7775 int
7776 main ()
7777 {
7778 opendir ();
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785   (eval $ac_link) 2>conftest.er1
7786   ac_status=$?
7787   grep -v '^ *+' conftest.er1 >conftest.err
7788   rm -f conftest.er1
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } &&
7792          { ac_try='test -z "$ac_c_werror_flag"
7793                          || test ! -s conftest.err'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; } &&
7799          { ac_try='test -s conftest$ac_exeext'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; }; then
7805   ac_cv_search_opendir="-l$ac_lib"
7806 break
7807 else
7808   echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 fi
7812 rm -f conftest.err conftest.$ac_objext \
7813       conftest$ac_exeext conftest.$ac_ext
7814   done
7815 fi
7816 LIBS=$ac_func_search_save_LIBS
7817 fi
7818 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7819 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7820 if test "$ac_cv_search_opendir" != no; then
7821   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7822
7823 fi
7824
7825 else
7826   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7827 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7828 if test "${ac_cv_search_opendir+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   ac_func_search_save_LIBS=$LIBS
7832 ac_cv_search_opendir=no
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839
7840 /* Override any gcc2 internal prototype to avoid an error.  */
7841 #ifdef __cplusplus
7842 extern "C"
7843 #endif
7844 /* We use char because int might match the return type of a gcc2
7845    builtin and then its argument prototype would still apply.  */
7846 char opendir ();
7847 int
7848 main ()
7849 {
7850 opendir ();
7851   ;
7852   return 0;
7853 }
7854 _ACEOF
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857   (eval $ac_link) 2>conftest.er1
7858   ac_status=$?
7859   grep -v '^ *+' conftest.er1 >conftest.err
7860   rm -f conftest.er1
7861   cat conftest.err >&5
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } &&
7864          { ac_try='test -z "$ac_c_werror_flag"
7865                          || test ! -s conftest.err'
7866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867   (eval $ac_try) 2>&5
7868   ac_status=$?
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); }; } &&
7871          { ac_try='test -s conftest$ac_exeext'
7872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873   (eval $ac_try) 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; }; then
7877   ac_cv_search_opendir="none required"
7878 else
7879   echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 fi
7883 rm -f conftest.err conftest.$ac_objext \
7884       conftest$ac_exeext conftest.$ac_ext
7885 if test "$ac_cv_search_opendir" = no; then
7886   for ac_lib in x; do
7887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7888     cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894
7895 /* Override any gcc2 internal prototype to avoid an error.  */
7896 #ifdef __cplusplus
7897 extern "C"
7898 #endif
7899 /* We use char because int might match the return type of a gcc2
7900    builtin and then its argument prototype would still apply.  */
7901 char opendir ();
7902 int
7903 main ()
7904 {
7905 opendir ();
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912   (eval $ac_link) 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } &&
7919          { ac_try='test -z "$ac_c_werror_flag"
7920                          || test ! -s conftest.err'
7921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922   (eval $ac_try) 2>&5
7923   ac_status=$?
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); }; } &&
7926          { ac_try='test -s conftest$ac_exeext'
7927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928   (eval $ac_try) 2>&5
7929   ac_status=$?
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); }; }; then
7932   ac_cv_search_opendir="-l$ac_lib"
7933 break
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 fi
7939 rm -f conftest.err conftest.$ac_objext \
7940       conftest$ac_exeext conftest.$ac_ext
7941   done
7942 fi
7943 LIBS=$ac_func_search_save_LIBS
7944 fi
7945 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7946 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7947 if test "$ac_cv_search_opendir" != no; then
7948   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7949
7950 fi
7951
7952 fi
7953
7954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7965                   inttypes.h stdint.h unistd.h
7966 do
7967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7968 echo "$as_me:$LINENO: checking for $ac_header" >&5
7969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973   cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h.  */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h.  */
7979 $ac_includes_default
7980
7981 #include <$ac_header>
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985   (eval $ac_compile) 2>conftest.er1
7986   ac_status=$?
7987   grep -v '^ *+' conftest.er1 >conftest.err
7988   rm -f conftest.er1
7989   cat conftest.err >&5
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); } &&
7992          { ac_try='test -z "$ac_c_werror_flag"
7993                          || test ! -s conftest.err'
7994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995   (eval $ac_try) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }; } &&
7999          { ac_try='test -s conftest.$ac_objext'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; }; then
8005   eval "$as_ac_Header=yes"
8006 else
8007   echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010 eval "$as_ac_Header=no"
8011 fi
8012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013 fi
8014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8017   cat >>confdefs.h <<_ACEOF
8018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8019 _ACEOF
8020
8021 fi
8022
8023 done
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064 for ac_header in \
8065   arpa/inet.h \
8066   errno.h \
8067   getopt.h \
8068   glob.h \
8069   dlfcn.h \
8070   fcntl.h \
8071   inttypes.h \
8072   limits.h \
8073   machine/endian.h \
8074   malloc.h \
8075   memory.h \
8076   netdb.h \
8077   netinet/in.h \
8078   nlist.h \
8079   stddef.h \
8080   stdlib.h \
8081   stdint.h \
8082   string.h \
8083   strings.h \
8084   stropts.h \
8085   soundcard.h \
8086   alsa/asoundlib.h \
8087   sys/asoundlib.h \
8088   sys/audioio.h \
8089   sys/awe_voice.h\
8090   sys/ioctl.h \
8091   sys/ipc.h \
8092   sys/param.h \
8093   sys/shm.h \
8094   sys/socket.h \
8095   sys/soundcard.h \
8096   sys/param.h \
8097   sys/time.h \
8098   sys/types.h \
8099   sys/sysctl.h \
8100   termios.h \
8101   unistd.h \
8102   X11/Xlib.h
8103 do
8104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106   echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 fi
8111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8113 else
8114   # Is the header compilable?
8115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123 $ac_includes_default
8124 #include <$ac_header>
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128   (eval $ac_compile) 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } &&
8135          { ac_try='test -z "$ac_c_werror_flag"
8136                          || test ! -s conftest.err'
8137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138   (eval $ac_try) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; } &&
8142          { ac_try='test -s conftest.$ac_objext'
8143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144   (eval $ac_try) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   ac_header_compiler=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 ac_header_compiler=no
8154 fi
8155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8157 echo "${ECHO_T}$ac_header_compiler" >&6
8158
8159 # Is the header present?
8160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168 #include <$ac_header>
8169 _ACEOF
8170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } >/dev/null; then
8178   if test -s conftest.err; then
8179     ac_cpp_err=$ac_c_preproc_warn_flag
8180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8181   else
8182     ac_cpp_err=
8183   fi
8184 else
8185   ac_cpp_err=yes
8186 fi
8187 if test -z "$ac_cpp_err"; then
8188   ac_header_preproc=yes
8189 else
8190   echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193   ac_header_preproc=no
8194 fi
8195 rm -f conftest.err conftest.$ac_ext
8196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8197 echo "${ECHO_T}$ac_header_preproc" >&6
8198
8199 # So?  What about this header?
8200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8201   yes:no: )
8202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8206     ac_header_preproc=yes
8207     ;;
8208   no:yes:* )
8209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8221     (
8222       cat <<\_ASBOX
8223 ## ------------------------------- ##
8224 ## Report this to root@mput.dip.jp ##
8225 ## ------------------------------- ##
8226 _ASBOX
8227     ) |
8228       sed "s/^/$as_me: WARNING:     /" >&2
8229     ;;
8230 esac
8231 echo "$as_me:$LINENO: checking for $ac_header" >&5
8232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236   eval "$as_ac_Header=\$ac_header_preproc"
8237 fi
8238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8240
8241 fi
8242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8243   cat >>confdefs.h <<_ACEOF
8244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8245 _ACEOF
8246
8247 fi
8248
8249 done
8250
8251
8252
8253 for ac_header in \
8254   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
8255 do
8256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268
8269 #ifdef HAVE_X11_XLIB_H
8270 #include <X11/Xlib.h>
8271 #endif
8272
8273
8274 #include <$ac_header>
8275 _ACEOF
8276 rm -f conftest.$ac_objext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8278   (eval $ac_compile) 2>conftest.er1
8279   ac_status=$?
8280   grep -v '^ *+' conftest.er1 >conftest.err
8281   rm -f conftest.er1
8282   cat conftest.err >&5
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); } &&
8285          { ac_try='test -z "$ac_c_werror_flag"
8286                          || test ! -s conftest.err'
8287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288   (eval $ac_try) 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; } &&
8292          { ac_try='test -s conftest.$ac_objext'
8293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294   (eval $ac_try) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; }; then
8298   eval "$as_ac_Header=yes"
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303 eval "$as_ac_Header=no"
8304 fi
8305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8306 fi
8307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8310   cat >>confdefs.h <<_ACEOF
8311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8312 _ACEOF
8313
8314 fi
8315
8316 done
8317
8318 if test "${ac_cv_header_string_h+set}" = set; then
8319   echo "$as_me:$LINENO: checking for string.h" >&5
8320 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8321 if test "${ac_cv_header_string_h+set}" = set; then
8322   echo $ECHO_N "(cached) $ECHO_C" >&6
8323 fi
8324 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8325 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8326 else
8327   # Is the header compilable?
8328 echo "$as_me:$LINENO: checking string.h usability" >&5
8329 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336 $ac_includes_default
8337 #include <string.h>
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341   (eval $ac_compile) 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -z "$ac_c_werror_flag"
8349                          || test ! -s conftest.err'
8350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; } &&
8355          { ac_try='test -s conftest.$ac_objext'
8356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357   (eval $ac_try) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); }; }; then
8361   ac_header_compiler=yes
8362 else
8363   echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366 ac_header_compiler=no
8367 fi
8368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8371
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking string.h presence" >&5
8374 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h.  */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h.  */
8381 #include <string.h>
8382 _ACEOF
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } >/dev/null; then
8391   if test -s conftest.err; then
8392     ac_cpp_err=$ac_c_preproc_warn_flag
8393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8394   else
8395     ac_cpp_err=
8396   fi
8397 else
8398   ac_cpp_err=yes
8399 fi
8400 if test -z "$ac_cpp_err"; then
8401   ac_header_preproc=yes
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406   ac_header_preproc=no
8407 fi
8408 rm -f conftest.err conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8410 echo "${ECHO_T}$ac_header_preproc" >&6
8411
8412 # So?  What about this header?
8413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8414   yes:no: )
8415     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8416 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8417     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8418 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8419     ac_header_preproc=yes
8420     ;;
8421   no:yes:* )
8422     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8423 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8424     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8425 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8427 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8428     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8429 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8431 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8432     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8433 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8434     (
8435       cat <<\_ASBOX
8436 ## ------------------------------- ##
8437 ## Report this to root@mput.dip.jp ##
8438 ## ------------------------------- ##
8439 _ASBOX
8440     ) |
8441       sed "s/^/$as_me: WARNING:     /" >&2
8442     ;;
8443 esac
8444 echo "$as_me:$LINENO: checking for string.h" >&5
8445 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8446 if test "${ac_cv_header_string_h+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   ac_cv_header_string_h=$ac_header_preproc
8450 fi
8451 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8452 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8453
8454 fi
8455 if test $ac_cv_header_string_h = yes; then
8456   :
8457 else
8458
8459 cat >>confdefs.h <<\_ACEOF
8460 #define NO_STRING_H 1
8461 _ACEOF
8462
8463 fi
8464
8465
8466
8467 # Checks for typedefs, structures, and compiler characteristics.
8468 if test "x$WATCOM_C" != xyes ; then
8469 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8470 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8471 if test "${ac_cv_c_bigendian+set}" = set; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   # See if sys/param.h defines the BYTE_ORDER macro.
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 #include <sys/types.h>
8482 #include <sys/param.h>
8483
8484 int
8485 main ()
8486 {
8487 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8488  bogus endian macros
8489 #endif
8490
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497   (eval $ac_compile) 2>conftest.er1
8498   ac_status=$?
8499   grep -v '^ *+' conftest.er1 >conftest.err
8500   rm -f conftest.er1
8501   cat conftest.err >&5
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); } &&
8504          { ac_try='test -z "$ac_c_werror_flag"
8505                          || test ! -s conftest.err'
8506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507   (eval $ac_try) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; } &&
8511          { ac_try='test -s conftest.$ac_objext'
8512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513   (eval $ac_try) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; }; then
8517   # It does; now see whether it defined to BIG_ENDIAN or not.
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8526
8527 int
8528 main ()
8529 {
8530 #if BYTE_ORDER != BIG_ENDIAN
8531  not big endian
8532 #endif
8533
8534   ;
8535   return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540   (eval $ac_compile) 2>conftest.er1
8541   ac_status=$?
8542   grep -v '^ *+' conftest.er1 >conftest.err
8543   rm -f conftest.er1
8544   cat conftest.err >&5
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); } &&
8547          { ac_try='test -z "$ac_c_werror_flag"
8548                          || test ! -s conftest.err'
8549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550   (eval $ac_try) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; } &&
8554          { ac_try='test -s conftest.$ac_objext'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; }; then
8560   ac_cv_c_bigendian=yes
8561 else
8562   echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565 ac_cv_c_bigendian=no
8566 fi
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 # It does not; compile a test program.
8573 if test "$cross_compiling" = yes; then
8574   # try to guess the endianness by grepping values into an object file
8575   ac_cv_c_bigendian=unknown
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 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8583 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8584 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8585 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8586 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8587 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8588 int
8589 main ()
8590 {
8591  _ascii (); _ebcdic ();
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8598   (eval $ac_compile) 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } &&
8605          { ac_try='test -z "$ac_c_werror_flag"
8606                          || test ! -s conftest.err'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; } &&
8612          { ac_try='test -s conftest.$ac_objext'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; }; then
8618   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8619   ac_cv_c_bigendian=yes
8620 fi
8621 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8622   if test "$ac_cv_c_bigendian" = unknown; then
8623     ac_cv_c_bigendian=no
8624   else
8625     # finding both strings is unlikely to happen, but who knows?
8626     ac_cv_c_bigendian=unknown
8627   fi
8628 fi
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 fi
8634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8635 else
8636   cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h.  */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h.  */
8642 int
8643 main ()
8644 {
8645   /* Are we little or big endian?  From Harbison&Steele.  */
8646   union
8647   {
8648     long l;
8649     char c[sizeof (long)];
8650   } u;
8651   u.l = 1;
8652   exit (u.c[sizeof (long) - 1] == 1);
8653 }
8654 _ACEOF
8655 rm -f conftest$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657   (eval $ac_link) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_cv_c_bigendian=no
8667 else
8668   echo "$as_me: program exited with status $ac_status" >&5
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ( exit $ac_status )
8673 ac_cv_c_bigendian=yes
8674 fi
8675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8676 fi
8677 fi
8678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8679 fi
8680 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8681 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8682 case $ac_cv_c_bigendian in
8683   yes)
8684
8685 cat >>confdefs.h <<\_ACEOF
8686 #define WORDS_BIGENDIAN 1
8687 _ACEOF
8688  ;;
8689   no)
8690      ;;
8691   *)
8692     { { echo "$as_me:$LINENO: error: unknown endianness
8693 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8694 echo "$as_me: error: unknown endianness
8695 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8696    { (exit 1); exit 1; }; } ;;
8697 esac
8698
8699 fi
8700
8701 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8702 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8703 if test "${ac_cv_c_char_unsigned+set}" = set; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712 $ac_includes_default
8713 int
8714 main ()
8715 {
8716 static int test_array [1 - 2 * !(((char) -1) < 0)];
8717 test_array [0] = 0
8718
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725   (eval $ac_compile) 2>conftest.er1
8726   ac_status=$?
8727   grep -v '^ *+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } &&
8732          { ac_try='test -z "$ac_c_werror_flag"
8733                          || test ! -s conftest.err'
8734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735   (eval $ac_try) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }; } &&
8739          { ac_try='test -s conftest.$ac_objext'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; }; then
8745   ac_cv_c_char_unsigned=no
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_cv_c_char_unsigned=yes
8751 fi
8752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753 fi
8754 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8755 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8756 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8757   cat >>confdefs.h <<\_ACEOF
8758 #define __CHAR_UNSIGNED__ 1
8759 _ACEOF
8760
8761 fi
8762
8763 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8765 if test "${ac_cv_c_const+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768   cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774
8775 int
8776 main ()
8777 {
8778 /* FIXME: Include the comments suggested by Paul. */
8779 #ifndef __cplusplus
8780   /* Ultrix mips cc rejects this.  */
8781   typedef int charset[2];
8782   const charset x;
8783   /* SunOS 4.1.1 cc rejects this.  */
8784   char const *const *ccp;
8785   char **p;
8786   /* NEC SVR4.0.2 mips cc rejects this.  */
8787   struct point {int x, y;};
8788   static struct point const zero = {0,0};
8789   /* AIX XL C 1.02.0.0 rejects this.
8790      It does not let you subtract one const X* pointer from another in
8791      an arm of an if-expression whose if-part is not a constant
8792      expression */
8793   const char *g = "string";
8794   ccp = &g + (g ? g-g : 0);
8795   /* HPUX 7.0 cc rejects these. */
8796   ++ccp;
8797   p = (char**) ccp;
8798   ccp = (char const *const *) p;
8799   { /* SCO 3.2v4 cc rejects this.  */
8800     char *t;
8801     char const *s = 0 ? (char *) 0 : (char const *) 0;
8802
8803     *t++ = 0;
8804   }
8805   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8806     int x[] = {25, 17};
8807     const int *foo = &x[0];
8808     ++foo;
8809   }
8810   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8811     typedef const int *iptr;
8812     iptr p = 0;
8813     ++p;
8814   }
8815   { /* AIX XL C 1.02.0.0 rejects this saying
8816        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8817     struct s { int j; const int *ap[3]; };
8818     struct s *b; b->j = 5;
8819   }
8820   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8821     const int foo = 10;
8822   }
8823 #endif
8824
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831   (eval $ac_compile) 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } &&
8838          { ac_try='test -z "$ac_c_werror_flag"
8839                          || test ! -s conftest.err'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; } &&
8845          { ac_try='test -s conftest.$ac_objext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   ac_cv_c_const=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_cv_c_const=no
8857 fi
8858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8861 echo "${ECHO_T}$ac_cv_c_const" >&6
8862 if test $ac_cv_c_const = no; then
8863
8864 cat >>confdefs.h <<\_ACEOF
8865 #define const
8866 _ACEOF
8867
8868 fi
8869
8870 echo "$as_me:$LINENO: checking for inline" >&5
8871 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8872 if test "${ac_cv_c_inline+set}" = set; then
8873   echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875   ac_cv_c_inline=no
8876 for ac_kw in inline __inline__ __inline; do
8877   cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h.  */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h.  */
8883 #ifndef __cplusplus
8884 typedef int foo_t;
8885 static $ac_kw foo_t static_foo () {return 0; }
8886 $ac_kw foo_t foo () {return 0; }
8887 #endif
8888
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892   (eval $ac_compile) 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } &&
8899          { ac_try='test -z "$ac_c_werror_flag"
8900                          || test ! -s conftest.err'
8901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902   (eval $ac_try) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; } &&
8906          { ac_try='test -s conftest.$ac_objext'
8907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908   (eval $ac_try) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); }; }; then
8912   ac_cv_c_inline=$ac_kw; break
8913 else
8914   echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 fi
8918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8919 done
8920
8921 fi
8922 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8923 echo "${ECHO_T}$ac_cv_c_inline" >&6
8924
8925
8926 case $ac_cv_c_inline in
8927   inline | yes) ;;
8928   *)
8929     case $ac_cv_c_inline in
8930       no) ac_val=;;
8931       *) ac_val=$ac_cv_c_inline;;
8932     esac
8933     cat >>confdefs.h <<_ACEOF
8934 #ifndef __cplusplus
8935 #define inline $ac_val
8936 #endif
8937 _ACEOF
8938     ;;
8939 esac
8940
8941 echo "$as_me:$LINENO: checking for working volatile" >&5
8942 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8943 if test "${ac_cv_c_volatile+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952
8953 int
8954 main ()
8955 {
8956
8957 volatile int x;
8958 int * volatile y;
8959   ;
8960   return 0;
8961 }
8962 _ACEOF
8963 rm -f conftest.$ac_objext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8965   (eval $ac_compile) 2>conftest.er1
8966   ac_status=$?
8967   grep -v '^ *+' conftest.er1 >conftest.err
8968   rm -f conftest.er1
8969   cat conftest.err >&5
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } &&
8972          { ac_try='test -z "$ac_c_werror_flag"
8973                          || test ! -s conftest.err'
8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; } &&
8979          { ac_try='test -s conftest.$ac_objext'
8980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981   (eval $ac_try) 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); }; }; then
8985   ac_cv_c_volatile=yes
8986 else
8987   echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ac_cv_c_volatile=no
8991 fi
8992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8995 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8996 if test $ac_cv_c_volatile = no; then
8997
8998 cat >>confdefs.h <<\_ACEOF
8999 #define volatile
9000 _ACEOF
9001
9002 fi
9003
9004 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9005 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9006 if test "${ac_cv_c_stringize+set}" = set; then
9007   echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009   cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015 #define x(y) #y
9016
9017 char *s = x(teststring);
9018 _ACEOF
9019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9020   $EGREP "#teststring" >/dev/null 2>&1; then
9021   ac_cv_c_stringize=no
9022 else
9023   ac_cv_c_stringize=yes
9024 fi
9025 rm -f conftest*
9026
9027 fi
9028 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9029 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9030 if test $ac_cv_c_stringize = yes; then
9031
9032 cat >>confdefs.h <<\_ACEOF
9033 #define HAVE_STRINGIZE 1
9034 _ACEOF
9035
9036 fi
9037
9038 echo "$as_me:$LINENO: checking for function prototypes" >&5
9039 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9040 if test "$ac_cv_prog_cc_stdc" != no; then
9041   echo "$as_me:$LINENO: result: yes" >&5
9042 echo "${ECHO_T}yes" >&6
9043
9044 cat >>confdefs.h <<\_ACEOF
9045 #define PROTOTYPES 1
9046 _ACEOF
9047
9048
9049 cat >>confdefs.h <<\_ACEOF
9050 #define __PROTOTYPES 1
9051 _ACEOF
9052
9053 else
9054   echo "$as_me:$LINENO: result: no" >&5
9055 echo "${ECHO_T}no" >&6
9056 fi
9057
9058 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9059 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9060 if test "${ac_cv_struct_tm+set}" = set; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h.  */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h.  */
9069 #include <sys/types.h>
9070 #include <time.h>
9071
9072 int
9073 main ()
9074 {
9075 struct tm *tp; tp->tm_sec;
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082   (eval $ac_compile) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } &&
9089          { ac_try='test -z "$ac_c_werror_flag"
9090                          || test ! -s conftest.err'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; } &&
9096          { ac_try='test -s conftest.$ac_objext'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; }; then
9102   ac_cv_struct_tm=time.h
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_cv_struct_tm=sys/time.h
9108 fi
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9112 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9113 if test $ac_cv_struct_tm = sys/time.h; then
9114
9115 cat >>confdefs.h <<\_ACEOF
9116 #define TM_IN_SYS_TIME 1
9117 _ACEOF
9118
9119 fi
9120
9121 echo "$as_me:$LINENO: checking for size_t" >&5
9122 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9123 if test "${ac_cv_type_size_t+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 $ac_includes_default
9133 int
9134 main ()
9135 {
9136 if ((size_t *) 0)
9137   return 0;
9138 if (sizeof (size_t))
9139   return 0;
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146   (eval $ac_compile) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -z "$ac_c_werror_flag"
9154                          || test ! -s conftest.err'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; } &&
9160          { ac_try='test -s conftest.$ac_objext'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_cv_type_size_t=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_cv_type_size_t=no
9172 fi
9173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9174 fi
9175 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9176 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9177 if test $ac_cv_type_size_t = yes; then
9178   :
9179 else
9180
9181 cat >>confdefs.h <<_ACEOF
9182 #define size_t unsigned
9183 _ACEOF
9184
9185 fi
9186
9187 echo "$as_me:$LINENO: checking for off_t" >&5
9188 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9189 if test "${ac_cv_type_off_t+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 $ac_includes_default
9199 int
9200 main ()
9201 {
9202 if ((off_t *) 0)
9203   return 0;
9204 if (sizeof (off_t))
9205   return 0;
9206   ;
9207   return 0;
9208 }
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_cv_type_off_t=yes
9233 else
9234   echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 ac_cv_type_off_t=no
9238 fi
9239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9242 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9243 if test $ac_cv_type_off_t = yes; then
9244   :
9245 else
9246
9247 cat >>confdefs.h <<_ACEOF
9248 #define off_t long
9249 _ACEOF
9250
9251 fi
9252
9253 echo "$as_me:$LINENO: checking for pid_t" >&5
9254 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9255 if test "${ac_cv_type_pid_t+set}" = set; then
9256   echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258   cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h.  */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h.  */
9264 $ac_includes_default
9265 int
9266 main ()
9267 {
9268 if ((pid_t *) 0)
9269   return 0;
9270 if (sizeof (pid_t))
9271   return 0;
9272   ;
9273   return 0;
9274 }
9275 _ACEOF
9276 rm -f conftest.$ac_objext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278   (eval $ac_compile) 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } &&
9285          { ac_try='test -z "$ac_c_werror_flag"
9286                          || test ! -s conftest.err'
9287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288   (eval $ac_try) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; } &&
9292          { ac_try='test -s conftest.$ac_objext'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; }; then
9298   ac_cv_type_pid_t=yes
9299 else
9300   echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9302
9303 ac_cv_type_pid_t=no
9304 fi
9305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9306 fi
9307 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9308 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9309 if test $ac_cv_type_pid_t = yes; then
9310   :
9311 else
9312
9313 cat >>confdefs.h <<_ACEOF
9314 #define pid_t int
9315 _ACEOF
9316
9317 fi
9318
9319
9320 echo "$as_me:$LINENO: checking volatile declaration" >&5
9321 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9322 if test "${timidity_cv_type_volatile+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 int
9333 main ()
9334 {
9335 volatile int x
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342   (eval $ac_compile) 2>conftest.er1
9343   ac_status=$?
9344   grep -v '^ *+' conftest.er1 >conftest.err
9345   rm -f conftest.er1
9346   cat conftest.err >&5
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } &&
9349          { ac_try='test -z "$ac_c_werror_flag"
9350                          || test ! -s conftest.err'
9351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; } &&
9356          { ac_try='test -s conftest.$ac_objext'
9357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358   (eval $ac_try) 2>&5
9359   ac_status=$?
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); }; }; then
9362   timidity_cv_type_volatile=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 timidity_cv_type_volatile=no
9368 fi
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9370 fi
9371 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9372 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9373 if test $timidity_cv_type_volatile = no; then
9374
9375 cat >>confdefs.h <<\_ACEOF
9376 #define NO_VOLATILE 1
9377 _ACEOF
9378
9379 fi
9380
9381 echo "$as_me:$LINENO: checking union semun declaration" >&5
9382 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9383 if test "${timidity_cv_type_union_semun+set}" = set; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392
9393 #include <sys/types.h>
9394 #include <sys/ipc.h>
9395 #include <sys/sem.h>
9396
9397 int
9398 main ()
9399 {
9400 union semun x
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407   (eval $ac_compile) 2>conftest.er1
9408   ac_status=$?
9409   grep -v '^ *+' conftest.er1 >conftest.err
9410   rm -f conftest.er1
9411   cat conftest.err >&5
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } &&
9414          { ac_try='test -z "$ac_c_werror_flag"
9415                          || test ! -s conftest.err'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; } &&
9421          { ac_try='test -s conftest.$ac_objext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   timidity_cv_type_union_semun=yes
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 timidity_cv_type_union_semun=no
9433 fi
9434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435 fi
9436 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9437 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9438 if test $timidity_cv_type_union_semun = yes; then
9439
9440 cat >>confdefs.h <<\_ACEOF
9441 #define HAVE_UNION_SEMUN 1
9442 _ACEOF
9443
9444 fi
9445
9446 if test "x$MSYS" = xyes ; then
9447         case "x${CC}" in
9448         "xgcc"*)
9449                 msnative_struct=''
9450             echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9451 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9452             if test -z "$ac_cv_prog_CC"; then
9453                         our_gcc="$CC"
9454                 else
9455                         our_gcc="$ac_cv_prog_CC"
9456                 fi
9457                 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9458                         2.)
9459                 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9460                         msnative_struct='-fnative-struct'
9461                 fi
9462                 ;;
9463                         *)
9464                 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9465                         msnative_struct='-mms-bitfields'
9466                 fi
9467                 ;;
9468                 esac
9469                 if test x"$msnative_struct" = x ; then
9470                         echo "$as_me:$LINENO: result: no way" >&5
9471 echo "${ECHO_T}no way" >&6
9472                         { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9473 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9474                 else
9475                         CFLAGS="$CFLAGS $msnative_struct"
9476                         CPPFLAGS="$CPPFLAGS $msnative_struct"
9477                         echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9478 echo "${ECHO_T}${msnative_struct}" >&6
9479                 fi
9480                 ;;
9481         *)
9482                 ;;
9483         esac
9484 fi
9485 if test "x$MSYS" = xyes ; then
9486   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9487 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9488 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h.  */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h.  */
9497
9498 #include <windows.h>
9499 #include <mmsystem.h>
9500
9501 int
9502 main ()
9503 {
9504 return WOM_OPEN != 0x3BB
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511   (eval $ac_compile) 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -z "$ac_c_werror_flag"
9519                          || test ! -s conftest.err'
9520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521   (eval $ac_try) 2>&5
9522   ac_status=$?
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); }; } &&
9525          { ac_try='test -s conftest.$ac_objext'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; }; then
9531   timidity_cv_header_new_mmsystem=yes
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536 timidity_cv_header_new_mmsystem=no
9537 fi
9538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9539 fi
9540 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9541 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9542   if test $timidity_cv_header_new_mmsystem = yes; then
9543
9544 cat >>confdefs.h <<\_ACEOF
9545 #define HAVE_NEW_MMSYSTEM 1
9546 _ACEOF
9547
9548   fi
9549 fi
9550
9551 # Checks for library functions.
9552 echo "$as_me:$LINENO: checking for error_at_line" >&5
9553 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9554 if test "${ac_cv_lib_error_at_line+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563 $ac_includes_default
9564 int
9565 main ()
9566 {
9567 error_at_line (0, 0, "", 0, "");
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574   (eval $ac_link) 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } &&
9581          { ac_try='test -z "$ac_c_werror_flag"
9582                          || test ! -s conftest.err'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; } &&
9588          { ac_try='test -s conftest$ac_exeext'
9589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590   (eval $ac_try) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; }; then
9594   ac_cv_lib_error_at_line=yes
9595 else
9596   echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599 ac_cv_lib_error_at_line=no
9600 fi
9601 rm -f conftest.err conftest.$ac_objext \
9602       conftest$ac_exeext conftest.$ac_ext
9603 fi
9604 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9605 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9606 if test $ac_cv_lib_error_at_line = no; then
9607   case $LIBOBJS in
9608     "error.$ac_objext"   | \
9609   *" error.$ac_objext"   | \
9610     "error.$ac_objext "* | \
9611   *" error.$ac_objext "* ) ;;
9612   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9613 esac
9614
9615 fi
9616
9617
9618
9619 for ac_header in unistd.h vfork.h
9620 do
9621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9623   echo "$as_me:$LINENO: checking for $ac_header" >&5
9624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 fi
9628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9630 else
9631   # Is the header compilable?
9632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h.  */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h.  */
9640 $ac_includes_default
9641 #include <$ac_header>
9642 _ACEOF
9643 rm -f conftest.$ac_objext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645   (eval $ac_compile) 2>conftest.er1
9646   ac_status=$?
9647   grep -v '^ *+' conftest.er1 >conftest.err
9648   rm -f conftest.er1
9649   cat conftest.err >&5
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } &&
9652          { ac_try='test -z "$ac_c_werror_flag"
9653                          || test ! -s conftest.err'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; } &&
9659          { ac_try='test -s conftest.$ac_objext'
9660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661   (eval $ac_try) 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   ac_header_compiler=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_header_compiler=no
9671 fi
9672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9674 echo "${ECHO_T}$ac_header_compiler" >&6
9675
9676 # Is the header present?
9677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 #include <$ac_header>
9686 _ACEOF
9687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } >/dev/null; then
9695   if test -s conftest.err; then
9696     ac_cpp_err=$ac_c_preproc_warn_flag
9697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9698   else
9699     ac_cpp_err=
9700   fi
9701 else
9702   ac_cpp_err=yes
9703 fi
9704 if test -z "$ac_cpp_err"; then
9705   ac_header_preproc=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710   ac_header_preproc=no
9711 fi
9712 rm -f conftest.err conftest.$ac_ext
9713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9714 echo "${ECHO_T}$ac_header_preproc" >&6
9715
9716 # So?  What about this header?
9717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9718   yes:no: )
9719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9723     ac_header_preproc=yes
9724     ;;
9725   no:yes:* )
9726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9738     (
9739       cat <<\_ASBOX
9740 ## ------------------------------- ##
9741 ## Report this to root@mput.dip.jp ##
9742 ## ------------------------------- ##
9743 _ASBOX
9744     ) |
9745       sed "s/^/$as_me: WARNING:     /" >&2
9746     ;;
9747 esac
9748 echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   eval "$as_ac_Header=\$ac_header_preproc"
9754 fi
9755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9757
9758 fi
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760   cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9762 _ACEOF
9763
9764 fi
9765
9766 done
9767
9768
9769
9770 for ac_func in fork vfork
9771 do
9772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:$LINENO: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9786 #define $ac_func innocuous_$ac_func
9787
9788 /* System header to define __stub macros and hopefully few prototypes,
9789     which can conflict with char $ac_func (); below.
9790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791     <limits.h> exists even on freestanding compilers.  */
9792
9793 #ifdef __STDC__
9794 # include <limits.h>
9795 #else
9796 # include <assert.h>
9797 #endif
9798
9799 #undef $ac_func
9800
9801 /* Override any gcc2 internal prototype to avoid an error.  */
9802 #ifdef __cplusplus
9803 extern "C"
9804 {
9805 #endif
9806 /* We use char because int might match the return type of a gcc2
9807    builtin and then its argument prototype would still apply.  */
9808 char $ac_func ();
9809 /* The GNU C library defines this for functions which it implements
9810     to always fail with ENOSYS.  Some functions are actually named
9811     something starting with __ and the normal name is an alias.  */
9812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9813 choke me
9814 #else
9815 char (*f) () = $ac_func;
9816 #endif
9817 #ifdef __cplusplus
9818 }
9819 #endif
9820
9821 int
9822 main ()
9823 {
9824 return f != $ac_func;
9825   ;
9826   return 0;
9827 }
9828 _ACEOF
9829 rm -f conftest.$ac_objext conftest$ac_exeext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9831   (eval $ac_link) 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } &&
9838          { ac_try='test -z "$ac_c_werror_flag"
9839                          || test ! -s conftest.err'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; } &&
9845          { ac_try='test -s conftest$ac_exeext'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   eval "$as_ac_var=yes"
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 eval "$as_ac_var=no"
9857 fi
9858 rm -f conftest.err conftest.$ac_objext \
9859       conftest$ac_exeext conftest.$ac_ext
9860 fi
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9863 if test `eval echo '${'$as_ac_var'}'` = yes; then
9864   cat >>confdefs.h <<_ACEOF
9865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9866 _ACEOF
9867
9868 fi
9869 done
9870
9871 if test "x$ac_cv_func_fork" = xyes; then
9872   echo "$as_me:$LINENO: checking for working fork" >&5
9873 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9874 if test "${ac_cv_func_fork_works+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   if test "$cross_compiling" = yes; then
9878   ac_cv_func_fork_works=cross
9879 else
9880   cat >conftest.$ac_ext <<_ACEOF
9881 /* By Ruediger Kuhlmann. */
9882       #include <sys/types.h>
9883       #if HAVE_UNISTD_H
9884       # include <unistd.h>
9885       #endif
9886       /* Some systems only have a dummy stub for fork() */
9887       int main ()
9888       {
9889         if (fork() < 0)
9890           exit (1);
9891         exit (0);
9892       }
9893 _ACEOF
9894 rm -f conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896   (eval $ac_link) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_cv_func_fork_works=yes
9906 else
9907   echo "$as_me: program exited with status $ac_status" >&5
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ( exit $ac_status )
9912 ac_cv_func_fork_works=no
9913 fi
9914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9915 fi
9916 fi
9917 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9918 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9919
9920 else
9921   ac_cv_func_fork_works=$ac_cv_func_fork
9922 fi
9923 if test "x$ac_cv_func_fork_works" = xcross; then
9924   case $host in
9925     *-*-amigaos* | *-*-msdosdjgpp*)
9926       # Override, as these systems have only a dummy fork() stub
9927       ac_cv_func_fork_works=no
9928       ;;
9929     *)
9930       ac_cv_func_fork_works=yes
9931       ;;
9932   esac
9933   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9934 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9935 fi
9936 ac_cv_func_vfork_works=$ac_cv_func_vfork
9937 if test "x$ac_cv_func_vfork" = xyes; then
9938   echo "$as_me:$LINENO: checking for working vfork" >&5
9939 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9940 if test "${ac_cv_func_vfork_works+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   if test "$cross_compiling" = yes; then
9944   ac_cv_func_vfork_works=cross
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 /* Thanks to Paul Eggert for this test.  */
9953 #include <stdio.h>
9954 #include <stdlib.h>
9955 #include <sys/types.h>
9956 #include <sys/stat.h>
9957 #include <sys/wait.h>
9958 #if HAVE_UNISTD_H
9959 # include <unistd.h>
9960 #endif
9961 #if HAVE_VFORK_H
9962 # include <vfork.h>
9963 #endif
9964 /* On some sparc systems, changes by the child to local and incoming
9965    argument registers are propagated back to the parent.  The compiler
9966    is told about this with #include <vfork.h>, but some compilers
9967    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9968    static variable whose address is put into a register that is
9969    clobbered by the vfork.  */
9970 static void
9971 #ifdef __cplusplus
9972 sparc_address_test (int arg)
9973 # else
9974 sparc_address_test (arg) int arg;
9975 #endif
9976 {
9977   static pid_t child;
9978   if (!child) {
9979     child = vfork ();
9980     if (child < 0) {
9981       perror ("vfork");
9982       _exit(2);
9983     }
9984     if (!child) {
9985       arg = getpid();
9986       write(-1, "", 0);
9987       _exit (arg);
9988     }
9989   }
9990 }
9991
9992 int
9993 main ()
9994 {
9995   pid_t parent = getpid ();
9996   pid_t child;
9997
9998   sparc_address_test (0);
9999
10000   child = vfork ();
10001
10002   if (child == 0) {
10003     /* Here is another test for sparc vfork register problems.  This
10004        test uses lots of local variables, at least as many local
10005        variables as main has allocated so far including compiler
10006        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10007        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10008        reuse the register of parent for one of the local variables,
10009        since it will think that parent can't possibly be used any more
10010        in this routine.  Assigning to the local variable will thus
10011        munge parent in the parent process.  */
10012     pid_t
10013       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10014       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10015     /* Convince the compiler that p..p7 are live; otherwise, it might
10016        use the same hardware register for all 8 local variables.  */
10017     if (p != p1 || p != p2 || p != p3 || p != p4
10018         || p != p5 || p != p6 || p != p7)
10019       _exit(1);
10020
10021     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10022        from child file descriptors.  If the child closes a descriptor
10023        before it execs or exits, this munges the parent's descriptor
10024        as well.  Test for this by closing stdout in the child.  */
10025     _exit(close(fileno(stdout)) != 0);
10026   } else {
10027     int status;
10028     struct stat st;
10029
10030     while (wait(&status) != child)
10031       ;
10032     exit(
10033          /* Was there some problem with vforking?  */
10034          child < 0
10035
10036          /* Did the child fail?  (This shouldn't happen.)  */
10037          || status
10038
10039          /* Did the vfork/compiler bug occur?  */
10040          || parent != getpid()
10041
10042          /* Did the file descriptor bug occur?  */
10043          || fstat(fileno(stdout), &st) != 0
10044          );
10045   }
10046 }
10047 _ACEOF
10048 rm -f conftest$ac_exeext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050   (eval $ac_link) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_func_vfork_works=yes
10060 else
10061   echo "$as_me: program exited with status $ac_status" >&5
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 ( exit $ac_status )
10066 ac_cv_func_vfork_works=no
10067 fi
10068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10069 fi
10070 fi
10071 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10072 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10073
10074 fi;
10075 if test "x$ac_cv_func_fork_works" = xcross; then
10076   ac_cv_func_vfork_works=$ac_cv_func_vfork
10077   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10078 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10079 fi
10080
10081 if test "x$ac_cv_func_vfork_works" = xyes; then
10082
10083 cat >>confdefs.h <<\_ACEOF
10084 #define HAVE_WORKING_VFORK 1
10085 _ACEOF
10086
10087 else
10088
10089 cat >>confdefs.h <<\_ACEOF
10090 #define vfork fork
10091 _ACEOF
10092
10093 fi
10094 if test "x$ac_cv_func_fork_works" = xyes; then
10095
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_WORKING_FORK 1
10098 _ACEOF
10099
10100 fi
10101
10102 echo "$as_me:$LINENO: checking for working memcmp" >&5
10103 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10104 if test "${ac_cv_func_memcmp_working+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   if test "$cross_compiling" = yes; then
10108   ac_cv_func_memcmp_working=no
10109 else
10110   cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 $ac_includes_default
10117 int
10118 main ()
10119 {
10120
10121   /* Some versions of memcmp are not 8-bit clean.  */
10122   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10123   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10124     exit (1);
10125
10126   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10127      or more and with at least one buffer not starting on a 4-byte boundary.
10128      William Lewis provided this test program.   */
10129   {
10130     char foo[21];
10131     char bar[21];
10132     int i;
10133     for (i = 0; i < 4; i++)
10134       {
10135         char *a = foo + i;
10136         char *b = bar + i;
10137         strcpy (a, "--------01111111");
10138         strcpy (b, "--------10000000");
10139         if (memcmp (a, b, 16) >= 0)
10140           exit (1);
10141       }
10142     exit (0);
10143   }
10144
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151   (eval $ac_link) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_cv_func_memcmp_working=yes
10161 else
10162   echo "$as_me: program exited with status $ac_status" >&5
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 ( exit $ac_status )
10167 ac_cv_func_memcmp_working=no
10168 fi
10169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10170 fi
10171 fi
10172 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10173 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10174 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
10175     "memcmp.$ac_objext"   | \
10176   *" memcmp.$ac_objext"   | \
10177     "memcmp.$ac_objext "* | \
10178   *" memcmp.$ac_objext "* ) ;;
10179   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
10180 esac
10181
10182
10183
10184
10185 for ac_header in stdlib.h unistd.h
10186 do
10187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189   echo "$as_me:$LINENO: checking for $ac_header" >&5
10190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192   echo $ECHO_N "(cached) $ECHO_C" >&6
10193 fi
10194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196 else
10197   # Is the header compilable?
10198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206 $ac_includes_default
10207 #include <$ac_header>
10208 _ACEOF
10209 rm -f conftest.$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211   (eval $ac_compile) 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } &&
10218          { ac_try='test -z "$ac_c_werror_flag"
10219                          || test ! -s conftest.err'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; } &&
10225          { ac_try='test -s conftest.$ac_objext'
10226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227   (eval $ac_try) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231   ac_header_compiler=yes
10232 else
10233   echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 ac_header_compiler=no
10237 fi
10238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10240 echo "${ECHO_T}$ac_header_compiler" >&6
10241
10242 # Is the header present?
10243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251 #include <$ac_header>
10252 _ACEOF
10253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } >/dev/null; then
10261   if test -s conftest.err; then
10262     ac_cpp_err=$ac_c_preproc_warn_flag
10263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10264   else
10265     ac_cpp_err=
10266   fi
10267 else
10268   ac_cpp_err=yes
10269 fi
10270 if test -z "$ac_cpp_err"; then
10271   ac_header_preproc=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276   ac_header_preproc=no
10277 fi
10278 rm -f conftest.err conftest.$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10280 echo "${ECHO_T}$ac_header_preproc" >&6
10281
10282 # So?  What about this header?
10283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10284   yes:no: )
10285     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10289     ac_header_preproc=yes
10290     ;;
10291   no:yes:* )
10292     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10294     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10295 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10296     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10298     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10299 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10302     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10304     (
10305       cat <<\_ASBOX
10306 ## ------------------------------- ##
10307 ## Report this to root@mput.dip.jp ##
10308 ## ------------------------------- ##
10309 _ASBOX
10310     ) |
10311       sed "s/^/$as_me: WARNING:     /" >&2
10312     ;;
10313 esac
10314 echo "$as_me:$LINENO: checking for $ac_header" >&5
10315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   eval "$as_ac_Header=\$ac_header_preproc"
10320 fi
10321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10323
10324 fi
10325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10326   cat >>confdefs.h <<_ACEOF
10327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10328 _ACEOF
10329
10330 fi
10331
10332 done
10333
10334
10335 for ac_func in getpagesize
10336 do
10337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10338 echo "$as_me:$LINENO: checking for $ac_func" >&5
10339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10340 if eval "test \"\${$as_ac_var+set}\" = set"; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h.  */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h.  */
10349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10351 #define $ac_func innocuous_$ac_func
10352
10353 /* System header to define __stub macros and hopefully few prototypes,
10354     which can conflict with char $ac_func (); below.
10355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10356     <limits.h> exists even on freestanding compilers.  */
10357
10358 #ifdef __STDC__
10359 # include <limits.h>
10360 #else
10361 # include <assert.h>
10362 #endif
10363
10364 #undef $ac_func
10365
10366 /* Override any gcc2 internal prototype to avoid an error.  */
10367 #ifdef __cplusplus
10368 extern "C"
10369 {
10370 #endif
10371 /* We use char because int might match the return type of a gcc2
10372    builtin and then its argument prototype would still apply.  */
10373 char $ac_func ();
10374 /* The GNU C library defines this for functions which it implements
10375     to always fail with ENOSYS.  Some functions are actually named
10376     something starting with __ and the normal name is an alias.  */
10377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10378 choke me
10379 #else
10380 char (*f) () = $ac_func;
10381 #endif
10382 #ifdef __cplusplus
10383 }
10384 #endif
10385
10386 int
10387 main ()
10388 {
10389 return f != $ac_func;
10390   ;
10391   return 0;
10392 }
10393 _ACEOF
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10396   (eval $ac_link) 2>conftest.er1
10397   ac_status=$?
10398   grep -v '^ *+' conftest.er1 >conftest.err
10399   rm -f conftest.er1
10400   cat conftest.err >&5
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -z "$ac_c_werror_flag"
10404                          || test ! -s conftest.err'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; } &&
10410          { ac_try='test -s conftest$ac_exeext'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }; then
10416   eval "$as_ac_var=yes"
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 eval "$as_ac_var=no"
10422 fi
10423 rm -f conftest.err conftest.$ac_objext \
10424       conftest$ac_exeext conftest.$ac_ext
10425 fi
10426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10428 if test `eval echo '${'$as_ac_var'}'` = yes; then
10429   cat >>confdefs.h <<_ACEOF
10430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10431 _ACEOF
10432
10433 fi
10434 done
10435
10436 echo "$as_me:$LINENO: checking for working mmap" >&5
10437 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10438 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   if test "$cross_compiling" = yes; then
10442   ac_cv_func_mmap_fixed_mapped=no
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 $ac_includes_default
10451 /* malloc might have been renamed as rpl_malloc. */
10452 #undef malloc
10453
10454 /* Thanks to Mike Haertel and Jim Avera for this test.
10455    Here is a matrix of mmap possibilities:
10456         mmap private not fixed
10457         mmap private fixed at somewhere currently unmapped
10458         mmap private fixed at somewhere already mapped
10459         mmap shared not fixed
10460         mmap shared fixed at somewhere currently unmapped
10461         mmap shared fixed at somewhere already mapped
10462    For private mappings, we should verify that changes cannot be read()
10463    back from the file, nor mmap's back from the file at a different
10464    address.  (There have been systems where private was not correctly
10465    implemented like the infamous i386 svr4.0, and systems where the
10466    VM page cache was not coherent with the file system buffer cache
10467    like early versions of FreeBSD and possibly contemporary NetBSD.)
10468    For shared mappings, we should conversely verify that changes get
10469    propagated back to all the places they're supposed to be.
10470
10471    Grep wants private fixed already mapped.
10472    The main things grep needs to know about mmap are:
10473    * does it exist and is it safe to write into the mmap'd area
10474    * how to use it (BSD variants)  */
10475
10476 #include <fcntl.h>
10477 #include <sys/mman.h>
10478
10479 #if !STDC_HEADERS && !HAVE_STDLIB_H
10480 char *malloc ();
10481 #endif
10482
10483 /* This mess was copied from the GNU getpagesize.h.  */
10484 #if !HAVE_GETPAGESIZE
10485 /* Assume that all systems that can run configure have sys/param.h.  */
10486 # if !HAVE_SYS_PARAM_H
10487 #  define HAVE_SYS_PARAM_H 1
10488 # endif
10489
10490 # ifdef _SC_PAGESIZE
10491 #  define getpagesize() sysconf(_SC_PAGESIZE)
10492 # else /* no _SC_PAGESIZE */
10493 #  if HAVE_SYS_PARAM_H
10494 #   include <sys/param.h>
10495 #   ifdef EXEC_PAGESIZE
10496 #    define getpagesize() EXEC_PAGESIZE
10497 #   else /* no EXEC_PAGESIZE */
10498 #    ifdef NBPG
10499 #     define getpagesize() NBPG * CLSIZE
10500 #     ifndef CLSIZE
10501 #      define CLSIZE 1
10502 #     endif /* no CLSIZE */
10503 #    else /* no NBPG */
10504 #     ifdef NBPC
10505 #      define getpagesize() NBPC
10506 #     else /* no NBPC */
10507 #      ifdef PAGESIZE
10508 #       define getpagesize() PAGESIZE
10509 #      endif /* PAGESIZE */
10510 #     endif /* no NBPC */
10511 #    endif /* no NBPG */
10512 #   endif /* no EXEC_PAGESIZE */
10513 #  else /* no HAVE_SYS_PARAM_H */
10514 #   define getpagesize() 8192   /* punt totally */
10515 #  endif /* no HAVE_SYS_PARAM_H */
10516 # endif /* no _SC_PAGESIZE */
10517
10518 #endif /* no HAVE_GETPAGESIZE */
10519
10520 int
10521 main ()
10522 {
10523   char *data, *data2, *data3;
10524   int i, pagesize;
10525   int fd;
10526
10527   pagesize = getpagesize ();
10528
10529   /* First, make a file with some known garbage in it. */
10530   data = (char *) malloc (pagesize);
10531   if (!data)
10532     exit (1);
10533   for (i = 0; i < pagesize; ++i)
10534     *(data + i) = rand ();
10535   umask (0);
10536   fd = creat ("conftest.mmap", 0600);
10537   if (fd < 0)
10538     exit (1);
10539   if (write (fd, data, pagesize) != pagesize)
10540     exit (1);
10541   close (fd);
10542
10543   /* Next, try to mmap the file at a fixed address which already has
10544      something else allocated at it.  If we can, also make sure that
10545      we see the same garbage.  */
10546   fd = open ("conftest.mmap", O_RDWR);
10547   if (fd < 0)
10548     exit (1);
10549   data2 = (char *) malloc (2 * pagesize);
10550   if (!data2)
10551     exit (1);
10552   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10553   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10554                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10555     exit (1);
10556   for (i = 0; i < pagesize; ++i)
10557     if (*(data + i) != *(data2 + i))
10558       exit (1);
10559
10560   /* Finally, make sure that changes to the mapped area do not
10561      percolate back to the file as seen by read().  (This is a bug on
10562      some variants of i386 svr4.0.)  */
10563   for (i = 0; i < pagesize; ++i)
10564     *(data2 + i) = *(data2 + i) + 1;
10565   data3 = (char *) malloc (pagesize);
10566   if (!data3)
10567     exit (1);
10568   if (read (fd, data3, pagesize) != pagesize)
10569     exit (1);
10570   for (i = 0; i < pagesize; ++i)
10571     if (*(data + i) != *(data3 + i))
10572       exit (1);
10573   close (fd);
10574   exit (0);
10575 }
10576 _ACEOF
10577 rm -f conftest$ac_exeext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579   (eval $ac_link) 2>&5
10580   ac_status=$?
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   ac_cv_func_mmap_fixed_mapped=yes
10589 else
10590   echo "$as_me: program exited with status $ac_status" >&5
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10593
10594 ( exit $ac_status )
10595 ac_cv_func_mmap_fixed_mapped=no
10596 fi
10597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10598 fi
10599 fi
10600 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10601 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10602 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10603
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_MMAP 1
10606 _ACEOF
10607
10608 fi
10609 rm -f conftest.mmap
10610
10611 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10612 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10613 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10614   echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616   ac_cv_func_setvbuf_reversed=no
10617    cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623 #include <stdio.h>
10624 #         if PROTOTYPES
10625            int (setvbuf) (FILE *, int, char *, size_t);
10626 #         endif
10627 int
10628 main ()
10629 {
10630 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } &&
10644          { ac_try='test -z "$ac_c_werror_flag"
10645                          || test ! -s conftest.err'
10646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647   (eval $ac_try) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; } &&
10651          { ac_try='test -s conftest$ac_exeext'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }; then
10657   cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 #include <stdio.h>
10664 #            if PROTOTYPES
10665               int (setvbuf) (FILE *, int, char *, size_t);
10666 #            endif
10667 int
10668 main ()
10669 {
10670 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10671   ;
10672   return 0;
10673 }
10674 _ACEOF
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677   (eval $ac_link) 2>conftest.er1
10678   ac_status=$?
10679   grep -v '^ *+' conftest.er1 >conftest.err
10680   rm -f conftest.er1
10681   cat conftest.err >&5
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } &&
10684          { ac_try='test -z "$ac_c_werror_flag"
10685                          || test ! -s conftest.err'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; } &&
10691          { ac_try='test -s conftest$ac_exeext'
10692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693   (eval $ac_try) 2>&5
10694   ac_status=$?
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); }; }; then
10697   # It compiles and links either way, so it must not be declared
10698          # with a prototype and most likely this is a K&R C compiler.
10699          # Try running it.
10700          if test "$cross_compiling" = yes; then
10701   : # Assume setvbuf is not reversed when cross-compiling.
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 #include <stdio.h>
10710 int
10711 main ()
10712 {
10713 /* This call has the arguments reversed.
10714                    A reversed system may check and see that the address of buf
10715                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10716                 char buf;
10717                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10718                   exit (1);
10719                 putchar ('\r');
10720                 exit (0); /* Non-reversed systems SEGV here.  */
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 rm -f conftest$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727   (eval $ac_link) 2>&5
10728   ac_status=$?
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732   (eval $ac_try) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; }; then
10736   ac_cv_func_setvbuf_reversed=yes
10737 else
10738   echo "$as_me: program exited with status $ac_status" >&5
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 ( exit $ac_status )
10743 rm -f core *.core
10744 fi
10745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10746 fi
10747         ac_cv_func_setvbuf_reversed=yes
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 fi
10753 rm -f conftest.err conftest.$ac_objext \
10754       conftest$ac_exeext conftest.$ac_ext
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 fi
10760 rm -f conftest.err conftest.$ac_objext \
10761       conftest$ac_exeext conftest.$ac_ext
10762 fi
10763 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10764 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10765 if test $ac_cv_func_setvbuf_reversed = yes; then
10766
10767 cat >>confdefs.h <<\_ACEOF
10768 #define SETVBUF_REVERSED 1
10769 _ACEOF
10770
10771 fi
10772
10773 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10774 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10775 if test "${ac_cv_type_signal+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784 #include <sys/types.h>
10785 #include <signal.h>
10786 #ifdef signal
10787 # undef signal
10788 #endif
10789 #ifdef __cplusplus
10790 extern "C" void (*signal (int, void (*)(int)))(int);
10791 #else
10792 void (*signal ()) ();
10793 #endif
10794
10795 int
10796 main ()
10797 {
10798 int i;
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10805   (eval $ac_compile) 2>conftest.er1
10806   ac_status=$?
10807   grep -v '^ *+' conftest.er1 >conftest.err
10808   rm -f conftest.er1
10809   cat conftest.err >&5
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -z "$ac_c_werror_flag"
10813                          || test ! -s conftest.err'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; } &&
10819          { ac_try='test -s conftest.$ac_objext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ac_cv_type_signal=void
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_type_signal=int
10831 fi
10832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10833 fi
10834 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10835 echo "${ECHO_T}$ac_cv_type_signal" >&6
10836
10837 cat >>confdefs.h <<_ACEOF
10838 #define RETSIGTYPE $ac_cv_type_signal
10839 _ACEOF
10840
10841
10842 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; then
10843
10844 for ac_func in vprintf
10845 do
10846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10847 echo "$as_me:$LINENO: checking for $ac_func" >&5
10848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10849 if eval "test \"\${$as_ac_var+set}\" = set"; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10860 #define $ac_func innocuous_$ac_func
10861
10862 /* System header to define __stub macros and hopefully few prototypes,
10863     which can conflict with char $ac_func (); below.
10864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10865     <limits.h> exists even on freestanding compilers.  */
10866
10867 #ifdef __STDC__
10868 # include <limits.h>
10869 #else
10870 # include <assert.h>
10871 #endif
10872
10873 #undef $ac_func
10874
10875 /* Override any gcc2 internal prototype to avoid an error.  */
10876 #ifdef __cplusplus
10877 extern "C"
10878 {
10879 #endif
10880 /* We use char because int might match the return type of a gcc2
10881    builtin and then its argument prototype would still apply.  */
10882 char $ac_func ();
10883 /* The GNU C library defines this for functions which it implements
10884     to always fail with ENOSYS.  Some functions are actually named
10885     something starting with __ and the normal name is an alias.  */
10886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10887 choke me
10888 #else
10889 char (*f) () = $ac_func;
10890 #endif
10891 #ifdef __cplusplus
10892 }
10893 #endif
10894
10895 int
10896 main ()
10897 {
10898 return f != $ac_func;
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905   (eval $ac_link) 2>conftest.er1
10906   ac_status=$?
10907   grep -v '^ *+' conftest.er1 >conftest.err
10908   rm -f conftest.er1
10909   cat conftest.err >&5
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } &&
10912          { ac_try='test -z "$ac_c_werror_flag"
10913                          || test ! -s conftest.err'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; } &&
10919          { ac_try='test -s conftest$ac_exeext'
10920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921   (eval $ac_try) 2>&5
10922   ac_status=$?
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); }; }; then
10925   eval "$as_ac_var=yes"
10926 else
10927   echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 eval "$as_ac_var=no"
10931 fi
10932 rm -f conftest.err conftest.$ac_objext \
10933       conftest$ac_exeext conftest.$ac_ext
10934 fi
10935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10937 if test `eval echo '${'$as_ac_var'}'` = yes; then
10938   cat >>confdefs.h <<_ACEOF
10939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940 _ACEOF
10941
10942 echo "$as_me:$LINENO: checking for _doprnt" >&5
10943 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10944 if test "${ac_cv_func__doprnt+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10955 #define _doprnt innocuous__doprnt
10956
10957 /* System header to define __stub macros and hopefully few prototypes,
10958     which can conflict with char _doprnt (); below.
10959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10960     <limits.h> exists even on freestanding compilers.  */
10961
10962 #ifdef __STDC__
10963 # include <limits.h>
10964 #else
10965 # include <assert.h>
10966 #endif
10967
10968 #undef _doprnt
10969
10970 /* Override any gcc2 internal prototype to avoid an error.  */
10971 #ifdef __cplusplus
10972 extern "C"
10973 {
10974 #endif
10975 /* We use char because int might match the return type of a gcc2
10976    builtin and then its argument prototype would still apply.  */
10977 char _doprnt ();
10978 /* The GNU C library defines this for functions which it implements
10979     to always fail with ENOSYS.  Some functions are actually named
10980     something starting with __ and the normal name is an alias.  */
10981 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10982 choke me
10983 #else
10984 char (*f) () = _doprnt;
10985 #endif
10986 #ifdef __cplusplus
10987 }
10988 #endif
10989
10990 int
10991 main ()
10992 {
10993 return f != _doprnt;
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000   (eval $ac_link) 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } &&
11007          { ac_try='test -z "$ac_c_werror_flag"
11008                          || test ! -s conftest.err'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; } &&
11014          { ac_try='test -s conftest$ac_exeext'
11015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016   (eval $ac_try) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; }; then
11020   ac_cv_func__doprnt=yes
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_cv_func__doprnt=no
11026 fi
11027 rm -f conftest.err conftest.$ac_objext \
11028       conftest$ac_exeext conftest.$ac_ext
11029 fi
11030 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11031 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11032 if test $ac_cv_func__doprnt = yes; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_DOPRNT 1
11036 _ACEOF
11037
11038 fi
11039
11040 fi
11041 done
11042
11043
11044 fi
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081 for ac_func in \
11082   alarm \
11083   dup2 \
11084   floor \
11085   getcwd \
11086   getopt \
11087   gethostbyname \
11088   gettimeofday \
11089   getwd \
11090   isatty \
11091   memchr \
11092   memmove \
11093   memset \
11094   mkstemp \
11095   modf \
11096   munmap \
11097   popen \
11098   pow \
11099   select \
11100   signal \
11101   socket \
11102   sleep \
11103   vsnprintf \
11104   snprintf \
11105   sqrt \
11106   strchr \
11107   strdup \
11108   strstr \
11109   strerror \
11110   strcasecmp \
11111   strncasecmp \
11112   strrchr \
11113   strstr \
11114   strtol \
11115   strlcat \
11116   strlcpy \
11117   usleep
11118 do
11119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 echo "$as_me:$LINENO: checking for $ac_func" >&5
11121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11122 if eval "test \"\${$as_ac_var+set}\" = set"; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11133 #define $ac_func innocuous_$ac_func
11134
11135 /* System header to define __stub macros and hopefully few prototypes,
11136     which can conflict with char $ac_func (); below.
11137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138     <limits.h> exists even on freestanding compilers.  */
11139
11140 #ifdef __STDC__
11141 # include <limits.h>
11142 #else
11143 # include <assert.h>
11144 #endif
11145
11146 #undef $ac_func
11147
11148 /* Override any gcc2 internal prototype to avoid an error.  */
11149 #ifdef __cplusplus
11150 extern "C"
11151 {
11152 #endif
11153 /* We use char because int might match the return type of a gcc2
11154    builtin and then its argument prototype would still apply.  */
11155 char $ac_func ();
11156 /* The GNU C library defines this for functions which it implements
11157     to always fail with ENOSYS.  Some functions are actually named
11158     something starting with __ and the normal name is an alias.  */
11159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11160 choke me
11161 #else
11162 char (*f) () = $ac_func;
11163 #endif
11164 #ifdef __cplusplus
11165 }
11166 #endif
11167
11168 int
11169 main ()
11170 {
11171 return f != $ac_func;
11172   ;
11173   return 0;
11174 }
11175 _ACEOF
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178   (eval $ac_link) 2>conftest.er1
11179   ac_status=$?
11180   grep -v '^ *+' conftest.er1 >conftest.err
11181   rm -f conftest.er1
11182   cat conftest.err >&5
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } &&
11185          { ac_try='test -z "$ac_c_werror_flag"
11186                          || test ! -s conftest.err'
11187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188   (eval $ac_try) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; } &&
11192          { ac_try='test -s conftest$ac_exeext'
11193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194   (eval $ac_try) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; }; then
11198   eval "$as_ac_var=yes"
11199 else
11200   echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 eval "$as_ac_var=no"
11204 fi
11205 rm -f conftest.err conftest.$ac_objext \
11206       conftest$ac_exeext conftest.$ac_ext
11207 fi
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211   cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 _ACEOF
11214
11215 fi
11216 done
11217
11218 if test "x$VCPP" = xyes; then
11219   cat >>confdefs.h <<\_ACEOF
11220 #define RETSIGTYPE int
11221 _ACEOF
11222
11223   cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_GETCWD int
11225 _ACEOF
11226
11227 fi
11228 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11229   cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_GETHOSTBYNAME 1
11231 _ACEOF
11232
11233   cat >>confdefs.h <<\_ACEOF
11234 #define HAVE_POPEN 1
11235 _ACEOF
11236
11237
11238 cat >>confdefs.h <<\_ACEOF
11239 #define popen _popen
11240 _ACEOF
11241
11242
11243 cat >>confdefs.h <<\_ACEOF
11244 #define pclose _pclose
11245 _ACEOF
11246
11247   cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_SELECT 1
11249 _ACEOF
11250
11251   cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_SNPRINTF 1
11253 _ACEOF
11254
11255   cat >>confdefs.h <<\_ACEOF
11256 #define HAVE_STRDUP 1
11257 _ACEOF
11258
11259   cat >>confdefs.h <<\_ACEOF
11260 #define HAVE_STRERROR 1
11261 _ACEOF
11262
11263   cat >>confdefs.h <<\_ACEOF
11264 #define HAVE_STRNCASECMP 1
11265 _ACEOF
11266
11267   cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_STRSTR 1
11269 _ACEOF
11270
11271
11272 cat >>confdefs.h <<\_ACEOF
11273 #define snprintf _snprintf
11274 _ACEOF
11275
11276   cat >>confdefs.h <<\_ACEOF
11277 #define HAVE_SOCKET 1
11278 _ACEOF
11279
11280   cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_VSNPRINTF 1
11282 _ACEOF
11283
11284
11285 cat >>confdefs.h <<\_ACEOF
11286 #define vsnprintf _vsnprintf
11287 _ACEOF
11288
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define TIMID_VERSION $(PACKAGE_VERSION)
11292 _ACEOF
11293
11294 fi
11295
11296 echo "$as_me:$LINENO: checking for getopt_long" >&5
11297 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
11298 if test "${ac_cv_func_getopt_long+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11309 #define getopt_long innocuous_getopt_long
11310
11311 /* System header to define __stub macros and hopefully few prototypes,
11312     which can conflict with char getopt_long (); below.
11313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11314     <limits.h> exists even on freestanding compilers.  */
11315
11316 #ifdef __STDC__
11317 # include <limits.h>
11318 #else
11319 # include <assert.h>
11320 #endif
11321
11322 #undef getopt_long
11323
11324 /* Override any gcc2 internal prototype to avoid an error.  */
11325 #ifdef __cplusplus
11326 extern "C"
11327 {
11328 #endif
11329 /* We use char because int might match the return type of a gcc2
11330    builtin and then its argument prototype would still apply.  */
11331 char getopt_long ();
11332 /* The GNU C library defines this for functions which it implements
11333     to always fail with ENOSYS.  Some functions are actually named
11334     something starting with __ and the normal name is an alias.  */
11335 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11336 choke me
11337 #else
11338 char (*f) () = getopt_long;
11339 #endif
11340 #ifdef __cplusplus
11341 }
11342 #endif
11343
11344 int
11345 main ()
11346 {
11347 return f != getopt_long;
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354   (eval $ac_link) 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -z "$ac_c_werror_flag"
11362                          || test ! -s conftest.err'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; } &&
11368          { ac_try='test -s conftest$ac_exeext'
11369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370   (eval $ac_try) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; }; then
11374   ac_cv_func_getopt_long=yes
11375 else
11376   echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 ac_cv_func_getopt_long=no
11380 fi
11381 rm -f conftest.err conftest.$ac_objext \
11382       conftest$ac_exeext conftest.$ac_ext
11383 fi
11384 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11385 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11386 if test $ac_cv_func_getopt_long = yes; then
11387
11388 cat >>confdefs.h <<\_ACEOF
11389 #define HAVE_GETOPT_LONG 1
11390 _ACEOF
11391
11392          tm_cv_needgetopt="no"
11393 else
11394   tm_cv_needgetopt="yes"
11395 fi
11396
11397
11398
11399 if test "x$tm_cv_needgetopt" = "xyes"; then
11400   NEEDGETOPT_TRUE=
11401   NEEDGETOPT_FALSE='#'
11402 else
11403   NEEDGETOPT_TRUE='#'
11404   NEEDGETOPT_FALSE=
11405 fi
11406
11407
11408 # Checks on cygnus and MYSYS
11409 if test "x$MSYS" = xyes ; then
11410   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
11411   *yes*)
11412     echo "$as_me:$LINENO: checking for opendir" >&5
11413 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11414 if test "${ac_cv_func_opendir+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h.  */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h.  */
11423 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11425 #define opendir innocuous_opendir
11426
11427 /* System header to define __stub macros and hopefully few prototypes,
11428     which can conflict with char opendir (); below.
11429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430     <limits.h> exists even on freestanding compilers.  */
11431
11432 #ifdef __STDC__
11433 # include <limits.h>
11434 #else
11435 # include <assert.h>
11436 #endif
11437
11438 #undef opendir
11439
11440 /* Override any gcc2 internal prototype to avoid an error.  */
11441 #ifdef __cplusplus
11442 extern "C"
11443 {
11444 #endif
11445 /* We use char because int might match the return type of a gcc2
11446    builtin and then its argument prototype would still apply.  */
11447 char opendir ();
11448 /* The GNU C library defines this for functions which it implements
11449     to always fail with ENOSYS.  Some functions are actually named
11450     something starting with __ and the normal name is an alias.  */
11451 #if defined (__stub_opendir) || defined (__stub___opendir)
11452 choke me
11453 #else
11454 char (*f) () = opendir;
11455 #endif
11456 #ifdef __cplusplus
11457 }
11458 #endif
11459
11460 int
11461 main ()
11462 {
11463 return f != opendir;
11464   ;
11465   return 0;
11466 }
11467 _ACEOF
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11470   (eval $ac_link) 2>conftest.er1
11471   ac_status=$?
11472   grep -v '^ *+' conftest.er1 >conftest.err
11473   rm -f conftest.er1
11474   cat conftest.err >&5
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); } &&
11477          { ac_try='test -z "$ac_c_werror_flag"
11478                          || test ! -s conftest.err'
11479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480   (eval $ac_try) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; } &&
11484          { ac_try='test -s conftest$ac_exeext'
11485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486   (eval $ac_try) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   ac_cv_func_opendir=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 ac_cv_func_opendir=no
11496 fi
11497 rm -f conftest.err conftest.$ac_objext \
11498       conftest$ac_exeext conftest.$ac_ext
11499 fi
11500 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11501 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11502 if test $ac_cv_func_opendir = yes; then
11503   :
11504 else
11505    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11506     W32READDIR=yes
11507 fi
11508
11509     ;;
11510   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11511     W32READDIR=yes
11512     ;;
11513   esac
11514   if test "x$enable_network" = "xyes"; then
11515         if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
11516       EXTRALIBS="$EXTRALIBS  wsock32.lib"
11517       EXTRADEFS="$EXTRADEFS -DWINSOCK"
11518     else
11519       echo "$as_me:$LINENO: checking for socket" >&5
11520 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11521 if test "${ac_cv_func_socket+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h.  */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h.  */
11530 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11532 #define socket innocuous_socket
11533
11534 /* System header to define __stub macros and hopefully few prototypes,
11535     which can conflict with char socket (); below.
11536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537     <limits.h> exists even on freestanding compilers.  */
11538
11539 #ifdef __STDC__
11540 # include <limits.h>
11541 #else
11542 # include <assert.h>
11543 #endif
11544
11545 #undef socket
11546
11547 /* Override any gcc2 internal prototype to avoid an error.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 {
11551 #endif
11552 /* We use char because int might match the return type of a gcc2
11553    builtin and then its argument prototype would still apply.  */
11554 char socket ();
11555 /* The GNU C library defines this for functions which it implements
11556     to always fail with ENOSYS.  Some functions are actually named
11557     something starting with __ and the normal name is an alias.  */
11558 #if defined (__stub_socket) || defined (__stub___socket)
11559 choke me
11560 #else
11561 char (*f) () = socket;
11562 #endif
11563 #ifdef __cplusplus
11564 }
11565 #endif
11566
11567 int
11568 main ()
11569 {
11570 return f != socket;
11571   ;
11572   return 0;
11573 }
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577   (eval $ac_link) 2>conftest.er1
11578   ac_status=$?
11579   grep -v '^ *+' conftest.er1 >conftest.err
11580   rm -f conftest.er1
11581   cat conftest.err >&5
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } &&
11584          { ac_try='test -z "$ac_c_werror_flag"
11585                          || test ! -s conftest.err'
11586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587   (eval $ac_try) 2>&5
11588   ac_status=$?
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); }; } &&
11591          { ac_try='test -s conftest$ac_exeext'
11592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593   (eval $ac_try) 2>&5
11594   ac_status=$?
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); }; }; then
11597   ac_cv_func_socket=yes
11598 else
11599   echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 ac_cv_func_socket=no
11603 fi
11604 rm -f conftest.err conftest.$ac_objext \
11605       conftest$ac_exeext conftest.$ac_ext
11606 fi
11607 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11608 echo "${ECHO_T}$ac_cv_func_socket" >&6
11609 if test $ac_cv_func_socket = yes; then
11610   :
11611 else
11612   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11613 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11614 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11615 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   ac_save_LIBS="$LIBS"
11619 LIBS="-lwsock32  $LIBS"
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h.  */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h.  */
11626 #include <windows.h>
11627 #include <winsock.h>
11628
11629 int
11630 main ()
11631 {
11632 WSAStartup(0,0);
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639   (eval $ac_link) 2>conftest.er1
11640   ac_status=$?
11641   grep -v '^ *+' conftest.er1 >conftest.err
11642   rm -f conftest.er1
11643   cat conftest.err >&5
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); } &&
11646          { ac_try='test -z "$ac_c_werror_flag"
11647                          || test ! -s conftest.err'
11648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649   (eval $ac_try) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); }; } &&
11653          { ac_try='test -s conftest$ac_exeext'
11654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655   (eval $ac_try) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); }; }; then
11659   eval "wapi_cv_lib_$ac_lib_var=yes"
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664 eval "wapi_cv_lib_$ac_lib_var=no"
11665 fi
11666 rm -f conftest.err conftest.$ac_objext \
11667       conftest$ac_exeext conftest.$ac_ext
11668 LIBS="$ac_save_LIBS"
11669
11670 fi
11671 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11672   echo "$as_me:$LINENO: result: yes" >&5
11673 echo "${ECHO_T}yes" >&6
11674    EXTRALIBS="$EXTRALIBS -lwsock32"
11675           EXTRADEFS="$EXTRADEFS -DWINSOCK"
11676
11677 else
11678   echo "$as_me:$LINENO: result: no" >&5
11679 echo "${ECHO_T}no" >&6
11680 fi
11681
11682
11683 fi
11684
11685     fi
11686   fi
11687 fi
11688
11689 # Checks on extra paths
11690
11691
11692 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11693 if test "${with_tcl_includes+set}" = set; then
11694   withval="$with_tcl_includes"
11695    if test ! -d $withval; then
11696       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11697 echo "$as_me: WARNING: $withval is not found." >&2;}
11698     fi
11699     tcl_include_dir="-I$withval"
11700
11701 fi;
11702
11703 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11704 if test "${with_tcl_libs+set}" = set; then
11705   withval="$with_tcl_libs"
11706    if test ! -d $withval; then
11707       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11708 echo "$as_me: WARNING: $withval is not found." >&2;}
11709     fi
11710     tcl_libdir="-L$withval"
11711 fi;
11712
11713 # Check whether --with-tk-includes or --without-tk-includes was given.
11714 if test "${with_tk_includes+set}" = set; then
11715   withval="$with_tk_includes"
11716    if test ! -d $withval; then
11717       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11718 echo "$as_me: WARNING: $withval is not found." >&2;}
11719     fi
11720     tk_includes="-I$withval"
11721 fi;
11722
11723 # Check whether --with-tk-libs or --without-tk-libs was given.
11724 if test "${with_tk_libs+set}" = set; then
11725   withval="$with_tk_libs"
11726    if test ! -d $withval; then
11727       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11728 echo "$as_me: WARNING: $withval is not found." >&2;}
11729     fi
11730     tk_libdir="-L$withval"
11731 fi;
11732
11733
11734 # Check whether --with-offix-includes or --without-offix-includes was given.
11735 if test "${with_offix_includes+set}" = set; then
11736   withval="$with_offix_includes"
11737    if test ! -d $withval; then
11738       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11739 echo "$as_me: WARNING: $withval is not found." >&2;}
11740     fi
11741     offix_include_dir="-I$withval"
11742 fi;
11743
11744 # Check whether --with-offix-libs or --without-offix-libs was given.
11745 if test "${with_offix_libs+set}" = set; then
11746   withval="$with_offix_libs"
11747    if test ! -d $withval; then
11748       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11749 echo "$as_me: WARNING: $withval is not found." >&2;}
11750     fi
11751     offix_lib_dir="-L$withval"
11752 fi;
11753
11754
11755 #
11756 # audio section
11757 #
11758
11759 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11760
11761
11762 # Check whether --with-nas-library or --without-nas-library was given.
11763 if test "${with_nas_library+set}" = set; then
11764   withval="$with_nas_library"
11765
11766 fi;
11767
11768 # Check whether --with-nas-includes or --without-nas-includes was given.
11769 if test "${with_nas_includes+set}" = set; then
11770   withval="$with_nas_includes"
11771
11772 fi;
11773
11774
11775 # Check whether --enable-audio or --disable-audio was given.
11776 if test "${enable_audio+set}" = set; then
11777   enableval="$enable_audio"
11778    enable_audio=$enableval
11779     have_audio_opt=yes
11780 else
11781    enable_audio=yes
11782     have_audio_opt=no
11783 fi;
11784
11785 test "x$enable_audio" = xyes && enable_audio=default
11786
11787 if test "x$enable_audio" != xno; then
11788   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11789     eval "au_enable_$i=yes"
11790   done
11791 fi
11792
11793 DEFAULT_PLAYMODE=
11794
11795 # Check whether --with-default-output or --without-default-output was given.
11796 if test "${with_default_output+set}" = set; then
11797   withval="$with_default_output"
11798    if test "$enable_audio" != no; then
11799     DEFAULT_PLAYMODE=$withval
11800     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11801   else
11802     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11803 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11804   fi
11805 fi;
11806
11807
11808 if test "x$au_enable_default" = xyes; then
11809   case "$target" in
11810   *-*-linux*|*-*-freebsd*)
11811     au_enable_oss=yes
11812     ;;
11813   *-*-bsdi2.0)
11814     au_enable_sb_dsp=yes
11815     ;;
11816   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11817     au_enable_oss=yes
11818     ;;
11819   *-*-hpux*)
11820     au_enable_hpux=yes
11821     ;;
11822   *-dec-*)
11823     au_enable_mme=yes
11824     ;;
11825   *irix*)
11826     au_enable_irix=yes
11827     ;;
11828   *-*-sunos4*)
11829     au_enable_sun=yes
11830     ;;
11831   *-*-solaris*)
11832     au_enable_sun=yes
11833     ;;
11834   *-*-netbsd*)
11835     au_enable_sun=yes
11836     ;;
11837   *-*-cygwin*)
11838     au_enable_w32=yes
11839     ;;
11840   *-*-mingw*)
11841     au_enable_w32=yes
11842     ;;
11843   *-*-darwin*)
11844     au_enable_darwin=yes
11845     ;;
11846   *)
11847     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11848 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11849     ;;
11850   esac
11851 fi
11852
11853
11854 # Each audio mode's configurations
11855 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11856 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11857 if test "x$au_enable_oss" = xyes; then
11858   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11859   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11860   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11861     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11862 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11863   else
11864     case "$target" in
11865       *linux*|*freebsd*)
11866                 echo "$as_me:$LINENO: result: yes" >&5
11867 echo "${ECHO_T}yes" >&6
11868         ;;
11869       *)
11870         if test "x$ac_cv_header_soundcard_h" = xyes; then
11871           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11872 echo "${ECHO_T}yes - <soundcard.h>" >&6
11873         else
11874           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11875 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11876         fi
11877         ;;
11878     esac
11879   fi
11880
11881 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11882 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11883 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-lossaudio  $LIBS"
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h.  */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h.  */
11894
11895 /* Override any gcc2 internal prototype to avoid an error.  */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 /* We use char because int might match the return type of a gcc2
11900    builtin and then its argument prototype would still apply.  */
11901 char open ();
11902 int
11903 main ()
11904 {
11905 open ();
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912   (eval $ac_link) 2>conftest.er1
11913   ac_status=$?
11914   grep -v '^ *+' conftest.er1 >conftest.err
11915   rm -f conftest.er1
11916   cat conftest.err >&5
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); } &&
11919          { ac_try='test -z "$ac_c_werror_flag"
11920                          || test ! -s conftest.err'
11921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922   (eval $ac_try) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; } &&
11926          { ac_try='test -s conftest$ac_exeext'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }; then
11932   ac_cv_lib_ossaudio_open=yes
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 ac_cv_lib_ossaudio_open=no
11938 fi
11939 rm -f conftest.err conftest.$ac_objext \
11940       conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11944 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11945 if test $ac_cv_lib_ossaudio_open = yes; then
11946   cat >>confdefs.h <<_ACEOF
11947 #define HAVE_LIBOSSAUDIO 1
11948 _ACEOF
11949
11950   LIBS="-lossaudio $LIBS"
11951
11952 fi
11953
11954
11955     case "$target" in
11956     *openbsd*)
11957       if test ! -e "/dev/dsp"; then
11958         oss_device=/dev/audio
11959       fi
11960       ;;
11961   esac
11962 else
11963   echo "$as_me:$LINENO: result: no" >&5
11964 echo "${ECHO_T}no" >&6
11965 fi
11966
11967 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11968 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11969 if test "x$au_enable_sun" = xyes; then
11970   case "$target" in
11971     *-*-sunos4*)
11972       if test -f /usr/demo/SOUND/libaudio.a; then
11973         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11974         echo "$as_me:$LINENO: result: yes" >&5
11975 echo "${ECHO_T}yes" >&6
11976       else
11977         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11978 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11979       fi
11980       ;;
11981     *-*-solaris*)
11982       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11983         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11984         echo "$as_me:$LINENO: result: yes" >&5
11985 echo "${ECHO_T}yes" >&6
11986       else
11987         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11988 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11989       fi
11990       ;;
11991     *)   echo "$as_me:$LINENO: result: yes" >&5
11992 echo "${ECHO_T}yes" >&6
11993       ;;
11994   esac
11995   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11996   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11997 else
11998   echo "$as_me:$LINENO: result: no" >&5
11999 echo "${ECHO_T}no" >&6
12000 fi
12001
12002 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
12003 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
12004 if test "x$au_enable_hpux" = xyes; then
12005   case "$target" in
12006     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12007 echo "${ECHO_T}yes" >&6 ;;
12008     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12009 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12010   esac
12011   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
12012   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
12013 else
12014   echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6
12016 fi
12017
12018 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
12019 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
12020 if test "x$au_enable_irix" = xyes; then
12021   case "$target" in
12022     *-sgi-irix5*|*-sgi-irix6.2)
12023       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
12024       echo "$as_me:$LINENO: result: yes" >&5
12025 echo "${ECHO_T}yes" >&6
12026       ;;
12027     *-sgi-irix6*)
12028       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
12029       echo "$as_me:$LINENO: result: yes" >&5
12030 echo "${ECHO_T}yes" >&6
12031       ;;
12032     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12033 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12034   esac
12035   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
12036   EXTRALIBS="$EXTRASLIBS -laudio"
12037 else
12038   echo "$as_me:$LINENO: result: no" >&5
12039 echo "${ECHO_T}no" >&6
12040 fi
12041
12042 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
12043 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
12044 if test "x$au_enable_mme" = xyes; then
12045   case "$target" in
12046     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
12047 echo "${ECHO_T}yes" >&6 ;;
12048     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12049 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12050   esac
12051   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
12052   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
12053   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
12054   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
12055 else
12056   echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12058 fi
12059
12060 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
12061 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
12062 if test "x$au_enable_sb_dsp" = xyes; then
12063   case "$target" in
12064     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
12065 echo "${ECHO_T}yes" >&6 ;;
12066     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12067 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12068   esac
12069   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
12070   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
12071 else
12072   echo "$as_me:$LINENO: result: no" >&5
12073 echo "${ECHO_T}no" >&6
12074 fi
12075
12076 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
12077 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
12078 if test "x$au_enable_w32" = xyes; then
12079   case "$target" in
12080     *-*-cygwin*)
12081      echo "$as_me:$LINENO: result: yes" >&5
12082 echo "${ECHO_T}yes" >&6
12083      ;;
12084     *-*-mingw32)
12085      echo "$as_me:$LINENO: result: yes" >&5
12086 echo "${ECHO_T}yes" >&6
12087      ;;
12088     *)
12089      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12090 echo "$as_me: WARNING: may not work on $target" >&2;}
12091      ;;
12092   esac
12093   SYSEXTRAS="$SYSEXTRAS w32_a.c"
12094   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
12095         EXTRALIBS="$EXTRALIBS winmm.lib"
12096   else
12097     EXTRALIBS="$EXTRALIBS -lwinmm"
12098   fi
12099   EXTRADEFS="$EXTRADEFS -DAU_W32"
12100 else
12101   echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6
12103 fi
12104
12105 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
12106 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
12107 if test "x$au_enable_darwin" = xyes; then
12108   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
12109   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
12110   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
12111     case "$target" in
12112     *-*-darwin*)
12113      echo "$as_me:$LINENO: result: yes" >&5
12114 echo "${ECHO_T}yes" >&6;;
12115    *)
12116      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12117 echo "$as_me: WARNING: may not work on $target" >&2;}
12118      ;;
12119   esac
12120 else
12121   echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12123 fi
12124
12125
12126 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
12127 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
12128 if test "x$au_enable_alsa" = xyes; then
12129   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
12130 echo "${ECHO_T}yes, configuring alsa" >&6
12131   KEEPCFLAGS=$CFLAGS
12132   KEEPLIBS=$LIBS
12133   KEEPLDFLAGS=$LDFLAGS
12134   alsa_save_CFLAGS="$CFLAGS"
12135 alsa_save_LDFLAGS="$LDFLAGS"
12136 alsa_save_LIBS="$LIBS"
12137 alsa_found=yes
12138
12139
12140 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
12141 if test "${with_alsa_prefix+set}" = set; then
12142   withval="$with_alsa_prefix"
12143   alsa_prefix="$withval"
12144 else
12145   alsa_prefix=""
12146 fi;
12147
12148
12149 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
12150 if test "${with_alsa_inc_prefix+set}" = set; then
12151   withval="$with_alsa_inc_prefix"
12152   alsa_inc_prefix="$withval"
12153 else
12154   alsa_inc_prefix=""
12155 fi;
12156
12157 # Check whether --enable-alsatest or --disable-alsatest was given.
12158 if test "${enable_alsatest+set}" = set; then
12159   enableval="$enable_alsatest"
12160   enable_alsatest=no
12161 else
12162   enable_alsatest=yes
12163 fi;
12164
12165 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12166 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12167 if test "$alsa_inc_prefix" != "" ; then
12168         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12169         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12170 fi
12171 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12172 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12173
12174 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12175 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12176 if test "$alsa_prefix" != "" ; then
12177         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12178         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12179 fi
12180
12181 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12182 LIBS=`echo $LIBS | sed 's/-lm//'`
12183 LIBS=`echo $LIBS | sed 's/-ldl//'`
12184 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12185 LIBS=`echo $LIBS | sed 's/  //'`
12186 LIBS="$ALSA_LIBS $LIBS"
12187 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12188 echo "${ECHO_T}$ALSA_LIBS" >&6
12189
12190 min_alsa_version=0.1.1
12191 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12192 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12193 no_alsa=""
12194     alsa_min_major_version=`echo $min_alsa_version | \
12195            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12196     alsa_min_minor_version=`echo $min_alsa_version | \
12197            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12198     alsa_min_micro_version=`echo $min_alsa_version | \
12199            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12200
12201
12202
12203
12204 ac_ext=c
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12209
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216
12217 #include <alsa/asoundlib.h>
12218
12219 int
12220 main ()
12221 {
12222
12223 /* ensure backward compatibility */
12224 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12225 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12226 #endif
12227 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12228 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12229 #endif
12230 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12231 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12232 #endif
12233
12234 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12235   exit(0);
12236 #  else
12237 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12238 #       error not present
12239 #    endif
12240
12241 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12242   exit(0);
12243 #   else
12244 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12245 #          error not present
12246 #      endif
12247
12248 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12249 #        error not present
12250 #      endif
12251 #    endif
12252 #  endif
12253 exit(0);
12254
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261   (eval $ac_compile) 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -z "$ac_c_werror_flag"
12269                          || test ! -s conftest.err'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; } &&
12275          { ac_try='test -s conftest.$ac_objext'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281   echo "$as_me:$LINENO: result: found." >&5
12282 echo "${ECHO_T}found." >&6
12283 else
12284   echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293
12294 #include <sys/asoundlib.h>
12295
12296 int
12297 main ()
12298 {
12299
12300 /* ensure backward compatibility */
12301 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12302 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12303 #endif
12304 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12305 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12306 #endif
12307 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12308 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12309 #endif
12310
12311 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12312   exit(0);
12313 #  else
12314 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12315 #       error not present
12316 #    endif
12317
12318 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12319   exit(0);
12320 #   else
12321 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12322 #          error not present
12323 #      endif
12324
12325 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12326 #        error not present
12327 #      endif
12328 #    endif
12329 #  endif
12330 exit(0);
12331
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338   (eval $ac_compile) 2>conftest.er1
12339   ac_status=$?
12340   grep -v '^ *+' conftest.er1 >conftest.err
12341   rm -f conftest.er1
12342   cat conftest.err >&5
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); } &&
12345          { ac_try='test -z "$ac_c_werror_flag"
12346                          || test ! -s conftest.err'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; } &&
12352          { ac_try='test -s conftest.$ac_objext'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; }; then
12358   echo "$as_me:$LINENO: result: found." >&5
12359 echo "${ECHO_T}found." >&6
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 echo "$as_me:$LINENO: result: not present." >&5
12365 echo "${ECHO_T}not present." >&6
12366    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12367 echo "${ECHO_T}libasound was not found anywhere." >&6
12368    alsa_found=no
12369 fi
12370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12372 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12373
12374 fi
12375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12376 ac_ext=c
12377 ac_cpp='$CPP $CPPFLAGS'
12378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12381
12382
12383
12384 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12385 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12386 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-lasound  $LIBS"
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h.  */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h.  */
12397
12398 /* Override any gcc2 internal prototype to avoid an error.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 /* We use char because int might match the return type of a gcc2
12403    builtin and then its argument prototype would still apply.  */
12404 char snd_ctl_open ();
12405 int
12406 main ()
12407 {
12408 snd_ctl_open ();
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415   (eval $ac_link) 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag"
12423                          || test ! -s conftest.err'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; } &&
12429          { ac_try='test -s conftest$ac_exeext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_cv_lib_asound_snd_ctl_open=yes
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 ac_cv_lib_asound_snd_ctl_open=no
12441 fi
12442 rm -f conftest.err conftest.$ac_objext \
12443       conftest$ac_exeext conftest.$ac_ext
12444 LIBS=$ac_check_lib_save_LIBS
12445 fi
12446 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12447 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12448 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12449   cat >>confdefs.h <<_ACEOF
12450 #define HAVE_LIBASOUND 1
12451 _ACEOF
12452
12453   LIBS="-lasound $LIBS"
12454
12455 else
12456   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12457 echo "${ECHO_T}No linkable libasound was found." >&6
12458    alsa_found=no
12459
12460 fi
12461
12462
12463 if test "x$alsa_found" = "xyes" ; then
12464    :
12465    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12466    LIBS=`echo $LIBS | sed 's/  //'`
12467    LIBS="-lasound $LIBS"
12468 else
12469    :
12470    CFLAGS="$alsa_save_CFLAGS"
12471    LDFLAGS="$alsa_save_LDFLAGS"
12472    LIBS="$alsa_save_LIBS"
12473    ALSA_CFLAGS=""
12474    ALSA_LIBS=""
12475 fi
12476
12477
12478
12479
12480   if test "x$alsa_found" = "xyes" ; then
12481         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12482     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12483     for f in $ALSA_CFLAGS; do
12484     case ".$f" in
12485         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12486         *)              CFLAGS="$CPPFLAGS $f" ;;
12487     esac
12488 done
12489
12490     LIBS="$LIBS $ALSA_LIBS"
12491
12492 for ac_func in snd_seq_port_info_set_timestamping
12493 do
12494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 echo "$as_me:$LINENO: checking for $ac_func" >&5
12496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12497 if eval "test \"\${$as_ac_var+set}\" = set"; then
12498   echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500   cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12508 #define $ac_func innocuous_$ac_func
12509
12510 /* System header to define __stub macros and hopefully few prototypes,
12511     which can conflict with char $ac_func (); below.
12512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513     <limits.h> exists even on freestanding compilers.  */
12514
12515 #ifdef __STDC__
12516 # include <limits.h>
12517 #else
12518 # include <assert.h>
12519 #endif
12520
12521 #undef $ac_func
12522
12523 /* Override any gcc2 internal prototype to avoid an error.  */
12524 #ifdef __cplusplus
12525 extern "C"
12526 {
12527 #endif
12528 /* We use char because int might match the return type of a gcc2
12529    builtin and then its argument prototype would still apply.  */
12530 char $ac_func ();
12531 /* The GNU C library defines this for functions which it implements
12532     to always fail with ENOSYS.  Some functions are actually named
12533     something starting with __ and the normal name is an alias.  */
12534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12535 choke me
12536 #else
12537 char (*f) () = $ac_func;
12538 #endif
12539 #ifdef __cplusplus
12540 }
12541 #endif
12542
12543 int
12544 main ()
12545 {
12546 return f != $ac_func;
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12553   (eval $ac_link) 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_c_werror_flag"
12561                          || test ! -s conftest.err'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest$ac_exeext'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573   eval "$as_ac_var=yes"
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 eval "$as_ac_var=no"
12579 fi
12580 rm -f conftest.err conftest.$ac_objext \
12581       conftest$ac_exeext conftest.$ac_ext
12582 fi
12583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12585 if test `eval echo '${'$as_ac_var'}'` = yes; then
12586   cat >>confdefs.h <<_ACEOF
12587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12588 _ACEOF
12589
12590 fi
12591 done
12592
12593   else
12594     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12595 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12596     CFLAGS=$KEEPCFLAGS
12597     LIBS=$KEEPLIBS
12598     LDFLAGS=$KEEPLDFLAGS
12599   fi
12600 else
12601   echo "$as_me:$LINENO: result: no" >&5
12602 echo "${ECHO_T}no" >&6
12603 fi
12604
12605 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12606 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12607 if test "x$au_enable_alib" = xyes; then
12608   case "$target" in
12609     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12610 echo "${ECHO_T}yes" >&6 ;;
12611     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12612 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12613   esac
12614   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12615   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12616   if test -d /opt/audio/include; then
12617     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12618   fi
12619   if test -d /opt/audio/lib; then
12620     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12621   fi
12622   EXTRALIBS="$EXTRALIBS -lAlib"
12623 else
12624   echo "$as_me:$LINENO: result: no" >&5
12625 echo "${ECHO_T}no" >&6
12626 fi
12627
12628 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12629 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12630 if test "x$au_enable_nas" = xyes; then
12631   if test "x$with_x" != xyes; then
12632     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12633 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12634    { (exit 1); exit 1; }; }
12635   fi
12636   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12637   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12638
12639
12640   if test "x$with_nas_library" != x; then
12641     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12642 echo "${ECHO_T}$with_nas_library" >&6;
12643     EXTRALIBS="$EXTRALIBS $with_nas_library"
12644   else
12645     echo "$as_me:$LINENO: result: " >&5
12646 echo "${ECHO_T}" >&6
12647     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12648 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12649 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652   ac_func_search_save_LIBS="$LIBS"
12653 timidity_cv_search_AuOpenServer="no"
12654 for i in $x_libraries/libaudio.a \
12655          /usr/lib/libaudio.so \
12656          /usr/lib/libaudio.a ; do
12657   LIBS="$i  $ac_func_search_save_LIBS"
12658   cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664
12665 /* Override any gcc2 internal prototype to avoid an error.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 /* We use char because int might match the return type of a gcc2
12670    builtin and then its argument prototype would still apply.  */
12671 char AuOpenServer ();
12672 int
12673 main ()
12674 {
12675 AuOpenServer ();
12676   ;
12677   return 0;
12678 }
12679 _ACEOF
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682   (eval $ac_link) 2>conftest.er1
12683   ac_status=$?
12684   grep -v '^ *+' conftest.er1 >conftest.err
12685   rm -f conftest.er1
12686   cat conftest.err >&5
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } &&
12689          { ac_try='test -z "$ac_c_werror_flag"
12690                          || test ! -s conftest.err'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; } &&
12696          { ac_try='test -s conftest$ac_exeext'
12697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698   (eval $ac_try) 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); }; }; then
12702   timidity_cv_search_AuOpenServer="$i"; break
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707 fi
12708 rm -f conftest.err conftest.$ac_objext \
12709       conftest$ac_exeext conftest.$ac_ext
12710 done
12711 LIBS="$ac_func_search_save_LIBS"
12712 fi
12713 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12714 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12715 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12716    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12717 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12718           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12719 else :
12720   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12721 echo "$as_me: WARNING: NAS library is not found." >&2;}
12722 fi
12723   fi
12724   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12725   lib_xt_opt=-lXt
12726   if test "x$have_xext" = xyes; then
12727     lib_xext_opt=-lXext
12728   fi
12729   if test "x$have_xprelibs" = xyes; then
12730     lib_xprelibs_opt='-lSM -lICE'
12731   fi
12732 else
12733   echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6
12735 fi
12736
12737 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12738 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12739 if test "x$au_enable_arts" = xyes; then
12740   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12741 echo "${ECHO_T}yes, configuring aRts" >&6
12742   KEEPCFLAGS=$CFLAGS
12743   KEEPLIBS=$LIBS
12744   KEEPLDFLAGS=$LDFLAGS
12745
12746 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12747 if test "${with_arts_prefix+set}" = set; then
12748   withval="$with_arts_prefix"
12749   arts_prefix="$withval"
12750 else
12751   arts_prefix=""
12752 fi;
12753 # Check whether --enable-artstest or --disable-artstest was given.
12754 if test "${enable_artstest+set}" = set; then
12755   enableval="$enable_artstest"
12756
12757 else
12758   enable_artstest=yes
12759 fi;
12760
12761   if test x$arts_prefix != x ; then
12762      arts_args="$arts_args --prefix=$arts_prefix"
12763      if test x${ARTS_CONFIG+set} != xset ; then
12764         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12765      fi
12766   fi
12767
12768   # Extract the first word of "artsc-config", so it can be a program name with args.
12769 set dummy artsc-config; ac_word=$2
12770 echo "$as_me:$LINENO: checking for $ac_word" >&5
12771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12772 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   case $ARTS_CONFIG in
12776   [\\/]* | ?:[\\/]*)
12777   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12778   ;;
12779   *)
12780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 for as_dir in $PATH
12782 do
12783   IFS=$as_save_IFS
12784   test -z "$as_dir" && as_dir=.
12785   for ac_exec_ext in '' $ac_executable_extensions; do
12786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12787     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12789     break 2
12790   fi
12791 done
12792 done
12793
12794   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12795   ;;
12796 esac
12797 fi
12798 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12799
12800 if test -n "$ARTS_CONFIG"; then
12801   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12802 echo "${ECHO_T}$ARTS_CONFIG" >&6
12803 else
12804   echo "$as_me:$LINENO: result: no" >&5
12805 echo "${ECHO_T}no" >&6
12806 fi
12807
12808   min_arts_version=0.9.5
12809   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12810 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12811   no_arts=""
12812   if test "$ARTS_CONFIG" = "no" ; then
12813     no_arts=yes
12814   else
12815     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12816     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12817
12818     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12819            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12820     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12821            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12822     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12823            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12824     if test "x$enable_artstest" = "xyes" ; then
12825       ac_save_CFLAGS="$CFLAGS"
12826       ac_save_LIBS="$LIBS"
12827       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12828       LIBS="$LIBS $ARTS_LIBS"
12829       rm -f conf.artstest
12830       if test "$cross_compiling" = yes; then
12831   echo $ac_n "cross compiling; assumed OK... $ac_c"
12832 else
12833   cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839
12840 #include <stdio.h>
12841 #include <stdlib.h>
12842 #include <string.h>
12843 #include <artsc.h>
12844
12845 char*
12846 my_strdup (char *str)
12847 {
12848   char *new_str;
12849
12850   if (str)
12851     {
12852       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12853       strcpy (new_str, str);
12854     }
12855   else
12856     new_str = NULL;
12857
12858   return new_str;
12859 }
12860
12861 int main ()
12862 {
12863   int major, minor, micro;
12864   char *tmp_version;
12865
12866   system ("touch conf.artstest");
12867
12868   /* HP/UX 9 (%@#!) writes to sscanf strings */
12869   tmp_version = my_strdup("$min_arts_version");
12870   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12871      printf("%s, bad version string\n", "$min_arts_version");
12872      exit(1);
12873    }
12874
12875    if (($arts_major_version > major) ||
12876       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12877       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12878     {
12879       return 0;
12880     }
12881   else
12882     {
12883       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12884       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12885       printf("*** best to upgrade to the required version.\n");
12886       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12887       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12888       printf("*** config.cache before re-running configure\n");
12889       return 1;
12890     }
12891 }
12892
12893
12894 _ACEOF
12895 rm -f conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897   (eval $ac_link) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   :
12907 else
12908   echo "$as_me: program exited with status $ac_status" >&5
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912 ( exit $ac_status )
12913 no_arts=yes
12914 fi
12915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12916 fi
12917        CFLAGS="$ac_save_CFLAGS"
12918        LIBS="$ac_save_LIBS"
12919      fi
12920   fi
12921   if test "x$no_arts" = x ; then
12922      echo "$as_me:$LINENO: result: yes" >&5
12923 echo "${ECHO_T}yes" >&6
12924      :
12925   else
12926      echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6
12928      if test "$ARTS_CONFIG" = "no" ; then
12929        echo "*** The artsc-config script installed by ARTS could not be found"
12930        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12931        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12932        echo "*** full path to artsc-config."
12933      else
12934        if test -f conf.artstest ; then
12935         :
12936        else
12937           echo "*** Could not run ARTS test program, checking why..."
12938           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12939           LIBS="$LIBS $ARTS_LIBS"
12940           cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946
12947 #include <stdio.h>
12948 #include <artsc.h>
12949
12950 int
12951 main ()
12952 {
12953  return 0;
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958 rm -f conftest.$ac_objext conftest$ac_exeext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12960   (eval $ac_link) 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } &&
12967          { ac_try='test -z "$ac_c_werror_flag"
12968                          || test ! -s conftest.err'
12969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970   (eval $ac_try) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; } &&
12974          { ac_try='test -s conftest$ac_exeext'
12975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976   (eval $ac_try) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; }; then
12980    echo "*** The test program compiled, but did not run. This usually means"
12981           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12982           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12983           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12984           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12985           echo "*** is required on your system"
12986           echo "***"
12987           echo "*** If you have an old version installed, it is best to remove it, although"
12988           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12989 else
12990   echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993  echo "*** The test program failed to compile or link. See the file config.log for the"
12994           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12995           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12996           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12997 fi
12998 rm -f conftest.err conftest.$ac_objext \
12999       conftest$ac_exeext conftest.$ac_ext
13000           CFLAGS="$ac_save_CFLAGS"
13001           LIBS="$ac_save_LIBS"
13002        fi
13003      fi
13004      ARTS_CFLAGS=""
13005      ARTS_LIBS=""
13006      :
13007   fi
13008
13009
13010   rm -f conf.artstest
13011
13012   CFLAGS=$KEEPCFLAGS
13013   LIBS=$KEEPLIBS
13014   LDFLAGS=$KEEPLDFLAGS
13015   if test "x$no_arts" = x; then
13016         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
13017     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
13018     for f in $ARTS_CFLAGS; do
13019     case ".$f" in
13020         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13021         *)              CFLAGS="$CPPFLAGS $f" ;;
13022     esac
13023 done
13024
13025     LIBS="$LIBS $ARTS_LIBS"
13026   else
13027     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
13028 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
13029   fi
13030 else
13031   echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6
13033 fi
13034
13035 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
13036 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
13037 if test "x$au_enable_esd" = xyes; then
13038   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
13039 echo "${ECHO_T}yes, configuring esd" >&6
13040   KEEPCFLAGS=$CFLAGS
13041   KEEPLIBS=$LIBS
13042   KEEPLDFLAGS=$LDFLAGS
13043
13044 # Check whether --with-esd-prefix or --without-esd-prefix was given.
13045 if test "${with_esd_prefix+set}" = set; then
13046   withval="$with_esd_prefix"
13047   esd_prefix="$withval"
13048 else
13049   esd_prefix=""
13050 fi;
13051
13052 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
13053 if test "${with_esd_exec_prefix+set}" = set; then
13054   withval="$with_esd_exec_prefix"
13055   esd_exec_prefix="$withval"
13056 else
13057   esd_exec_prefix=""
13058 fi;
13059 # Check whether --enable-esdtest or --disable-esdtest was given.
13060 if test "${enable_esdtest+set}" = set; then
13061   enableval="$enable_esdtest"
13062
13063 else
13064   enable_esdtest=yes
13065 fi;
13066
13067   if test x$esd_exec_prefix != x ; then
13068      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13069      if test x${ESD_CONFIG+set} != xset ; then
13070         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
13071      fi
13072   fi
13073   if test x$esd_prefix != x ; then
13074      esd_args="$esd_args --prefix=$esd_prefix"
13075      if test x${ESD_CONFIG+set} != xset ; then
13076         ESD_CONFIG=$esd_prefix/bin/esd-config
13077      fi
13078   fi
13079
13080   # Extract the first word of "esd-config", so it can be a program name with args.
13081 set dummy esd-config; ac_word=$2
13082 echo "$as_me:$LINENO: checking for $ac_word" >&5
13083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13084 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   case $ESD_CONFIG in
13088   [\\/]* | ?:[\\/]*)
13089   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13090   ;;
13091   *)
13092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13094 do
13095   IFS=$as_save_IFS
13096   test -z "$as_dir" && as_dir=.
13097   for ac_exec_ext in '' $ac_executable_extensions; do
13098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13099     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13101     break 2
13102   fi
13103 done
13104 done
13105
13106   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13107   ;;
13108 esac
13109 fi
13110 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13111
13112 if test -n "$ESD_CONFIG"; then
13113   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13114 echo "${ECHO_T}$ESD_CONFIG" >&6
13115 else
13116   echo "$as_me:$LINENO: result: no" >&5
13117 echo "${ECHO_T}no" >&6
13118 fi
13119
13120   min_esd_version=0.2.7
13121   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
13122 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
13123   no_esd=""
13124   if test "$ESD_CONFIG" = "no" ; then
13125     no_esd=yes
13126   else
13127
13128
13129     ac_ext=c
13130 ac_cpp='$CPP $CPPFLAGS'
13131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13134
13135     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
13136     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
13137
13138     esd_major_version=`$ESD_CONFIG $esd_args --version | \
13139            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13140     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
13141            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13142     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
13143            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13144     if test "x$enable_esdtest" = "xyes" ; then
13145       ac_save_CFLAGS="$CFLAGS"
13146       ac_save_LIBS="$LIBS"
13147       CFLAGS="$CFLAGS $ESD_CFLAGS"
13148       LIBS="$LIBS $ESD_LIBS"
13149       rm -f conf.esdtest
13150       if test "$cross_compiling" = yes; then
13151   echo $ac_n "cross compiling; assumed OK... $ac_c"
13152 else
13153   cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h.  */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h.  */
13159
13160 #include <stdio.h>
13161 #include <stdlib.h>
13162 #include <string.h>
13163 #include <esd.h>
13164
13165 char*
13166 my_strdup (char *str)
13167 {
13168   char *new_str;
13169
13170   if (str)
13171     {
13172       new_str = malloc ((strlen (str) + 1) * sizeof(char));
13173       strcpy (new_str, str);
13174     }
13175   else
13176     new_str = NULL;
13177
13178   return new_str;
13179 }
13180
13181 int main ()
13182 {
13183   int major, minor, micro;
13184   char *tmp_version;
13185
13186   system ("touch conf.esdtest");
13187
13188   /* HP/UX 9 (%@#!) writes to sscanf strings */
13189   tmp_version = my_strdup("$min_esd_version");
13190   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13191      printf("%s, bad version string\n", "$min_esd_version");
13192      exit(1);
13193    }
13194
13195    if (($esd_major_version > major) ||
13196       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13197       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13198     {
13199       return 0;
13200     }
13201   else
13202     {
13203       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13204       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13205       printf("*** best to upgrade to the required version.\n");
13206       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13207       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13208       printf("*** config.cache before re-running configure\n");
13209       return 1;
13210     }
13211 }
13212
13213
13214 _ACEOF
13215 rm -f conftest$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217   (eval $ac_link) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222   (eval $ac_try) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; }; then
13226   :
13227 else
13228   echo "$as_me: program exited with status $ac_status" >&5
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ( exit $ac_status )
13233 no_esd=yes
13234 fi
13235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13236 fi
13237        CFLAGS="$ac_save_CFLAGS"
13238        LIBS="$ac_save_LIBS"
13239        ac_ext=c
13240 ac_cpp='$CPP $CPPFLAGS'
13241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13244
13245      fi
13246   fi
13247   if test "x$no_esd" = x ; then
13248      echo "$as_me:$LINENO: result: yes" >&5
13249 echo "${ECHO_T}yes" >&6
13250      :
13251   else
13252      echo "$as_me:$LINENO: result: no" >&5
13253 echo "${ECHO_T}no" >&6
13254      if test "$ESD_CONFIG" = "no" ; then
13255        echo "*** The esd-config script installed by ESD could not be found"
13256        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13257        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13258        echo "*** full path to esd-config."
13259      else
13260        if test -f conf.esdtest ; then
13261         :
13262        else
13263           echo "*** Could not run ESD test program, checking why..."
13264           CFLAGS="$CFLAGS $ESD_CFLAGS"
13265           LIBS="$LIBS $ESD_LIBS"
13266
13267
13268           ac_ext=c
13269 ac_cpp='$CPP $CPPFLAGS'
13270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13273
13274           cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280
13281 #include <stdio.h>
13282 #include <esd.h>
13283
13284 int
13285 main ()
13286 {
13287  return 0;
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294   (eval $ac_link) 2>conftest.er1
13295   ac_status=$?
13296   grep -v '^ *+' conftest.er1 >conftest.err
13297   rm -f conftest.er1
13298   cat conftest.err >&5
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } &&
13301          { ac_try='test -z "$ac_c_werror_flag"
13302                          || test ! -s conftest.err'
13303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304   (eval $ac_try) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); }; } &&
13308          { ac_try='test -s conftest$ac_exeext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314    echo "*** The test program compiled, but did not run. This usually means"
13315           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13316           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13317           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13318           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13319           echo "*** is required on your system"
13320           echo "***"
13321           echo "*** If you have an old version installed, it is best to remove it, although"
13322           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13323 else
13324   echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13326
13327  echo "*** The test program failed to compile or link. See the file config.log for the"
13328           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13329           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13330           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13331 fi
13332 rm -f conftest.err conftest.$ac_objext \
13333       conftest$ac_exeext conftest.$ac_ext
13334           CFLAGS="$ac_save_CFLAGS"
13335           LIBS="$ac_save_LIBS"
13336           ac_ext=c
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13341
13342        fi
13343      fi
13344      ESD_CFLAGS=""
13345      ESD_LIBS=""
13346      :
13347   fi
13348
13349
13350   rm -f conf.esdtest
13351
13352   CFLAGS=$KEEPCFLAGS
13353   LIBS=$KEEPLIBS
13354   LDFLAGS=$KEEPLDFLAGS
13355   if test "x$no_esd" = x; then
13356         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13357     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13358     for f in $ESD_CFLAGS; do
13359     case ".$f" in
13360         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13361         *)              CFLAGS="$CPPFLAGS $f" ;;
13362     esac
13363 done
13364
13365     LIBS="$LIBS $ESD_LIBS"
13366   else
13367     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13368 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13369   fi
13370 else
13371   echo "$as_me:$LINENO: result: no" >&5
13372 echo "${ECHO_T}no" >&6
13373 fi
13374
13375 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13376 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13377 if test "x$au_enable_portaudio" = xyes; then
13378   echo "$as_me:$LINENO: result: yes" >&5
13379 echo "${ECHO_T}yes" >&6
13380   if test "x$MSYS" = xyes ; then
13381         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13382         EXTRALIBS="$EXTRALIBS -lportaudio"
13383         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13384   else
13385         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13386         EXTRALIBS="$EXTRALIBS -lportaudio"
13387         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13388   fi
13389 else
13390   echo "$as_me:$LINENO: result: no" >&5
13391 echo "${ECHO_T}no" >&6
13392 fi
13393
13394 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13395 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13396 if test "x$au_enable_jack" = xyes; then
13397   echo "$as_me:$LINENO: result: yes" >&5
13398 echo "${ECHO_T}yes" >&6
13399   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13400   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13401   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13402 else
13403   echo "$as_me:$LINENO: result: no" >&5
13404 echo "${ECHO_T}no" >&6
13405 fi
13406
13407 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13408 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13409 if test "x$au_enable_ao" = xyes; then
13410   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13411 echo "${ECHO_T}yes, configuring ao" >&6
13412
13413 # Check whether --with-ao or --without-ao was given.
13414 if test "${with_ao+set}" = set; then
13415   withval="$with_ao"
13416   ao_prefix="$withval"
13417 else
13418   ao_prefix=""
13419 fi;
13420
13421 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13422 if test "${with_ao_libraries+set}" = set; then
13423   withval="$with_ao_libraries"
13424   ao_libraries="$withval"
13425 else
13426   ao_libraries=""
13427 fi;
13428
13429 # Check whether --with-ao-includes or --without-ao-includes was given.
13430 if test "${with_ao_includes+set}" = set; then
13431   withval="$with_ao_includes"
13432   ao_includes="$withval"
13433 else
13434   ao_includes=""
13435 fi;
13436 # Check whether --enable-aotest or --disable-aotest was given.
13437 if test "${enable_aotest+set}" = set; then
13438   enableval="$enable_aotest"
13439
13440 else
13441   enable_aotest=yes
13442 fi;
13443
13444
13445   if test "x$ao_libraries" != "x" ; then
13446     AO_LIBS="-L$ao_libraries"
13447   elif test "x$ao_prefix" != "x"; then
13448     AO_LIBS="-L$ao_prefix/lib"
13449   elif test "x$prefix" != "xNONE"; then
13450     AO_LIBS="-L$prefix/lib"
13451   fi
13452
13453   if test "x$ao_includes" != "x" ; then
13454     AO_CFLAGS="-I$ao_includes"
13455   elif test "x$ao_prefix" != "x"; then
13456     AO_CFLAGS="-I$ao_prefix/include"
13457   elif test "x$prefix" != "xNONE"; then
13458     AO_CFLAGS="-I$prefix/include"
13459   fi
13460
13461   # see where dl* and friends live
13462
13463 for ac_func in dlopen
13464 do
13465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13466 echo "$as_me:$LINENO: checking for $ac_func" >&5
13467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13468 if eval "test \"\${$as_ac_var+set}\" = set"; then
13469   echo $ECHO_N "(cached) $ECHO_C" >&6
13470 else
13471   cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13479 #define $ac_func innocuous_$ac_func
13480
13481 /* System header to define __stub macros and hopefully few prototypes,
13482     which can conflict with char $ac_func (); below.
13483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13484     <limits.h> exists even on freestanding compilers.  */
13485
13486 #ifdef __STDC__
13487 # include <limits.h>
13488 #else
13489 # include <assert.h>
13490 #endif
13491
13492 #undef $ac_func
13493
13494 /* Override any gcc2 internal prototype to avoid an error.  */
13495 #ifdef __cplusplus
13496 extern "C"
13497 {
13498 #endif
13499 /* We use char because int might match the return type of a gcc2
13500    builtin and then its argument prototype would still apply.  */
13501 char $ac_func ();
13502 /* The GNU C library defines this for functions which it implements
13503     to always fail with ENOSYS.  Some functions are actually named
13504     something starting with __ and the normal name is an alias.  */
13505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13506 choke me
13507 #else
13508 char (*f) () = $ac_func;
13509 #endif
13510 #ifdef __cplusplus
13511 }
13512 #endif
13513
13514 int
13515 main ()
13516 {
13517 return f != $ac_func;
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524   (eval $ac_link) 2>conftest.er1
13525   ac_status=$?
13526   grep -v '^ *+' conftest.er1 >conftest.err
13527   rm -f conftest.er1
13528   cat conftest.err >&5
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); } &&
13531          { ac_try='test -z "$ac_c_werror_flag"
13532                          || test ! -s conftest.err'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; } &&
13538          { ac_try='test -s conftest$ac_exeext'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; }; then
13544   eval "$as_ac_var=yes"
13545 else
13546   echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549 eval "$as_ac_var=no"
13550 fi
13551 rm -f conftest.err conftest.$ac_objext \
13552       conftest$ac_exeext conftest.$ac_ext
13553 fi
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13556 if test `eval echo '${'$as_ac_var'}'` = yes; then
13557   cat >>confdefs.h <<_ACEOF
13558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13559 _ACEOF
13560  AO_DL_LIBS=""
13561 else
13562
13563     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13566   echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568   ac_check_lib_save_LIBS=$LIBS
13569 LIBS="-ldl  $LIBS"
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h.  */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h.  */
13576
13577 /* Override any gcc2 internal prototype to avoid an error.  */
13578 #ifdef __cplusplus
13579 extern "C"
13580 #endif
13581 /* We use char because int might match the return type of a gcc2
13582    builtin and then its argument prototype would still apply.  */
13583 char dlopen ();
13584 int
13585 main ()
13586 {
13587 dlopen ();
13588   ;
13589   return 0;
13590 }
13591 _ACEOF
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594   (eval $ac_link) 2>conftest.er1
13595   ac_status=$?
13596   grep -v '^ *+' conftest.er1 >conftest.err
13597   rm -f conftest.er1
13598   cat conftest.err >&5
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); } &&
13601          { ac_try='test -z "$ac_c_werror_flag"
13602                          || test ! -s conftest.err'
13603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604   (eval $ac_try) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }; } &&
13608          { ac_try='test -s conftest$ac_exeext'
13609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610   (eval $ac_try) 2>&5
13611   ac_status=$?
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); }; }; then
13614   ac_cv_lib_dl_dlopen=yes
13615 else
13616   echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 ac_cv_lib_dl_dlopen=no
13620 fi
13621 rm -f conftest.err conftest.$ac_objext \
13622       conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13624 fi
13625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13627 if test $ac_cv_lib_dl_dlopen = yes; then
13628   AO_DL_LIBS="-ldl"
13629 else
13630
13631       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13632       your system may not be supported." >&5
13633 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13634       your system may not be supported." >&2;}
13635
13636 fi
13637
13638
13639 fi
13640 done
13641
13642
13643   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13644
13645   echo "$as_me:$LINENO: checking for ao" >&5
13646 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13647   no_ao=""
13648
13649
13650   if test "x$enable_aotest" = "xyes" ; then
13651     ac_save_CFLAGS="$CFLAGS"
13652     ac_save_LIBS="$LIBS"
13653     CFLAGS="$CFLAGS $AO_CFLAGS"
13654     LIBS="$LIBS $AO_LIBS"
13655       rm -f conf.aotest
13656       if test "$cross_compiling" = yes; then
13657   echo $ac_n "cross compiling; assumed OK... $ac_c"
13658 else
13659   cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665
13666 #include <stdio.h>
13667 #include <stdlib.h>
13668 #include <string.h>
13669 #include <ao/ao.h>
13670
13671 int main ()
13672 {
13673   system("touch conf.aotest");
13674   return 0;
13675 }
13676
13677
13678 _ACEOF
13679 rm -f conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681   (eval $ac_link) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686   (eval $ac_try) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; }; then
13690   :
13691 else
13692   echo "$as_me: program exited with status $ac_status" >&5
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 ( exit $ac_status )
13697 no_ao=yes
13698 fi
13699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13700 fi
13701        CFLAGS="$ac_save_CFLAGS"
13702        LIBS="$ac_save_LIBS"
13703   fi
13704
13705   if test "x$no_ao" = "x" ; then
13706      echo "$as_me:$LINENO: result: yes" >&5
13707 echo "${ECHO_T}yes" >&6
13708      :
13709   else
13710      echo "$as_me:$LINENO: result: no" >&5
13711 echo "${ECHO_T}no" >&6
13712      if test -f conf.aotest ; then
13713        :
13714      else
13715        echo "*** Could not run ao test program, checking why..."
13716        CFLAGS="$CFLAGS $AO_CFLAGS"
13717        LIBS="$LIBS $AO_LIBS"
13718        cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724
13725 #include <stdio.h>
13726 #include <ao/ao.h>
13727
13728 int
13729 main ()
13730 {
13731  return 0;
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13738   (eval $ac_link) 2>conftest.er1
13739   ac_status=$?
13740   grep -v '^ *+' conftest.er1 >conftest.err
13741   rm -f conftest.er1
13742   cat conftest.err >&5
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); } &&
13745          { ac_try='test -z "$ac_c_werror_flag"
13746                          || test ! -s conftest.err'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; } &&
13752          { ac_try='test -s conftest$ac_exeext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758    echo "*** The test program compiled, but did not run. This usually means"
13759        echo "*** that the run-time linker is not finding ao or finding the wrong"
13760        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13761        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13762        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13763        echo "*** is required on your system"
13764        echo "***"
13765        echo "*** If you have an old version installed, it is best to remove it, although"
13766        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771  echo "*** The test program failed to compile or link. See the file config.log for the"
13772        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13773        echo "*** or that you have moved ao since it was installed."
13774 fi
13775 rm -f conftest.err conftest.$ac_objext \
13776       conftest$ac_exeext conftest.$ac_ext
13777        CFLAGS="$ac_save_CFLAGS"
13778        LIBS="$ac_save_LIBS"
13779      fi
13780      AO_CFLAGS=""
13781      AO_LIBS=""
13782      :
13783   fi
13784
13785
13786   rm -f conf.aotest
13787
13788   if test "x$no_ao" = "x" ; then
13789     # AC_MSG_RESULT(yes)
13790     EXTRADEFS="$EXTRADEFS -DAU_AO"
13791     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13792     for f in $AO_CFLAGS; do
13793     case ".$f" in
13794         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13795         *)              CFLAGS="$CPPFLAGS $f" ;;
13796     esac
13797 done
13798
13799     LIBS="$LIBS $AO_LIBS"
13800   else
13801     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13802 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13803   fi
13804 else
13805   echo "$as_me:$LINENO: result: no" >&5
13806 echo "${ECHO_T}no" >&6
13807 fi
13808
13809 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13810 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13811 if test "x$au_enable_vorbis" = xyes; then
13812   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13813 echo "${ECHO_T}yes, configuring vorbis" >&6
13814
13815 # Check whether --with-ogg or --without-ogg was given.
13816 if test "${with_ogg+set}" = set; then
13817   withval="$with_ogg"
13818   ogg_prefix="$withval"
13819 else
13820   ogg_prefix=""
13821 fi;
13822
13823 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13824 if test "${with_ogg_libraries+set}" = set; then
13825   withval="$with_ogg_libraries"
13826   ogg_libraries="$withval"
13827 else
13828   ogg_libraries=""
13829 fi;
13830
13831 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13832 if test "${with_ogg_includes+set}" = set; then
13833   withval="$with_ogg_includes"
13834   ogg_includes="$withval"
13835 else
13836   ogg_includes=""
13837 fi;
13838 # Check whether --enable-oggtest or --disable-oggtest was given.
13839 if test "${enable_oggtest+set}" = set; then
13840   enableval="$enable_oggtest"
13841
13842 else
13843   enable_oggtest=yes
13844 fi;
13845
13846   if test "x$ogg_libraries" != "x" ; then
13847     OGG_LIBS="-L$ogg_libraries"
13848   elif test "x$ogg_prefix" != "x" ; then
13849     OGG_LIBS="-L$ogg_prefix/lib"
13850   elif test "x$prefix" != "xNONE" ; then
13851     OGG_LIBS="-L$prefix/lib"
13852   fi
13853
13854   OGG_LIBS="$OGG_LIBS -logg"
13855
13856   if test "x$ogg_includes" != "x" ; then
13857     OGG_CFLAGS="-I$ogg_includes"
13858   elif test "x$ogg_prefix" != "x" ; then
13859     OGG_CFLAGS="-I$ogg_prefix/include"
13860   elif test "x$prefix" != "xNONE"; then
13861     OGG_CFLAGS="-I$prefix/include"
13862   fi
13863
13864   echo "$as_me:$LINENO: checking for Ogg" >&5
13865 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13866   no_ogg=""
13867
13868
13869   if test "x$enable_oggtest" = "xyes" ; then
13870     ac_save_CFLAGS="$CFLAGS"
13871     ac_save_LIBS="$LIBS"
13872     CFLAGS="$CFLAGS $OGG_CFLAGS"
13873     LIBS="$LIBS $OGG_LIBS"
13874       rm -f conf.oggtest
13875       if test "$cross_compiling" = yes; then
13876   echo $ac_n "cross compiling; assumed OK... $ac_c"
13877 else
13878   cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884
13885 #include <stdio.h>
13886 #include <stdlib.h>
13887 #include <string.h>
13888 #include <ogg/ogg.h>
13889
13890 int main ()
13891 {
13892   system("touch conf.oggtest");
13893   return 0;
13894 }
13895
13896
13897 _ACEOF
13898 rm -f conftest$ac_exeext
13899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13900   (eval $ac_link) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   :
13910 else
13911   echo "$as_me: program exited with status $ac_status" >&5
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 ( exit $ac_status )
13916 no_ogg=yes
13917 fi
13918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13919 fi
13920        CFLAGS="$ac_save_CFLAGS"
13921        LIBS="$ac_save_LIBS"
13922   fi
13923
13924   if test "x$no_ogg" = "x" ; then
13925      echo "$as_me:$LINENO: result: yes" >&5
13926 echo "${ECHO_T}yes" >&6
13927
13928
13929 # Check whether --with-vorbis or --without-vorbis was given.
13930 if test "${with_vorbis+set}" = set; then
13931   withval="$with_vorbis"
13932   vorbis_prefix="$withval"
13933 else
13934   vorbis_prefix=""
13935 fi;
13936
13937 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13938 if test "${with_vorbis_libraries+set}" = set; then
13939   withval="$with_vorbis_libraries"
13940   vorbis_libraries="$withval"
13941 else
13942   vorbis_libraries=""
13943 fi;
13944
13945 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13946 if test "${with_vorbis_includes+set}" = set; then
13947   withval="$with_vorbis_includes"
13948   vorbis_includes="$withval"
13949 else
13950   vorbis_includes=""
13951 fi;
13952 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13953 if test "${enable_vorbistest+set}" = set; then
13954   enableval="$enable_vorbistest"
13955
13956 else
13957   enable_vorbistest=yes
13958 fi;
13959
13960   if test "x$vorbis_libraries" != "x" ; then
13961     VORBIS_LIBS="-L$vorbis_libraries"
13962   elif test "x$vorbis_prefix" != "x" ; then
13963     VORBIS_LIBS="-L$vorbis_prefix/lib"
13964   elif test "x$prefix" != "xNONE"; then
13965     VORBIS_LIBS="-L$prefix/lib"
13966   fi
13967
13968   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13969   VORBISFILE_LIBS="-lvorbisfile"
13970   VORBISENC_LIBS="-lvorbisenc"
13971
13972   if test "x$vorbis_includes" != "x" ; then
13973     VORBIS_CFLAGS="-I$vorbis_includes"
13974   elif test "x$vorbis_prefix" != "x" ; then
13975     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13976   elif test "x$prefix" != "xNONE"; then
13977     VORBIS_CFLAGS="-I$prefix/include"
13978   fi
13979
13980
13981   echo "$as_me:$LINENO: checking for Vorbis" >&5
13982 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13983   no_vorbis=""
13984
13985
13986   if test "x$enable_vorbistest" = "xyes" ; then
13987     ac_save_CFLAGS="$CFLAGS"
13988     ac_save_LIBS="$LIBS"
13989     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13990     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13991       rm -f conf.vorbistest
13992       if test "$cross_compiling" = yes; then
13993   echo $ac_n "cross compiling; assumed OK... $ac_c"
13994 else
13995   cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001
14002 #include <stdio.h>
14003 #include <stdlib.h>
14004 #include <string.h>
14005 #include <vorbis/codec.h>
14006
14007 int main ()
14008 {
14009   system("touch conf.vorbistest");
14010   return 0;
14011 }
14012
14013
14014 _ACEOF
14015 rm -f conftest$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017   (eval $ac_link) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; }; then
14026   :
14027 else
14028   echo "$as_me: program exited with status $ac_status" >&5
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14031
14032 ( exit $ac_status )
14033 no_vorbis=yes
14034 fi
14035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14036 fi
14037        CFLAGS="$ac_save_CFLAGS"
14038        LIBS="$ac_save_LIBS"
14039   fi
14040
14041   if test "x$no_vorbis" = "x" ; then
14042      echo "$as_me:$LINENO: result: yes" >&5
14043 echo "${ECHO_T}yes" >&6
14044
14045       have_vorbis=yes
14046       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
14047       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
14048       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
14049       if test "x$MSYS" = "xyes"; then
14050       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14051           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14052       fi
14053
14054   else
14055      echo "$as_me:$LINENO: result: no" >&5
14056 echo "${ECHO_T}no" >&6
14057      if test -f conf.vorbistest ; then
14058        :
14059      else
14060        echo "*** Could not run Vorbis test program, checking why..."
14061        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14062        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14063        cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069
14070 #include <stdio.h>
14071 #include <vorbis/codec.h>
14072
14073 int
14074 main ()
14075 {
14076  return 0;
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083   (eval $ac_link) 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } &&
14090          { ac_try='test -z "$ac_c_werror_flag"
14091                          || test ! -s conftest.err'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; } &&
14097          { ac_try='test -s conftest$ac_exeext'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103    echo "*** The test program compiled, but did not run. This usually means"
14104        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14105        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14106        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14107        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14108        echo "*** is required on your system"
14109        echo "***"
14110        echo "*** If you have an old version installed, it is best to remove it, although"
14111        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14112 else
14113   echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116  echo "*** The test program failed to compile or link. See the file config.log for the"
14117        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14118        echo "*** or that you have moved Vorbis since it was installed."
14119 fi
14120 rm -f conftest.err conftest.$ac_objext \
14121       conftest$ac_exeext conftest.$ac_ext
14122        CFLAGS="$ac_save_CFLAGS"
14123        LIBS="$ac_save_LIBS"
14124      fi
14125      VORBIS_CFLAGS=""
14126      VORBIS_LIBS=""
14127      VORBISFILE_LIBS=""
14128      VORBISENC_LIBS=""
14129
14130       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14131 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14132
14133   fi
14134
14135
14136
14137
14138   rm -f conf.vorbistest
14139
14140
14141   else
14142      echo "$as_me:$LINENO: result: no" >&5
14143 echo "${ECHO_T}no" >&6
14144      if test -f conf.oggtest ; then
14145        :
14146      else
14147        echo "*** Could not run Ogg test program, checking why..."
14148        CFLAGS="$CFLAGS $OGG_CFLAGS"
14149        LIBS="$LIBS $OGG_LIBS"
14150        cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h.  */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h.  */
14156
14157 #include <stdio.h>
14158 #include <ogg/ogg.h>
14159
14160 int
14161 main ()
14162 {
14163  return 0;
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170   (eval $ac_link) 2>conftest.er1
14171   ac_status=$?
14172   grep -v '^ *+' conftest.er1 >conftest.err
14173   rm -f conftest.er1
14174   cat conftest.err >&5
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); } &&
14177          { ac_try='test -z "$ac_c_werror_flag"
14178                          || test ! -s conftest.err'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; } &&
14184          { ac_try='test -s conftest$ac_exeext'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190    echo "*** The test program compiled, but did not run. This usually means"
14191        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14192        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14193        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14194        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14195        echo "*** is required on your system"
14196        echo "***"
14197        echo "*** If you have an old version installed, it is best to remove it, although"
14198        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14199 else
14200   echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203  echo "*** The test program failed to compile or link. See the file config.log for the"
14204        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14205        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14206        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14207 fi
14208 rm -f conftest.err conftest.$ac_objext \
14209       conftest$ac_exeext conftest.$ac_ext
14210        CFLAGS="$ac_save_CFLAGS"
14211        LIBS="$ac_save_LIBS"
14212      fi
14213      OGG_CFLAGS=""
14214      OGG_LIBS=""
14215
14216     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14217 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14218     have_vorbis=no
14219
14220   fi
14221
14222
14223   rm -f conf.oggtest
14224
14225 else
14226   echo "$as_me:$LINENO: result: no" >&5
14227 echo "${ECHO_T}no" >&6
14228 fi
14229
14230 if test "x$MSYS" = xyes ; then
14231   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14232 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14233   if test "x$au_enable_flac" = xyes; then
14234     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14235 echo "${ECHO_T}yes, configuring flac" >&6
14236     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14237
14238 # Check whether --with-libFLAC or --without-libFLAC was given.
14239 if test "${with_libFLAC+set}" = set; then
14240   withval="$with_libFLAC"
14241   libFLAC_prefix="$withval"
14242 else
14243   libFLAC_prefix=""
14244 fi;
14245
14246 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14247 if test "${with_libFLAC_libraries+set}" = set; then
14248   withval="$with_libFLAC_libraries"
14249   libFLAC_libraries="$withval"
14250 else
14251   libFLAC_libraries=""
14252 fi;
14253
14254 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14255 if test "${with_libFLAC_includes+set}" = set; then
14256   withval="$with_libFLAC_includes"
14257   libFLAC_includes="$withval"
14258 else
14259   libFLAC_includes=""
14260 fi;
14261 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14262 if test "${enable_libFLACtest+set}" = set; then
14263   enableval="$enable_libFLACtest"
14264
14265 else
14266   enable_libFLACtest=yes
14267 fi;
14268
14269   if test "x$libFLAC_libraries" != "x" ; then
14270     LIBFLAC_LIBS="-L$libFLAC_libraries"
14271   elif test "x$libFLAC_prefix" != "x" ; then
14272     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14273   elif test "x$prefix" != "xNONE" ; then
14274     LIBFLAC_LIBS="-L$prefix/lib"
14275   fi
14276
14277   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14278
14279   if test "x$libFLAC_includes" != "x" ; then
14280     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14281   elif test "x$libFLAC_prefix" != "x" ; then
14282     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14283   elif test "$prefix" != "xNONE"; then
14284     LIBFLAC_CFLAGS="-I$prefix/include"
14285   fi
14286
14287   echo "$as_me:$LINENO: checking for libFLAC" >&5
14288 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14289   no_libFLAC=""
14290
14291
14292   if test "x$enable_libFLACtest" = "xyes" ; then
14293     ac_save_CFLAGS="$CFLAGS"
14294     ac_save_CXXFLAGS="$CXXFLAGS"
14295     ac_save_LIBS="$LIBS"
14296     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14297     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14298     LIBS="$LIBS $LIBFLAC_LIBS"
14299       rm -f conf.libFLACtest
14300       if test "$cross_compiling" = yes; then
14301   echo $ac_n "cross compiling; assumed OK... $ac_c"
14302 else
14303   cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h.  */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h.  */
14309
14310 #include <stdio.h>
14311 #include <stdlib.h>
14312 #include <string.h>
14313 #include <FLAC/format.h>
14314
14315 int main ()
14316 {
14317   system("touch conf.libFLACtest");
14318   return 0;
14319 }
14320
14321
14322 _ACEOF
14323 rm -f conftest$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325   (eval $ac_link) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334   :
14335 else
14336   echo "$as_me: program exited with status $ac_status" >&5
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ( exit $ac_status )
14341 no_libFLAC=yes
14342 fi
14343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14344 fi
14345        CFLAGS="$ac_save_CFLAGS"
14346        LIBS="$ac_save_LIBS"
14347   fi
14348
14349   if test "x$no_libFLAC" = "x" ; then
14350      echo "$as_me:$LINENO: result: yes" >&5
14351 echo "${ECHO_T}yes" >&6
14352
14353       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14354       for f in $LIBFLAC_CFLAGS; do
14355     case ".$f" in
14356         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14357         *)              CFLAGS="$CPPFLAGS $f" ;;
14358     esac
14359 done
14360
14361       LIBS="$LIBS $LIBFLAC_LIBS"
14362
14363   else
14364      echo "$as_me:$LINENO: result: no" >&5
14365 echo "${ECHO_T}no" >&6
14366      if test -f conf.libFLACtest ; then
14367        :
14368      else
14369        echo "*** Could not run libFLAC test program, checking why..."
14370        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14371        LIBS="$LIBS $LIBFLAC_LIBS"
14372        cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378
14379 #include <stdio.h>
14380 #include <FLAC/format.h>
14381
14382 int
14383 main ()
14384 {
14385  return 0;
14386   ;
14387   return 0;
14388 }
14389 _ACEOF
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14392   (eval $ac_link) 2>conftest.er1
14393   ac_status=$?
14394   grep -v '^ *+' conftest.er1 >conftest.err
14395   rm -f conftest.er1
14396   cat conftest.err >&5
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } &&
14399          { ac_try='test -z "$ac_c_werror_flag"
14400                          || test ! -s conftest.err'
14401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402   (eval $ac_try) 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); }; } &&
14406          { ac_try='test -s conftest$ac_exeext'
14407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408   (eval $ac_try) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }; }; then
14412    echo "*** The test program compiled, but did not run. This usually means"
14413        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14414        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14415        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14416        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14417        echo "*** is required on your system"
14418        echo "***"
14419        echo "*** If you have an old version installed, it is best to remove it, although"
14420        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425  echo "*** The test program failed to compile or link. See the file config.log for the"
14426        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14427        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14428        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14429 fi
14430 rm -f conftest.err conftest.$ac_objext \
14431       conftest$ac_exeext conftest.$ac_ext
14432        CFLAGS="$ac_save_CFLAGS"
14433        LIBS="$ac_save_LIBS"
14434      fi
14435      LIBFLAC_CFLAGS=""
14436      LIBFLAC_LIBS=""
14437      :
14438   fi
14439
14440
14441   rm -f conf.libFLACtest
14442
14443
14444 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14445 if test "${with_libOggFLAC+set}" = set; then
14446   withval="$with_libOggFLAC"
14447   libOggFLAC_prefix="$withval"
14448 else
14449   libOggFLAC_prefix=""
14450 fi;
14451
14452 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14453 if test "${with_libOggFLAC_libraries+set}" = set; then
14454   withval="$with_libOggFLAC_libraries"
14455   libOggFLAC_libraries="$withval"
14456 else
14457   libOggFLAC_libraries=""
14458 fi;
14459
14460 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14461 if test "${with_libOggFLAC_includes+set}" = set; then
14462   withval="$with_libOggFLAC_includes"
14463   libOggFLAC_includes="$withval"
14464 else
14465   libOggFLAC_includes=""
14466 fi;
14467 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14468 if test "${enable_libOggFLACtest+set}" = set; then
14469   enableval="$enable_libOggFLACtest"
14470
14471 else
14472   enable_libOggFLACtest=yes
14473 fi;
14474
14475   if test "x$libOggFLAC_libraries" != "x" ; then
14476     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14477   elif test "x$libOggFLAC_prefix" != "x" ; then
14478     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14479   elif test "x$prefix" != "xNONE" ; then
14480     LIBOGGFLAC_LIBS="-L$prefix/lib"
14481   fi
14482
14483   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14484
14485   if test "x$libOggFLAC_includes" != "x" ; then
14486     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14487   elif test "x$libOggFLAC_prefix" != "x" ; then
14488     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14489   elif test "$prefix" != "xNONE"; then
14490     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14491   fi
14492
14493   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14494 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14495   no_libOggFLAC=""
14496
14497
14498   if test "x$enable_libOggFLACtest" = "xyes" ; then
14499     ac_save_CFLAGS="$CFLAGS"
14500     ac_save_CXXFLAGS="$CXXFLAGS"
14501     ac_save_LIBS="$LIBS"
14502     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14503     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14504     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14505       rm -f conf.libOggFLACtest
14506       if test "$cross_compiling" = yes; then
14507   echo $ac_n "cross compiling; assumed OK... $ac_c"
14508 else
14509   cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515
14516 #include <stdio.h>
14517 #include <stdlib.h>
14518 #include <string.h>
14519 #include <OggFLAC/stream_decoder.h>
14520
14521 int main ()
14522 {
14523   system("touch conf.libOggFLACtest");
14524   return 0;
14525 }
14526
14527
14528 _ACEOF
14529 rm -f conftest$ac_exeext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14531   (eval $ac_link) 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536   (eval $ac_try) 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }; }; then
14540   :
14541 else
14542   echo "$as_me: program exited with status $ac_status" >&5
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 ( exit $ac_status )
14547 no_libOggFLAC=yes
14548 fi
14549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14550 fi
14551        CFLAGS="$ac_save_CFLAGS"
14552        LIBS="$ac_save_LIBS"
14553   fi
14554
14555   if test "x$no_libOggFLAC" = "x" ; then
14556      echo "$as_me:$LINENO: result: yes" >&5
14557 echo "${ECHO_T}yes" >&6
14558
14559       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14560       for f in $LIBOGGFLAC_CFLAGS; do
14561     case ".$f" in
14562         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14563         *)              CFLAGS="$CPPFLAGS $f" ;;
14564     esac
14565 done
14566
14567       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14568
14569   else
14570      echo "$as_me:$LINENO: result: no" >&5
14571 echo "${ECHO_T}no" >&6
14572      if test -f conf.libOggFLACtest ; then
14573        :
14574      else
14575        echo "*** Could not run libOggFLAC test program, checking why..."
14576        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14577        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14578        cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h.  */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h.  */
14584
14585 #include <stdio.h>
14586 #include <OggFLAC/stream_decoder.h>
14587
14588 int
14589 main ()
14590 {
14591  return 0;
14592   ;
14593   return 0;
14594 }
14595 _ACEOF
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598   (eval $ac_link) 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -z "$ac_c_werror_flag"
14606                          || test ! -s conftest.err'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; } &&
14612          { ac_try='test -s conftest$ac_exeext'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }; then
14618    echo "*** The test program compiled, but did not run. This usually means"
14619        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14620        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14621        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14622        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14623        echo "*** is required on your system"
14624        echo "***"
14625        echo "*** If you have an old version installed, it is best to remove it, although"
14626        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14627 else
14628   echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631  echo "*** The test program failed to compile or link. See the file config.log for the"
14632        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14633        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14634        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14635 fi
14636 rm -f conftest.err conftest.$ac_objext \
14637       conftest$ac_exeext conftest.$ac_ext
14638        CFLAGS="$ac_save_CFLAGS"
14639        LIBS="$ac_save_LIBS"
14640      fi
14641      LIBOGGFLAC_CFLAGS=""
14642      LIBOGGFLAC_LIBS=""
14643      :
14644   fi
14645
14646
14647   rm -f conf.libOggFLACtest
14648
14649   else
14650     echo "$as_me:$LINENO: result: no" >&5
14651 echo "${ECHO_T}no" >&6
14652   fi
14653 else
14654   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14655 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14656   if test "x$au_enable_flac" = xyes; then
14657     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14658 echo "${ECHO_T}yes, configuring flac" >&6
14659     SYSEXTRAS="$SYSEXTRAS flac_a.c"
14660
14661 # Check whether --with-libFLAC or --without-libFLAC was given.
14662 if test "${with_libFLAC+set}" = set; then
14663   withval="$with_libFLAC"
14664   libFLAC_prefix="$withval"
14665 else
14666   libFLAC_prefix=""
14667 fi;
14668
14669 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14670 if test "${with_libFLAC_libraries+set}" = set; then
14671   withval="$with_libFLAC_libraries"
14672   libFLAC_libraries="$withval"
14673 else
14674   libFLAC_libraries=""
14675 fi;
14676
14677 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14678 if test "${with_libFLAC_includes+set}" = set; then
14679   withval="$with_libFLAC_includes"
14680   libFLAC_includes="$withval"
14681 else
14682   libFLAC_includes=""
14683 fi;
14684 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14685 if test "${enable_libFLACtest+set}" = set; then
14686   enableval="$enable_libFLACtest"
14687
14688 else
14689   enable_libFLACtest=yes
14690 fi;
14691
14692   if test "x$libFLAC_libraries" != "x" ; then
14693     LIBFLAC_LIBS="-L$libFLAC_libraries"
14694   elif test "x$libFLAC_prefix" != "x" ; then
14695     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14696   elif test "x$prefix" != "xNONE" ; then
14697     LIBFLAC_LIBS="-L$prefix/lib"
14698   fi
14699
14700   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14701
14702   if test "x$libFLAC_includes" != "x" ; then
14703     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14704   elif test "x$libFLAC_prefix" != "x" ; then
14705     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14706   elif test "$prefix" != "xNONE"; then
14707     LIBFLAC_CFLAGS="-I$prefix/include"
14708   fi
14709
14710   echo "$as_me:$LINENO: checking for libFLAC" >&5
14711 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14712   no_libFLAC=""
14713
14714
14715   if test "x$enable_libFLACtest" = "xyes" ; then
14716     ac_save_CFLAGS="$CFLAGS"
14717     ac_save_CXXFLAGS="$CXXFLAGS"
14718     ac_save_LIBS="$LIBS"
14719     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14720     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14721     LIBS="$LIBS $LIBFLAC_LIBS"
14722       rm -f conf.libFLACtest
14723       if test "$cross_compiling" = yes; then
14724   echo $ac_n "cross compiling; assumed OK... $ac_c"
14725 else
14726   cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732
14733 #include <stdio.h>
14734 #include <stdlib.h>
14735 #include <string.h>
14736 #include <FLAC/format.h>
14737
14738 int main ()
14739 {
14740   system("touch conf.libFLACtest");
14741   return 0;
14742 }
14743
14744
14745 _ACEOF
14746 rm -f conftest$ac_exeext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748   (eval $ac_link) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; }; then
14757   :
14758 else
14759   echo "$as_me: program exited with status $ac_status" >&5
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 ( exit $ac_status )
14764 no_libFLAC=yes
14765 fi
14766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14767 fi
14768        CFLAGS="$ac_save_CFLAGS"
14769        LIBS="$ac_save_LIBS"
14770   fi
14771
14772   if test "x$no_libFLAC" = "x" ; then
14773      echo "$as_me:$LINENO: result: yes" >&5
14774 echo "${ECHO_T}yes" >&6
14775
14776       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14777       for f in $LIBFLAC_CFLAGS; do
14778     case ".$f" in
14779         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14780         *)              CFLAGS="$CPPFLAGS $f" ;;
14781     esac
14782 done
14783
14784       LIBS="$LIBS $LIBFLAC_LIBS"
14785
14786   else
14787      echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6
14789      if test -f conf.libFLACtest ; then
14790        :
14791      else
14792        echo "*** Could not run libFLAC test program, checking why..."
14793        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14794        LIBS="$LIBS $LIBFLAC_LIBS"
14795        cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h.  */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h.  */
14801
14802 #include <stdio.h>
14803 #include <FLAC/format.h>
14804
14805 int
14806 main ()
14807 {
14808  return 0;
14809   ;
14810   return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815   (eval $ac_link) 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } &&
14822          { ac_try='test -z "$ac_c_werror_flag"
14823                          || test ! -s conftest.err'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; } &&
14829          { ac_try='test -s conftest$ac_exeext'
14830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831   (eval $ac_try) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); }; }; then
14835    echo "*** The test program compiled, but did not run. This usually means"
14836        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14837        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14838        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14839        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14840        echo "*** is required on your system"
14841        echo "***"
14842        echo "*** If you have an old version installed, it is best to remove it, although"
14843        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848  echo "*** The test program failed to compile or link. See the file config.log for the"
14849        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14850        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14851        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14852 fi
14853 rm -f conftest.err conftest.$ac_objext \
14854       conftest$ac_exeext conftest.$ac_ext
14855        CFLAGS="$ac_save_CFLAGS"
14856        LIBS="$ac_save_LIBS"
14857      fi
14858      LIBFLAC_CFLAGS=""
14859      LIBFLAC_LIBS=""
14860      :
14861   fi
14862
14863
14864   rm -f conf.libFLACtest
14865
14866
14867 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14868 if test "${with_libOggFLAC+set}" = set; then
14869   withval="$with_libOggFLAC"
14870   libOggFLAC_prefix="$withval"
14871 else
14872   libOggFLAC_prefix=""
14873 fi;
14874
14875 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14876 if test "${with_libOggFLAC_libraries+set}" = set; then
14877   withval="$with_libOggFLAC_libraries"
14878   libOggFLAC_libraries="$withval"
14879 else
14880   libOggFLAC_libraries=""
14881 fi;
14882
14883 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14884 if test "${with_libOggFLAC_includes+set}" = set; then
14885   withval="$with_libOggFLAC_includes"
14886   libOggFLAC_includes="$withval"
14887 else
14888   libOggFLAC_includes=""
14889 fi;
14890 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14891 if test "${enable_libOggFLACtest+set}" = set; then
14892   enableval="$enable_libOggFLACtest"
14893
14894 else
14895   enable_libOggFLACtest=yes
14896 fi;
14897
14898   if test "x$libOggFLAC_libraries" != "x" ; then
14899     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14900   elif test "x$libOggFLAC_prefix" != "x" ; then
14901     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14902   elif test "x$prefix" != "xNONE" ; then
14903     LIBOGGFLAC_LIBS="-L$prefix/lib"
14904   fi
14905
14906   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14907
14908   if test "x$libOggFLAC_includes" != "x" ; then
14909     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14910   elif test "x$libOggFLAC_prefix" != "x" ; then
14911     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14912   elif test "$prefix" != "xNONE"; then
14913     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14914   fi
14915
14916   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14917 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14918   no_libOggFLAC=""
14919
14920
14921   if test "x$enable_libOggFLACtest" = "xyes" ; then
14922     ac_save_CFLAGS="$CFLAGS"
14923     ac_save_CXXFLAGS="$CXXFLAGS"
14924     ac_save_LIBS="$LIBS"
14925     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14926     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14927     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14928       rm -f conf.libOggFLACtest
14929       if test "$cross_compiling" = yes; then
14930   echo $ac_n "cross compiling; assumed OK... $ac_c"
14931 else
14932   cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h.  */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h.  */
14938
14939 #include <stdio.h>
14940 #include <stdlib.h>
14941 #include <string.h>
14942 #include <OggFLAC/stream_decoder.h>
14943
14944 int main ()
14945 {
14946   system("touch conf.libOggFLACtest");
14947   return 0;
14948 }
14949
14950
14951 _ACEOF
14952 rm -f conftest$ac_exeext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954   (eval $ac_link) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959   (eval $ac_try) 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; }; then
14963   :
14964 else
14965   echo "$as_me: program exited with status $ac_status" >&5
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ( exit $ac_status )
14970 no_libOggFLAC=yes
14971 fi
14972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14973 fi
14974        CFLAGS="$ac_save_CFLAGS"
14975        LIBS="$ac_save_LIBS"
14976   fi
14977
14978   if test "x$no_libOggFLAC" = "x" ; then
14979      echo "$as_me:$LINENO: result: yes" >&5
14980 echo "${ECHO_T}yes" >&6
14981
14982       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14983       for f in $LIBOGGFLAC_CFLAGS; do
14984     case ".$f" in
14985         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14986         *)              CFLAGS="$CPPFLAGS $f" ;;
14987     esac
14988 done
14989
14990       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14991
14992   else
14993      echo "$as_me:$LINENO: result: no" >&5
14994 echo "${ECHO_T}no" >&6
14995      if test -f conf.libOggFLACtest ; then
14996        :
14997      else
14998        echo "*** Could not run libOggFLAC test program, checking why..."
14999        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15000        LIBS="$LIBS $LIBOGGFLAC_LIBS"
15001        cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007
15008 #include <stdio.h>
15009 #include <OggFLAC/stream_decoder.h>
15010
15011 int
15012 main ()
15013 {
15014  return 0;
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021   (eval $ac_link) 2>conftest.er1
15022   ac_status=$?
15023   grep -v '^ *+' conftest.er1 >conftest.err
15024   rm -f conftest.er1
15025   cat conftest.err >&5
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -z "$ac_c_werror_flag"
15029                          || test ! -s conftest.err'
15030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031   (eval $ac_try) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; } &&
15035          { ac_try='test -s conftest$ac_exeext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041    echo "*** The test program compiled, but did not run. This usually means"
15042        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
15043        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
15044        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15045        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15046        echo "*** is required on your system"
15047        echo "***"
15048        echo "*** If you have an old version installed, it is best to remove it, although"
15049        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15050 else
15051   echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15053
15054  echo "*** The test program failed to compile or link. See the file config.log for the"
15055        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
15056        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
15057        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
15058 fi
15059 rm -f conftest.err conftest.$ac_objext \
15060       conftest$ac_exeext conftest.$ac_ext
15061        CFLAGS="$ac_save_CFLAGS"
15062        LIBS="$ac_save_LIBS"
15063      fi
15064      LIBOGGFLAC_CFLAGS=""
15065      LIBOGGFLAC_LIBS=""
15066      :
15067   fi
15068
15069
15070   rm -f conf.libOggFLACtest
15071
15072   else
15073     echo "$as_me:$LINENO: result: no" >&5
15074 echo "${ECHO_T}no" >&6
15075   fi
15076 fi
15077 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
15078 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
15079 if test "x$au_enable_speex" = xyes; then
15080   if test "${have_speex+set}" = set; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089
15090   #include <speex.h>
15091   #include <ogg/ogg.h>
15092
15093 int
15094 main ()
15095 {
15096
15097     SpeexBits *dummy;
15098
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15105   (eval $ac_link) 2>conftest.er1
15106   ac_status=$?
15107   grep -v '^ *+' conftest.er1 >conftest.err
15108   rm -f conftest.er1
15109   cat conftest.err >&5
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } &&
15112          { ac_try='test -z "$ac_c_werror_flag"
15113                          || test ! -s conftest.err'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; } &&
15119          { ac_try='test -s conftest$ac_exeext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   have_speex=yes
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 have_speex=no
15131 fi
15132 rm -f conftest.err conftest.$ac_objext \
15133       conftest$ac_exeext conftest.$ac_ext
15134 fi
15135
15136   echo "$as_me:$LINENO: result: $have_speex" >&5
15137 echo "${ECHO_T}$have_speex" >&6
15138   if test "x$have_speex" = xyes; then
15139     SYSEXTRAS="$SYSEXTRAS speex_a.c"
15140     EXTRALIBS="$EXTRALIBS -lspeex -logg"
15141     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
15142   fi
15143 else
15144   echo "$as_me:$LINENO: result: no" >&5
15145 echo "${ECHO_T}no" >&6
15146 fi
15147
15148 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
15149 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
15150 if test "x$au_enable_gogo" = xyes; then
15151   if test "x$MSYS" = "xyes"; then
15152     echo "$as_me:$LINENO: result: yes" >&5
15153 echo "${ECHO_T}yes" >&6
15154   else
15155     { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
15156 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
15157   fi
15158   have_gogo=yes
15159   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
15160   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
15161   EXTRALIBS="$EXTRALIBS -lgogo"
15162 else
15163   echo "$as_me:$LINENO: result: no" >&5
15164 echo "${ECHO_T}no" >&6
15165 fi
15166
15167 if test "x$au_enable_none" = xyes; then
15168     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15169     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15170 fi
15171 echo "$as_me:$LINENO: checking default output mode" >&5
15172 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
15173 if test "x$DEFAULT_PLAYMODE" = x; then
15174   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15175 fi
15176 case ".$DEFAULT_PLAYMODE" in
15177   .default)  TIMIDITY_OUTPUT_ID=d ;;
15178   .oss)      TIMIDITY_OUTPUT_ID=d ;;
15179   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
15180   .sun)      TIMIDITY_OUTPUT_ID=d ;;
15181   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
15182   .irix)     TIMIDITY_OUTPUT_ID=d ;;
15183   .mme)      TIMIDITY_OUTPUT_ID=d ;;
15184   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
15185   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
15186   .w32)      TIMIDITY_OUTPUT_ID=d ;;
15187   .alib)     TIMIDITY_OUTPUT_ID=A ;;
15188   .nas)      TIMIDITY_OUTPUT_ID=n ;;
15189   .arts)     TIMIDITY_OUTPUT_ID=R ;;
15190   .esd)      TIMIDITY_OUTPUT_ID=e ;;
15191   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
15192   .wav)      TIMIDITY_OUTPUT_ID=w ;;
15193   .au)       TIMIDITY_OUTPUT_ID=u ;;
15194   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
15195   .list)     TIMIDITY_OUTPUT_ID=l ;;
15196   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
15197   .flac)     TIMIDITY_OUTPUT_ID=F ;;
15198   .speex)    TIMIDITY_OUTPUT_ID=S ;;
15199   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
15200   .jack)     TIMIDITY_OUTPUT_ID=j ;;
15201   *)         TIMIDITY_OUTPUT_ID= ;;
15202 esac
15203 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15204 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
15205
15206
15207 #
15208 # Interface Section
15209 #
15210
15211 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
15212
15213 # Check whether --enable-interface or --disable-interface was given.
15214 if test "${enable_interface+set}" = set; then
15215   enableval="$enable_interface"
15216    for i in `echo $enableval | sed 's/,/ /g'`; do
15217       eval "enable_$i=yes"
15218     done
15219 fi;
15220
15221 #  Dynamic link configuration
15222 # Check whether --enable-dynamic or --disable-dynamic was given.
15223 if test "${enable_dynamic+set}" = set; then
15224   enableval="$enable_dynamic"
15225        if test "x$enable_dynamic" = xyes; then
15226       enable_dynamic=dynamic
15227     elif test "x$enable_dynamic" != xno; then
15228       for i in `echo $enableval | sed 's/,/ /g'`; do
15229         eval "enable_$i=dynamic"
15230       done
15231     fi
15232 fi;
15233
15234 join_targets=
15235 for i in $interface_targets; do
15236   eval "join_targets=$join_targets\$enable_$i"
15237 done
15238
15239 case ".$join_targets" in
15240 .*dynamic*) NEEDDLOPEN=yes;;
15241 *)          NEEDDLOPEN=no;;
15242 esac
15243
15244 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15245 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15246
15247 if test "$NEEDDLOPEN" = "yes"; then
15248   have_dl=no
15249
15250   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15251 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
15252 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15253   echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255   cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h.  */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h.  */
15261 #include <windows.h>
15262
15263
15264 int
15265 main ()
15266 {
15267 LoadLibrary(0);
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274   (eval $ac_link) 2>conftest.er1
15275   ac_status=$?
15276   grep -v '^ *+' conftest.er1 >conftest.err
15277   rm -f conftest.er1
15278   cat conftest.err >&5
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); } &&
15281          { ac_try='test -z "$ac_c_werror_flag"
15282                          || test ! -s conftest.err'
15283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284   (eval $ac_try) 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; } &&
15288          { ac_try='test -s conftest$ac_exeext'
15289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290   (eval $ac_try) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; }; then
15294   wapi_cv_func_LoadLibrary=yes
15295 else
15296   echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299 wapi_cv_func_LoadLibrary=no
15300 fi
15301 rm -f conftest.err conftest.$ac_objext \
15302       conftest$ac_exeext conftest.$ac_ext
15303 fi
15304
15305 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15306   echo "$as_me:$LINENO: result: yes" >&5
15307 echo "${ECHO_T}yes" >&6
15308   have_dl=w32
15309 else
15310   echo "$as_me:$LINENO: result: no" >&5
15311 echo "${ECHO_T}no" >&6
15312 fi
15313
15314   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15315
15316   if test "$have_dl" = "no"; then
15317     echo "$as_me:$LINENO: checking for shl_load" >&5
15318 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15319 if test "${ac_cv_func_shl_load+set}" = set; then
15320   echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322   cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h.  */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h.  */
15328 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15330 #define shl_load innocuous_shl_load
15331
15332 /* System header to define __stub macros and hopefully few prototypes,
15333     which can conflict with char shl_load (); below.
15334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15335     <limits.h> exists even on freestanding compilers.  */
15336
15337 #ifdef __STDC__
15338 # include <limits.h>
15339 #else
15340 # include <assert.h>
15341 #endif
15342
15343 #undef shl_load
15344
15345 /* Override any gcc2 internal prototype to avoid an error.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 {
15349 #endif
15350 /* We use char because int might match the return type of a gcc2
15351    builtin and then its argument prototype would still apply.  */
15352 char shl_load ();
15353 /* The GNU C library defines this for functions which it implements
15354     to always fail with ENOSYS.  Some functions are actually named
15355     something starting with __ and the normal name is an alias.  */
15356 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15357 choke me
15358 #else
15359 char (*f) () = shl_load;
15360 #endif
15361 #ifdef __cplusplus
15362 }
15363 #endif
15364
15365 int
15366 main ()
15367 {
15368 return f != shl_load;
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375   (eval $ac_link) 2>conftest.er1
15376   ac_status=$?
15377   grep -v '^ *+' conftest.er1 >conftest.err
15378   rm -f conftest.er1
15379   cat conftest.err >&5
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); } &&
15382          { ac_try='test -z "$ac_c_werror_flag"
15383                          || test ! -s conftest.err'
15384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385   (eval $ac_try) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; } &&
15389          { ac_try='test -s conftest$ac_exeext'
15390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391   (eval $ac_try) 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; }; then
15395   ac_cv_func_shl_load=yes
15396 else
15397   echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400 ac_cv_func_shl_load=no
15401 fi
15402 rm -f conftest.err conftest.$ac_objext \
15403       conftest$ac_exeext conftest.$ac_ext
15404 fi
15405 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15406 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15407 if test $ac_cv_func_shl_load = yes; then
15408   have_dl=hpux
15409 fi
15410
15411   fi
15412   if test "$have_dl" = "no"; then
15413             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15414 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15415 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15416   echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418   cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15426 #define NSLinkModule innocuous_NSLinkModule
15427
15428 /* System header to define __stub macros and hopefully few prototypes,
15429     which can conflict with char NSLinkModule (); below.
15430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15431     <limits.h> exists even on freestanding compilers.  */
15432
15433 #ifdef __STDC__
15434 # include <limits.h>
15435 #else
15436 # include <assert.h>
15437 #endif
15438
15439 #undef NSLinkModule
15440
15441 /* Override any gcc2 internal prototype to avoid an error.  */
15442 #ifdef __cplusplus
15443 extern "C"
15444 {
15445 #endif
15446 /* We use char because int might match the return type of a gcc2
15447    builtin and then its argument prototype would still apply.  */
15448 char NSLinkModule ();
15449 /* The GNU C library defines this for functions which it implements
15450     to always fail with ENOSYS.  Some functions are actually named
15451     something starting with __ and the normal name is an alias.  */
15452 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15453 choke me
15454 #else
15455 char (*f) () = NSLinkModule;
15456 #endif
15457 #ifdef __cplusplus
15458 }
15459 #endif
15460
15461 int
15462 main ()
15463 {
15464 return f != NSLinkModule;
15465   ;
15466   return 0;
15467 }
15468 _ACEOF
15469 rm -f conftest.$ac_objext conftest$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471   (eval $ac_link) 2>conftest.er1
15472   ac_status=$?
15473   grep -v '^ *+' conftest.er1 >conftest.err
15474   rm -f conftest.er1
15475   cat conftest.err >&5
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } &&
15478          { ac_try='test -z "$ac_c_werror_flag"
15479                          || test ! -s conftest.err'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; } &&
15485          { ac_try='test -s conftest$ac_exeext'
15486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487   (eval $ac_try) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; }; then
15491   ac_cv_func_NSLinkModule=yes
15492 else
15493   echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496 ac_cv_func_NSLinkModule=no
15497 fi
15498 rm -f conftest.err conftest.$ac_objext \
15499       conftest$ac_exeext conftest.$ac_ext
15500 fi
15501 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15502 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15503 if test $ac_cv_func_NSLinkModule = yes; then
15504   have_dl=dyld
15505 fi
15506
15507   fi
15508   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15509     have_dl=dlopen
15510   fi
15511   if test "$have_dl" = "no"; then
15512     echo "$as_me:$LINENO: checking for dlopen" >&5
15513 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15514 if test "${ac_cv_func_dlopen+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h.  */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h.  */
15523 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15525 #define dlopen innocuous_dlopen
15526
15527 /* System header to define __stub macros and hopefully few prototypes,
15528     which can conflict with char dlopen (); below.
15529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15530     <limits.h> exists even on freestanding compilers.  */
15531
15532 #ifdef __STDC__
15533 # include <limits.h>
15534 #else
15535 # include <assert.h>
15536 #endif
15537
15538 #undef dlopen
15539
15540 /* Override any gcc2 internal prototype to avoid an error.  */
15541 #ifdef __cplusplus
15542 extern "C"
15543 {
15544 #endif
15545 /* We use char because int might match the return type of a gcc2
15546    builtin and then its argument prototype would still apply.  */
15547 char dlopen ();
15548 /* The GNU C library defines this for functions which it implements
15549     to always fail with ENOSYS.  Some functions are actually named
15550     something starting with __ and the normal name is an alias.  */
15551 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15552 choke me
15553 #else
15554 char (*f) () = dlopen;
15555 #endif
15556 #ifdef __cplusplus
15557 }
15558 #endif
15559
15560 int
15561 main ()
15562 {
15563 return f != dlopen;
15564   ;
15565   return 0;
15566 }
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570   (eval $ac_link) 2>conftest.er1
15571   ac_status=$?
15572   grep -v '^ *+' conftest.er1 >conftest.err
15573   rm -f conftest.er1
15574   cat conftest.err >&5
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); } &&
15577          { ac_try='test -z "$ac_c_werror_flag"
15578                          || test ! -s conftest.err'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest$ac_exeext'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590   ac_cv_func_dlopen=yes
15591 else
15592   echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 ac_cv_func_dlopen=no
15596 fi
15597 rm -f conftest.err conftest.$ac_objext \
15598       conftest$ac_exeext conftest.$ac_ext
15599 fi
15600 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15601 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15602 if test $ac_cv_func_dlopen = yes; then
15603   have_dl=dlopen
15604 fi
15605
15606   fi
15607   if test "$have_dl" = "no"; then
15608     echo "$as_me:$LINENO: checking for dld_init" >&5
15609 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15610 if test "${ac_cv_func_dld_init+set}" = set; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613   cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h.  */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h.  */
15619 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15621 #define dld_init innocuous_dld_init
15622
15623 /* System header to define __stub macros and hopefully few prototypes,
15624     which can conflict with char dld_init (); below.
15625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15626     <limits.h> exists even on freestanding compilers.  */
15627
15628 #ifdef __STDC__
15629 # include <limits.h>
15630 #else
15631 # include <assert.h>
15632 #endif
15633
15634 #undef dld_init
15635
15636 /* Override any gcc2 internal prototype to avoid an error.  */
15637 #ifdef __cplusplus
15638 extern "C"
15639 {
15640 #endif
15641 /* We use char because int might match the return type of a gcc2
15642    builtin and then its argument prototype would still apply.  */
15643 char dld_init ();
15644 /* The GNU C library defines this for functions which it implements
15645     to always fail with ENOSYS.  Some functions are actually named
15646     something starting with __ and the normal name is an alias.  */
15647 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15648 choke me
15649 #else
15650 char (*f) () = dld_init;
15651 #endif
15652 #ifdef __cplusplus
15653 }
15654 #endif
15655
15656 int
15657 main ()
15658 {
15659 return f != dld_init;
15660   ;
15661   return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666   (eval $ac_link) 2>conftest.er1
15667   ac_status=$?
15668   grep -v '^ *+' conftest.er1 >conftest.err
15669   rm -f conftest.er1
15670   cat conftest.err >&5
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); } &&
15673          { ac_try='test -z "$ac_c_werror_flag"
15674                          || test ! -s conftest.err'
15675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676   (eval $ac_try) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; } &&
15680          { ac_try='test -s conftest$ac_exeext'
15681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682   (eval $ac_try) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); }; }; then
15686   ac_cv_func_dld_init=yes
15687 else
15688   echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_cv_func_dld_init=no
15692 fi
15693 rm -f conftest.err conftest.$ac_objext \
15694       conftest$ac_exeext conftest.$ac_ext
15695 fi
15696 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15697 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15698 if test $ac_cv_func_dld_init = yes; then
15699   have_dl=dld
15700 fi
15701
15702   fi
15703   if test "$have_dl" = "no"; then
15704     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15705 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15706 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15707   echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709   ac_check_lib_save_LIBS=$LIBS
15710 LIBS="-ldld  $LIBS"
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717
15718 /* Override any gcc2 internal prototype to avoid an error.  */
15719 #ifdef __cplusplus
15720 extern "C"
15721 #endif
15722 /* We use char because int might match the return type of a gcc2
15723    builtin and then its argument prototype would still apply.  */
15724 char dld_init ();
15725 int
15726 main ()
15727 {
15728 dld_init ();
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735   (eval $ac_link) 2>conftest.er1
15736   ac_status=$?
15737   grep -v '^ *+' conftest.er1 >conftest.err
15738   rm -f conftest.er1
15739   cat conftest.err >&5
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } &&
15742          { ac_try='test -z "$ac_c_werror_flag"
15743                          || test ! -s conftest.err'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; } &&
15749          { ac_try='test -s conftest$ac_exeext'
15750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751   (eval $ac_try) 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; }; then
15755   ac_cv_lib_dld_dld_init=yes
15756 else
15757   echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15759
15760 ac_cv_lib_dld_dld_init=no
15761 fi
15762 rm -f conftest.err conftest.$ac_objext \
15763       conftest$ac_exeext conftest.$ac_ext
15764 LIBS=$ac_check_lib_save_LIBS
15765 fi
15766 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15767 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15768 if test $ac_cv_lib_dld_dld_init = yes; then
15769   have_dl=dld;lib_dl_opt=-ldld
15770 fi
15771
15772   fi
15773
15774   echo "$as_me:$LINENO: checking dynamic link method" >&5
15775 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15776   case "$have_dl" in
15777     dlopen)
15778       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15779 echo "${ECHO_T}use dl_dlopen.c" >&6
15780       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15781       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15782 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15783 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15784   echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786   case "$ac_cv_header_dlfcn_h" in
15787 yes) i_dlfcn=define;;
15788 *)   i_dlfcn=undef;;
15789 esac
15790 cat > dyna.c <<EOM
15791 fred () { }
15792 EOM
15793
15794 cat > fred.c <<EOM
15795 #include <stdio.h>
15796 #$i_dlfcn I_DLFCN
15797 #ifdef I_DLFCN
15798 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15799 #else
15800 #include <sys/types.h>
15801 #include <nlist.h>
15802 #include <link.h>
15803 #endif
15804
15805 extern int fred() ;
15806
15807 main()
15808 {
15809     void * handle ;
15810     void * symbol ;
15811 #ifndef RTLD_LAZY
15812     int mode = 1 ;
15813 #else
15814     int mode = RTLD_LAZY ;
15815 #endif
15816     handle = dlopen("./dyna.$so", mode) ;
15817     if (handle == NULL) {
15818         printf ("1\n") ;
15819         fflush (stdout) ;
15820         exit(0);
15821     }
15822     symbol = dlsym(handle, "fred") ;
15823     if (symbol == NULL) {
15824         /* try putting a leading underscore */
15825         symbol = dlsym(handle, "_fred") ;
15826         if (symbol == NULL) {
15827             printf ("2\n") ;
15828             fflush (stdout) ;
15829             exit(0);
15830         }
15831         printf ("3\n") ;
15832     }
15833     else
15834         printf ("4\n") ;
15835     fflush (stdout) ;
15836     exit(0);
15837 }
15838 EOM
15839 : Call the object file tmp-dyna.o in case dlext=o.
15840 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15841         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15842         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15843         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15844         xxx=`./fred`
15845         case $xxx in
15846         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15847 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15848                 ;;
15849         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15850 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15851                 ;;
15852         3)      timidity_cv_func_dlsym_underscore=yes
15853                 ;;
15854         4)      timidity_cv_func_dlsym_underscore=no
15855                 ;;
15856         esac
15857 else
15858         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15859 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15860 fi
15861 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15862
15863 fi
15864
15865 case "x$timidity_cv_func_dlsym_underscore" in
15866 xyes)
15867 cat >>confdefs.h <<\_ACEOF
15868 #define DLSYM_NEEDS_UNDERSCORE 1
15869 _ACEOF
15870
15871         echo "$as_me:$LINENO: result: yes" >&5
15872 echo "${ECHO_T}yes" >&6
15873         ;;
15874 xno)
15875         echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6
15877         ;;
15878 esac
15879
15880       ;;
15881     dld)
15882       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15883 echo "${ECHO_T}use dl_dld.c" >&6
15884       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15885       ;;
15886     hpux)
15887       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15888 echo "${ECHO_T}use dl_hpux.c" >&6
15889       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15890       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15891       ;;
15892     w32)
15893       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15894 echo "${ECHO_T}use dl_w32.c" >&6
15895       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15896       ;;
15897     dyld)
15898       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15899 echo "${ECHO_T}use dl_dyld.c" >&6
15900       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15901       ;;
15902     *)
15903       NEEDDLOPEN="no"
15904       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15905 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15906       ;;
15907   esac
15908 fi
15909
15910 if test "$NEEDDLOPEN" = "yes"; then
15911   cat >> confdefs.h <<EOF
15912 #define IA_DYNAMIC 1
15913 EOF
15914
15915
15916 cat >>confdefs.h <<_ACEOF
15917 #define SHARED_LIB_EXT ".$so"
15918 _ACEOF
15919
15920       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15921 fi
15922
15923
15924
15925 if test "$NEEDDLOPEN" = "yes"; then
15926   NEEDDLOPEN_TRUE=
15927   NEEDDLOPEN_FALSE='#'
15928 else
15929   NEEDDLOPEN_TRUE='#'
15930   NEEDDLOPEN_FALSE=
15931 fi
15932
15933
15934
15935
15936
15937 if false; then
15938   ENABLE_NCURSES_TRUE=
15939   ENABLE_NCURSES_FALSE='#'
15940 else
15941   ENABLE_NCURSES_TRUE='#'
15942   ENABLE_NCURSES_FALSE=
15943 fi
15944
15945 # Check whether --enable-ncurses or --disable-ncurses was given.
15946 if test "${enable_ncurses+set}" = set; then
15947   enableval="$enable_ncurses"
15948   case "x$enable_ncurses" in xyes|xdynamic)
15949
15950
15951 for ac_header in ncurses.h ncurses/curses.h curses.h
15952 do
15953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15955   echo "$as_me:$LINENO: checking for $ac_header" >&5
15956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 fi
15960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15962 else
15963   # Is the header compilable?
15964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h.  */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h.  */
15972 $ac_includes_default
15973 #include <$ac_header>
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977   (eval $ac_compile) 2>conftest.er1
15978   ac_status=$?
15979   grep -v '^ *+' conftest.er1 >conftest.err
15980   rm -f conftest.er1
15981   cat conftest.err >&5
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } &&
15984          { ac_try='test -z "$ac_c_werror_flag"
15985                          || test ! -s conftest.err'
15986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987   (eval $ac_try) 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); }; } &&
15991          { ac_try='test -s conftest.$ac_objext'
15992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993   (eval $ac_try) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; }; then
15997   ac_header_compiler=yes
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002 ac_header_compiler=no
16003 fi
16004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16006 echo "${ECHO_T}$ac_header_compiler" >&6
16007
16008 # Is the header present?
16009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h.  */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h.  */
16017 #include <$ac_header>
16018 _ACEOF
16019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16021   ac_status=$?
16022   grep -v '^ *+' conftest.er1 >conftest.err
16023   rm -f conftest.er1
16024   cat conftest.err >&5
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); } >/dev/null; then
16027   if test -s conftest.err; then
16028     ac_cpp_err=$ac_c_preproc_warn_flag
16029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16030   else
16031     ac_cpp_err=
16032   fi
16033 else
16034   ac_cpp_err=yes
16035 fi
16036 if test -z "$ac_cpp_err"; then
16037   ac_header_preproc=yes
16038 else
16039   echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042   ac_header_preproc=no
16043 fi
16044 rm -f conftest.err conftest.$ac_ext
16045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046 echo "${ECHO_T}$ac_header_preproc" >&6
16047
16048 # So?  What about this header?
16049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16050   yes:no: )
16051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055     ac_header_preproc=yes
16056     ;;
16057   no:yes:* )
16058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16070     (
16071       cat <<\_ASBOX
16072 ## ------------------------------- ##
16073 ## Report this to root@mput.dip.jp ##
16074 ## ------------------------------- ##
16075 _ASBOX
16076     ) |
16077       sed "s/^/$as_me: WARNING:     /" >&2
16078     ;;
16079 esac
16080 echo "$as_me:$LINENO: checking for $ac_header" >&5
16081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085   eval "$as_ac_Header=\$ac_header_preproc"
16086 fi
16087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16089
16090 fi
16091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16092   cat >>confdefs.h <<_ACEOF
16093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16094 _ACEOF
16095
16096 fi
16097
16098 done
16099
16100
16101
16102   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
16103     *yes*);;
16104     *)  for i in /usr/include /usr/local/include; do
16105           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
16106             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
16107 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
16108             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
16109             break
16110           fi
16111         done
16112         ;;
16113     esac
16114
16115     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
16116 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
16117 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   ac_check_lib_save_LIBS=$LIBS
16121 LIBS="-lncurses  $LIBS"
16122 cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h.  */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h.  */
16128
16129 /* Override any gcc2 internal prototype to avoid an error.  */
16130 #ifdef __cplusplus
16131 extern "C"
16132 #endif
16133 /* We use char because int might match the return type of a gcc2
16134    builtin and then its argument prototype would still apply.  */
16135 char initscr ();
16136 int
16137 main ()
16138 {
16139 initscr ();
16140   ;
16141   return 0;
16142 }
16143 _ACEOF
16144 rm -f conftest.$ac_objext conftest$ac_exeext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16146   (eval $ac_link) 2>conftest.er1
16147   ac_status=$?
16148   grep -v '^ *+' conftest.er1 >conftest.err
16149   rm -f conftest.er1
16150   cat conftest.err >&5
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); } &&
16153          { ac_try='test -z "$ac_c_werror_flag"
16154                          || test ! -s conftest.err'
16155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156   (eval $ac_try) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; } &&
16160          { ac_try='test -s conftest$ac_exeext'
16161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162   (eval $ac_try) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; }; then
16166   ac_cv_lib_ncurses_initscr=yes
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171 ac_cv_lib_ncurses_initscr=no
16172 fi
16173 rm -f conftest.err conftest.$ac_objext \
16174       conftest$ac_exeext conftest.$ac_ext
16175 LIBS=$ac_check_lib_save_LIBS
16176 fi
16177 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16178 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
16179 if test $ac_cv_lib_ncurses_initscr = yes; then
16180   lib_curses_opt=-lncurses
16181 else
16182         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16183 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
16184 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16185   echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187   ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-lcurses $lib_user32_test $LIBS"
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195
16196 /* Override any gcc2 internal prototype to avoid an error.  */
16197 #ifdef __cplusplus
16198 extern "C"
16199 #endif
16200 /* We use char because int might match the return type of a gcc2
16201    builtin and then its argument prototype would still apply.  */
16202 char PDC_set_ctrl_break ();
16203 int
16204 main ()
16205 {
16206 PDC_set_ctrl_break ();
16207   ;
16208   return 0;
16209 }
16210 _ACEOF
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213   (eval $ac_link) 2>conftest.er1
16214   ac_status=$?
16215   grep -v '^ *+' conftest.er1 >conftest.err
16216   rm -f conftest.er1
16217   cat conftest.err >&5
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } &&
16220          { ac_try='test -z "$ac_c_werror_flag"
16221                          || test ! -s conftest.err'
16222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223   (eval $ac_try) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; } &&
16227          { ac_try='test -s conftest$ac_exeext'
16228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229   (eval $ac_try) 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); }; }; then
16233   ac_cv_lib_curses_PDC_set_ctrl_break=yes
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238 ac_cv_lib_curses_PDC_set_ctrl_break=no
16239 fi
16240 rm -f conftest.err conftest.$ac_objext \
16241       conftest$ac_exeext conftest.$ac_ext
16242 LIBS=$ac_check_lib_save_LIBS
16243 fi
16244 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16245 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
16246 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16247    lib_curses_opt=-lcurses
16248
16249 cat >>confdefs.h <<\_ACEOF
16250 #define USE_PDCURSES 1
16251 _ACEOF
16252
16253             lib_user32_opt="$lib_user32_test"
16254
16255 else
16256             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16257 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
16258 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16259   echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261   ac_check_lib_save_LIBS=$LIBS
16262 LIBS="-lpdcurses  $LIBS"
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269
16270 /* Override any gcc2 internal prototype to avoid an error.  */
16271 #ifdef __cplusplus
16272 extern "C"
16273 #endif
16274 /* We use char because int might match the return type of a gcc2
16275    builtin and then its argument prototype would still apply.  */
16276 char PDC_set_ctrl_break ();
16277 int
16278 main ()
16279 {
16280 PDC_set_ctrl_break ();
16281   ;
16282   return 0;
16283 }
16284 _ACEOF
16285 rm -f conftest.$ac_objext conftest$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287   (eval $ac_link) 2>conftest.er1
16288   ac_status=$?
16289   grep -v '^ *+' conftest.er1 >conftest.err
16290   rm -f conftest.er1
16291   cat conftest.err >&5
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); } &&
16294          { ac_try='test -z "$ac_c_werror_flag"
16295                          || test ! -s conftest.err'
16296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297   (eval $ac_try) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); }; } &&
16301          { ac_try='test -s conftest$ac_exeext'
16302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303   (eval $ac_try) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; }; then
16307   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16313 fi
16314 rm -f conftest.err conftest.$ac_objext \
16315       conftest$ac_exeext conftest.$ac_ext
16316 LIBS=$ac_check_lib_save_LIBS
16317 fi
16318 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16319 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16320 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16321    lib_curses_opt=-lpdcurses
16322
16323 cat >>confdefs.h <<\_ACEOF
16324 #define USE_PDCURSES 1
16325 _ACEOF
16326
16327               lib_user32_opt="$lib_user32_test"
16328
16329 else
16330               case "$target" in
16331                 *openbsd*)
16332                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16333 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16334 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16335   echo $ECHO_N "(cached) $ECHO_C" >&6
16336 else
16337   ac_check_lib_save_LIBS=$LIBS
16338 LIBS="-lcurses  $LIBS"
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h.  */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h.  */
16345
16346 /* Override any gcc2 internal prototype to avoid an error.  */
16347 #ifdef __cplusplus
16348 extern "C"
16349 #endif
16350 /* We use char because int might match the return type of a gcc2
16351    builtin and then its argument prototype would still apply.  */
16352 char initscr ();
16353 int
16354 main ()
16355 {
16356 initscr ();
16357   ;
16358   return 0;
16359 }
16360 _ACEOF
16361 rm -f conftest.$ac_objext conftest$ac_exeext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16363   (eval $ac_link) 2>conftest.er1
16364   ac_status=$?
16365   grep -v '^ *+' conftest.er1 >conftest.err
16366   rm -f conftest.er1
16367   cat conftest.err >&5
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); } &&
16370          { ac_try='test -z "$ac_c_werror_flag"
16371                          || test ! -s conftest.err'
16372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373   (eval $ac_try) 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); }; } &&
16377          { ac_try='test -s conftest$ac_exeext'
16378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379   (eval $ac_try) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); }; }; then
16383   ac_cv_lib_curses_initscr=yes
16384 else
16385   echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16387
16388 ac_cv_lib_curses_initscr=no
16389 fi
16390 rm -f conftest.err conftest.$ac_objext \
16391       conftest$ac_exeext conftest.$ac_ext
16392 LIBS=$ac_check_lib_save_LIBS
16393 fi
16394 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16395 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16396 if test $ac_cv_lib_curses_initscr = yes; then
16397   lib_curses_opt=-lcurses
16398 else
16399    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16400 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16401                       enable_ncurses=no
16402 fi
16403
16404                   ;;
16405                 *)
16406                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
16407                     lib_curses_opt=libpdcurses.lib
16408
16409 cat >>confdefs.h <<\_ACEOF
16410 #define USE_PDCURSES 1
16411 _ACEOF
16412
16413                   else
16414                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16415 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16416                     enable_ncurses=no
16417                   fi
16418                   ;;
16419               esac
16420
16421 fi
16422
16423
16424 fi
16425
16426
16427 fi
16428
16429    ;; esac
16430 fi;
16431 case "x$enable_ncurses" in
16432 xyes)
16433   cat >> confdefs.h <<EOF
16434 #define IA_NCURSES 1
16435 EOF
16436
16437
16438
16439 if true; then
16440   ENABLE_NCURSES_TRUE=
16441   ENABLE_NCURSES_FALSE='#'
16442 else
16443   ENABLE_NCURSES_TRUE='#'
16444   ENABLE_NCURSES_FALSE=
16445 fi
16446
16447    LIBS="$LIBS $lib_curses_opt"
16448     case "$target" in
16449        *-*-freebsd123*)
16450          EXTRALIBS="$EXTRALIBS -lmytinfo"
16451          ;;
16452      esac
16453     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16454
16455   ;;
16456 xdynamic)
16457   dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
16458    n_so_libs="$lib_curses_opt"
16459     case "$target" in
16460        *-*-freebsd123*)
16461          EXTRALIBS="$EXTRALIBS -lmytinfo"
16462          ;;
16463      esac
16464   ;;
16465 *)
16466
16467   ;;
16468 esac
16469
16470
16471
16472
16473
16474 if false; then
16475   ENABLE_SLANG_TRUE=
16476   ENABLE_SLANG_FALSE='#'
16477 else
16478   ENABLE_SLANG_TRUE='#'
16479   ENABLE_SLANG_FALSE=
16480 fi
16481
16482 # Check whether --enable-slang or --disable-slang was given.
16483 if test "${enable_slang+set}" = set; then
16484   enableval="$enable_slang"
16485   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16486 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16487 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lslang  $LIBS"
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h.  */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h.  */
16498
16499 /* Override any gcc2 internal prototype to avoid an error.  */
16500 #ifdef __cplusplus
16501 extern "C"
16502 #endif
16503 /* We use char because int might match the return type of a gcc2
16504    builtin and then its argument prototype would still apply.  */
16505 char SLang_init_tty ();
16506 int
16507 main ()
16508 {
16509 SLang_init_tty ();
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16516   (eval $ac_link) 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } &&
16523          { ac_try='test -z "$ac_c_werror_flag"
16524                          || test ! -s conftest.err'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; } &&
16530          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16536   ac_cv_lib_slang_SLang_init_tty=yes
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 ac_cv_lib_slang_SLang_init_tty=no
16542 fi
16543 rm -f conftest.err conftest.$ac_objext \
16544       conftest$ac_exeext conftest.$ac_ext
16545 LIBS=$ac_check_lib_save_LIBS
16546 fi
16547 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16548 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16549 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16550   :
16551 else
16552    enable_slang=no
16553       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16554 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16555
16556 fi
16557
16558
16559
16560 for ac_header in slang/slang.h slang.h
16561 do
16562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16564   echo "$as_me:$LINENO: checking for $ac_header" >&5
16565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 fi
16569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16571 else
16572   # Is the header compilable?
16573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 $ac_includes_default
16582 #include <$ac_header>
16583 _ACEOF
16584 rm -f conftest.$ac_objext
16585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16586   (eval $ac_compile) 2>conftest.er1
16587   ac_status=$?
16588   grep -v '^ *+' conftest.er1 >conftest.err
16589   rm -f conftest.er1
16590   cat conftest.err >&5
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); } &&
16593          { ac_try='test -z "$ac_c_werror_flag"
16594                          || test ! -s conftest.err'
16595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596   (eval $ac_try) 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; } &&
16600          { ac_try='test -s conftest.$ac_objext'
16601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602   (eval $ac_try) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; }; then
16606   ac_header_compiler=yes
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 ac_header_compiler=no
16612 fi
16613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615 echo "${ECHO_T}$ac_header_compiler" >&6
16616
16617 # Is the header present?
16618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h.  */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h.  */
16626 #include <$ac_header>
16627 _ACEOF
16628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } >/dev/null; then
16636   if test -s conftest.err; then
16637     ac_cpp_err=$ac_c_preproc_warn_flag
16638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16639   else
16640     ac_cpp_err=
16641   fi
16642 else
16643   ac_cpp_err=yes
16644 fi
16645 if test -z "$ac_cpp_err"; then
16646   ac_header_preproc=yes
16647 else
16648   echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16650
16651   ac_header_preproc=no
16652 fi
16653 rm -f conftest.err conftest.$ac_ext
16654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16655 echo "${ECHO_T}$ac_header_preproc" >&6
16656
16657 # So?  What about this header?
16658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16659   yes:no: )
16660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16664     ac_header_preproc=yes
16665     ;;
16666   no:yes:* )
16667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16679     (
16680       cat <<\_ASBOX
16681 ## ------------------------------- ##
16682 ## Report this to root@mput.dip.jp ##
16683 ## ------------------------------- ##
16684 _ASBOX
16685     ) |
16686       sed "s/^/$as_me: WARNING:     /" >&2
16687     ;;
16688 esac
16689 echo "$as_me:$LINENO: checking for $ac_header" >&5
16690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694   eval "$as_ac_Header=\$ac_header_preproc"
16695 fi
16696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16698
16699 fi
16700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16701   cat >>confdefs.h <<_ACEOF
16702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16703 _ACEOF
16704
16705 fi
16706
16707 done
16708
16709    ;; esac
16710 fi;
16711 case "x$enable_slang" in
16712 xyes)
16713   cat >> confdefs.h <<EOF
16714 #define IA_SLANG 1
16715 EOF
16716
16717
16718
16719 if true; then
16720   ENABLE_SLANG_TRUE=
16721   ENABLE_SLANG_FALSE='#'
16722 else
16723   ENABLE_SLANG_TRUE='#'
16724   ENABLE_SLANG_FALSE=
16725 fi
16726
16727    LIBS="$LIBS -lslang"
16728     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16729
16730   ;;
16731 xdynamic)
16732   dynamic_targets="$dynamic_targets if_slang.\$(so)"
16733    s_so_libs="-lslang"
16734     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16735 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16736 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   ac_check_lib_save_LIBS=$LIBS
16740 LIBS="-ltermcap  $LIBS"
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h.  */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h.  */
16747
16748 /* Override any gcc2 internal prototype to avoid an error.  */
16749 #ifdef __cplusplus
16750 extern "C"
16751 #endif
16752 /* We use char because int might match the return type of a gcc2
16753    builtin and then its argument prototype would still apply.  */
16754 char initscr ();
16755 int
16756 main ()
16757 {
16758 initscr ();
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765   (eval $ac_link) 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag"
16773                          || test ! -s conftest.err'
16774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775   (eval $ac_try) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; } &&
16779          { ac_try='test -s conftest$ac_exeext'
16780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781   (eval $ac_try) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785   ac_cv_lib_termcap_initscr=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790 ac_cv_lib_termcap_initscr=no
16791 fi
16792 rm -f conftest.err conftest.$ac_objext \
16793       conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16795 fi
16796 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16797 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16798 if test $ac_cv_lib_termcap_initscr = yes; then
16799   s_so_libs="$s_so_libs -ltermcap"
16800 fi
16801
16802
16803   ;;
16804 *)
16805
16806   ;;
16807 esac
16808
16809
16810
16811
16812
16813 if false; then
16814   ENABLE_MOTIF_TRUE=
16815   ENABLE_MOTIF_FALSE='#'
16816 else
16817   ENABLE_MOTIF_TRUE='#'
16818   ENABLE_MOTIF_FALSE=
16819 fi
16820
16821 # Check whether --enable-motif or --disable-motif was given.
16822 if test "${enable_motif+set}" = set; then
16823   enableval="$enable_motif"
16824   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16825         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16826 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16827    { (exit 1); exit 1; }; }
16828     fi
16829     if test "x$have_xm" != xyes; then
16830       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16831 echo "$as_me: WARNING: Motif library is not found." >&2;}
16832       enable_motif=no
16833     fi
16834    ;; esac
16835 fi;
16836 case "x$enable_motif" in
16837 xyes)
16838   cat >> confdefs.h <<EOF
16839 #define IA_MOTIF 1
16840 EOF
16841
16842
16843
16844 if true; then
16845   ENABLE_MOTIF_TRUE=
16846   ENABLE_MOTIF_FALSE='#'
16847 else
16848   ENABLE_MOTIF_TRUE='#'
16849   ENABLE_MOTIF_FALSE=
16850 fi
16851
16852    lib_xm_opt=-lXm
16853     lib_xt_opt=-lXt
16854     lib_xext_opt=-lXext
16855     if test "x$have_xprelibs" = xyes; then
16856         lib_xprelibs_opt='-lSM -lICE'
16857     fi
16858     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16859
16860   ;;
16861 xdynamic)
16862   dynamic_targets="$dynamic_targets if_motif.\$(so)"
16863    if test x$have_xprelibs = xyes; then
16864       m_so_libs="-lXext -lSM -lICE"
16865     fi
16866     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16867
16868   ;;
16869 *)
16870
16871   ;;
16872 esac
16873
16874
16875
16876
16877
16878 if false; then
16879   ENABLE_TCLTK_TRUE=
16880   ENABLE_TCLTK_FALSE='#'
16881 else
16882   ENABLE_TCLTK_TRUE='#'
16883   ENABLE_TCLTK_FALSE=
16884 fi
16885
16886 # Check whether --enable-tcltk or --disable-tcltk was given.
16887 if test "${enable_tcltk+set}" = set; then
16888   enableval="$enable_tcltk"
16889   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16890         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16891 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16892    { (exit 1); exit 1; }; }
16893     fi
16894
16895         KEEPCPPFLAGS=$CPPFLAGS
16896     KEEPLDFLAGS=$LDFLAGS
16897     KEEPLIBS=$LIBS
16898
16899     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16900     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16901     LIBS="$LIBS $lib_dl_opt"
16902
16903     tcl_lib=
16904     tk_lib=
16905     for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16906       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16907 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16908 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16909 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16910   echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912   ac_check_lib_save_LIBS=$LIBS
16913 LIBS="-l$l  $LIBS"
16914 cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920
16921 /* Override any gcc2 internal prototype to avoid an error.  */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 /* We use char because int might match the return type of a gcc2
16926    builtin and then its argument prototype would still apply.  */
16927 char Tcl_Init ();
16928 int
16929 main ()
16930 {
16931 Tcl_Init ();
16932   ;
16933   return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938   (eval $ac_link) 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag"
16946                          || test ! -s conftest.err'
16947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948   (eval $ac_try) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; } &&
16952          { ac_try='test -s conftest$ac_exeext'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; }; then
16958   eval "$as_ac_Lib=yes"
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963 eval "$as_ac_Lib=no"
16964 fi
16965 rm -f conftest.err conftest.$ac_objext \
16966       conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16968 fi
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16971 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16972   tcl_lib=-l$l
16973 fi
16974 ;; esac
16975     done
16976     LIBS="$LIBS $tcl_lib"
16977     for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16978       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16979 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16980 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16981 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984   ac_check_lib_save_LIBS=$LIBS
16985 LIBS="-l$l  $LIBS"
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992
16993 /* Override any gcc2 internal prototype to avoid an error.  */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 /* We use char because int might match the return type of a gcc2
16998    builtin and then its argument prototype would still apply.  */
16999 char Tk_Init ();
17000 int
17001 main ()
17002 {
17003 Tk_Init ();
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17010   (eval $ac_link) 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -z "$ac_c_werror_flag"
17018                          || test ! -s conftest.err'
17019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020   (eval $ac_try) 2>&5
17021   ac_status=$?
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); }; } &&
17024          { ac_try='test -s conftest$ac_exeext'
17025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026   (eval $ac_try) 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; }; then
17030   eval "$as_ac_Lib=yes"
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 eval "$as_ac_Lib=no"
17036 fi
17037 rm -f conftest.err conftest.$ac_objext \
17038       conftest$ac_exeext conftest.$ac_ext
17039 LIBS=$ac_check_lib_save_LIBS
17040 fi
17041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17042 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17043 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17044   tk_lib=-l$l
17045 fi
17046 ;; esac
17047     done
17048
17049     LIBS=$KEEPLIBS
17050     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
17051       CPPFLAGS=$KEEPCPPFLAGS
17052       LDFLAGS=$KEEPLDFLAGS
17053       enable_tcltk=no
17054       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
17055 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
17056     else
17057       tcltk_dep='tclIndex'
17058     fi
17059    ;; esac
17060 fi;
17061 case "x$enable_tcltk" in
17062 xyes)
17063   cat >> confdefs.h <<EOF
17064 #define IA_TCLTK 1
17065 EOF
17066
17067
17068
17069 if true; then
17070   ENABLE_TCLTK_TRUE=
17071   ENABLE_TCLTK_FALSE='#'
17072 else
17073   ENABLE_TCLTK_TRUE='#'
17074   ENABLE_TCLTK_FALSE=
17075 fi
17076
17077    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
17078     case "$target" in
17079       *-*-bsdi*)
17080         EXTRALIBS="$EXTRALIBS -lipc"
17081         ;;
17082     esac
17083     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
17084
17085   ;;
17086 xdynamic)
17087   dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
17088    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
17089     case "$target" in
17090       *-*-bsdi*)
17091         k_so_libs="$k_so_libs -lipc"
17092         ;;
17093     esac
17094     k_so_libs="$k_so_libs -lX11 -lm"
17095
17096   ;;
17097 *)
17098
17099   ;;
17100 esac
17101
17102
17103
17104
17105 if test "x$enable_tcltk" = "xdynamic"; then
17106   ENABLE_DYNAMIC_TCLTK_TRUE=
17107   ENABLE_DYNAMIC_TCLTK_FALSE='#'
17108 else
17109   ENABLE_DYNAMIC_TCLTK_TRUE='#'
17110   ENABLE_DYNAMIC_TCLTK_FALSE=
17111 fi
17112
17113
17114
17115
17116 if false; then
17117   ENABLE_EMACS_TRUE=
17118   ENABLE_EMACS_FALSE='#'
17119 else
17120   ENABLE_EMACS_TRUE='#'
17121   ENABLE_EMACS_FALSE=
17122 fi
17123
17124 # Check whether --enable-emacs or --disable-emacs was given.
17125 if test "${enable_emacs+set}" = set; then
17126   enableval="$enable_emacs"
17127   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
17128 fi;
17129 case "x$enable_emacs" in
17130 xyes)
17131   cat >> confdefs.h <<EOF
17132 #define IA_EMACS 1
17133 EOF
17134
17135
17136
17137 if true; then
17138   ENABLE_EMACS_TRUE=
17139   ENABLE_EMACS_FALSE='#'
17140 else
17141   ENABLE_EMACS_TRUE='#'
17142   ENABLE_EMACS_FALSE=
17143 fi
17144
17145    ELFILES="$ELFILES timidity.el"
17146     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
17147
17148   ;;
17149 xdynamic)
17150   dynamic_targets="$dynamic_targets if_emacs.\$(so)"
17151    ELFILES="$ELFILES timidity.el"
17152   ;;
17153 *)
17154
17155   ;;
17156 esac
17157
17158
17159
17160
17161
17162 if false; then
17163   ENABLE_VT100_TRUE=
17164   ENABLE_VT100_FALSE='#'
17165 else
17166   ENABLE_VT100_TRUE='#'
17167   ENABLE_VT100_FALSE=
17168 fi
17169
17170 # Check whether --enable-vt100 or --disable-vt100 was given.
17171 if test "${enable_vt100+set}" = set; then
17172   enableval="$enable_vt100"
17173   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
17174 fi;
17175 case "x$enable_vt100" in
17176 xyes)
17177   cat >> confdefs.h <<EOF
17178 #define IA_VT100 1
17179 EOF
17180
17181
17182
17183 if true; then
17184   ENABLE_VT100_TRUE=
17185   ENABLE_VT100_FALSE='#'
17186 else
17187   ENABLE_VT100_TRUE='#'
17188   ENABLE_VT100_FALSE=
17189 fi
17190
17191    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17192   ;;
17193 xdynamic)
17194   dynamic_targets="$dynamic_targets if_vt100.\$(so)"
17195
17196   ;;
17197 *)
17198
17199   ;;
17200 esac
17201
17202
17203
17204
17205
17206 if false; then
17207   ENABLE_XAW_TRUE=
17208   ENABLE_XAW_FALSE='#'
17209 else
17210   ENABLE_XAW_TRUE='#'
17211   ENABLE_XAW_FALSE=
17212 fi
17213
17214 # Check whether --enable-xaw or --disable-xaw was given.
17215 if test "${enable_xaw+set}" = set; then
17216   enableval="$enable_xaw"
17217   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17218         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17219 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17220    { (exit 1); exit 1; }; }
17221     fi
17222     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17223       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17224 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17225       enable_xaw=no
17226     fi  ;; esac
17227 fi;
17228 case "x$enable_xaw" in
17229 xyes)
17230   cat >> confdefs.h <<EOF
17231 #define IA_XAW 1
17232 EOF
17233
17234
17235
17236 if true; then
17237   ENABLE_XAW_TRUE=
17238   ENABLE_XAW_FALSE='#'
17239 else
17240   ENABLE_XAW_TRUE='#'
17241   ENABLE_XAW_FALSE=
17242 fi
17243
17244        if test "x$have_xext" = xyes; then
17245       lib_xext_opt=-lXext
17246     fi
17247     if test "x$have_xprelibs" = xyes; then
17248       lib_xprelibs_opt='-lSM -lICE'
17249     fi
17250     lib_xmu_opt=-lXmu
17251     lib_xt_opt=-lXt
17252     if test "x$have_xaw" = x3d; then
17253
17254 cat >>confdefs.h <<\_ACEOF
17255 #define XAW3D 1
17256 _ACEOF
17257
17258       lib_xaw_opt=-lXaw3d
17259     else
17260       lib_xaw_opt=-lXaw
17261     fi
17262     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17263
17264   ;;
17265 xdynamic)
17266   dynamic_targets="$dynamic_targets if_xaw.\$(so)"
17267    if test "x$have_xext" = xyes; then
17268       a_so_libs="-lXext -lX11"
17269     else
17270       a_so_libs="-lX11"
17271     fi
17272     case "$target" in
17273       *darwin*)
17274         a_so_libs="$a_so_libs -lcc_dynamic"
17275         ;;
17276     esac
17277     if test "x$have_xprelibs" = xyes; then
17278       a_so_libs="-lSM -lICE $a_so_libs"
17279     fi
17280     if test "x$have_xaw" = xyes; then
17281       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17282     elif test "x$have_xaw" = x3d; then
17283
17284 cat >>confdefs.h <<\_ACEOF
17285 #define XAW3D 1
17286 _ACEOF
17287
17288       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17289     fi
17290     a_so_libs="$ldflags_x_opt $a_so_libs"
17291
17292   ;;
17293 *)
17294
17295   ;;
17296 esac
17297
17298
17299
17300
17301 if test "x$enable_xaw" = "xdynamic"; then
17302   ENABLE_DYNAMIC_XAW_TRUE=
17303   ENABLE_DYNAMIC_XAW_FALSE='#'
17304 else
17305   ENABLE_DYNAMIC_XAW_TRUE='#'
17306   ENABLE_DYNAMIC_XAW_FALSE=
17307 fi
17308
17309
17310
17311
17312 if false; then
17313   ENABLE_XSKIN_TRUE=
17314   ENABLE_XSKIN_FALSE='#'
17315 else
17316   ENABLE_XSKIN_TRUE='#'
17317   ENABLE_XSKIN_FALSE=
17318 fi
17319
17320 # Check whether --enable-xskin or --disable-xskin was given.
17321 if test "${enable_xskin+set}" = set; then
17322   enableval="$enable_xskin"
17323   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17324         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17325 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17326    { (exit 1); exit 1; }; }
17327     fi
17328    ;; esac
17329 fi;
17330 case "x$enable_xskin" in
17331 xyes)
17332   cat >> confdefs.h <<EOF
17333 #define IA_XSKIN 1
17334 EOF
17335
17336
17337
17338 if true; then
17339   ENABLE_XSKIN_TRUE=
17340   ENABLE_XSKIN_FALSE='#'
17341 else
17342   ENABLE_XSKIN_TRUE='#'
17343   ENABLE_XSKIN_FALSE=
17344 fi
17345
17346    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17347   ;;
17348 xdynamic)
17349   dynamic_targets="$dynamic_targets if_xskin.\$(so)"
17350    i_so_libs="$ldflags_x_opt -lX11"
17351   ;;
17352 *)
17353
17354   ;;
17355 esac
17356
17357
17358
17359
17360
17361 if false; then
17362   ENABLE_GTK_TRUE=
17363   ENABLE_GTK_FALSE='#'
17364 else
17365   ENABLE_GTK_TRUE='#'
17366   ENABLE_GTK_FALSE=
17367 fi
17368
17369 # Check whether --enable-gtk or --disable-gtk was given.
17370 if test "${enable_gtk+set}" = set; then
17371   enableval="$enable_gtk"
17372   case "x$enable_gtk" in xyes|xdynamic)  # Check whether --enable-gtktest or --disable-gtktest was given.
17373 if test "${enable_gtktest+set}" = set; then
17374   enableval="$enable_gtktest"
17375
17376 else
17377   enable_gtktest=yes
17378 fi;
17379
17380   pkg_config_args=gtk+-2.0
17381   for module in .
17382   do
17383       case "$module" in
17384          gthread)
17385              pkg_config_args="$pkg_config_args gthread-2.0"
17386          ;;
17387       esac
17388   done
17389
17390   no_gtk=""
17391
17392   # Extract the first word of "pkg-config", so it can be a program name with args.
17393 set dummy pkg-config; ac_word=$2
17394 echo "$as_me:$LINENO: checking for $ac_word" >&5
17395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17396 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17397   echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399   case $PKG_CONFIG in
17400   [\\/]* | ?:[\\/]*)
17401   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17402   ;;
17403   *)
17404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17405 for as_dir in $PATH
17406 do
17407   IFS=$as_save_IFS
17408   test -z "$as_dir" && as_dir=.
17409   for ac_exec_ext in '' $ac_executable_extensions; do
17410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17411     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17413     break 2
17414   fi
17415 done
17416 done
17417
17418   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17419   ;;
17420 esac
17421 fi
17422 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17423
17424 if test -n "$PKG_CONFIG"; then
17425   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17426 echo "${ECHO_T}$PKG_CONFIG" >&6
17427 else
17428   echo "$as_me:$LINENO: result: no" >&5
17429 echo "${ECHO_T}no" >&6
17430 fi
17431
17432
17433   if test x$PKG_CONFIG != xno ; then
17434     if pkg-config --atleast-pkgconfig-version 0.7 ; then
17435       :
17436     else
17437       echo *** pkg-config too old; version 0.7 or better required.
17438       no_gtk=yes
17439       PKG_CONFIG=no
17440     fi
17441   else
17442     no_gtk=yes
17443   fi
17444
17445   min_gtk_version=2.0.0
17446   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17447 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
17448
17449   if test x$PKG_CONFIG != xno ; then
17450     ## don't try to run the test against uninstalled libtool libs
17451     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17452           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17453           enable_gtktest=no
17454     fi
17455
17456     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17457           :
17458     else
17459           no_gtk=yes
17460     fi
17461   fi
17462
17463   if test x"$no_gtk" = x ; then
17464     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17465     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17466     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17467            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17468     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17469            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17470     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17471            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17472     if test "x$enable_gtktest" = "xyes" ; then
17473       ac_save_CFLAGS="$CFLAGS"
17474       ac_save_LIBS="$LIBS"
17475       CFLAGS="$CFLAGS $GTK_CFLAGS"
17476       LIBS="$GTK_LIBS $LIBS"
17477       rm -f conf.gtktest
17478       if test "$cross_compiling" = yes; then
17479   echo $ac_n "cross compiling; assumed OK... $ac_c"
17480 else
17481   cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487
17488 #include <gtk/gtk.h>
17489 #include <stdio.h>
17490 #include <stdlib.h>
17491
17492 int
17493 main ()
17494 {
17495   int major, minor, micro;
17496   char *tmp_version;
17497
17498   system ("touch conf.gtktest");
17499
17500   /* HP/UX 9 (%@#!) writes to sscanf strings */
17501   tmp_version = g_strdup("$min_gtk_version");
17502   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17503      printf("%s, bad version string\n", "$min_gtk_version");
17504      exit(1);
17505    }
17506
17507   if ((gtk_major_version != $gtk_config_major_version) ||
17508       (gtk_minor_version != $gtk_config_minor_version) ||
17509       (gtk_micro_version != $gtk_config_micro_version))
17510     {
17511       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17512              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17513              gtk_major_version, gtk_minor_version, gtk_micro_version);
17514       printf ("*** was found! If pkg-config was correct, then it is best\n");
17515       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17516       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17517       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17518       printf("*** required on your system.\n");
17519       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17520       printf("*** to point to the correct configuration files\n");
17521     }
17522   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17523            (gtk_minor_version != GTK_MINOR_VERSION) ||
17524            (gtk_micro_version != GTK_MICRO_VERSION))
17525     {
17526       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17527              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17528       printf("*** library (version %d.%d.%d)\n",
17529              gtk_major_version, gtk_minor_version, gtk_micro_version);
17530     }
17531   else
17532     {
17533       if ((gtk_major_version > major) ||
17534         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17535         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17536       {
17537         return 0;
17538        }
17539      else
17540       {
17541         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17542                gtk_major_version, gtk_minor_version, gtk_micro_version);
17543         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17544                major, minor, micro);
17545         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17546         printf("***\n");
17547         printf("*** If you have already installed a sufficiently new version, this error\n");
17548         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17549         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17550         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17551         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17552         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17553         printf("*** so that the correct libraries are found at run-time))\n");
17554       }
17555     }
17556   return 1;
17557 }
17558
17559 _ACEOF
17560 rm -f conftest$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562   (eval $ac_link) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; }; then
17571   :
17572 else
17573   echo "$as_me: program exited with status $ac_status" >&5
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 ( exit $ac_status )
17578 no_gtk=yes
17579 fi
17580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17581 fi
17582        CFLAGS="$ac_save_CFLAGS"
17583        LIBS="$ac_save_LIBS"
17584      fi
17585   fi
17586   if test "x$no_gtk" = x ; then
17587      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17588 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17589
17590 cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_GTK_2 1
17592 _ACEOF
17593
17594   else
17595      echo "$as_me:$LINENO: result: no" >&5
17596 echo "${ECHO_T}no" >&6
17597      if test "$PKG_CONFIG" = "no" ; then
17598        echo "*** A new enough version of pkg-config was not found."
17599        echo "*** See http://pkgconfig.sourceforge.net"
17600      else
17601        if test -f conf.gtktest ; then
17602         :
17603        else
17604           echo "*** Could not run GTK+ test program, checking why..."
17605           ac_save_CFLAGS="$CFLAGS"
17606           ac_save_LIBS="$LIBS"
17607           CFLAGS="$CFLAGS $GTK_CFLAGS"
17608           LIBS="$LIBS $GTK_LIBS"
17609           cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h.  */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h.  */
17615
17616 #include <gtk/gtk.h>
17617 #include <stdio.h>
17618
17619 int
17620 main ()
17621 {
17622  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629   (eval $ac_link) 2>conftest.er1
17630   ac_status=$?
17631   grep -v '^ *+' conftest.er1 >conftest.err
17632   rm -f conftest.er1
17633   cat conftest.err >&5
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); } &&
17636          { ac_try='test -z "$ac_c_werror_flag"
17637                          || test ! -s conftest.err'
17638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639   (eval $ac_try) 2>&5
17640   ac_status=$?
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); }; } &&
17643          { ac_try='test -s conftest$ac_exeext'
17644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645   (eval $ac_try) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; }; then
17649    echo "*** The test program compiled, but did not run. This usually means"
17650           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17651           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17652           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17653           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17654           echo "*** is required on your system"
17655           echo "***"
17656           echo "*** If you have an old version installed, it is best to remove it, although"
17657           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662  echo "*** The test program failed to compile or link. See the file config.log for the"
17663           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17664 fi
17665 rm -f conftest.err conftest.$ac_objext \
17666       conftest$ac_exeext conftest.$ac_ext
17667           CFLAGS="$ac_save_CFLAGS"
17668           LIBS="$ac_save_LIBS"
17669        fi
17670      fi
17671      GTK_CFLAGS=""
17672      GTK_LIBS=""
17673
17674 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17675 if test "${with_gtk_prefix+set}" = set; then
17676   withval="$with_gtk_prefix"
17677   gtk_config_prefix="$withval"
17678 else
17679   gtk_config_prefix=""
17680 fi;
17681
17682 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17683 if test "${with_gtk_exec_prefix+set}" = set; then
17684   withval="$with_gtk_exec_prefix"
17685   gtk_config_exec_prefix="$withval"
17686 else
17687   gtk_config_exec_prefix=""
17688 fi;
17689 # Check whether --enable-gtktest or --disable-gtktest was given.
17690 if test "${enable_gtktest+set}" = set; then
17691   enableval="$enable_gtktest"
17692
17693 else
17694   enable_gtktest=yes
17695 fi;
17696
17697   for module in .
17698   do
17699       case "$module" in
17700          gthread)
17701              gtk_config_args="$gtk_config_args gthread"
17702          ;;
17703       esac
17704   done
17705
17706   if test x$gtk_config_exec_prefix != x ; then
17707      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17708      if test x${GTK_CONFIG+set} != xset ; then
17709         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17710      fi
17711   fi
17712   if test x$gtk_config_prefix != x ; then
17713      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17714      if test x${GTK_CONFIG+set} != xset ; then
17715         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17716      fi
17717   fi
17718
17719   # Extract the first word of "gtk-config", so it can be a program name with args.
17720 set dummy gtk-config; ac_word=$2
17721 echo "$as_me:$LINENO: checking for $ac_word" >&5
17722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17723 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17724   echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726   case $GTK_CONFIG in
17727   [\\/]* | ?:[\\/]*)
17728   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17729   ;;
17730   *)
17731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17732 for as_dir in $PATH
17733 do
17734   IFS=$as_save_IFS
17735   test -z "$as_dir" && as_dir=.
17736   for ac_exec_ext in '' $ac_executable_extensions; do
17737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17738     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17740     break 2
17741   fi
17742 done
17743 done
17744
17745   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17746   ;;
17747 esac
17748 fi
17749 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17750
17751 if test -n "$GTK_CONFIG"; then
17752   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17753 echo "${ECHO_T}$GTK_CONFIG" >&6
17754 else
17755   echo "$as_me:$LINENO: result: no" >&5
17756 echo "${ECHO_T}no" >&6
17757 fi
17758
17759   min_gtk_version=1.1.3
17760   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17761 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17762   no_gtk=""
17763   if test "$GTK_CONFIG" = "no" ; then
17764     no_gtk=yes
17765   else
17766     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17767     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17768     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17769            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17770     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17771            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17772     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17773            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17774     if test "x$enable_gtktest" = "xyes" ; then
17775       ac_save_CFLAGS="$CFLAGS"
17776       ac_save_LIBS="$LIBS"
17777       CFLAGS="$CFLAGS $GTK_CFLAGS"
17778       LIBS="$GTK_LIBS $LIBS"
17779       rm -f conf.gtktest
17780       if test "$cross_compiling" = yes; then
17781   echo $ac_n "cross compiling; assumed OK... $ac_c"
17782 else
17783   cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h.  */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h.  */
17789
17790 #include <gtk/gtk.h>
17791 #include <stdio.h>
17792 #include <stdlib.h>
17793
17794 int
17795 main ()
17796 {
17797   int major, minor, micro;
17798   char *tmp_version;
17799
17800   system ("touch conf.gtktest");
17801
17802   /* HP/UX 9 (%@#!) writes to sscanf strings */
17803   tmp_version = g_strdup("$min_gtk_version");
17804   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17805      printf("%s, bad version string\n", "$min_gtk_version");
17806      exit(1);
17807    }
17808
17809   if ((gtk_major_version != $gtk_config_major_version) ||
17810       (gtk_minor_version != $gtk_config_minor_version) ||
17811       (gtk_micro_version != $gtk_config_micro_version))
17812     {
17813       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17814              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17815              gtk_major_version, gtk_minor_version, gtk_micro_version);
17816       printf ("*** was found! If gtk-config was correct, then it is best\n");
17817       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17818       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17819       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17820       printf("*** required on your system.\n");
17821       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17822       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17823       printf("*** before re-running configure\n");
17824     }
17825 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17826   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17827            (gtk_minor_version != GTK_MINOR_VERSION) ||
17828            (gtk_micro_version != GTK_MICRO_VERSION))
17829     {
17830       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17831              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17832       printf("*** library (version %d.%d.%d)\n",
17833              gtk_major_version, gtk_minor_version, gtk_micro_version);
17834     }
17835 #endif /* defined (GTK_MAJOR_VERSION) ... */
17836   else
17837     {
17838       if ((gtk_major_version > major) ||
17839         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17840         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17841       {
17842         return 0;
17843        }
17844      else
17845       {
17846         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17847                gtk_major_version, gtk_minor_version, gtk_micro_version);
17848         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17849                major, minor, micro);
17850         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17851         printf("***\n");
17852         printf("*** If you have already installed a sufficiently new version, this error\n");
17853         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17854         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17855         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17856         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17857         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17858         printf("*** so that the correct libraries are found at run-time))\n");
17859       }
17860     }
17861   return 1;
17862 }
17863
17864 _ACEOF
17865 rm -f conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867   (eval $ac_link) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872   (eval $ac_try) 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; }; then
17876   :
17877 else
17878   echo "$as_me: program exited with status $ac_status" >&5
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 ( exit $ac_status )
17883 no_gtk=yes
17884 fi
17885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17886 fi
17887        CFLAGS="$ac_save_CFLAGS"
17888        LIBS="$ac_save_LIBS"
17889      fi
17890   fi
17891   if test "x$no_gtk" = x ; then
17892      echo "$as_me:$LINENO: result: yes" >&5
17893 echo "${ECHO_T}yes" >&6
17894      :
17895   else
17896      echo "$as_me:$LINENO: result: no" >&5
17897 echo "${ECHO_T}no" >&6
17898      if test "$GTK_CONFIG" = "no" ; then
17899        echo "*** The gtk-config script installed by GTK could not be found"
17900        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17901        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17902        echo "*** full path to gtk-config."
17903      else
17904        if test -f conf.gtktest ; then
17905         :
17906        else
17907           echo "*** Could not run GTK test program, checking why..."
17908           CFLAGS="$CFLAGS $GTK_CFLAGS"
17909           LIBS="$LIBS $GTK_LIBS"
17910           cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916
17917 #include <gtk/gtk.h>
17918 #include <stdio.h>
17919
17920 int
17921 main ()
17922 {
17923  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17924   ;
17925   return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930   (eval $ac_link) 2>conftest.er1
17931   ac_status=$?
17932   grep -v '^ *+' conftest.er1 >conftest.err
17933   rm -f conftest.er1
17934   cat conftest.err >&5
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } &&
17937          { ac_try='test -z "$ac_c_werror_flag"
17938                          || test ! -s conftest.err'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest$ac_exeext'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; }; then
17950    echo "*** The test program compiled, but did not run. This usually means"
17951           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17952           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17953           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17954           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17955           echo "*** is required on your system"
17956           echo "***"
17957           echo "*** If you have an old version installed, it is best to remove it, although"
17958           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17959           echo "***"
17960           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17961           echo "*** came with the system with the command"
17962           echo "***"
17963           echo "***    rpm --erase --nodeps gtk gtk-devel"
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968  echo "*** The test program failed to compile or link. See the file config.log for the"
17969           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17970           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17971           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17972 fi
17973 rm -f conftest.err conftest.$ac_objext \
17974       conftest$ac_exeext conftest.$ac_ext
17975           CFLAGS="$ac_save_CFLAGS"
17976           LIBS="$ac_save_LIBS"
17977        fi
17978      fi
17979      GTK_CFLAGS=""
17980      GTK_LIBS=""
17981      enable_gtk=no
17982   fi
17983
17984
17985   rm -f conf.gtktest
17986
17987   fi
17988
17989
17990   rm -f conf.gtktest
17991   ;; esac
17992 fi;
17993 case "x$enable_gtk" in
17994 xyes)
17995   cat >> confdefs.h <<EOF
17996 #define IA_GTK 1
17997 EOF
17998
17999
18000
18001 if true; then
18002   ENABLE_GTK_TRUE=
18003   ENABLE_GTK_FALSE='#'
18004 else
18005   ENABLE_GTK_TRUE='#'
18006   ENABLE_GTK_FALSE=
18007 fi
18008
18009    LIBS="$LIBS $GTK_LIBS"
18010     for f in $GTK_CFLAGS; do
18011     case ".$f" in
18012         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
18013         *)              CFLAGS="$CPPFLAGS $f" ;;
18014     esac
18015 done
18016
18017     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
18018
18019   ;;
18020 xdynamic)
18021   dynamic_targets="$dynamic_targets if_gtk.\$(so)"
18022    if test "x$GCC" = xyes; then
18023                 for i in $GTK_LIBS; do
18024             case "x$i" in
18025                 x-rdynamic) ;;
18026                 *) g_so_libs="$g_so_libs $i" ;;
18027             esac
18028         done
18029     else
18030         g_so_libs="$GTK_LIBS"
18031     fi
18032     for f in $GTK_CFLAGS; do
18033     case ".$f" in
18034         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
18035         *)              CFLAGS="$CPPFLAGS $f" ;;
18036     esac
18037 done
18038
18039   ;;
18040 *)
18041
18042   ;;
18043 esac
18044
18045
18046
18047
18048
18049 if false; then
18050   ENABLE_SERVER_TRUE=
18051   ENABLE_SERVER_FALSE='#'
18052 else
18053   ENABLE_SERVER_TRUE='#'
18054   ENABLE_SERVER_FALSE=
18055 fi
18056
18057 # Check whether --enable-server or --disable-server was given.
18058 if test "${enable_server+set}" = set; then
18059   enableval="$enable_server"
18060   case "x$enable_server" in xyes|xdynamic)  ;; esac
18061 fi;
18062 case "x$enable_server" in
18063 xyes)
18064   cat >> confdefs.h <<EOF
18065 #define IA_SERVER 1
18066 EOF
18067
18068
18069
18070 if true; then
18071   ENABLE_SERVER_TRUE=
18072   ENABLE_SERVER_FALSE='#'
18073 else
18074   ENABLE_SERVER_TRUE='#'
18075   ENABLE_SERVER_FALSE=
18076 fi
18077
18078    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
18079
18080 for ac_header in sys/soundcard.h
18081 do
18082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18084   echo "$as_me:$LINENO: checking for $ac_header" >&5
18085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 fi
18089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18091 else
18092   # Is the header compilable?
18093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18095 cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 $ac_includes_default
18102 #include <$ac_header>
18103 _ACEOF
18104 rm -f conftest.$ac_objext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18106   (eval $ac_compile) 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag"
18114                          || test ! -s conftest.err'
18115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116   (eval $ac_try) 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; } &&
18120          { ac_try='test -s conftest.$ac_objext'
18121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122   (eval $ac_try) 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }; }; then
18126   ac_header_compiler=yes
18127 else
18128   echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131 ac_header_compiler=no
18132 fi
18133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18135 echo "${ECHO_T}$ac_header_compiler" >&6
18136
18137 # Is the header present?
18138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18140 cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 #include <$ac_header>
18147 _ACEOF
18148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18150   ac_status=$?
18151   grep -v '^ *+' conftest.er1 >conftest.err
18152   rm -f conftest.er1
18153   cat conftest.err >&5
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); } >/dev/null; then
18156   if test -s conftest.err; then
18157     ac_cpp_err=$ac_c_preproc_warn_flag
18158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18159   else
18160     ac_cpp_err=
18161   fi
18162 else
18163   ac_cpp_err=yes
18164 fi
18165 if test -z "$ac_cpp_err"; then
18166   ac_header_preproc=yes
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171   ac_header_preproc=no
18172 fi
18173 rm -f conftest.err conftest.$ac_ext
18174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18175 echo "${ECHO_T}$ac_header_preproc" >&6
18176
18177 # So?  What about this header?
18178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18179   yes:no: )
18180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18184     ac_header_preproc=yes
18185     ;;
18186   no:yes:* )
18187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18199     (
18200       cat <<\_ASBOX
18201 ## ------------------------------- ##
18202 ## Report this to root@mput.dip.jp ##
18203 ## ------------------------------- ##
18204 _ASBOX
18205     ) |
18206       sed "s/^/$as_me: WARNING:     /" >&2
18207     ;;
18208 esac
18209 echo "$as_me:$LINENO: checking for $ac_header" >&5
18210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   eval "$as_ac_Header=\$ac_header_preproc"
18215 fi
18216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18218
18219 fi
18220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18221   cat >>confdefs.h <<_ACEOF
18222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18223 _ACEOF
18224
18225 fi
18226
18227 done
18228
18229
18230   ;;
18231 xdynamic)
18232   dynamic_targets="$dynamic_targets if_server.\$(so)"
18233
18234   ;;
18235 *)
18236
18237   ;;
18238 esac
18239
18240
18241
18242
18243
18244 if false; then
18245   ENABLE_ALSASEQ_TRUE=
18246   ENABLE_ALSASEQ_FALSE='#'
18247 else
18248   ENABLE_ALSASEQ_TRUE='#'
18249   ENABLE_ALSASEQ_FALSE=
18250 fi
18251
18252 # Check whether --enable-alsaseq or --disable-alsaseq was given.
18253 if test "${enable_alsaseq+set}" = set; then
18254   enableval="$enable_alsaseq"
18255   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
18256 fi;
18257 case "x$enable_alsaseq" in
18258 xyes)
18259   cat >> confdefs.h <<EOF
18260 #define IA_ALSASEQ 1
18261 EOF
18262
18263
18264
18265 if true; then
18266   ENABLE_ALSASEQ_TRUE=
18267   ENABLE_ALSASEQ_FALSE='#'
18268 else
18269   ENABLE_ALSASEQ_TRUE='#'
18270   ENABLE_ALSASEQ_FALSE=
18271 fi
18272
18273    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
18274     alsa_save_CFLAGS="$CFLAGS"
18275 alsa_save_LDFLAGS="$LDFLAGS"
18276 alsa_save_LIBS="$LIBS"
18277 alsa_found=yes
18278
18279
18280 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
18281 if test "${with_alsa_prefix+set}" = set; then
18282   withval="$with_alsa_prefix"
18283   alsa_prefix="$withval"
18284 else
18285   alsa_prefix=""
18286 fi;
18287
18288
18289 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
18290 if test "${with_alsa_inc_prefix+set}" = set; then
18291   withval="$with_alsa_inc_prefix"
18292   alsa_inc_prefix="$withval"
18293 else
18294   alsa_inc_prefix=""
18295 fi;
18296
18297 # Check whether --enable-alsatest or --disable-alsatest was given.
18298 if test "${enable_alsatest+set}" = set; then
18299   enableval="$enable_alsatest"
18300   enable_alsatest=no
18301 else
18302   enable_alsatest=yes
18303 fi;
18304
18305 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18306 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
18307 if test "$alsa_inc_prefix" != "" ; then
18308         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18309         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18310 fi
18311 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18312 echo "${ECHO_T}$ALSA_CFLAGS" >&6
18313
18314 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18315 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
18316 if test "$alsa_prefix" != "" ; then
18317         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18318         LDFLAGS="$LDFLAGS $ALSA_LIBS"
18319 fi
18320
18321 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18322 LIBS=`echo $LIBS | sed 's/-lm//'`
18323 LIBS=`echo $LIBS | sed 's/-ldl//'`
18324 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18325 LIBS=`echo $LIBS | sed 's/  //'`
18326 LIBS="$ALSA_LIBS $LIBS"
18327 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18328 echo "${ECHO_T}$ALSA_LIBS" >&6
18329
18330 min_alsa_version=0.1.1
18331 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18332 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
18333 no_alsa=""
18334     alsa_min_major_version=`echo $min_alsa_version | \
18335            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18336     alsa_min_minor_version=`echo $min_alsa_version | \
18337            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18338     alsa_min_micro_version=`echo $min_alsa_version | \
18339            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18340
18341
18342
18343
18344 ac_ext=c
18345 ac_cpp='$CPP $CPPFLAGS'
18346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356
18357 #include <alsa/asoundlib.h>
18358
18359 int
18360 main ()
18361 {
18362
18363 /* ensure backward compatibility */
18364 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18365 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18366 #endif
18367 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18368 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18369 #endif
18370 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18371 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18372 #endif
18373
18374 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18375   exit(0);
18376 #  else
18377 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18378 #       error not present
18379 #    endif
18380
18381 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18382   exit(0);
18383 #   else
18384 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18385 #          error not present
18386 #      endif
18387
18388 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18389 #        error not present
18390 #      endif
18391 #    endif
18392 #  endif
18393 exit(0);
18394
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18401   (eval $ac_compile) 2>conftest.er1
18402   ac_status=$?
18403   grep -v '^ *+' conftest.er1 >conftest.err
18404   rm -f conftest.er1
18405   cat conftest.err >&5
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); } &&
18408          { ac_try='test -z "$ac_c_werror_flag"
18409                          || test ! -s conftest.err'
18410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411   (eval $ac_try) 2>&5
18412   ac_status=$?
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); }; } &&
18415          { ac_try='test -s conftest.$ac_objext'
18416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417   (eval $ac_try) 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); }; }; then
18421   echo "$as_me:$LINENO: result: found." >&5
18422 echo "${ECHO_T}found." >&6
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427 cat >conftest.$ac_ext <<_ACEOF
18428 /* confdefs.h.  */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h.  */
18433
18434 #include <sys/asoundlib.h>
18435
18436 int
18437 main ()
18438 {
18439
18440 /* ensure backward compatibility */
18441 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18442 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18443 #endif
18444 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18445 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18446 #endif
18447 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18448 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18449 #endif
18450
18451 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18452   exit(0);
18453 #  else
18454 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18455 #       error not present
18456 #    endif
18457
18458 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18459   exit(0);
18460 #   else
18461 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18462 #          error not present
18463 #      endif
18464
18465 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18466 #        error not present
18467 #      endif
18468 #    endif
18469 #  endif
18470 exit(0);
18471
18472   ;
18473   return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478   (eval $ac_compile) 2>conftest.er1
18479   ac_status=$?
18480   grep -v '^ *+' conftest.er1 >conftest.err
18481   rm -f conftest.er1
18482   cat conftest.err >&5
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } &&
18485          { ac_try='test -z "$ac_c_werror_flag"
18486                          || test ! -s conftest.err'
18487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488   (eval $ac_try) 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; } &&
18492          { ac_try='test -s conftest.$ac_objext'
18493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494   (eval $ac_try) 2>&5
18495   ac_status=$?
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); }; }; then
18498   echo "$as_me:$LINENO: result: found." >&5
18499 echo "${ECHO_T}found." >&6
18500 else
18501   echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18503
18504 echo "$as_me:$LINENO: result: not present." >&5
18505 echo "${ECHO_T}not present." >&6
18506    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18507 echo "${ECHO_T}libasound was not found anywhere." >&6
18508    alsa_found=no
18509 fi
18510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18511    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18512 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18513
18514 fi
18515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18516 ac_ext=c
18517 ac_cpp='$CPP $CPPFLAGS'
18518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18521
18522
18523
18524 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18525 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18526 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18527   echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529   ac_check_lib_save_LIBS=$LIBS
18530 LIBS="-lasound  $LIBS"
18531 cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537
18538 /* Override any gcc2 internal prototype to avoid an error.  */
18539 #ifdef __cplusplus
18540 extern "C"
18541 #endif
18542 /* We use char because int might match the return type of a gcc2
18543    builtin and then its argument prototype would still apply.  */
18544 char snd_ctl_open ();
18545 int
18546 main ()
18547 {
18548 snd_ctl_open ();
18549   ;
18550   return 0;
18551 }
18552 _ACEOF
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18555   (eval $ac_link) 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -z "$ac_c_werror_flag"
18563                          || test ! -s conftest.err'
18564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565   (eval $ac_try) 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; } &&
18569          { ac_try='test -s conftest$ac_exeext'
18570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571   (eval $ac_try) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; }; then
18575   ac_cv_lib_asound_snd_ctl_open=yes
18576 else
18577   echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18579
18580 ac_cv_lib_asound_snd_ctl_open=no
18581 fi
18582 rm -f conftest.err conftest.$ac_objext \
18583       conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18585 fi
18586 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18587 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18588 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18589   cat >>confdefs.h <<_ACEOF
18590 #define HAVE_LIBASOUND 1
18591 _ACEOF
18592
18593   LIBS="-lasound $LIBS"
18594
18595 else
18596   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18597 echo "${ECHO_T}No linkable libasound was found." >&6
18598    alsa_found=no
18599
18600 fi
18601
18602
18603 if test "x$alsa_found" = "xyes" ; then
18604    :
18605    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18606    LIBS=`echo $LIBS | sed 's/  //'`
18607    LIBS="-lasound $LIBS"
18608 else
18609    :
18610    CFLAGS="$alsa_save_CFLAGS"
18611    LDFLAGS="$alsa_save_LDFLAGS"
18612    LIBS="$alsa_save_LIBS"
18613    ALSA_CFLAGS=""
18614    ALSA_LIBS=""
18615 fi
18616
18617
18618
18619
18620
18621   ;;
18622 xdynamic)
18623   dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18624
18625   ;;
18626 *)
18627
18628   ;;
18629 esac
18630
18631
18632
18633
18634
18635 if false; then
18636   ENABLE_WINSYN_TRUE=
18637   ENABLE_WINSYN_FALSE='#'
18638 else
18639   ENABLE_WINSYN_TRUE='#'
18640   ENABLE_WINSYN_FALSE=
18641 fi
18642
18643 # Check whether --enable-winsyn or --disable-winsyn was given.
18644 if test "${enable_winsyn+set}" = set; then
18645   enableval="$enable_winsyn"
18646   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
18647 fi;
18648 case "x$enable_winsyn" in
18649 xyes)
18650   cat >> confdefs.h <<EOF
18651 #define IA_WINSYN 1
18652 EOF
18653
18654
18655
18656 if true; then
18657   ENABLE_WINSYN_TRUE=
18658   ENABLE_WINSYN_FALSE='#'
18659 else
18660   ENABLE_WINSYN_TRUE='#'
18661   ENABLE_WINSYN_FALSE=
18662 fi
18663
18664    WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18665   ;;
18666 xdynamic)
18667   dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18668
18669   ;;
18670 *)
18671
18672   ;;
18673 esac
18674
18675
18676
18677
18678
18679 if false; then
18680   ENABLE_PORTMIDISYN_TRUE=
18681   ENABLE_PORTMIDISYN_FALSE='#'
18682 else
18683   ENABLE_PORTMIDISYN_TRUE='#'
18684   ENABLE_PORTMIDISYN_FALSE=
18685 fi
18686
18687 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18688 if test "${enable_portmidisyn+set}" = set; then
18689   enableval="$enable_portmidisyn"
18690   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
18691 fi;
18692 case "x$enable_portmidisyn" in
18693 xyes)
18694   cat >> confdefs.h <<EOF
18695 #define IA_PORTMIDISYN 1
18696 EOF
18697
18698
18699
18700 if true; then
18701   ENABLE_PORTMIDISYN_TRUE=
18702   ENABLE_PORTMIDISYN_FALSE='#'
18703 else
18704   ENABLE_PORTMIDISYN_TRUE='#'
18705   ENABLE_PORTMIDISYN_FALSE=
18706 fi
18707
18708    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18709   ;;
18710 xdynamic)
18711   dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18712
18713   ;;
18714 *)
18715
18716   ;;
18717 esac
18718
18719
18720
18721
18722
18723 if false; then
18724   ENABLE_W32G_SYN_TRUE=
18725   ENABLE_W32G_SYN_FALSE='#'
18726 else
18727   ENABLE_W32G_SYN_TRUE='#'
18728   ENABLE_W32G_SYN_FALSE=
18729 fi
18730
18731 # Check whether --enable-winsyng or --disable-winsyng was given.
18732 if test "${enable_winsyng+set}" = set; then
18733   enableval="$enable_winsyng"
18734   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
18735 fi;
18736 case "x$enable_winsyng" in
18737 xyes)
18738   cat >> confdefs.h <<EOF
18739 #define IA_W32G_SYN 1
18740 EOF
18741
18742
18743
18744 if true; then
18745   ENABLE_W32G_SYN_TRUE=
18746   ENABLE_W32G_SYN_FALSE='#'
18747 else
18748   ENABLE_W32G_SYN_TRUE='#'
18749   ENABLE_W32G_SYN_FALSE=
18750 fi
18751
18752
18753   W32G_GUI=yes
18754   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18755     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"
18756     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18757     lib_user32_opt='user32.lib'
18758     if test "x$VCPP" = xyes; then
18759           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18760         fi
18761         if test "x$BORLANDC" = xyes; then
18762           BORLANDC_START='C0W32.OBJ'
18763           CFLAGS="$CFLAGS -tW"
18764           lib_w32gui_opt="-aa $lib_w32gui_opt"
18765         fi
18766         if test "x$WATCOM_C" = xyes; then
18767           CFLAGS="$CFLAGS -bw"
18768           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18769         fi
18770         if test "x$DMC" = xyes; then
18771           DLLFLAG="-WA"
18772           lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
18773         fi
18774   else
18775         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18776     lib_user32_opt='-luser32'
18777     LDFLAGS="-mwindows $LDFLAGS"
18778     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"
18779   fi
18780
18781   ;;
18782 xdynamic)
18783   dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18784
18785   ;;
18786 *)
18787
18788   ;;
18789 esac
18790
18791
18792
18793
18794
18795
18796 if false; then
18797   ENABLE_W32GUI_TRUE=
18798   ENABLE_W32GUI_FALSE='#'
18799 else
18800   ENABLE_W32GUI_TRUE='#'
18801   ENABLE_W32GUI_FALSE=
18802 fi
18803
18804 # Check whether --enable-w32gui or --disable-w32gui was given.
18805 if test "${enable_w32gui+set}" = set; then
18806   enableval="$enable_w32gui"
18807   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
18808 fi;
18809 case "x$enable_w32gui" in
18810 xyes)
18811   cat >> confdefs.h <<EOF
18812 #define IA_W32GUI 1
18813 EOF
18814
18815
18816
18817 if true; then
18818   ENABLE_W32GUI_TRUE=
18819   ENABLE_W32GUI_FALSE='#'
18820 else
18821   ENABLE_W32GUI_TRUE='#'
18822   ENABLE_W32GUI_FALSE=
18823 fi
18824
18825
18826   W32G_GUI=yes
18827   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes; then
18828         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"
18829     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18830     lib_user32_opt='user32.lib'
18831     if test "x$VCPP" = xyes; then
18832           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18833         fi
18834         if test "x$BORLANDC" = xyes; then
18835           BORLANDC_START='C0W32.OBJ'
18836           CFLAGS="$CFLAGS -tW"
18837           lib_w32gui_opt="-aa $lib_w32gui_opt"
18838         fi
18839         if test "x$WATCOM_C" = xyes; then
18840           CFLAGS="$CFLAGS -bw"
18841           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18842         fi
18843         if test "x$DMC" = xyes; then
18844           lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
18845           DLLFLAG="-WA"
18846         fi
18847   else
18848     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18849     lib_user32_opt='-luser32'
18850     LDFLAGS="-mwindows $LDFLAGS"
18851     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"
18852   fi
18853
18854   ;;
18855 xdynamic)
18856   dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18857
18858   ;;
18859 *)
18860
18861   ;;
18862 esac
18863
18864
18865
18866
18867
18868 if false; then
18869   ENABLE_PLUGIN_TRUE=
18870   ENABLE_PLUGIN_FALSE='#'
18871 else
18872   ENABLE_PLUGIN_TRUE='#'
18873   ENABLE_PLUGIN_FALSE=
18874 fi
18875
18876 # Check whether --enable-ump or --disable-ump was given.
18877 if test "${enable_ump+set}" = set; then
18878   enableval="$enable_ump"
18879   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
18880         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
18881 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
18882    { (exit 1); exit 1; }; }
18883     fi
18884     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18885   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18886 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18887 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 fi
18890 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18891 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18892 else
18893   # Is the header compilable?
18894 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18895 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h.  */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h.  */
18902 $ac_includes_default
18903 #include <X11/xpm.h>
18904 _ACEOF
18905 rm -f conftest.$ac_objext
18906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18907   (eval $ac_compile) 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } &&
18914          { ac_try='test -z "$ac_c_werror_flag"
18915                          || test ! -s conftest.err'
18916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917   (eval $ac_try) 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; } &&
18921          { ac_try='test -s conftest.$ac_objext'
18922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923   (eval $ac_try) 2>&5
18924   ac_status=$?
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); }; }; then
18927   ac_header_compiler=yes
18928 else
18929   echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18931
18932 ac_header_compiler=no
18933 fi
18934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18936 echo "${ECHO_T}$ac_header_compiler" >&6
18937
18938 # Is the header present?
18939 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18940 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947 #include <X11/xpm.h>
18948 _ACEOF
18949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18951   ac_status=$?
18952   grep -v '^ *+' conftest.er1 >conftest.err
18953   rm -f conftest.er1
18954   cat conftest.err >&5
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } >/dev/null; then
18957   if test -s conftest.err; then
18958     ac_cpp_err=$ac_c_preproc_warn_flag
18959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18960   else
18961     ac_cpp_err=
18962   fi
18963 else
18964   ac_cpp_err=yes
18965 fi
18966 if test -z "$ac_cpp_err"; then
18967   ac_header_preproc=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972   ac_header_preproc=no
18973 fi
18974 rm -f conftest.err conftest.$ac_ext
18975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18976 echo "${ECHO_T}$ac_header_preproc" >&6
18977
18978 # So?  What about this header?
18979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18980   yes:no: )
18981     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18982 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18983     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18984 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18985     ac_header_preproc=yes
18986     ;;
18987   no:yes:* )
18988     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18989 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18990     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
18991 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
18992     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18993 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18994     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
18995 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18996     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18997 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18998     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18999 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19000     (
19001       cat <<\_ASBOX
19002 ## ------------------------------- ##
19003 ## Report this to root@mput.dip.jp ##
19004 ## ------------------------------- ##
19005 _ASBOX
19006     ) |
19007       sed "s/^/$as_me: WARNING:     /" >&2
19008     ;;
19009 esac
19010 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19011 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
19012 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   ac_cv_header_X11_xpm_h=$ac_header_preproc
19016 fi
19017 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19018 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
19019
19020 fi
19021 if test $ac_cv_header_X11_xpm_h = yes; then
19022   :
19023 else
19024   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
19025 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
19026    { (exit 1); exit 1; }; }
19027 fi
19028
19029
19030     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
19031 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
19032 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   ac_check_lib_save_LIBS=$LIBS
19036 LIBS="-lXpm  $LIBS"
19037 cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h.  */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h.  */
19043
19044 /* Override any gcc2 internal prototype to avoid an error.  */
19045 #ifdef __cplusplus
19046 extern "C"
19047 #endif
19048 /* We use char because int might match the return type of a gcc2
19049    builtin and then its argument prototype would still apply.  */
19050 char XpmCreatePixmapFromData ();
19051 int
19052 main ()
19053 {
19054 XpmCreatePixmapFromData ();
19055   ;
19056   return 0;
19057 }
19058 _ACEOF
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061   (eval $ac_link) 2>conftest.er1
19062   ac_status=$?
19063   grep -v '^ *+' conftest.er1 >conftest.err
19064   rm -f conftest.er1
19065   cat conftest.err >&5
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); } &&
19068          { ac_try='test -z "$ac_c_werror_flag"
19069                          || test ! -s conftest.err'
19070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071   (eval $ac_try) 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; } &&
19075          { ac_try='test -s conftest$ac_exeext'
19076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077   (eval $ac_try) 2>&5
19078   ac_status=$?
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); }; }; then
19081   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
19082 else
19083   echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
19087 fi
19088 rm -f conftest.err conftest.$ac_objext \
19089       conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19091 fi
19092 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
19093 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
19094 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
19095   :
19096 else
19097   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
19098 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
19099    { (exit 1); exit 1; }; }
19100 fi
19101
19102     if test "x$have_xext" = xyes; then
19103       lib_xext_opt=-lXext
19104     fi
19105     if test "x$have_xprelibs" = xyes; then
19106       lib_xprelibs_opt='-lSM -lICE'
19107     fi
19108     lib_xmu_opt=-lXmu
19109     lib_xt_opt=-lXt
19110    ;; esac
19111 fi;
19112 case "x$enable_ump" in
19113 xyes)
19114   cat >> confdefs.h <<EOF
19115 #define IA_PLUGIN 1
19116 EOF
19117
19118
19119
19120 if true; then
19121   ENABLE_PLUGIN_TRUE=
19122   ENABLE_PLUGIN_FALSE='#'
19123 else
19124   ENABLE_PLUGIN_TRUE='#'
19125   ENABLE_PLUGIN_FALSE=
19126 fi
19127
19128
19129   ;;
19130 xdynamic)
19131   dynamic_targets="$dynamic_targets if_ump.\$(so)"
19132
19133   ;;
19134 *)
19135
19136   ;;
19137 esac
19138
19139
19140
19141 # Check whether --enable-windrv or --disable-windrv was given.
19142 if test "${enable_windrv+set}" = set; then
19143   enableval="$enable_windrv"
19144    if test "$enableval" = "yes"; then
19145       if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes"; then
19146         { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&5
19147 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom and Digital Mars" >&2;}
19148    { (exit 1); exit 1; }; }
19149           elif test "x$WINSYN" != "xyes"; then
19150         { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
19151 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
19152    { (exit 1); exit 1; }; }
19153           else
19154
19155 cat >>confdefs.h <<\_ACEOF
19156 #define WINDRV 1
19157 _ACEOF
19158
19159     WINDRV=yes
19160     if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
19161     if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
19162     CFLAGS="$CFLAGS -DANOTHER_MAIN "
19163       fi
19164     fi
19165 fi;
19166 CFLAGS="$CFLAGS $DLLFLAG "
19167
19168 # Check whether --enable-offix or --disable-offix was given.
19169 if test "${enable_offix+set}" = set; then
19170   enableval="$enable_offix"
19171    if test "$enableval" = "yes"; then
19172       KEEPCPPFLAGS=$CPPFLAGS
19173       KEEPLIBS=$LIBS
19174       KEEPLDFLAGS=$LDFLAGS
19175       CPPFLAGS="$CPPFLAGS $offix_include_dir"
19176       LDFLAGS="$LDFLAGS $offix_lib_dir"
19177       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
19178       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
19179 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
19180 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-lDnd  $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191
19192 /* Override any gcc2 internal prototype to avoid an error.  */
19193 #ifdef __cplusplus
19194 extern "C"
19195 #endif
19196 /* We use char because int might match the return type of a gcc2
19197    builtin and then its argument prototype would still apply.  */
19198 char DndInitialize ();
19199 int
19200 main ()
19201 {
19202 DndInitialize ();
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209   (eval $ac_link) 2>conftest.er1
19210   ac_status=$?
19211   grep -v '^ *+' conftest.er1 >conftest.err
19212   rm -f conftest.er1
19213   cat conftest.err >&5
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } &&
19216          { ac_try='test -z "$ac_c_werror_flag"
19217                          || test ! -s conftest.err'
19218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219   (eval $ac_try) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; } &&
19223          { ac_try='test -s conftest$ac_exeext'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; }; then
19229   ac_cv_lib_Dnd_DndInitialize=yes
19230 else
19231   echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234 ac_cv_lib_Dnd_DndInitialize=no
19235 fi
19236 rm -f conftest.err conftest.$ac_objext \
19237       conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19239 fi
19240 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
19241 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
19242 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
19243
19244         LIBS=$KEEPLIBS
19245         lib_offix_opt="-lDnd"
19246
19247 cat >>confdefs.h <<\_ACEOF
19248 #define OFFIX 1
19249 _ACEOF
19250
19251
19252 else
19253    LDFLAGS=$KEEPLDFLAGS
19254         CPPFLAGS=$KEEPCPPFLAGS
19255         LIBS=$KEEPLIBS
19256
19257 fi
19258
19259     fi
19260
19261 fi;
19262
19263 # Check whether --enable-network or --disable-network was given.
19264 if test "${enable_network+set}" = set; then
19265   enableval="$enable_network"
19266    if test "$enableval" = "yes"; then
19267
19268 cat >>confdefs.h <<\_ACEOF
19269 #define SUPPORT_SOCKET 1
19270 _ACEOF
19271
19272     fi
19273 fi;
19274
19275
19276 if test "x$enable_network" = "xyes"; then
19277   ENABLE_NETWORK_TRUE=
19278   ENABLE_NETWORK_FALSE='#'
19279 else
19280   ENABLE_NETWORK_TRUE='#'
19281   ENABLE_NETWORK_FALSE=
19282 fi
19283
19284
19285 # Check whether --enable-spectrogram or --disable-spectrogram was given.
19286 if test "${enable_spectrogram+set}" = set; then
19287   enableval="$enable_spectrogram"
19288    if test "$enableval" = "yes"; then
19289       if test "x$with_x" != xyes; then
19290         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
19291 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
19292    { (exit 1); exit 1; }; }
19293       fi
19294
19295 cat >>confdefs.h <<\_ACEOF
19296 #define SUPPORT_SOUNDSPEC 1
19297 _ACEOF
19298
19299     fi
19300 fi;
19301
19302
19303 if test "x$enable_spectrogram" = "xyes"; then
19304   ENABLE_SOUND_SPEC_TRUE=
19305   ENABLE_SOUND_SPEC_FALSE='#'
19306 else
19307   ENABLE_SOUND_SPEC_TRUE='#'
19308   ENABLE_SOUND_SPEC_FALSE=
19309 fi
19310
19311
19312 # Check whether --enable-spline or --disable-spline was given.
19313 if test "${enable_spline+set}" = set; then
19314   enableval="$enable_spline"
19315    case "x$enableval" in
19316       xlinear)
19317
19318 cat >>confdefs.h <<\_ACEOF
19319 #define DEFAULT_RESAMPLATION resample_linear
19320 _ACEOF
19321
19322         ;;
19323       xcubic)
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define DEFAULT_RESAMPLATION resample_cspline
19327 _ACEOF
19328
19329         ;;
19330       xlagrange)
19331
19332 cat >>confdefs.h <<\_ACEOF
19333 #define DEFAULT_RESAMPLATION resample_lagrange
19334 _ACEOF
19335
19336         ;;
19337       xnewton)
19338
19339 cat >>confdefs.h <<\_ACEOF
19340 #define DEFAULT_RESAMPLATION resample_newton
19341 _ACEOF
19342
19343         ;;
19344       xgauss)
19345
19346 cat >>confdefs.h <<\_ACEOF
19347 #define DEFAULT_RESAMPLATION resample_gauss
19348 _ACEOF
19349
19350         ;;
19351       xno)
19352
19353 cat >>confdefs.h <<\_ACEOF
19354 #define DEFAULT_RESAMPLATION resample_none
19355 _ACEOF
19356
19357         ;;
19358       *)
19359         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19360 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19361    { (exit 1); exit 1; }; }
19362         ;;
19363     esac
19364 fi;
19365
19366 # Check whether --enable-wrd or --disable-wrd was given.
19367 if test "${enable_wrd+set}" = set; then
19368   enableval="$enable_wrd"
19369    if test "$enableval" = "yes"; then
19370       if test "x$with_x" != xyes; then
19371         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19372 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19373    { (exit 1); exit 1; }; }
19374       fi
19375
19376 cat >>confdefs.h <<\_ACEOF
19377 #define WRDT_X 1
19378 _ACEOF
19379
19380       enable_sherry_wrd=yes
19381       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19382 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
19383 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19384   echo $ECHO_N "(cached) $ECHO_C" >&6
19385 else
19386   ac_check_lib_save_LIBS=$LIBS
19387 LIBS="-lz  $LIBS"
19388 cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394
19395 /* Override any gcc2 internal prototype to avoid an error.  */
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 /* We use char because int might match the return type of a gcc2
19400    builtin and then its argument prototype would still apply.  */
19401 char zlibVersion ();
19402 int
19403 main ()
19404 {
19405 zlibVersion ();
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412   (eval $ac_link) 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -z "$ac_c_werror_flag"
19420                          || test ! -s conftest.err'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_lib_z_zlibVersion=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_cv_lib_z_zlibVersion=no
19438 fi
19439 rm -f conftest.err conftest.$ac_objext \
19440       conftest$ac_exeext conftest.$ac_ext
19441 LIBS=$ac_check_lib_save_LIBS
19442 fi
19443 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19444 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
19445 if test $ac_cv_lib_z_zlibVersion = yes; then
19446   :
19447 else
19448   enable_sherry_wrd=no
19449 fi
19450
19451       if test "${ac_cv_header_png_h+set}" = set; then
19452   echo "$as_me:$LINENO: checking for png.h" >&5
19453 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19454 if test "${ac_cv_header_png_h+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 fi
19457 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19458 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19459 else
19460   # Is the header compilable?
19461 echo "$as_me:$LINENO: checking png.h usability" >&5
19462 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 $ac_includes_default
19470 #include <png.h>
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474   (eval $ac_compile) 2>conftest.er1
19475   ac_status=$?
19476   grep -v '^ *+' conftest.er1 >conftest.err
19477   rm -f conftest.er1
19478   cat conftest.err >&5
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); } &&
19481          { ac_try='test -z "$ac_c_werror_flag"
19482                          || test ! -s conftest.err'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; } &&
19488          { ac_try='test -s conftest.$ac_objext'
19489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490   (eval $ac_try) 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; }; then
19494   ac_header_compiler=yes
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ac_header_compiler=no
19500 fi
19501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6
19504
19505 # Is the header present?
19506 echo "$as_me:$LINENO: checking png.h presence" >&5
19507 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 #include <png.h>
19515 _ACEOF
19516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19518   ac_status=$?
19519   grep -v '^ *+' conftest.er1 >conftest.err
19520   rm -f conftest.er1
19521   cat conftest.err >&5
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); } >/dev/null; then
19524   if test -s conftest.err; then
19525     ac_cpp_err=$ac_c_preproc_warn_flag
19526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19527   else
19528     ac_cpp_err=
19529   fi
19530 else
19531   ac_cpp_err=yes
19532 fi
19533 if test -z "$ac_cpp_err"; then
19534   ac_header_preproc=yes
19535 else
19536   echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19538
19539   ac_header_preproc=no
19540 fi
19541 rm -f conftest.err conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19543 echo "${ECHO_T}$ac_header_preproc" >&6
19544
19545 # So?  What about this header?
19546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19547   yes:no: )
19548     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19549 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19550     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19551 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19552     ac_header_preproc=yes
19553     ;;
19554   no:yes:* )
19555     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19556 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19557     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19558 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19559     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19560 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19561     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19562 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19563     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19564 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19565     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19566 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19567     (
19568       cat <<\_ASBOX
19569 ## ------------------------------- ##
19570 ## Report this to root@mput.dip.jp ##
19571 ## ------------------------------- ##
19572 _ASBOX
19573     ) |
19574       sed "s/^/$as_me: WARNING:     /" >&2
19575     ;;
19576 esac
19577 echo "$as_me:$LINENO: checking for png.h" >&5
19578 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19579 if test "${ac_cv_header_png_h+set}" = set; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   ac_cv_header_png_h=$ac_header_preproc
19583 fi
19584 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19585 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19586
19587 fi
19588 if test $ac_cv_header_png_h = yes; then
19589   :
19590 else
19591   enable_sherry_wrd=no
19592 fi
19593
19594
19595       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19596 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19597 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19598   echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600   ac_check_lib_save_LIBS=$LIBS
19601 LIBS="-lpng -lz $LIBS"
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h.  */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h.  */
19608
19609 /* Override any gcc2 internal prototype to avoid an error.  */
19610 #ifdef __cplusplus
19611 extern "C"
19612 #endif
19613 /* We use char because int might match the return type of a gcc2
19614    builtin and then its argument prototype would still apply.  */
19615 char png_init_io ();
19616 int
19617 main ()
19618 {
19619 png_init_io ();
19620   ;
19621   return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19626   (eval $ac_link) 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_c_werror_flag"
19634                          || test ! -s conftest.err'
19635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636   (eval $ac_try) 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest$ac_exeext'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; }; then
19646   ac_cv_lib_png_png_init_io=yes
19647 else
19648   echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651 ac_cv_lib_png_png_init_io=no
19652 fi
19653 rm -f conftest.err conftest.$ac_objext \
19654       conftest$ac_exeext conftest.$ac_ext
19655 LIBS=$ac_check_lib_save_LIBS
19656 fi
19657 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19658 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19659 if test $ac_cv_lib_png_png_init_io = yes; then
19660   :
19661 else
19662   enable_sherry_wrd=no
19663 fi
19664
19665       if test "$enable_sherry_wrd" = yes; then
19666
19667 cat >>confdefs.h <<\_ACEOF
19668 #define ENABLE_SHERRY 1
19669 _ACEOF
19670
19671         lib_zip_opt=-lz
19672         lib_png_opt=-lpng
19673       else
19674          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19675 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19676       fi
19677       if test "x$have_xext" = xyes; then
19678         lib_xext_opt=-lXext
19679       fi
19680     fi
19681 fi;
19682
19683
19684
19685
19686 #
19687 # Finish up
19688 #
19689
19690
19691
19692 if test "x$enable_wrd" = "xyes"; then
19693   ENABLE_WRD_TRUE=
19694   ENABLE_WRD_FALSE='#'
19695 else
19696   ENABLE_WRD_TRUE='#'
19697   ENABLE_WRD_FALSE=
19698 fi
19699
19700
19701
19702 if test "x$W32G_GUI" = xyes; then
19703   W32G_GUI_TRUE=
19704   W32G_GUI_FALSE='#'
19705 else
19706   W32G_GUI_TRUE='#'
19707   W32G_GUI_FALSE=
19708 fi
19709
19710
19711
19712 if test "x$WINDRV" = xyes; then
19713   WINDRV_TRUE=
19714   WINDRV_FALSE='#'
19715 else
19716   WINDRV_TRUE='#'
19717   WINDRV_FALSE=
19718 fi
19719
19720
19721
19722 if test "x$MSYS" = xyes; then
19723   MSYS_TRUE=
19724   MSYS_FALSE='#'
19725 else
19726   MSYS_TRUE='#'
19727   MSYS_FALSE=
19728 fi
19729
19730
19731
19732 if test "x$VCPP" = xyes; then
19733   VCPP_TRUE=
19734   VCPP_FALSE='#'
19735 else
19736   VCPP_TRUE='#'
19737   VCPP_FALSE=
19738 fi
19739
19740
19741
19742 if test "x$BORLANDC" = xyes; then
19743   BORLANDC_TRUE=
19744   BORLANDC_FALSE='#'
19745 else
19746   BORLANDC_TRUE='#'
19747   BORLANDC_FALSE=
19748 fi
19749
19750
19751
19752 if test "x$WATCOM_C" = xyes; then
19753   WATCOM_C_TRUE=
19754   WATCOM_C_FALSE='#'
19755 else
19756   WATCOM_C_TRUE='#'
19757   WATCOM_C_FALSE=
19758 fi
19759
19760
19761
19762 if test "x$DMC" = xyes; then
19763   DMC_TRUE=
19764   DMC_FALSE='#'
19765 else
19766   DMC_TRUE='#'
19767   DMC_FALSE=
19768 fi
19769
19770
19771
19772 if test "x$MINGWGCC" = xyes; then
19773   MINGWGCC_TRUE=
19774   MINGWGCC_FALSE='#'
19775 else
19776   MINGWGCC_TRUE='#'
19777   MINGWGCC_FALSE=
19778 fi
19779
19780
19781
19782
19783 if test "x$W32READDIR" = "xyes"; then
19784   W32READDIR_TRUE=
19785   W32READDIR_FALSE='#'
19786 else
19787   W32READDIR_TRUE='#'
19788   W32READDIR_FALSE=
19789 fi
19790
19791
19792 rm -f wordtmp >/dev/null 2>&1
19793 val=''
19794 for f in $LDFLAGS; do
19795   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19796   :
19797 else
19798   echo $f >>wordtmp; val="$val $f"
19799 fi
19800
19801 done
19802 LDFLAGS="$val"
19803 rm -f wordtmp >/dev/null 2>&1
19804
19805 rm -f wordtmp >/dev/null 2>&1
19806 val=''
19807 for f in $SHLDFLAGS; do
19808   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19809   :
19810 else
19811   echo $f >>wordtmp; val="$val $f"
19812 fi
19813
19814 done
19815 SHLDFLAGS="$val"
19816 rm -f wordtmp >/dev/null 2>&1
19817
19818 rm -f wordtmp >/dev/null 2>&1
19819 val=''
19820 for f in $EXTRACFLAGS $CFLAGS; do
19821   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19822   :
19823 else
19824   echo $f >>wordtmp; val="$val $f"
19825 fi
19826
19827 done
19828 CFLAGS="$val"
19829 rm -f wordtmp >/dev/null 2>&1
19830
19831 rm -f wordtmp >/dev/null 2>&1
19832 val=''
19833 for f in $CPPFLAGS $EXTRADEFS; do
19834   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19835   :
19836 else
19837   echo $f >>wordtmp; val="$val $f"
19838 fi
19839
19840 done
19841 CPPFLAGS="$val"
19842 rm -f wordtmp >/dev/null 2>&1
19843
19844
19845 if test "x$oss_device" != x; then
19846
19847 cat >>confdefs.h <<_ACEOF
19848 #define OSS_DEVICE "$oss_device"
19849 _ACEOF
19850
19851 fi
19852
19853 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19854
19855 cat >>confdefs.h <<_ACEOF
19856 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19857 _ACEOF
19858
19859 fi
19860
19861 if test "x$with_x" = xyes; then
19862     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/"`
19863 fi
19864 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19865 SHLD="$SHLD $SHLDFLAGS"
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890                                                                                                                                                                                               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"
19891
19892 cat >confcache <<\_ACEOF
19893 # This file is a shell script that caches the results of configure
19894 # tests run on this system so they can be shared between configure
19895 # scripts and configure runs, see configure's option --config-cache.
19896 # It is not useful on other systems.  If it contains results you don't
19897 # want to keep, you may remove or edit it.
19898 #
19899 # config.status only pays attention to the cache file if you give it
19900 # the --recheck option to rerun configure.
19901 #
19902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19904 # following values.
19905
19906 _ACEOF
19907
19908 # The following way of writing the cache mishandles newlines in values,
19909 # but we know of no workaround that is simple, portable, and efficient.
19910 # So, don't put newlines in cache variables' values.
19911 # Ultrix sh set writes to stderr and can't be redirected directly,
19912 # and sets the high bit in the cache file unless we assign to the vars.
19913 {
19914   (set) 2>&1 |
19915     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19916     *ac_space=\ *)
19917       # `set' does not quote correctly, so add quotes (double-quote
19918       # substitution turns \\\\ into \\, and sed turns \\ into \).
19919       sed -n \
19920         "s/'/'\\\\''/g;
19921           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19922       ;;
19923     *)
19924       # `set' quotes correctly as required by POSIX, so do not add quotes.
19925       sed -n \
19926         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19927       ;;
19928     esac;
19929 } |
19930   sed '
19931      t clear
19932      : clear
19933      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19934      t end
19935      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19936      : end' >>confcache
19937 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19938   if test -w $cache_file; then
19939     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19940     cat confcache >$cache_file
19941   else
19942     echo "not updating unwritable cache $cache_file"
19943   fi
19944 fi
19945 rm -f confcache
19946
19947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19948 # Let make expand exec_prefix.
19949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19950
19951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19953 # trailing colons and then remove the whole line if VPATH becomes empty
19954 # (actually we leave an empty line to preserve line numbers).
19955 if test "x$srcdir" = x.; then
19956   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19957 s/:*\$(srcdir):*/:/;
19958 s/:*\${srcdir}:*/:/;
19959 s/:*@srcdir@:*/:/;
19960 s/^\([^=]*=[     ]*\):*/\1/;
19961 s/:*$//;
19962 s/^[^=]*=[       ]*$//;
19963 }'
19964 fi
19965
19966 DEFS=-DHAVE_CONFIG_H
19967
19968 ac_libobjs=
19969 ac_ltlibobjs=
19970 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19971   # 1. Remove the extension, and $U if already installed.
19972   ac_i=`echo "$ac_i" |
19973          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19974   # 2. Add them.
19975   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19976   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19977 done
19978 LIBOBJS=$ac_libobjs
19979
19980 LTLIBOBJS=$ac_ltlibobjs
19981
19982
19983 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19984   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19985 Usually this means the macro was only invoked conditionally." >&5
19986 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19987 Usually this means the macro was only invoked conditionally." >&2;}
19988    { (exit 1); exit 1; }; }
19989 fi
19990 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19991   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19992 Usually this means the macro was only invoked conditionally." >&5
19993 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19994 Usually this means the macro was only invoked conditionally." >&2;}
19995    { (exit 1); exit 1; }; }
19996 fi
19997 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19998   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19999 Usually this means the macro was only invoked conditionally." >&5
20000 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20001 Usually this means the macro was only invoked conditionally." >&2;}
20002    { (exit 1); exit 1; }; }
20003 fi
20004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20005   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20006 Usually this means the macro was only invoked conditionally." >&5
20007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20008 Usually this means the macro was only invoked conditionally." >&2;}
20009    { (exit 1); exit 1; }; }
20010 fi
20011 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
20012   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
20013 Usually this means the macro was only invoked conditionally." >&5
20014 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
20015 Usually this means the macro was only invoked conditionally." >&2;}
20016    { (exit 1); exit 1; }; }
20017 fi
20018 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
20019   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
20020 Usually this means the macro was only invoked conditionally." >&5
20021 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
20022 Usually this means the macro was only invoked conditionally." >&2;}
20023    { (exit 1); exit 1; }; }
20024 fi
20025 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20026   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20027 Usually this means the macro was only invoked conditionally." >&5
20028 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20029 Usually this means the macro was only invoked conditionally." >&2;}
20030    { (exit 1); exit 1; }; }
20031 fi
20032 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20033   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20034 Usually this means the macro was only invoked conditionally." >&5
20035 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20036 Usually this means the macro was only invoked conditionally." >&2;}
20037    { (exit 1); exit 1; }; }
20038 fi
20039 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20040   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20041 Usually this means the macro was only invoked conditionally." >&5
20042 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20043 Usually this means the macro was only invoked conditionally." >&2;}
20044    { (exit 1); exit 1; }; }
20045 fi
20046 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20047   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20048 Usually this means the macro was only invoked conditionally." >&5
20049 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20050 Usually this means the macro was only invoked conditionally." >&2;}
20051    { (exit 1); exit 1; }; }
20052 fi
20053 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20054   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20055 Usually this means the macro was only invoked conditionally." >&5
20056 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20057 Usually this means the macro was only invoked conditionally." >&2;}
20058    { (exit 1); exit 1; }; }
20059 fi
20060 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20061   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20062 Usually this means the macro was only invoked conditionally." >&5
20063 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20064 Usually this means the macro was only invoked conditionally." >&2;}
20065    { (exit 1); exit 1; }; }
20066 fi
20067 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20068   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20069 Usually this means the macro was only invoked conditionally." >&5
20070 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20071 Usually this means the macro was only invoked conditionally." >&2;}
20072    { (exit 1); exit 1; }; }
20073 fi
20074 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20075   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20076 Usually this means the macro was only invoked conditionally." >&5
20077 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20078 Usually this means the macro was only invoked conditionally." >&2;}
20079    { (exit 1); exit 1; }; }
20080 fi
20081 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
20082   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20083 Usually this means the macro was only invoked conditionally." >&5
20084 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20085 Usually this means the macro was only invoked conditionally." >&2;}
20086    { (exit 1); exit 1; }; }
20087 fi
20088 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20089   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20090 Usually this means the macro was only invoked conditionally." >&5
20091 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20092 Usually this means the macro was only invoked conditionally." >&2;}
20093    { (exit 1); exit 1; }; }
20094 fi
20095 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20096   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20097 Usually this means the macro was only invoked conditionally." >&5
20098 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20099 Usually this means the macro was only invoked conditionally." >&2;}
20100    { (exit 1); exit 1; }; }
20101 fi
20102 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20103   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20104 Usually this means the macro was only invoked conditionally." >&5
20105 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20106 Usually this means the macro was only invoked conditionally." >&2;}
20107    { (exit 1); exit 1; }; }
20108 fi
20109 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20110   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20111 Usually this means the macro was only invoked conditionally." >&5
20112 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20113 Usually this means the macro was only invoked conditionally." >&2;}
20114    { (exit 1); exit 1; }; }
20115 fi
20116 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20117   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20118 Usually this means the macro was only invoked conditionally." >&5
20119 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20120 Usually this means the macro was only invoked conditionally." >&2;}
20121    { (exit 1); exit 1; }; }
20122 fi
20123 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20124   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20125 Usually this means the macro was only invoked conditionally." >&5
20126 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20127 Usually this means the macro was only invoked conditionally." >&2;}
20128    { (exit 1); exit 1; }; }
20129 fi
20130 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
20131   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20132 Usually this means the macro was only invoked conditionally." >&5
20133 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20134 Usually this means the macro was only invoked conditionally." >&2;}
20135    { (exit 1); exit 1; }; }
20136 fi
20137 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20138   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&5
20140 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20141 Usually this means the macro was only invoked conditionally." >&2;}
20142    { (exit 1); exit 1; }; }
20143 fi
20144 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20145   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20146 Usually this means the macro was only invoked conditionally." >&5
20147 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20148 Usually this means the macro was only invoked conditionally." >&2;}
20149    { (exit 1); exit 1; }; }
20150 fi
20151 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20152   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20153 Usually this means the macro was only invoked conditionally." >&5
20154 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20155 Usually this means the macro was only invoked conditionally." >&2;}
20156    { (exit 1); exit 1; }; }
20157 fi
20158 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20159   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20160 Usually this means the macro was only invoked conditionally." >&5
20161 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20162 Usually this means the macro was only invoked conditionally." >&2;}
20163    { (exit 1); exit 1; }; }
20164 fi
20165 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20166   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20167 Usually this means the macro was only invoked conditionally." >&5
20168 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20169 Usually this means the macro was only invoked conditionally." >&2;}
20170    { (exit 1); exit 1; }; }
20171 fi
20172 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20173   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20174 Usually this means the macro was only invoked conditionally." >&5
20175 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20176 Usually this means the macro was only invoked conditionally." >&2;}
20177    { (exit 1); exit 1; }; }
20178 fi
20179 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20180   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20181 Usually this means the macro was only invoked conditionally." >&5
20182 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20183 Usually this means the macro was only invoked conditionally." >&2;}
20184    { (exit 1); exit 1; }; }
20185 fi
20186 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20187   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20188 Usually this means the macro was only invoked conditionally." >&5
20189 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20190 Usually this means the macro was only invoked conditionally." >&2;}
20191    { (exit 1); exit 1; }; }
20192 fi
20193 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20194   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&5
20196 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20197 Usually this means the macro was only invoked conditionally." >&2;}
20198    { (exit 1); exit 1; }; }
20199 fi
20200 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20201   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20202 Usually this means the macro was only invoked conditionally." >&5
20203 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20204 Usually this means the macro was only invoked conditionally." >&2;}
20205    { (exit 1); exit 1; }; }
20206 fi
20207 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20208   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20209 Usually this means the macro was only invoked conditionally." >&5
20210 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20211 Usually this means the macro was only invoked conditionally." >&2;}
20212    { (exit 1); exit 1; }; }
20213 fi
20214 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20215   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20216 Usually this means the macro was only invoked conditionally." >&5
20217 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20218 Usually this means the macro was only invoked conditionally." >&2;}
20219    { (exit 1); exit 1; }; }
20220 fi
20221 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20222   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20223 Usually this means the macro was only invoked conditionally." >&5
20224 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20225 Usually this means the macro was only invoked conditionally." >&2;}
20226    { (exit 1); exit 1; }; }
20227 fi
20228 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20229   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20230 Usually this means the macro was only invoked conditionally." >&5
20231 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20232 Usually this means the macro was only invoked conditionally." >&2;}
20233    { (exit 1); exit 1; }; }
20234 fi
20235 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20236   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20237 Usually this means the macro was only invoked conditionally." >&5
20238 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20239 Usually this means the macro was only invoked conditionally." >&2;}
20240    { (exit 1); exit 1; }; }
20241 fi
20242 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20243   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20244 Usually this means the macro was only invoked conditionally." >&5
20245 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20246 Usually this means the macro was only invoked conditionally." >&2;}
20247    { (exit 1); exit 1; }; }
20248 fi
20249 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20250   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20251 Usually this means the macro was only invoked conditionally." >&5
20252 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20253 Usually this means the macro was only invoked conditionally." >&2;}
20254    { (exit 1); exit 1; }; }
20255 fi
20256 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20257   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20258 Usually this means the macro was only invoked conditionally." >&5
20259 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20260 Usually this means the macro was only invoked conditionally." >&2;}
20261    { (exit 1); exit 1; }; }
20262 fi
20263 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
20264   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
20265 Usually this means the macro was only invoked conditionally." >&5
20266 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
20267 Usually this means the macro was only invoked conditionally." >&2;}
20268    { (exit 1); exit 1; }; }
20269 fi
20270 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
20271   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20272 Usually this means the macro was only invoked conditionally." >&5
20273 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20274 Usually this means the macro was only invoked conditionally." >&2;}
20275    { (exit 1); exit 1; }; }
20276 fi
20277 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
20278   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
20279 Usually this means the macro was only invoked conditionally." >&5
20280 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
20281 Usually this means the macro was only invoked conditionally." >&2;}
20282    { (exit 1); exit 1; }; }
20283 fi
20284 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
20285   { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
20286 Usually this means the macro was only invoked conditionally." >&5
20287 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
20288 Usually this means the macro was only invoked conditionally." >&2;}
20289    { (exit 1); exit 1; }; }
20290 fi
20291 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
20292   { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
20293 Usually this means the macro was only invoked conditionally." >&5
20294 echo "$as_me: error: conditional \"WINDRV\" was never defined.
20295 Usually this means the macro was only invoked conditionally." >&2;}
20296    { (exit 1); exit 1; }; }
20297 fi
20298 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
20299   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
20300 Usually this means the macro was only invoked conditionally." >&5
20301 echo "$as_me: error: conditional \"MSYS\" was never defined.
20302 Usually this means the macro was only invoked conditionally." >&2;}
20303    { (exit 1); exit 1; }; }
20304 fi
20305 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
20306   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
20307 Usually this means the macro was only invoked conditionally." >&5
20308 echo "$as_me: error: conditional \"VCPP\" was never defined.
20309 Usually this means the macro was only invoked conditionally." >&2;}
20310    { (exit 1); exit 1; }; }
20311 fi
20312 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
20313   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
20314 Usually this means the macro was only invoked conditionally." >&5
20315 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
20316 Usually this means the macro was only invoked conditionally." >&2;}
20317    { (exit 1); exit 1; }; }
20318 fi
20319 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
20320   { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
20321 Usually this means the macro was only invoked conditionally." >&5
20322 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
20323 Usually this means the macro was only invoked conditionally." >&2;}
20324    { (exit 1); exit 1; }; }
20325 fi
20326 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
20327   { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
20328 Usually this means the macro was only invoked conditionally." >&5
20329 echo "$as_me: error: conditional \"DMC\" was never defined.
20330 Usually this means the macro was only invoked conditionally." >&2;}
20331    { (exit 1); exit 1; }; }
20332 fi
20333 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
20334   { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
20335 Usually this means the macro was only invoked conditionally." >&5
20336 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
20337 Usually this means the macro was only invoked conditionally." >&2;}
20338    { (exit 1); exit 1; }; }
20339 fi
20340 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
20341   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
20342 Usually this means the macro was only invoked conditionally." >&5
20343 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
20344 Usually this means the macro was only invoked conditionally." >&2;}
20345    { (exit 1); exit 1; }; }
20346 fi
20347
20348 : ${CONFIG_STATUS=./config.status}
20349 ac_clean_files_save=$ac_clean_files
20350 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20351 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20352 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20353 cat >$CONFIG_STATUS <<_ACEOF
20354 #! $SHELL
20355 # Generated by $as_me.
20356 # Run this file to recreate the current configuration.
20357 # Compiler output produced by configure, useful for debugging
20358 # configure, is in config.log if it exists.
20359
20360 debug=false
20361 ac_cs_recheck=false
20362 ac_cs_silent=false
20363 SHELL=\${CONFIG_SHELL-$SHELL}
20364 _ACEOF
20365
20366 cat >>$CONFIG_STATUS <<\_ACEOF
20367 ## --------------------- ##
20368 ## M4sh Initialization.  ##
20369 ## --------------------- ##
20370
20371 # Be Bourne compatible
20372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20373   emulate sh
20374   NULLCMD=:
20375   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20376   # is contrary to our usage.  Disable this feature.
20377   alias -g '${1+"$@"}'='"$@"'
20378 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20379   set -o posix
20380 fi
20381 DUALCASE=1; export DUALCASE # for MKS sh
20382
20383 # Support unset when possible.
20384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20385   as_unset=unset
20386 else
20387   as_unset=false
20388 fi
20389
20390
20391 # Work around bugs in pre-3.0 UWIN ksh.
20392 $as_unset ENV MAIL MAILPATH
20393 PS1='$ '
20394 PS2='> '
20395 PS4='+ '
20396
20397 # NLS nuisances.
20398 for as_var in \
20399   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20400   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20401   LC_TELEPHONE LC_TIME
20402 do
20403   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20404     eval $as_var=C; export $as_var
20405   else
20406     $as_unset $as_var
20407   fi
20408 done
20409
20410 # Required to use basename.
20411 if expr a : '\(a\)' >/dev/null 2>&1; then
20412   as_expr=expr
20413 else
20414   as_expr=false
20415 fi
20416
20417 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20418   as_basename=basename
20419 else
20420   as_basename=false
20421 fi
20422
20423
20424 # Name of the executable.
20425 as_me=`$as_basename "$0" ||
20426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20427          X"$0" : 'X\(//\)$' \| \
20428          X"$0" : 'X\(/\)$' \| \
20429          .     : '\(.\)' 2>/dev/null ||
20430 echo X/"$0" |
20431     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20432           /^X\/\(\/\/\)$/{ s//\1/; q; }
20433           /^X\/\(\/\).*/{ s//\1/; q; }
20434           s/.*/./; q'`
20435
20436
20437 # PATH needs CR, and LINENO needs CR and PATH.
20438 # Avoid depending upon Character Ranges.
20439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20442 as_cr_digits='0123456789'
20443 as_cr_alnum=$as_cr_Letters$as_cr_digits
20444
20445 # The user is always right.
20446 if test "${PATH_SEPARATOR+set}" != set; then
20447   echo "#! /bin/sh" >conf$$.sh
20448   echo  "exit 0"   >>conf$$.sh
20449   chmod +x conf$$.sh
20450   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20451     PATH_SEPARATOR=';'
20452   else
20453     PATH_SEPARATOR=:
20454   fi
20455   rm -f conf$$.sh
20456 fi
20457
20458
20459   as_lineno_1=$LINENO
20460   as_lineno_2=$LINENO
20461   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20462   test "x$as_lineno_1" != "x$as_lineno_2" &&
20463   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20464   # Find who we are.  Look in the path if we contain no path at all
20465   # relative or not.
20466   case $0 in
20467     *[\\/]* ) as_myself=$0 ;;
20468     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 for as_dir in $PATH
20470 do
20471   IFS=$as_save_IFS
20472   test -z "$as_dir" && as_dir=.
20473   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20474 done
20475
20476        ;;
20477   esac
20478   # We did not find ourselves, most probably we were run as `sh COMMAND'
20479   # in which case we are not to be found in the path.
20480   if test "x$as_myself" = x; then
20481     as_myself=$0
20482   fi
20483   if test ! -f "$as_myself"; then
20484     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20485 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20486    { (exit 1); exit 1; }; }
20487   fi
20488   case $CONFIG_SHELL in
20489   '')
20490     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20491 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20492 do
20493   IFS=$as_save_IFS
20494   test -z "$as_dir" && as_dir=.
20495   for as_base in sh bash ksh sh5; do
20496          case $as_dir in
20497          /*)
20498            if ("$as_dir/$as_base" -c '
20499   as_lineno_1=$LINENO
20500   as_lineno_2=$LINENO
20501   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20502   test "x$as_lineno_1" != "x$as_lineno_2" &&
20503   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20504              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20505              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20506              CONFIG_SHELL=$as_dir/$as_base
20507              export CONFIG_SHELL
20508              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20509            fi;;
20510          esac
20511        done
20512 done
20513 ;;
20514   esac
20515
20516   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20517   # uniformly replaced by the line number.  The first 'sed' inserts a
20518   # line-number line before each line; the second 'sed' does the real
20519   # work.  The second script uses 'N' to pair each line-number line
20520   # with the numbered line, and appends trailing '-' during
20521   # substitution so that $LINENO is not a special case at line end.
20522   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20523   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20524   sed '=' <$as_myself |
20525     sed '
20526       N
20527       s,$,-,
20528       : loop
20529       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20530       t loop
20531       s,-$,,
20532       s,^['$as_cr_digits']*\n,,
20533     ' >$as_me.lineno &&
20534   chmod +x $as_me.lineno ||
20535     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20536 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20537    { (exit 1); exit 1; }; }
20538
20539   # Don't try to exec as it changes $[0], causing all sort of problems
20540   # (the dirname of $[0] is not the place where we might find the
20541   # original and so on.  Autoconf is especially sensible to this).
20542   . ./$as_me.lineno
20543   # Exit status is that of the last command.
20544   exit
20545 }
20546
20547
20548 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20549   *c*,-n*) ECHO_N= ECHO_C='
20550 ' ECHO_T='      ' ;;
20551   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20552   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20553 esac
20554
20555 if expr a : '\(a\)' >/dev/null 2>&1; then
20556   as_expr=expr
20557 else
20558   as_expr=false
20559 fi
20560
20561 rm -f conf$$ conf$$.exe conf$$.file
20562 echo >conf$$.file
20563 if ln -s conf$$.file conf$$ 2>/dev/null; then
20564   # We could just check for DJGPP; but this test a) works b) is more generic
20565   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20566   if test -f conf$$.exe; then
20567     # Don't use ln at all; we don't have any links
20568     as_ln_s='cp -p'
20569   else
20570     as_ln_s='ln -s'
20571   fi
20572 elif ln conf$$.file conf$$ 2>/dev/null; then
20573   as_ln_s=ln
20574 else
20575   as_ln_s='cp -p'
20576 fi
20577 rm -f conf$$ conf$$.exe conf$$.file
20578
20579 if mkdir -p . 2>/dev/null; then
20580   as_mkdir_p=:
20581 else
20582   test -d ./-p && rmdir ./-p
20583   as_mkdir_p=false
20584 fi
20585
20586 as_executable_p="test -f"
20587
20588 # Sed expression to map a string onto a valid CPP name.
20589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20590
20591 # Sed expression to map a string onto a valid variable name.
20592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20593
20594
20595 # IFS
20596 # We need space, tab and new line, in precisely that order.
20597 as_nl='
20598 '
20599 IFS="   $as_nl"
20600
20601 # CDPATH.
20602 $as_unset CDPATH
20603
20604 exec 6>&1
20605
20606 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20607 # report actual input values of CONFIG_FILES etc. instead of their
20608 # values after options handling.  Logging --version etc. is OK.
20609 exec 5>>config.log
20610 {
20611   echo
20612   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20613 ## Running $as_me. ##
20614 _ASBOX
20615 } >&5
20616 cat >&5 <<_CSEOF
20617
20618 This file was extended by TiMidity++ $as_me 2.13.2, which was
20619 generated by GNU Autoconf 2.59.  Invocation command line was
20620
20621   CONFIG_FILES    = $CONFIG_FILES
20622   CONFIG_HEADERS  = $CONFIG_HEADERS
20623   CONFIG_LINKS    = $CONFIG_LINKS
20624   CONFIG_COMMANDS = $CONFIG_COMMANDS
20625   $ $0 $@
20626
20627 _CSEOF
20628 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20629 echo >&5
20630 _ACEOF
20631
20632 # Files that config.status was made for.
20633 if test -n "$ac_config_files"; then
20634   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20635 fi
20636
20637 if test -n "$ac_config_headers"; then
20638   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20639 fi
20640
20641 if test -n "$ac_config_links"; then
20642   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20643 fi
20644
20645 if test -n "$ac_config_commands"; then
20646   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20647 fi
20648
20649 cat >>$CONFIG_STATUS <<\_ACEOF
20650
20651 ac_cs_usage="\
20652 \`$as_me' instantiates files from templates according to the
20653 current configuration.
20654
20655 Usage: $0 [OPTIONS] [FILE]...
20656
20657   -h, --help       print this help, then exit
20658   -V, --version    print version number, then exit
20659   -q, --quiet      do not print progress messages
20660   -d, --debug      don't remove temporary files
20661       --recheck    update $as_me by reconfiguring in the same conditions
20662   --file=FILE[:TEMPLATE]
20663                    instantiate the configuration file FILE
20664   --header=FILE[:TEMPLATE]
20665                    instantiate the configuration header FILE
20666
20667 Configuration files:
20668 $config_files
20669
20670 Configuration headers:
20671 $config_headers
20672
20673 Configuration commands:
20674 $config_commands
20675
20676 Report bugs to <bug-autoconf@gnu.org>."
20677 _ACEOF
20678
20679 cat >>$CONFIG_STATUS <<_ACEOF
20680 ac_cs_version="\\
20681 TiMidity++ config.status 2.13.2
20682 configured by $0, generated by GNU Autoconf 2.59,
20683   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20684
20685 Copyright (C) 2003 Free Software Foundation, Inc.
20686 This config.status script is free software; the Free Software Foundation
20687 gives unlimited permission to copy, distribute and modify it."
20688 srcdir=$srcdir
20689 INSTALL="$INSTALL"
20690 _ACEOF
20691
20692 cat >>$CONFIG_STATUS <<\_ACEOF
20693 # If no file are specified by the user, then we need to provide default
20694 # value.  By we need to know if files were specified by the user.
20695 ac_need_defaults=:
20696 while test $# != 0
20697 do
20698   case $1 in
20699   --*=*)
20700     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20701     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20702     ac_shift=:
20703     ;;
20704   -*)
20705     ac_option=$1
20706     ac_optarg=$2
20707     ac_shift=shift
20708     ;;
20709   *) # This is not an option, so the user has probably given explicit
20710      # arguments.
20711      ac_option=$1
20712      ac_need_defaults=false;;
20713   esac
20714
20715   case $ac_option in
20716   # Handling of the options.
20717 _ACEOF
20718 cat >>$CONFIG_STATUS <<\_ACEOF
20719   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20720     ac_cs_recheck=: ;;
20721   --version | --vers* | -V )
20722     echo "$ac_cs_version"; exit 0 ;;
20723   --he | --h)
20724     # Conflict between --help and --header
20725     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20726 Try \`$0 --help' for more information." >&5
20727 echo "$as_me: error: ambiguous option: $1
20728 Try \`$0 --help' for more information." >&2;}
20729    { (exit 1); exit 1; }; };;
20730   --help | --hel | -h )
20731     echo "$ac_cs_usage"; exit 0 ;;
20732   --debug | --d* | -d )
20733     debug=: ;;
20734   --file | --fil | --fi | --f )
20735     $ac_shift
20736     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20737     ac_need_defaults=false;;
20738   --header | --heade | --head | --hea )
20739     $ac_shift
20740     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20741     ac_need_defaults=false;;
20742   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20743   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20744     ac_cs_silent=: ;;
20745
20746   # This is an error.
20747   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20748 Try \`$0 --help' for more information." >&5
20749 echo "$as_me: error: unrecognized option: $1
20750 Try \`$0 --help' for more information." >&2;}
20751    { (exit 1); exit 1; }; } ;;
20752
20753   *) ac_config_targets="$ac_config_targets $1" ;;
20754
20755   esac
20756   shift
20757 done
20758
20759 ac_configure_extra_args=
20760
20761 if $ac_cs_silent; then
20762   exec 6>/dev/null
20763   ac_configure_extra_args="$ac_configure_extra_args --silent"
20764 fi
20765
20766 _ACEOF
20767 cat >>$CONFIG_STATUS <<_ACEOF
20768 if \$ac_cs_recheck; then
20769   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20770   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20771 fi
20772
20773 _ACEOF
20774
20775 cat >>$CONFIG_STATUS <<_ACEOF
20776 #
20777 # INIT-COMMANDS section.
20778 #
20779
20780 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20781
20782 _ACEOF
20783
20784
20785
20786 cat >>$CONFIG_STATUS <<\_ACEOF
20787 for ac_config_target in $ac_config_targets
20788 do
20789   case "$ac_config_target" in
20790   # Handling of arguments.
20791   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20792   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20793   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20794   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20795   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20796   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20797   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20798   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20799   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20800   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20801   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20802   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20803   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20804   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20805   "windrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20806   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20807   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20808   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20809   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20810   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20811   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20812   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20813   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20815    { (exit 1); exit 1; }; };;
20816   esac
20817 done
20818
20819 # If the user did not use the arguments to specify the items to instantiate,
20820 # then the envvar interface is used.  Set only those that are not.
20821 # We use the long form for the default assignment because of an extremely
20822 # bizarre bug on SunOS 4.1.3.
20823 if $ac_need_defaults; then
20824   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20825   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20826   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20827 fi
20828
20829 # Have a temporary directory for convenience.  Make it in the build tree
20830 # simply because there is no reason to put it here, and in addition,
20831 # creating and moving files from /tmp can sometimes cause problems.
20832 # Create a temporary directory, and hook for its removal unless debugging.
20833 $debug ||
20834 {
20835   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20836   trap '{ (exit 1); exit 1; }' 1 2 13 15
20837 }
20838
20839 # Create a (secure) tmp directory for tmp files.
20840
20841 {
20842   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20843   test -n "$tmp" && test -d "$tmp"
20844 }  ||
20845 {
20846   tmp=./confstat$$-$RANDOM
20847   (umask 077 && mkdir $tmp)
20848 } ||
20849 {
20850    echo "$me: cannot create a temporary directory in ." >&2
20851    { (exit 1); exit 1; }
20852 }
20853
20854 _ACEOF
20855
20856 cat >>$CONFIG_STATUS <<_ACEOF
20857
20858 #
20859 # CONFIG_FILES section.
20860 #
20861
20862 # No need to generate the scripts if there are no CONFIG_FILES.
20863 # This happens for instance when ./config.status config.h
20864 if test -n "\$CONFIG_FILES"; then
20865   # Protect against being on the right side of a sed subst in config.status.
20866   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20867    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20868 s,@SHELL@,$SHELL,;t t
20869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20875 s,@exec_prefix@,$exec_prefix,;t t
20876 s,@prefix@,$prefix,;t t
20877 s,@program_transform_name@,$program_transform_name,;t t
20878 s,@bindir@,$bindir,;t t
20879 s,@sbindir@,$sbindir,;t t
20880 s,@libexecdir@,$libexecdir,;t t
20881 s,@datadir@,$datadir,;t t
20882 s,@sysconfdir@,$sysconfdir,;t t
20883 s,@sharedstatedir@,$sharedstatedir,;t t
20884 s,@localstatedir@,$localstatedir,;t t
20885 s,@libdir@,$libdir,;t t
20886 s,@includedir@,$includedir,;t t
20887 s,@oldincludedir@,$oldincludedir,;t t
20888 s,@infodir@,$infodir,;t t
20889 s,@mandir@,$mandir,;t t
20890 s,@build_alias@,$build_alias,;t t
20891 s,@host_alias@,$host_alias,;t t
20892 s,@target_alias@,$target_alias,;t t
20893 s,@DEFS@,$DEFS,;t t
20894 s,@ECHO_C@,$ECHO_C,;t t
20895 s,@ECHO_N@,$ECHO_N,;t t
20896 s,@ECHO_T@,$ECHO_T,;t t
20897 s,@LIBS@,$LIBS,;t t
20898 s,@build@,$build,;t t
20899 s,@build_cpu@,$build_cpu,;t t
20900 s,@build_vendor@,$build_vendor,;t t
20901 s,@build_os@,$build_os,;t t
20902 s,@host@,$host,;t t
20903 s,@host_cpu@,$host_cpu,;t t
20904 s,@host_vendor@,$host_vendor,;t t
20905 s,@host_os@,$host_os,;t t
20906 s,@target@,$target,;t t
20907 s,@target_cpu@,$target_cpu,;t t
20908 s,@target_vendor@,$target_vendor,;t t
20909 s,@target_os@,$target_os,;t t
20910 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20911 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20912 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20913 s,@CYGPATH_W@,$CYGPATH_W,;t t
20914 s,@PACKAGE@,$PACKAGE,;t t
20915 s,@VERSION@,$VERSION,;t t
20916 s,@ACLOCAL@,$ACLOCAL,;t t
20917 s,@AUTOCONF@,$AUTOCONF,;t t
20918 s,@AUTOMAKE@,$AUTOMAKE,;t t
20919 s,@AUTOHEADER@,$AUTOHEADER,;t t
20920 s,@MAKEINFO@,$MAKEINFO,;t t
20921 s,@AMTAR@,$AMTAR,;t t
20922 s,@install_sh@,$install_sh,;t t
20923 s,@STRIP@,$STRIP,;t t
20924 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20925 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20926 s,@AWK@,$AWK,;t t
20927 s,@SET_MAKE@,$SET_MAKE,;t t
20928 s,@am__leading_dot@,$am__leading_dot,;t t
20929 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20930 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20931 s,@MAINT@,$MAINT,;t t
20932 s,@CXX@,$CXX,;t t
20933 s,@CXXFLAGS@,$CXXFLAGS,;t t
20934 s,@LDFLAGS@,$LDFLAGS,;t t
20935 s,@CPPFLAGS@,$CPPFLAGS,;t t
20936 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20937 s,@EXEEXT@,$EXEEXT,;t t
20938 s,@OBJEXT@,$OBJEXT,;t t
20939 s,@DEPDIR@,$DEPDIR,;t t
20940 s,@am__include@,$am__include,;t t
20941 s,@am__quote@,$am__quote,;t t
20942 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20943 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20944 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20945 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20946 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20947 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20948 s,@EMACS@,$EMACS,;t t
20949 s,@lispdir@,$lispdir,;t t
20950 s,@CC@,$CC,;t t
20951 s,@CFLAGS@,$CFLAGS,;t t
20952 s,@ac_ct_CC@,$ac_ct_CC,;t t
20953 s,@CCDEPMODE@,$CCDEPMODE,;t t
20954 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20955 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20956 s,@CPP@,$CPP,;t t
20957 s,@EGREP@,$EGREP,;t t
20958 s,@RANLIB@,$RANLIB,;t t
20959 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20960 s,@LN_S@,$LN_S,;t t
20961 s,@X_CFLAGS@,$X_CFLAGS,;t t
20962 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20963 s,@X_LIBS@,$X_LIBS,;t t
20964 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20965 s,@LIBOBJS@,$LIBOBJS,;t t
20966 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20967 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20968 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20969 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20970 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20971 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20972 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20973 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20974 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20975 s,@ESD_LIBS@,$ESD_LIBS,;t t
20976 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20977 s,@AO_LIBS@,$AO_LIBS,;t t
20978 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20979 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20980 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20981 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20982 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20983 s,@OGG_LIBS@,$OGG_LIBS,;t t
20984 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20985 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20986 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20987 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20988 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20989 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20990 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20991 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20992 s,@n_so_libs@,$n_so_libs,;t t
20993 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20994 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20995 s,@s_so_libs@,$s_so_libs,;t t
20996 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20997 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20998 s,@m_so_libs@,$m_so_libs,;t t
20999 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
21000 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
21001 s,@k_so_libs@,$k_so_libs,;t t
21002 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
21003 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
21004 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
21005 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
21006 s,@e_so_libs@,$e_so_libs,;t t
21007 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
21008 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
21009 s,@T_so_libs@,$T_so_libs,;t t
21010 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
21011 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
21012 s,@a_so_libs@,$a_so_libs,;t t
21013 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
21014 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
21015 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
21016 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
21017 s,@i_so_libs@,$i_so_libs,;t t
21018 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
21019 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
21020 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21021 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
21022 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21023 s,@GTK_LIBS@,$GTK_LIBS,;t t
21024 s,@g_so_libs@,$g_so_libs,;t t
21025 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
21026 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
21027 s,@r_so_libs@,$r_so_libs,;t t
21028 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
21029 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
21030 s,@A_so_libs@,$A_so_libs,;t t
21031 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
21032 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
21033 s,@W_so_libs@,$W_so_libs,;t t
21034 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
21035 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
21036 s,@P_so_libs@,$P_so_libs,;t t
21037 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
21038 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
21039 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
21040 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
21041 s,@w_so_libs@,$w_so_libs,;t t
21042 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
21043 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
21044 s,@p_so_libs@,$p_so_libs,;t t
21045 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
21046 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
21047 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
21048 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
21049 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
21050 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
21051 s,@W32G_GUI_TRUE@,$W32G_GUI_TRUE,;t t
21052 s,@W32G_GUI_FALSE@,$W32G_GUI_FALSE,;t t
21053 s,@WINDRV_TRUE@,$WINDRV_TRUE,;t t
21054 s,@WINDRV_FALSE@,$WINDRV_FALSE,;t t
21055 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
21056 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
21057 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
21058 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
21059 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
21060 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
21061 s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t
21062 s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t
21063 s,@DMC_TRUE@,$DMC_TRUE,;t t
21064 s,@DMC_FALSE@,$DMC_FALSE,;t t
21065 s,@MINGWGCC_TRUE@,$MINGWGCC_TRUE,;t t
21066 s,@MINGWGCC_FALSE@,$MINGWGCC_FALSE,;t t
21067 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
21068 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
21069 s,@BORLANDC_START@,$BORLANDC_START,;t t
21070 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
21071 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
21072 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
21073 s,@DMC_LDFLAGS@,$DMC_LDFLAGS,;t t
21074 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
21075 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
21076 s,@EXTRALIBS@,$EXTRALIBS,;t t
21077 s,@NETSRCS@,$NETSRCS,;t t
21078 s,@ELFILES@,$ELFILES,;t t
21079 s,@SHLD@,$SHLD,;t t
21080 s,@SHCFLAGS@,$SHCFLAGS,;t t
21081 s,@dynamic_targets@,$dynamic_targets,;t t
21082 s,@so@,$so,;t t
21083 s,@WISH@,$WISH,;t t
21084 s,@tcltk_dep@,$tcltk_dep,;t t
21085 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
21086 s,@pkgdatadir@,$pkgdatadir,;t t
21087 s,@pkglibdir@,$pkglibdir,;t t
21088 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21089 CEOF
21090
21091 _ACEOF
21092
21093   cat >>$CONFIG_STATUS <<\_ACEOF
21094   # Split the substitutions into bite-sized pieces for seds with
21095   # small command number limits, like on Digital OSF/1 and HP-UX.
21096   ac_max_sed_lines=48
21097   ac_sed_frag=1 # Number of current file.
21098   ac_beg=1 # First line for current file.
21099   ac_end=$ac_max_sed_lines # Line after last line for current file.
21100   ac_more_lines=:
21101   ac_sed_cmds=
21102   while $ac_more_lines; do
21103     if test $ac_beg -gt 1; then
21104       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21105     else
21106       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21107     fi
21108     if test ! -s $tmp/subs.frag; then
21109       ac_more_lines=false
21110     else
21111       # The purpose of the label and of the branching condition is to
21112       # speed up the sed processing (if there are no `@' at all, there
21113       # is no need to browse any of the substitutions).
21114       # These are the two extra sed commands mentioned above.
21115       (echo ':t
21116   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21117       if test -z "$ac_sed_cmds"; then
21118         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21119       else
21120         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21121       fi
21122       ac_sed_frag=`expr $ac_sed_frag + 1`
21123       ac_beg=$ac_end
21124       ac_end=`expr $ac_end + $ac_max_sed_lines`
21125     fi
21126   done
21127   if test -z "$ac_sed_cmds"; then
21128     ac_sed_cmds=cat
21129   fi
21130 fi # test -n "$CONFIG_FILES"
21131
21132 _ACEOF
21133 cat >>$CONFIG_STATUS <<\_ACEOF
21134 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21135   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21136   case $ac_file in
21137   - | *:- | *:-:* ) # input from stdin
21138         cat >$tmp/stdin
21139         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21140         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21141   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21142         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21143   * )   ac_file_in=$ac_file.in ;;
21144   esac
21145
21146   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21147   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21149          X"$ac_file" : 'X\(//\)[^/]' \| \
21150          X"$ac_file" : 'X\(//\)$' \| \
21151          X"$ac_file" : 'X\(/\)' \| \
21152          .     : '\(.\)' 2>/dev/null ||
21153 echo X"$ac_file" |
21154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21155           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21156           /^X\(\/\/\)$/{ s//\1/; q; }
21157           /^X\(\/\).*/{ s//\1/; q; }
21158           s/.*/./; q'`
21159   { if $as_mkdir_p; then
21160     mkdir -p "$ac_dir"
21161   else
21162     as_dir="$ac_dir"
21163     as_dirs=
21164     while test ! -d "$as_dir"; do
21165       as_dirs="$as_dir $as_dirs"
21166       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21168          X"$as_dir" : 'X\(//\)[^/]' \| \
21169          X"$as_dir" : 'X\(//\)$' \| \
21170          X"$as_dir" : 'X\(/\)' \| \
21171          .     : '\(.\)' 2>/dev/null ||
21172 echo X"$as_dir" |
21173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21175           /^X\(\/\/\)$/{ s//\1/; q; }
21176           /^X\(\/\).*/{ s//\1/; q; }
21177           s/.*/./; q'`
21178     done
21179     test ! -n "$as_dirs" || mkdir $as_dirs
21180   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21181 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21182    { (exit 1); exit 1; }; }; }
21183
21184   ac_builddir=.
21185
21186 if test "$ac_dir" != .; then
21187   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21188   # A "../" for each directory in $ac_dir_suffix.
21189   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21190 else
21191   ac_dir_suffix= ac_top_builddir=
21192 fi
21193
21194 case $srcdir in
21195   .)  # No --srcdir option.  We are building in place.
21196     ac_srcdir=.
21197     if test -z "$ac_top_builddir"; then
21198        ac_top_srcdir=.
21199     else
21200        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21201     fi ;;
21202   [\\/]* | ?:[\\/]* )  # Absolute path.
21203     ac_srcdir=$srcdir$ac_dir_suffix;
21204     ac_top_srcdir=$srcdir ;;
21205   *) # Relative path.
21206     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21207     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21208 esac
21209
21210 # Do not use `cd foo && pwd` to compute absolute paths, because
21211 # the directories may not exist.
21212 case `pwd` in
21213 .) ac_abs_builddir="$ac_dir";;
21214 *)
21215   case "$ac_dir" in
21216   .) ac_abs_builddir=`pwd`;;
21217   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21218   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21219   esac;;
21220 esac
21221 case $ac_abs_builddir in
21222 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21223 *)
21224   case ${ac_top_builddir}. in
21225   .) ac_abs_top_builddir=$ac_abs_builddir;;
21226   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21227   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21228   esac;;
21229 esac
21230 case $ac_abs_builddir in
21231 .) ac_abs_srcdir=$ac_srcdir;;
21232 *)
21233   case $ac_srcdir in
21234   .) ac_abs_srcdir=$ac_abs_builddir;;
21235   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21236   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21237   esac;;
21238 esac
21239 case $ac_abs_builddir in
21240 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21241 *)
21242   case $ac_top_srcdir in
21243   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21244   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21245   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21246   esac;;
21247 esac
21248
21249
21250   case $INSTALL in
21251   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21252   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21253   esac
21254
21255   if test x"$ac_file" != x-; then
21256     { echo "$as_me:$LINENO: creating $ac_file" >&5
21257 echo "$as_me: creating $ac_file" >&6;}
21258     rm -f "$ac_file"
21259   fi
21260   # Let's still pretend it is `configure' which instantiates (i.e., don't
21261   # use $as_me), people would be surprised to read:
21262   #    /* config.h.  Generated by config.status.  */
21263   if test x"$ac_file" = x-; then
21264     configure_input=
21265   else
21266     configure_input="$ac_file.  "
21267   fi
21268   configure_input=$configure_input"Generated from `echo $ac_file_in |
21269                                      sed 's,.*/,,'` by configure."
21270
21271   # First look for the input files in the build tree, otherwise in the
21272   # src tree.
21273   ac_file_inputs=`IFS=:
21274     for f in $ac_file_in; do
21275       case $f in
21276       -) echo $tmp/stdin ;;
21277       [\\/$]*)
21278          # Absolute (can't be DOS-style, as IFS=:)
21279          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21280 echo "$as_me: error: cannot find input file: $f" >&2;}
21281    { (exit 1); exit 1; }; }
21282          echo "$f";;
21283       *) # Relative
21284          if test -f "$f"; then
21285            # Build tree
21286            echo "$f"
21287          elif test -f "$srcdir/$f"; then
21288            # Source tree
21289            echo "$srcdir/$f"
21290          else
21291            # /dev/null tree
21292            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21293 echo "$as_me: error: cannot find input file: $f" >&2;}
21294    { (exit 1); exit 1; }; }
21295          fi;;
21296       esac
21297     done` || { (exit 1); exit 1; }
21298 _ACEOF
21299 cat >>$CONFIG_STATUS <<_ACEOF
21300   sed "$ac_vpsub
21301 $extrasub
21302 _ACEOF
21303 cat >>$CONFIG_STATUS <<\_ACEOF
21304 :t
21305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21306 s,@configure_input@,$configure_input,;t t
21307 s,@srcdir@,$ac_srcdir,;t t
21308 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21309 s,@top_srcdir@,$ac_top_srcdir,;t t
21310 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21311 s,@builddir@,$ac_builddir,;t t
21312 s,@abs_builddir@,$ac_abs_builddir,;t t
21313 s,@top_builddir@,$ac_top_builddir,;t t
21314 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21315 s,@INSTALL@,$ac_INSTALL,;t t
21316 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21317   rm -f $tmp/stdin
21318   if test x"$ac_file" != x-; then
21319     mv $tmp/out $ac_file
21320   else
21321     cat $tmp/out
21322     rm -f $tmp/out
21323   fi
21324
21325 done
21326 _ACEOF
21327 cat >>$CONFIG_STATUS <<\_ACEOF
21328
21329 #
21330 # CONFIG_HEADER section.
21331 #
21332
21333 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21334 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21335 #
21336 # ac_d sets the value in "#define NAME VALUE" lines.
21337 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21338 ac_dB='[         ].*$,\1#\2'
21339 ac_dC=' '
21340 ac_dD=',;t'
21341 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21342 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21343 ac_uB='$,\1#\2define\3'
21344 ac_uC=' '
21345 ac_uD=',;t'
21346
21347 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21348   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21349   case $ac_file in
21350   - | *:- | *:-:* ) # input from stdin
21351         cat >$tmp/stdin
21352         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21353         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21354   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21355         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21356   * )   ac_file_in=$ac_file.in ;;
21357   esac
21358
21359   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21360 echo "$as_me: creating $ac_file" >&6;}
21361
21362   # First look for the input files in the build tree, otherwise in the
21363   # src tree.
21364   ac_file_inputs=`IFS=:
21365     for f in $ac_file_in; do
21366       case $f in
21367       -) echo $tmp/stdin ;;
21368       [\\/$]*)
21369          # Absolute (can't be DOS-style, as IFS=:)
21370          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21371 echo "$as_me: error: cannot find input file: $f" >&2;}
21372    { (exit 1); exit 1; }; }
21373          # Do quote $f, to prevent DOS paths from being IFS'd.
21374          echo "$f";;
21375       *) # Relative
21376          if test -f "$f"; then
21377            # Build tree
21378            echo "$f"
21379          elif test -f "$srcdir/$f"; then
21380            # Source tree
21381            echo "$srcdir/$f"
21382          else
21383            # /dev/null tree
21384            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21385 echo "$as_me: error: cannot find input file: $f" >&2;}
21386    { (exit 1); exit 1; }; }
21387          fi;;
21388       esac
21389     done` || { (exit 1); exit 1; }
21390   # Remove the trailing spaces.
21391   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21392
21393 _ACEOF
21394
21395 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21396 # `conftest.undefs', that substitutes the proper values into
21397 # config.h.in to produce config.h.  The first handles `#define'
21398 # templates, and the second `#undef' templates.
21399 # And first: Protect against being on the right side of a sed subst in
21400 # config.status.  Protect against being in an unquoted here document
21401 # in config.status.
21402 rm -f conftest.defines conftest.undefs
21403 # Using a here document instead of a string reduces the quoting nightmare.
21404 # Putting comments in sed scripts is not portable.
21405 #
21406 # `end' is used to avoid that the second main sed command (meant for
21407 # 0-ary CPP macros) applies to n-ary macro definitions.
21408 # See the Autoconf documentation for `clear'.
21409 cat >confdef2sed.sed <<\_ACEOF
21410 s/[\\&,]/\\&/g
21411 s,[\\$`],\\&,g
21412 t clear
21413 : clear
21414 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21415 t end
21416 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21417 : end
21418 _ACEOF
21419 # If some macros were called several times there might be several times
21420 # the same #defines, which is useless.  Nevertheless, we may not want to
21421 # sort them, since we want the *last* AC-DEFINE to be honored.
21422 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21423 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21424 rm -f confdef2sed.sed
21425
21426 # This sed command replaces #undef with comments.  This is necessary, for
21427 # example, in the case of _POSIX_SOURCE, which is predefined and required
21428 # on some systems where configure will not decide to define it.
21429 cat >>conftest.undefs <<\_ACEOF
21430 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21431 _ACEOF
21432
21433 # Break up conftest.defines because some shells have a limit on the size
21434 # of here documents, and old seds have small limits too (100 cmds).
21435 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21436 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21437 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21438 echo '  :' >>$CONFIG_STATUS
21439 rm -f conftest.tail
21440 while grep . conftest.defines >/dev/null
21441 do
21442   # Write a limited-size here document to $tmp/defines.sed.
21443   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21444   # Speed up: don't consider the non `#define' lines.
21445   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21446   # Work around the forget-to-reset-the-flag bug.
21447   echo 't clr' >>$CONFIG_STATUS
21448   echo ': clr' >>$CONFIG_STATUS
21449   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21450   echo 'CEOF
21451   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21452   rm -f $tmp/in
21453   mv $tmp/out $tmp/in
21454 ' >>$CONFIG_STATUS
21455   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21456   rm -f conftest.defines
21457   mv conftest.tail conftest.defines
21458 done
21459 rm -f conftest.defines
21460 echo '  fi # grep' >>$CONFIG_STATUS
21461 echo >>$CONFIG_STATUS
21462
21463 # Break up conftest.undefs because some shells have a limit on the size
21464 # of here documents, and old seds have small limits too (100 cmds).
21465 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21466 rm -f conftest.tail
21467 while grep . conftest.undefs >/dev/null
21468 do
21469   # Write a limited-size here document to $tmp/undefs.sed.
21470   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21471   # Speed up: don't consider the non `#undef'
21472   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21473   # Work around the forget-to-reset-the-flag bug.
21474   echo 't clr' >>$CONFIG_STATUS
21475   echo ': clr' >>$CONFIG_STATUS
21476   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21477   echo 'CEOF
21478   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21479   rm -f $tmp/in
21480   mv $tmp/out $tmp/in
21481 ' >>$CONFIG_STATUS
21482   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21483   rm -f conftest.undefs
21484   mv conftest.tail conftest.undefs
21485 done
21486 rm -f conftest.undefs
21487
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489   # Let's still pretend it is `configure' which instantiates (i.e., don't
21490   # use $as_me), people would be surprised to read:
21491   #    /* config.h.  Generated by config.status.  */
21492   if test x"$ac_file" = x-; then
21493     echo "/* Generated by configure.  */" >$tmp/config.h
21494   else
21495     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21496   fi
21497   cat $tmp/in >>$tmp/config.h
21498   rm -f $tmp/in
21499   if test x"$ac_file" != x-; then
21500     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21501       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21502 echo "$as_me: $ac_file is unchanged" >&6;}
21503     else
21504       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21506          X"$ac_file" : 'X\(//\)[^/]' \| \
21507          X"$ac_file" : 'X\(//\)$' \| \
21508          X"$ac_file" : 'X\(/\)' \| \
21509          .     : '\(.\)' 2>/dev/null ||
21510 echo X"$ac_file" |
21511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21512           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21513           /^X\(\/\/\)$/{ s//\1/; q; }
21514           /^X\(\/\).*/{ s//\1/; q; }
21515           s/.*/./; q'`
21516       { if $as_mkdir_p; then
21517     mkdir -p "$ac_dir"
21518   else
21519     as_dir="$ac_dir"
21520     as_dirs=
21521     while test ! -d "$as_dir"; do
21522       as_dirs="$as_dir $as_dirs"
21523       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21525          X"$as_dir" : 'X\(//\)[^/]' \| \
21526          X"$as_dir" : 'X\(//\)$' \| \
21527          X"$as_dir" : 'X\(/\)' \| \
21528          .     : '\(.\)' 2>/dev/null ||
21529 echo X"$as_dir" |
21530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21531           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21532           /^X\(\/\/\)$/{ s//\1/; q; }
21533           /^X\(\/\).*/{ s//\1/; q; }
21534           s/.*/./; q'`
21535     done
21536     test ! -n "$as_dirs" || mkdir $as_dirs
21537   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21538 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21539    { (exit 1); exit 1; }; }; }
21540
21541       rm -f $ac_file
21542       mv $tmp/config.h $ac_file
21543     fi
21544   else
21545     cat $tmp/config.h
21546     rm -f $tmp/config.h
21547   fi
21548 # Compute $ac_file's index in $config_headers.
21549 _am_stamp_count=1
21550 for _am_header in $config_headers :; do
21551   case $_am_header in
21552     $ac_file | $ac_file:* )
21553       break ;;
21554     * )
21555       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21556   esac
21557 done
21558 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21559 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21560          X$ac_file : 'X\(//\)[^/]' \| \
21561          X$ac_file : 'X\(//\)$' \| \
21562          X$ac_file : 'X\(/\)' \| \
21563          .     : '\(.\)' 2>/dev/null ||
21564 echo X$ac_file |
21565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21566           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21567           /^X\(\/\/\)$/{ s//\1/; q; }
21568           /^X\(\/\).*/{ s//\1/; q; }
21569           s/.*/./; q'`/stamp-h$_am_stamp_count
21570 done
21571 _ACEOF
21572 cat >>$CONFIG_STATUS <<\_ACEOF
21573
21574 #
21575 # CONFIG_COMMANDS section.
21576 #
21577 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21578   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21579   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21580   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21581 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21582          X"$ac_dest" : 'X\(//\)[^/]' \| \
21583          X"$ac_dest" : 'X\(//\)$' \| \
21584          X"$ac_dest" : 'X\(/\)' \| \
21585          .     : '\(.\)' 2>/dev/null ||
21586 echo X"$ac_dest" |
21587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21589           /^X\(\/\/\)$/{ s//\1/; q; }
21590           /^X\(\/\).*/{ s//\1/; q; }
21591           s/.*/./; q'`
21592   { if $as_mkdir_p; then
21593     mkdir -p "$ac_dir"
21594   else
21595     as_dir="$ac_dir"
21596     as_dirs=
21597     while test ! -d "$as_dir"; do
21598       as_dirs="$as_dir $as_dirs"
21599       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21601          X"$as_dir" : 'X\(//\)[^/]' \| \
21602          X"$as_dir" : 'X\(//\)$' \| \
21603          X"$as_dir" : 'X\(/\)' \| \
21604          .     : '\(.\)' 2>/dev/null ||
21605 echo X"$as_dir" |
21606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21607           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21608           /^X\(\/\/\)$/{ s//\1/; q; }
21609           /^X\(\/\).*/{ s//\1/; q; }
21610           s/.*/./; q'`
21611     done
21612     test ! -n "$as_dirs" || mkdir $as_dirs
21613   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21615    { (exit 1); exit 1; }; }; }
21616
21617   ac_builddir=.
21618
21619 if test "$ac_dir" != .; then
21620   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21621   # A "../" for each directory in $ac_dir_suffix.
21622   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21623 else
21624   ac_dir_suffix= ac_top_builddir=
21625 fi
21626
21627 case $srcdir in
21628   .)  # No --srcdir option.  We are building in place.
21629     ac_srcdir=.
21630     if test -z "$ac_top_builddir"; then
21631        ac_top_srcdir=.
21632     else
21633        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21634     fi ;;
21635   [\\/]* | ?:[\\/]* )  # Absolute path.
21636     ac_srcdir=$srcdir$ac_dir_suffix;
21637     ac_top_srcdir=$srcdir ;;
21638   *) # Relative path.
21639     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21640     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21641 esac
21642
21643 # Do not use `cd foo && pwd` to compute absolute paths, because
21644 # the directories may not exist.
21645 case `pwd` in
21646 .) ac_abs_builddir="$ac_dir";;
21647 *)
21648   case "$ac_dir" in
21649   .) ac_abs_builddir=`pwd`;;
21650   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21651   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21652   esac;;
21653 esac
21654 case $ac_abs_builddir in
21655 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21656 *)
21657   case ${ac_top_builddir}. in
21658   .) ac_abs_top_builddir=$ac_abs_builddir;;
21659   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21660   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21661   esac;;
21662 esac
21663 case $ac_abs_builddir in
21664 .) ac_abs_srcdir=$ac_srcdir;;
21665 *)
21666   case $ac_srcdir in
21667   .) ac_abs_srcdir=$ac_abs_builddir;;
21668   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21669   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21670   esac;;
21671 esac
21672 case $ac_abs_builddir in
21673 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21674 *)
21675   case $ac_top_srcdir in
21676   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21677   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21678   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21679   esac;;
21680 esac
21681
21682
21683   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21684 echo "$as_me: executing $ac_dest commands" >&6;}
21685   case $ac_dest in
21686     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21687   # Strip MF so we end up with the name of the file.
21688   mf=`echo "$mf" | sed -e 's/:.*$//'`
21689   # Check whether this is an Automake generated Makefile or not.
21690   # We used to match only the files named `Makefile.in', but
21691   # some people rename them; so instead we look at the file content.
21692   # Grep'ing the first line is not enough: some people post-process
21693   # each Makefile.in and add a new line on top of each file to say so.
21694   # So let's grep whole file.
21695   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21696     dirpart=`(dirname "$mf") 2>/dev/null ||
21697 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21698          X"$mf" : 'X\(//\)[^/]' \| \
21699          X"$mf" : 'X\(//\)$' \| \
21700          X"$mf" : 'X\(/\)' \| \
21701          .     : '\(.\)' 2>/dev/null ||
21702 echo X"$mf" |
21703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21705           /^X\(\/\/\)$/{ s//\1/; q; }
21706           /^X\(\/\).*/{ s//\1/; q; }
21707           s/.*/./; q'`
21708   else
21709     continue
21710   fi
21711   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21712   # Extract the definition of DEP_FILES from the Makefile without
21713   # running `make'.
21714   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21715   test -z "$DEPDIR" && continue
21716   # When using ansi2knr, U may be empty or an underscore; expand it
21717   U=`sed -n -e '/^U = / s///p' < "$mf"`
21718   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21719   # We invoke sed twice because it is the simplest approach to
21720   # changing $(DEPDIR) to its actual value in the expansion.
21721   for file in `sed -n -e '
21722     /^DEP_FILES = .*\\\\$/ {
21723       s/^DEP_FILES = //
21724       :loop
21725         s/\\\\$//
21726         p
21727         n
21728         /\\\\$/ b loop
21729       p
21730     }
21731     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21732        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21733     # Make sure the directory exists.
21734     test -f "$dirpart/$file" && continue
21735     fdir=`(dirname "$file") 2>/dev/null ||
21736 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737          X"$file" : 'X\(//\)[^/]' \| \
21738          X"$file" : 'X\(//\)$' \| \
21739          X"$file" : 'X\(/\)' \| \
21740          .     : '\(.\)' 2>/dev/null ||
21741 echo X"$file" |
21742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744           /^X\(\/\/\)$/{ s//\1/; q; }
21745           /^X\(\/\).*/{ s//\1/; q; }
21746           s/.*/./; q'`
21747     { if $as_mkdir_p; then
21748     mkdir -p $dirpart/$fdir
21749   else
21750     as_dir=$dirpart/$fdir
21751     as_dirs=
21752     while test ! -d "$as_dir"; do
21753       as_dirs="$as_dir $as_dirs"
21754       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21756          X"$as_dir" : 'X\(//\)[^/]' \| \
21757          X"$as_dir" : 'X\(//\)$' \| \
21758          X"$as_dir" : 'X\(/\)' \| \
21759          .     : '\(.\)' 2>/dev/null ||
21760 echo X"$as_dir" |
21761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21763           /^X\(\/\/\)$/{ s//\1/; q; }
21764           /^X\(\/\).*/{ s//\1/; q; }
21765           s/.*/./; q'`
21766     done
21767     test ! -n "$as_dirs" || mkdir $as_dirs
21768   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21769 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21770    { (exit 1); exit 1; }; }; }
21771
21772     # echo "creating $dirpart/$file"
21773     echo '# dummy' > "$dirpart/$file"
21774   done
21775 done
21776  ;;
21777   esac
21778 done
21779 _ACEOF
21780
21781 cat >>$CONFIG_STATUS <<\_ACEOF
21782
21783 { (exit 0); exit 0; }
21784 _ACEOF
21785 chmod +x $CONFIG_STATUS
21786 ac_clean_files=$ac_clean_files_save
21787
21788
21789 # configure is writing to config.log, and then calls config.status.
21790 # config.status does its own redirection, appending to config.log.
21791 # Unfortunately, on DOS this fails, as config.log is still kept open
21792 # by configure, so config.status won't be able to write to it; its
21793 # output is simply discarded.  So we exec the FD to /dev/null,
21794 # effectively closing config.log, so it can be properly (re)opened and
21795 # appended to by config.status.  When coming back to configure, we
21796 # need to make the FD available again.
21797 if test "$no_create" != yes; then
21798   ac_cs_success=:
21799   ac_config_status_args=
21800   test "$silent" = yes &&
21801     ac_config_status_args="$ac_config_status_args --quiet"
21802   exec 5>/dev/null
21803   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21804   exec 5>>config.log
21805   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21806   # would make configure fail if this is the last instruction.
21807   $ac_cs_success || { (exit 1); exit 1; }
21808 fi
21809