2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
5 # Report bugs to <root@mput.dip.jp>.
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 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
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 \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
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
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
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; }; }
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).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
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'"
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'"
237 # We need space, tab and new line, in precisely that order.
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`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
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}
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS 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 GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS VCPP_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
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'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
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 ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
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" ;;
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'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
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 ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
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 ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
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'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
611 # Obsolete; use --with-x.
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 ;;
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 ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
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
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
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.
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
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
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 ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
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; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 --target=TARGET configure for building compilers for TARGET [HOST]
852 if test -n "$ac_init_help"; then
853 case $ac_init_help in
854 short | recursive ) echo "Configuration of TiMidity++ current:";;
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-debug Build a debugging version.
864 --disable-dependency-tracking Speeds up one-time builds
865 --enable-dependency-tracking Do not reject slow dependency extractors
866 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867 default: Automatically select audio device.
869 sun: SunOS /dev/audio
870 hpux: HPUX /dev/audio
871 irix: IRIX audio library
873 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
875 darwin: Darwin CoreAudio
876 alsa: ALSA pcm device
877 alib: HPUX network audio (Alib)
878 nas: NAS - Network Audio System
880 esd: EsounD - Enlightened Sound Daemon
887 gogo: MP3 GOGO (Only Windows is supported)
888 --disable-alsatest Do not try to compile and run a test Alsa program
889 --disable-artstest Do not try to compile and run a test ARTS program
890 --disable-esdtest Do not try to compile and run a test ESD program
891 --disable-aotest Do not try to compile and run a test ao program
892 --disable-oggtest Do not try to compile and run a test Ogg program
893 --disable-vorbistest Do not try to compile and run a test Vorbis program
894 --disable-libFLACtest Do not try to compile and run a test libFLAC program
895 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
896 --enable-interface=interface_list
897 Comma separated interface list
898 --enable-dynamic Enable dynamic link interface (default is no)
899 --enable-dynamic=dynamic_list
900 Comma separated dynamic interface list
901 --enable-ncurses Enable ncurses interface (default is no)
902 --enable-slang Enable slang interface (default is no)
903 --enable-motif Enable motif interface (default is no)
904 --enable-tcltk Enable tcltk interface (default is no)
905 --enable-emacs Enable emacs interface (default is no)
906 --enable-vt100 Enable VT100 interface (default is no)
907 --enable-xaw Enable athena interface (default is no)
908 --enable-xskin Enable X skin interface (default is no)
909 --enable-gtk Enable GTK+ interface (default is no)
910 --disable-gtktest Do not try to compile and run a test GTK program
911 --enable-server Enable server interface (default is no)
912 --enable-alsaseq Enable ALSA sequencer server interface
914 --enable-winsyn Enable Windows Synthesizer interface
916 --enable-portmidisyn Enable PortMIDI Synthesizer interface
918 --enable-winsyng Enable Windows GUI Synthesizer interface
920 --enable-w32gui Enable Windows GUI interface (default is no)
921 --enable-ump UMP configuration (default is no)
922 --enable-offix Enable offix support (default is no)
923 --enable-network Enable network support (default is no)
924 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
925 --enable-spline=method Specify spline method.
926 one of no,linear,cubic,lagrange,newton,gauss
928 --enable-wrd Enable WRD interface for X (default is no)
931 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
932 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
933 --with-includes=DIR Specify include directories (colon separated)
934 --with-libraries=DIR Specify library directories (colon separated)
935 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
936 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
937 --with-lispdir Override the default lisp directory
938 --with-elf create ELF shared object instead of AOUT
939 --with-x use the X Window System
940 --with-tcl-includes=DIR Tcl include file path
941 --with-tcl-libs=DIR Tcl library file path
942 --with-tk-includes=DIR Tk include file path
943 --with-tk-libs=DIR Tk library file path
944 --with-offix-includes=DIR Offix include file path
945 --with-offix-libs=DIR Offix include file path
946 --with-nas-library=library NAS absolute library path(Don't use -laudio)
947 --with-nas-includes=DIR NAS include files are in dir
948 --with-default-output=<mode> Specify default output mode (optional):
949 (default|alsa|alib|arts|nas|
950 esd|wav|au|aiff|list|vorbis|flac|speex|
951 gogo|portaudio|jack|ao)
952 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
953 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
954 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
955 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
956 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
957 --with-ao=PFX Prefix where libao is installed (optional)
958 --with-ao-libraries=DIR Directory where libao library is installed (optional)
959 --with-ao-includes=DIR Directory where libao header files are installed (optional)
960 --with-ogg=PFX Prefix where libogg is installed (optional)
961 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
962 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
963 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
964 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
965 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
966 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
967 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
968 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
969 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
970 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
971 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
972 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
973 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
975 Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
984 Use these variables to override the choices made by `configure' or to help
985 it to find libraries and programs with nonstandard names/locations.
987 Report bugs to <root@mput.dip.jp>.
991 if test "$ac_init_help" = "recursive"; then
992 # If there are subdirs, report their specific --help.
994 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
995 test -d $ac_dir || continue
998 if test "$ac_dir" != .; then
999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1000 # A "../" for each directory in $ac_dir_suffix.
1001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1003 ac_dir_suffix= ac_top_builddir=
1007 .) # No --srcdir option. We are building in place.
1009 if test -z "$ac_top_builddir"; then
1012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1014 [\\/]* | ?:[\\/]* ) # Absolute path.
1015 ac_srcdir=$srcdir$ac_dir_suffix;
1016 ac_top_srcdir=$srcdir ;;
1018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1019 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1022 # Do not use `cd foo && pwd` to compute absolute paths, because
1023 # the directories may not exist.
1025 .) ac_abs_builddir="$ac_dir";;
1028 .) ac_abs_builddir=`pwd`;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1030 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1036 case ${ac_top_builddir}. in
1037 .) ac_abs_top_builddir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1042 case $ac_abs_builddir in
1043 .) ac_abs_srcdir=$ac_srcdir;;
1046 .) ac_abs_srcdir=$ac_abs_builddir;;
1047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1051 case $ac_abs_builddir in
1052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1054 case $ac_top_srcdir in
1055 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1062 # Check for guested configure; otherwise get Cygnus style configure.
1063 if test -f $ac_srcdir/configure.gnu; then
1065 $SHELL $ac_srcdir/configure.gnu --help=recursive
1066 elif test -f $ac_srcdir/configure; then
1068 $SHELL $ac_srcdir/configure --help=recursive
1069 elif test -f $ac_srcdir/configure.ac ||
1070 test -f $ac_srcdir/configure.in; then
1072 $ac_configure --help
1074 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1080 test -n "$ac_init_help" && exit 0
1081 if $ac_init_version; then
1083 TiMidity++ configure current
1084 generated by GNU Autoconf 2.59
1086 Copyright (C) 2003 Free Software Foundation, Inc.
1087 This configure script is free software; the Free Software Foundation
1088 gives unlimited permission to copy, distribute and modify it.
1094 This file contains any messages produced by compilers while
1095 running configure, to aid debugging if configure makes a mistake.
1097 It was created by TiMidity++ $as_me current, which was
1098 generated by GNU Autoconf 2.59. Invocation command line was
1109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1121 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1132 test -z "$as_dir" && as_dir=.
1133 echo "PATH: $as_dir"
1148 # Keep a trace of the command line.
1149 # Strip out --no-create and --no-recursion so they do not pile up.
1150 # Strip out --silent because we don't want to record it for future runs.
1151 # Also quote any args containing shell meta-characters.
1152 # Make two passes to allow for proper duplicate-argument suppression.
1157 ac_must_keep_next=false
1163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1167 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1168 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1171 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1173 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1174 if test $ac_must_keep_next = true; then
1175 ac_must_keep_next=false # Got value, back to normal.
1178 *=* | --config-cache | -C | -disable-* | --disable-* \
1179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1181 | -with-* | --with-* | -without-* | --without-* | --x)
1182 case "$ac_configure_args0 " in
1183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1186 -* ) ac_must_keep_next=true ;;
1189 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1190 # Get rid of the leading space.
1196 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1197 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1199 # When interrupted or exit'd, cleanup temporary files, and complete
1200 # config.log. We remove comments because anyway the quotes in there
1201 # would cause problems or look ugly.
1202 # WARNING: Be sure not to use single quotes in there, as some shells,
1203 # such as our DU 5.0 friend, will then `close' the trap.
1204 trap 'exit_status=$?
1205 # Save into config.log some information that might help in debugging.
1210 ## ---------------- ##
1211 ## Cache variables. ##
1212 ## ---------------- ##
1215 # The following way of writing the cache mishandles newlines in values,
1218 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1221 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1226 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1233 ## ----------------- ##
1234 ## Output variables. ##
1235 ## ----------------- ##
1238 for ac_var in $ac_subst_vars
1240 eval ac_val=$`echo $ac_var`
1241 echo "$ac_var='"'"'$ac_val'"'"'"
1245 if test -n "$ac_subst_files"; then
1252 for ac_var in $ac_subst_files
1254 eval ac_val=$`echo $ac_var`
1255 echo "$ac_var='"'"'$ac_val'"'"'"
1260 if test -s confdefs.h; then
1267 sed "/^$/d" confdefs.h | sort
1270 test "$ac_signal" != 0 &&
1271 echo "$as_me: caught signal $ac_signal"
1272 echo "$as_me: exit $exit_status"
1274 rm -f core *.core &&
1275 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1278 for ac_signal in 1 2 13 15; do
1279 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1284 rm -rf conftest* confdefs.h
1285 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1288 # Predefined preprocessor variables.
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_NAME "$PACKAGE_NAME"
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_STRING "$PACKAGE_STRING"
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1315 # Let the site file select an alternate cache file if it wants to.
1316 # Prefer explicitly selected file to automatically selected ones.
1317 if test -z "$CONFIG_SITE"; then
1318 if test "x$prefix" != xNONE; then
1319 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1321 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1324 for ac_site_file in $CONFIG_SITE; do
1325 if test -r "$ac_site_file"; then
1326 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1327 echo "$as_me: loading site script $ac_site_file" >&6;}
1328 sed 's/^/| /' "$ac_site_file" >&5
1333 if test -r "$cache_file"; then
1334 # Some versions of bash will fail to source /dev/null (special
1335 # files actually), so we avoid doing that.
1336 if test -f "$cache_file"; then
1337 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1338 echo "$as_me: loading cache $cache_file" >&6;}
1340 [\\/]* | ?:[\\/]* ) . $cache_file;;
1341 *) . ./$cache_file;;
1345 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1346 echo "$as_me: creating cache $cache_file" >&6;}
1350 # Check that the precious variables saved in the cache have kept the same
1352 ac_cache_corrupted=false
1353 for ac_var in `(set) 2>&1 |
1354 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1355 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1356 eval ac_new_set=\$ac_env_${ac_var}_set
1357 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1358 eval ac_new_val="\$ac_env_${ac_var}_value"
1359 case $ac_old_set,$ac_new_set in
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1365 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1366 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1367 ac_cache_corrupted=: ;;
1370 if test "x$ac_old_val" != "x$ac_new_val"; then
1371 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1372 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1373 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1374 echo "$as_me: former value: $ac_old_val" >&2;}
1375 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1376 echo "$as_me: current value: $ac_new_val" >&2;}
1377 ac_cache_corrupted=:
1380 # Pass precious variables to config.status.
1381 if test "$ac_new_set" = set; then
1383 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1384 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1385 *) ac_arg=$ac_var=$ac_new_val ;;
1387 case " $ac_configure_args " in
1388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1389 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1393 if $ac_cache_corrupted; then
1394 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1395 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1396 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1397 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1398 { (exit 1); exit 1; }; }
1402 ac_cpp='$CPP $CPPFLAGS'
1403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 for ac_dir in autoconf $srcdir/autoconf; do
1435 if test -f $ac_dir/install-sh; then
1437 ac_install_sh="$ac_aux_dir/install-sh -c"
1439 elif test -f $ac_dir/install.sh; then
1441 ac_install_sh="$ac_aux_dir/install.sh -c"
1443 elif test -f $ac_dir/shtool; then
1445 ac_install_sh="$ac_aux_dir/shtool install -c"
1449 if test -z "$ac_aux_dir"; then
1450 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1451 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1452 { (exit 1); exit 1; }; }
1454 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1455 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1456 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471 ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475 { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497 ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512 echo "$as_me:$LINENO: checking target system type" >&5
1513 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1514 if test "${ac_cv_target+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 ac_cv_target_alias=$target_alias
1518 test "x$ac_cv_target_alias" = "x" &&
1519 ac_cv_target_alias=$ac_cv_host_alias
1520 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1527 echo "${ECHO_T}$ac_cv_target" >&6
1528 target=$ac_cv_target
1529 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 # The aliases save the names the user supplied, while $host etc.
1535 # will get canonicalized.
1536 test -n "$target_alias" &&
1537 test "$program_prefix$program_suffix$program_transform_name" = \
1539 program_prefix=${target_alias}-
1540 am__api_version="1.7"
1541 # Find a good install program. We prefer a C program (faster),
1542 # so one script is as good as another. But avoid the broken or
1543 # incompatible versions:
1544 # SysV /etc/install, /usr/sbin/install
1545 # SunOS /usr/etc/install
1546 # IRIX /sbin/install
1548 # AmigaOS /C/install, which installs bootblocks on floppy discs
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # OS/2's system install, which has a completely different semantic
1553 # ./install, which can be erroneously created by make from ./install.sh.
1554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1556 if test -z "$INSTALL"; then
1557 if test "${ac_cv_path_install+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 # Account for people who put trailing slashes in PATH elements.
1567 ./ | .// | /cC/* | \
1568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572 # OSF1 and SCO ODT 3.0 have their own names for install.
1573 # Don't use installbsd from OSF since it installs stuff as root
1575 for ac_prog in ginstall scoinst install; do
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1578 if test $ac_prog = install &&
1579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580 # AIX install. It has an incompatible calling convention.
1582 elif test $ac_prog = install &&
1583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # program-specific install script used by HP pwplus--don't use.
1587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1599 if test "${ac_cv_path_install+set}" = set; then
1600 INSTALL=$ac_cv_path_install
1602 # As a last resort, use the slow shell script. We don't cache a
1603 # path for INSTALL within a source directory, because that will
1604 # break other packages using the cache if that directory is
1605 # removed, or if the path is relative.
1606 INSTALL=$ac_install_sh
1609 echo "$as_me:$LINENO: result: $INSTALL" >&5
1610 echo "${ECHO_T}$INSTALL" >&6
1612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613 # It thinks the first close brace ends the variable substitution.
1614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624 echo timestamp > conftest.file
1625 # Do `set' in a subshell so we don't clobber the current shell's
1626 # arguments. Must try -L first in case configure is actually a
1627 # symlink; some systems play weird games with the mod time of symlinks
1628 # (eg FreeBSD returns the mod time of the symlink's containing
1631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1632 if test "$*" = "X"; then
1634 set X `ls -t $srcdir/configure conftest.file`
1637 if test "$*" != "X $srcdir/configure conftest.file" \
1638 && test "$*" != "X conftest.file $srcdir/configure"; then
1640 # If neither matched, then we have a broken ls. This can happen
1641 # if, for instance, CONFIG_SHELL is bash and it inherits a
1642 # broken ls alias from the environment. This has actually
1643 # happened. Such a system could not be considered "sane".
1644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1645 alias in your environment" >&5
1646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1647 alias in your environment" >&2;}
1648 { (exit 1); exit 1; }; }
1651 test "$2" = conftest.file
1657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1658 Check your system clock" >&5
1659 echo "$as_me: error: newly created file is older than distributed files!
1660 Check your system clock" >&2;}
1661 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: yes" >&5
1664 echo "${ECHO_T}yes" >&6
1665 test "$program_prefix" != NONE &&
1666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667 # Use a double $ so make ignores it.
1668 test "$program_suffix" != NONE &&
1669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670 # Double any \ or $. echo might interpret backslashes.
1671 # By default was `s,x,x', remove it if useless.
1672 cat <<\_ACEOF >conftest.sed
1673 s/[\\$]/&&/g;s/;s,x,x,$//
1675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir=`cd $ac_aux_dir && pwd`
1682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685 am_missing_run="$MISSING --run "
1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 for ac_prog in gawk mawk nawk awk
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_AWK+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$AWK"; then
1702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_AWK="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 if test -n "$AWK"; then
1722 echo "$as_me:$LINENO: result: $AWK" >&5
1723 echo "${ECHO_T}$AWK" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$AWK" && break
1732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 cat >conftest.make <<\_ACEOF
1740 @echo 'ac_maketemp="$(MAKE)"'
1742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744 if test -n "$ac_maketemp"; then
1745 eval ac_cv_prog_make_${ac_make}_set=yes
1747 eval ac_cv_prog_make_${ac_make}_set=no
1751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752 echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 SET_MAKE="MAKE=${MAKE-make}"
1761 rm -rf .tst 2>/dev/null
1762 mkdir .tst 2>/dev/null
1763 if test -d .tst; then
1768 rmdir .tst 2>/dev/null
1770 # test to see if srcdir already configured
1771 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1772 test -f $srcdir/config.status; then
1773 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1774 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1775 { (exit 1); exit 1; }; }
1778 # test whether we have cygpath
1779 if test -z "$CYGPATH_W"; then
1780 if (cygpath --version) >/dev/null 2>/dev/null; then
1781 CYGPATH_W='cygpath -w'
1788 # Define the identity of the package.
1789 PACKAGE='TiMidity++'
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE "$PACKAGE"
1798 cat >>confdefs.h <<_ACEOF
1799 #define VERSION "$VERSION"
1802 # Some tools Automake needs.
1804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1819 AMTAR=${AMTAR-"${am_missing_run}tar"}
1821 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1823 # Installed binaries are usually stripped using `strip' when the user
1824 # run `make install-strip'. However `strip' might not be the right
1825 # tool to use in cross-compilation environments, therefore Automake
1826 # will honor the `STRIP' environment variable to overrule this program.
1827 if test "$cross_compiling" != no; then
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}strip; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_STRIP+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$STRIP"; then
1837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 STRIP=$ac_cv_prog_STRIP
1856 if test -n "$STRIP"; then
1857 echo "$as_me:$LINENO: result: $STRIP" >&5
1858 echo "${ECHO_T}$STRIP" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_STRIP"; then
1867 # Extract the first word of "strip", so it can be a program name with args.
1868 set dummy strip; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$ac_ct_STRIP"; then
1875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_STRIP="strip"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1895 if test -n "$ac_ct_STRIP"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1897 echo "${ECHO_T}$ac_ct_STRIP" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1905 STRIP="$ac_cv_prog_STRIP"
1909 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1911 # We need awk for the "check" target. The system "awk" is bad on
1917 ac_config_headers="$ac_config_headers config.h interface.h"
1919 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1920 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1921 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1922 if test "${enable_maintainer_mode+set}" = set; then
1923 enableval="$enable_maintainer_mode"
1924 USE_MAINTAINER_MODE=$enableval
1926 USE_MAINTAINER_MODE=no
1928 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1929 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1932 if test $USE_MAINTAINER_MODE = yes; then
1933 MAINTAINER_MODE_TRUE=
1934 MAINTAINER_MODE_FALSE='#'
1936 MAINTAINER_MODE_TRUE='#'
1937 MAINTAINER_MODE_FALSE=
1940 MAINT=$MAINTAINER_MODE_TRUE
1944 SHELL=${CONFIG_SHELL-"/bin/sh"}
1947 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1948 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1949 echo "grimblepritz" >grimble
1950 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1951 contains="./contains"
1952 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1955 contains="./contains"
1959 grep) echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1963 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1964 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1965 cat >./contains <<'EOSS'
1966 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1968 chmod +x "./contains"
1973 # Check for compiler options -- such as debug flags.
1975 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1976 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1977 # Check whether --enable-debug or --disable-debug was given.
1978 if test "${enable_debug+set}" = set; then
1979 enableval="$enable_debug"
1980 timidity_cv_debug="yes"
1982 timidity_cv_debug="no"
1984 if test "x$timidity_cv_debug" = "xyes"; then
1986 cat >>confdefs.h <<\_ACEOF
1990 CFLAGS=${CFLAGS-"-g"}
1992 if test "x$timidity_cv_debug" = "xno"; then
1994 cat >>confdefs.h <<\_ACEOF
1999 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2000 echo "${ECHO_T}$timidity_cv_debug" >&6
2002 CFLAGS=${CFLAGS-"-O2"}
2004 if test "x$with_x" = x; then
2010 # Checking gcc environment
2011 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2012 LDFLAGS="$LDFLAGS -L${i}"
2014 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2015 CPPFLAGS="$CPPFLAGS -I${i}"
2018 # add $prefix if specified.
2019 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2020 LDFLAGS="-L$prefix/lib $LDFLAGS"
2021 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2022 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2026 # Check whether --with-includes or --without-includes was given.
2027 if test "${with_includes+set}" = set; then
2028 withval="$with_includes"
2030 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2033 CPPFLAGS="$j$CPPFLAGS"
2038 # Check whether --with-libraries or --without-libraries was given.
2039 if test "${with_libraries+set}" = set; then
2040 withval="$with_libraries"
2042 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2045 LDFLAGS="$j$LDFLAGS"
2051 # Check whether --with-default-path or --without-default-path was given.
2052 if test "${with_default_path+set}" = set; then
2053 withval="$with_default_path"
2057 if test "x$prefix" != "xNONE"; then
2058 pkgdatadir='${prefix}/share/timidity'
2060 pkgdatadir='/usr/local/share/timidity'
2064 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2066 cat >>confdefs.h <<_ACEOF
2067 #define DEFAULT_PATH "$tmpdefpath"
2071 cat >>confdefs.h <<\_ACEOF
2072 #define PKGDATADIR DEFAULT_PATH
2077 # Check whether --with-module-dir or --without-module-dir was given.
2078 if test "${with_module_dir+set}" = set; then
2079 withval="$with_module_dir"
2083 if test "x$prefix" != "xNONE"; then
2084 pkglibdir='${prefix}/lib/timidity'
2086 pkglibdir='/usr/local/lib/timidity'
2090 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PKGLIBDIR "$tmplibdir"
2098 # Checks for programs.
2100 # Check whether --with-lispdir or --without-lispdir was given.
2101 if test "${with_lispdir+set}" = set; then
2102 withval="$with_lispdir"
2104 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2105 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2106 echo "$as_me:$LINENO: result: $lispdir" >&5
2107 echo "${ECHO_T}$lispdir" >&6
2110 # If set to t, that means we are running in a shell under Emacs.
2111 # If you have an Emacs named "t", then use the full path.
2112 test x"$EMACS" = xt && EMACS=
2113 for ac_prog in emacs xemacs
2115 # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_EMACS+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$EMACS"; then
2123 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_EMACS="$ac_prog"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 EMACS=$ac_cv_prog_EMACS
2142 if test -n "$EMACS"; then
2143 echo "$as_me:$LINENO: result: $EMACS" >&5
2144 echo "${ECHO_T}$EMACS" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2150 test -n "$EMACS" && break
2152 test -n "$EMACS" || EMACS="no"
2154 if test $EMACS != "no"; then
2155 if test x${lispdir+set} != xset; then
2156 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2157 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2158 if test "${am_cv_lispdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2162 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2163 # which is non-obvious for non-emacs users.
2164 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2165 # emacsen earlier and avoid running this altogether.
2166 { (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
2167 ($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
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2171 am_cv_lispdir=`sed -n \
2173 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2174 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2177 if test -z "$am_cv_lispdir"; then
2178 am_cv_lispdir='${datadir}/emacs/site-lisp'
2182 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2183 echo "${ECHO_T}$am_cv_lispdir" >&6
2184 lispdir="$am_cv_lispdir"
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 if test -n "$ac_tool_prefix"; then
2197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$CC"; then
2205 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 if test -n "$CC"; then
2225 echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2233 if test -z "$ac_cv_prog_CC"; then
2235 # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$ac_ct_CC"; then
2243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_ac_ct_CC="gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2275 if test -z "$CC"; then
2276 if test -n "$ac_tool_prefix"; then
2277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}cc; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_CC="${ac_tool_prefix}cc"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test -n "$CC"; then
2305 echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2313 if test -z "$ac_cv_prog_CC"; then
2315 # Extract the first word of "cc", so it can be a program name with args.
2316 set dummy cc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_ac_ct_CC="cc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2356 if test -z "$CC"; then
2357 # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2376 ac_prog_rejected=yes
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test $ac_prog_rejected = yes; then
2387 # We found a bogon in the path, so make sure we never use it.
2388 set dummy $ac_cv_prog_CC
2390 if test $# != 0; then
2391 # We chose a different compiler from the bogus one.
2392 # However, it has the same basename, so the bogon will be chosen
2393 # first if we set CC to just the basename; use the full file name.
2395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2401 if test -n "$CC"; then
2402 echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2445 echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2449 test -n "$CC" && break
2452 if test -z "$CC"; then
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_CC="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 test -n "$ac_ct_CC" && break
2500 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: no acceptable C compiler found in \$PATH
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2506 # Provide some information about the compiler.
2507 echo "$as_me:$LINENO:" \
2508 "checking for C compiler version" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2511 (eval $ac_compiler --version </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2516 (eval $ac_compiler -v </dev/null >&5) 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2521 (eval $ac_compiler -V </dev/null >&5) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2541 ac_clean_files_save=$ac_clean_files
2542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2546 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2548 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2550 (eval $ac_link_default) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 # Find the output, starting from the most likely. This scheme is
2555 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2558 # Be careful to initialize this variable, since it used to be cached.
2559 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2561 # b.out is created by i960 compilers.
2562 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2564 test -f "$ac_file" || continue
2566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2569 # This is the source file.
2572 # We found the default executable, but exeext='' is most
2576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2577 # FIXME: I believe we export ac_cv_exeext for Libtool,
2578 # but it would be cool to find out if it's true. Does anybody
2579 # maintain Libtool? --akim.
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: C compiler cannot create executables
2593 See \`config.log' for more details." >&2;}
2594 { (exit 77); exit 77; }; }
2597 ac_exeext=$ac_cv_exeext
2598 echo "$as_me:$LINENO: result: $ac_file" >&5
2599 echo "${ECHO_T}$ac_file" >&6
2601 # Check the compiler produces executables we can run. If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2605 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 # If not cross compiling, check that we can run a simple program.
2607 if test "$cross_compiling" != yes; then
2608 if { ac_try='./$ac_file'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2616 if test "$cross_compiling" = maybe; then
2619 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2620 If you meant to cross compile, use \`--host'.
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2629 echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2632 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2633 ac_clean_files=$ac_clean_files_save
2634 # Check the compiler produces executables we can run. If not, either
2635 # the compiler is broken, or we cross compile.
2636 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2638 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2639 echo "${ECHO_T}$cross_compiling" >&6
2641 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2642 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644 (eval $ac_link) 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2650 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 for ac_file in conftest.exe conftest conftest.*; do
2653 test -f "$ac_file" || continue
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2670 rm -f conftest$ac_cv_exeext
2671 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2677 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2679 if test "${ac_cv_objext+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.o conftest.obj
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; then
2703 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6
2725 OBJEXT=$ac_cv_objext
2727 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -z "$ac_c_werror_flag"
2760 || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2783 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2789 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2790 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2791 if test "${ac_cv_prog_cc_g+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2842 if test "$ac_test_CFLAGS" = set; then
2843 CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845 if test "$GCC" = yes; then
2851 if test "$GCC" = yes; then
2857 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2858 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 ac_cv_prog_cc_stdc=no
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2888 s = g (p, va_arg (v,int));
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2894 function prototypes and stuff, but not '\xHH' hex character constants.
2895 These don't provoke an error unfortunately, instead are silently treated
2896 as 'x'. The following induces an error, until -std1 is added to get
2897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2898 array size at least. It's necessary to write '\x00'==0 to get something
2899 that's true only with -std1. */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902 int test (int i, double x);
2903 struct s1 {int (*f) (int a);};
2904 struct s2 {int (*f) (double a);};
2905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2916 # Don't try gcc -ansi; that turns off useful extensions and
2917 # breaks some systems' header files.
2918 # AIX -qlanglvl=ansi
2919 # Ultrix and OSF/1 -std1
2920 # HP-UX 10.20 and later -Ae
2921 # HP-UX older versions -Aa -D_HPUX_SOURCE
2922 # SVR4 -Xc -D__EXTENSIONS__
2923 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 CC="$ac_save_CC $ac_arg"
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_prog_cc_stdc=$ac_arg
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f conftest.err conftest.$ac_objext
2957 rm -f conftest.$ac_ext conftest.$ac_objext
2962 case "x$ac_cv_prog_cc_stdc" in
2964 echo "$as_me:$LINENO: result: none needed" >&5
2965 echo "${ECHO_T}none needed" >&6 ;;
2967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2969 CC="$CC $ac_cv_prog_cc_stdc" ;;
2972 # Some people use a C++ compiler to compile C. Since we use `exit',
2973 # in C++ we need to declare it. In case someone uses the same compiler
2974 # for both compiling C and C++ we need to have the C++ compiler decide
2975 # the declaration of exit, since it's the most demanding environment.
2976 cat >conftest.$ac_ext <<_ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 for ac_declaration in \
3005 'extern "C" void std::exit (int) throw (); using std::exit;' \
3006 'extern "C" void std::exit (int); using std::exit;' \
3007 'extern "C" void exit (int) throw ();' \
3008 'extern "C" void exit (int);' \
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_c_werror_flag"
3037 || test ! -s conftest.err'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074 (eval $ac_compile) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag"
3082 || test ! -s conftest.err'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 if test -n "$ac_declaration"; then
3104 echo '#ifdef __cplusplus' >>confdefs.h
3105 echo $ac_declaration >>confdefs.h
3106 echo '#endif' >>confdefs.h
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 DEPDIR="${am__leading_dot}deps"
3122 ac_config_commands="$ac_config_commands depfiles"
3125 am_make=${MAKE-make}
3126 cat > confinc << 'END'
3131 # If we don't find an include directive, just comment out the code.
3132 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3133 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3137 # First try GNU make style include.
3138 echo "include confinc" > confmf
3139 # We grep out `Entering directory' and `Leaving directory'
3140 # messages which can occur if `w' ends up in MAKEFLAGS.
3141 # In particular we don't look at `^make:' because GNU make might
3142 # be invoked under some other name (usually "gmake"), in which
3143 # case it prints its new name instead of `make'.
3144 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3149 # Now try BSD make style include.
3150 if test "$am__include" = "#"; then
3151 echo '.include "confinc"' > confmf
3152 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3153 am__include=.include
3160 echo "$as_me:$LINENO: result: $_am_result" >&5
3161 echo "${ECHO_T}$_am_result" >&6
3162 rm -f confinc confmf
3164 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3165 if test "${enable_dependency_tracking+set}" = set; then
3166 enableval="$enable_dependency_tracking"
3169 if test "x$enable_dependency_tracking" != xno; then
3170 am_depcomp="$ac_aux_dir/depcomp"
3175 if test "x$enable_dependency_tracking" != xno; then
3186 depcc="$CC" am_compiler_list=
3188 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3189 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3190 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3194 # We make a subdir and do the tests there. Otherwise we can end up
3195 # making bogus files that we don't know about and never remove. For
3196 # instance it was reported that on HP-UX the gcc test will end up
3197 # making a dummy file named `D' -- because `-MD' means `put the output
3200 # Copy depcomp to subdir because otherwise we won't find it if we're
3201 # using a relative directory.
3202 cp "$am_depcomp" conftest.dir
3204 # We will build objects and dependencies in a subdirectory because
3205 # it helps to detect inapplicable dependency modes. For instance
3206 # both Tru64's cc and ICC support -MD to output dependencies as a
3207 # side effect of compilation, but ICC will put the dependencies in
3208 # the current directory while Tru64 will put them in the object
3212 am_cv_CC_dependencies_compiler_type=none
3213 if test "$am_compiler_list" = ""; then
3214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3216 for depmode in $am_compiler_list; do
3217 # Setup a source with many dependencies, because some compilers
3218 # like to wrap large dependency lists on column 80 (with \), and
3219 # we should not choose a depcomp mode which is confused by this.
3221 # We need to recreate these files for each test, as the compiler may
3222 # overwrite some of them when testing with obscure command lines.
3223 # This happens at least with the AIX C compiler.
3225 for i in 1 2 3 4 5 6; do
3226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3233 # after this tag, mechanisms are not by side-effect, so they'll
3234 # only be used when explicitly requested
3235 if test "x$enable_dependency_tracking" = xyes; then
3243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244 # mode. It turns out that the SunPro C++ compiler does not properly
3245 # handle `-M -o', and we need to detect this.
3246 if depmode=$depmode \
3247 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250 >/dev/null 2>conftest.err &&
3251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254 # icc doesn't choke on unknown options, it will just issue warnings
3255 # (even with -Werror). So we grep stderr for any message
3256 # that says an option was ignored.
3257 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3258 am_cv_CC_dependencies_compiler_type=$depmode
3267 am_cv_CC_dependencies_compiler_type=none
3271 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3272 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3273 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3278 test "x$enable_dependency_tracking" != xno \
3279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281 am__fastdepCC_FALSE='#'
3283 am__fastdepCC_TRUE='#'
3284 am__fastdepCC_FALSE=
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3296 # On Suns, sometimes $CPP names a directory.
3297 if test -n "$CPP" && test -d "$CPP"; then
3300 if test -z "$CPP"; then
3301 if test "${ac_cv_prog_CPP+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 # Double quotes because CPP needs to be expanded
3305 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3308 for ac_c_preproc_warn_flag in '' yes
3310 # Use a header file that comes with gcc, so configuring glibc
3311 # with a fresh cross-compiler works.
3312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313 # <limits.h> exists even on freestanding compilers.
3314 # On the NeXT, cc -E runs the code through the compiler's parser,
3315 # not just through cpp. "Syntax error" is here to catch this case.
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3323 # include <limits.h>
3325 # include <assert.h>
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3346 if test -z "$ac_cpp_err"; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Broken: fails on valid input.
3355 rm -f conftest.err conftest.$ac_ext
3357 # OK, works on sane cases. Now check whether non-existent headers
3358 # can be detected and how.
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <ac_nonexistent.h>
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 if test -z "$ac_cpp_err"; then
3385 # Broken: success on invalid input.
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 # Passes both tests.
3395 rm -f conftest.err conftest.$ac_ext
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3412 echo "$as_me:$LINENO: result: $CPP" >&5
3413 echo "${ECHO_T}$CPP" >&6
3415 for ac_c_preproc_warn_flag in '' yes
3417 # Use a header file that comes with gcc, so configuring glibc
3418 # with a fresh cross-compiler works.
3419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420 # <limits.h> exists even on freestanding compilers.
3421 # On the NeXT, cc -E runs the code through the compiler's parser,
3422 # not just through cpp. "Syntax error" is here to catch this case.
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3430 # include <limits.h>
3432 # include <assert.h>
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 if test -z "$ac_cpp_err"; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Broken: fails on valid input.
3462 rm -f conftest.err conftest.$ac_ext
3464 # OK, works on sane cases. Now check whether non-existent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <ac_nonexistent.h>
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 grep -v '^ *+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_c_preproc_warn_flag
3484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Passes both tests.
3502 rm -f conftest.err conftest.$ac_ext
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.$ac_ext
3507 if $ac_preproc_ok; then
3510 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 echo "$as_me:$LINENO: checking for egrep" >&5
3525 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526 if test "${ac_cv_prog_egrep+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3530 then ac_cv_prog_egrep='grep -E'
3531 else ac_cv_prog_egrep='egrep'
3534 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3535 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3536 EGREP=$ac_cv_prog_egrep
3539 if test $ac_cv_c_compiler_gnu = yes; then
3540 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3541 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3542 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_pattern="Autoconf.*'x'"
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3557 ac_cv_prog_gcc_traditional=yes
3559 ac_cv_prog_gcc_traditional=no
3564 if test $ac_cv_prog_gcc_traditional = no; then
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3576 ac_cv_prog_gcc_traditional=yes
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3583 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3584 if test $ac_cv_prog_gcc_traditional = yes; then
3585 CC="$CC -traditional"
3589 # Find a good install program. We prefer a C program (faster),
3590 # so one script is as good as another. But avoid the broken or
3591 # incompatible versions:
3592 # SysV /etc/install, /usr/sbin/install
3593 # SunOS /usr/etc/install
3594 # IRIX /sbin/install
3596 # AmigaOS /C/install, which installs bootblocks on floppy discs
3597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3600 # OS/2's system install, which has a completely different semantic
3601 # ./install, which can be erroneously created by make from ./install.sh.
3602 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3603 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3604 if test -z "$INSTALL"; then
3605 if test "${ac_cv_path_install+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 test -z "$as_dir" && as_dir=.
3613 # Account for people who put trailing slashes in PATH elements.
3615 ./ | .// | /cC/* | \
3616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3617 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3620 # OSF1 and SCO ODT 3.0 have their own names for install.
3621 # Don't use installbsd from OSF since it installs stuff as root
3623 for ac_prog in ginstall scoinst install; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3626 if test $ac_prog = install &&
3627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3628 # AIX install. It has an incompatible calling convention.
3630 elif test $ac_prog = install &&
3631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3632 # program-specific install script used by HP pwplus--don't use.
3635 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3647 if test "${ac_cv_path_install+set}" = set; then
3648 INSTALL=$ac_cv_path_install
3650 # As a last resort, use the slow shell script. We don't cache a
3651 # path for INSTALL within a source directory, because that will
3652 # break other packages using the cache if that directory is
3653 # removed, or if the path is relative.
3654 INSTALL=$ac_install_sh
3657 echo "$as_me:$LINENO: result: $INSTALL" >&5
3658 echo "${ECHO_T}$INSTALL" >&6
3660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3661 # It thinks the first close brace ends the variable substitution.
3662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3668 for ac_prog in gawk mawk nawk awk
3670 # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_AWK+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 if test -n "$AWK"; then
3678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_AWK="$ac_prog"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 if test -n "$AWK"; then
3698 echo "$as_me:$LINENO: result: $AWK" >&5
3699 echo "${ECHO_T}$AWK" >&6
3701 echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3705 test -n "$AWK" && break
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_prog_RANLIB+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$RANLIB"; then
3717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 RANLIB=$ac_cv_prog_RANLIB
3736 if test -n "$RANLIB"; then
3737 echo "$as_me:$LINENO: result: $RANLIB" >&5
3738 echo "${ECHO_T}$RANLIB" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3745 if test -z "$ac_cv_prog_RANLIB"; then
3746 ac_ct_RANLIB=$RANLIB
3747 # Extract the first word of "ranlib", so it can be a program name with args.
3748 set dummy ranlib; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$ac_ct_RANLIB"; then
3755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_ac_ct_RANLIB="ranlib"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3775 if test -n "$ac_ct_RANLIB"; then
3776 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3783 RANLIB=$ac_ct_RANLIB
3785 RANLIB="$ac_cv_prog_RANLIB"
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3791 if test "$LN_S" = "ln -s"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3799 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3800 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3801 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3802 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat > conftest.$ac_ext <<EOF
3806 int main() {return 0;}
3808 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3809 if test -s conftest.out; then
3810 eval "timidity_cv_ccoption_$ac_ccoption=no"
3812 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3815 eval "timidity_cv_ccoption_$ac_ccoption=no"
3820 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3821 echo "$as_me:$LINENO: result: yes" >&5
3822 echo "${ECHO_T}yes" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3831 # Checks for target dependencies
3834 # Check whether --with-elf or --without-elf was given.
3835 if test "${with_elf+set}" = set; then
3843 # [ --with-simd create SIMD friendly binary (default is no) ],
3844 # [ SIMD=$withval ], [ SIMD="no" ])
3849 test -n "$SHLD" || SHLD="ld -b"
3853 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3854 test -n "$SHLD" || SHLD="cc -shared -all"
3858 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3863 test -n "$SHLD" || SHLD="ld -Bshareable"
3867 if test "$ELFFORMAT" = yes; then
3868 test -n "$SHLD" || SHLD="ld -Bshareable"
3871 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3872 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3878 # EXTRALIBS="$EXTRALIBS -lxpg4"
3879 # test -n "$SHLD" || SHLD="ld -Bshareable"
3884 EXTRADEFS="-D__W32__"
3888 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
3889 test -n "$SHLD" || SHLD="BCC32 -WD"
3891 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3892 BORLANDC_START='C0X32.OBJ'
3893 CFLAGS="$CFLAGS -tWM -VM"
3894 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3897 test -n "$SHLD" || SHLD="link -dll"
3898 VCPP_LDFLAGS="-nologo -incremental:no -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3899 CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX -Ob2"
3900 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
3903 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3904 *) test -n "$SHLD" || SHLD="unknown" ;;
3908 lib_user32_test=-luser32
3911 EXTRADEFS="-D__W32__"
3915 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
3916 test -n "$SHLD" || SHLD="BCC32 -WD"
3918 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3919 BORLANDC_START='C0X32.OBJ'
3920 CFLAGS="$CFLAGS -tWM -VM"
3921 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3924 test -n "$SHLD" || SHLD="link -dll"
3926 VCPP_LDFLAGS="-nologo -incremental:no -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3927 CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX -Ob2"
3928 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
3930 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3931 *) test -n "$SHLD" || SHLD="unknown" ;;
3935 lib_user32_test=-luser32
3939 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3943 EXTRADEFS="-DSOLARIS"
3944 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3948 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3952 if test "x$SIMD" = "xyes"; then
3954 cat >>confdefs.h <<\_ACEOF
3955 #define USE_ALTIVEC 1
3958 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3959 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3962 cat >>confdefs.h <<\_ACEOF
3963 #define USE_ALTIVEC 0
3967 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3968 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3969 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3973 test -n "$SHLD" || \
3974 if test "x$GCC" = xyes; then
3977 SHLD="ld -Bdynamic -G"
3984 # Checks for libraries.
3986 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3987 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3988 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 ac_check_lib_save_LIBS=$LIBS
3993 cat >conftest.$ac_ext <<_ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
4000 /* Override any gcc2 internal prototype to avoid an error. */
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4015 rm -f conftest.$ac_objext conftest$ac_exeext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017 (eval $ac_link) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest$ac_exeext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 ac_cv_lib_m_sqrt=yes
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4044 rm -f conftest.err conftest.$ac_objext \
4045 conftest$ac_exeext conftest.$ac_ext
4046 LIBS=$ac_check_lib_save_LIBS
4048 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4049 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4050 if test $ac_cv_lib_m_sqrt = yes; then
4051 cat >>confdefs.h <<_ACEOF
4060 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4061 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4062 if test "${ac_cv_lib_socket_socket+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_check_lib_save_LIBS=$LIBS
4066 LIBS="-lsocket $LIBS"
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4074 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4089 rm -f conftest.$ac_objext conftest$ac_exeext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091 (eval $ac_link) 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_c_werror_flag"
4099 || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest$ac_exeext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_cv_lib_socket_socket=yes
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_cv_lib_socket_socket=no
4118 rm -f conftest.err conftest.$ac_objext \
4119 conftest$ac_exeext conftest.$ac_ext
4120 LIBS=$ac_check_lib_save_LIBS
4122 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4123 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4124 if test $ac_cv_lib_socket_socket = yes; then
4125 cat >>confdefs.h <<_ACEOF
4126 #define HAVE_LIBSOCKET 1
4129 LIBS="-lsocket $LIBS"
4133 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 ac_check_lib_save_LIBS=$LIBS
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4147 /* Override any gcc2 internal prototype to avoid an error. */
4151 /* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>conftest.er1
4166 grep -v '^ *+' conftest.er1 >conftest.err
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_lib_dl_dlopen=yes
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_lib_dl_dlopen=no
4191 rm -f conftest.err conftest.$ac_objext \
4192 conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4197 if test $ac_cv_lib_dl_dlopen = yes; then
4201 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4202 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4203 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_check_lib_save_LIBS=$LIBS
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4215 /* Override any gcc2 internal prototype to avoid an error. */
4219 /* We use char because int might match the return type of a gcc2
4220 builtin and then its argument prototype would still apply. */
4221 char NSLinkModule ();
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232 (eval $ac_link) 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_c_werror_flag"
4240 || test ! -s conftest.err'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; } &&
4246 { ac_try='test -s conftest$ac_exeext'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 ac_cv_lib_objc_NSLinkModule=yes
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 ac_cv_lib_objc_NSLinkModule=no
4259 rm -f conftest.err conftest.$ac_objext \
4260 conftest$ac_exeext conftest.$ac_ext
4261 LIBS=$ac_check_lib_save_LIBS
4263 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4264 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4265 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4268 # Mac OS X need this.
4269 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes"; then
4271 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4272 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4273 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_check_lib_save_LIBS=$LIBS
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4285 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302 (eval $ac_link) 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -z "$ac_c_werror_flag"
4310 || test ! -s conftest.err'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest$ac_exeext'
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 ac_cv_lib_xpg4_setlocale=yes
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4327 ac_cv_lib_xpg4_setlocale=no
4329 rm -f conftest.err conftest.$ac_objext \
4330 conftest$ac_exeext conftest.$ac_ext
4331 LIBS=$ac_check_lib_save_LIBS
4333 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4334 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4335 if test $ac_cv_lib_xpg4_setlocale = yes; then
4336 cat >>confdefs.h <<_ACEOF
4337 #define HAVE_LIBXPG4 1
4343 # Mac OS X (and maybe NetBSD) need this.
4346 for ac_func in gethostbyname
4348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4349 echo "$as_me:$LINENO: checking for $ac_func" >&5
4350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4351 if eval "test \"\${$as_ac_var+set}\" = set"; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4362 #define $ac_func innocuous_$ac_func
4364 /* System header to define __stub macros and hopefully few prototypes,
4365 which can conflict with char $ac_func (); below.
4366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367 <limits.h> exists even on freestanding compilers. */
4370 # include <limits.h>
4372 # include <assert.h>
4377 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4385 /* The GNU C library defines this for functions which it implements
4386 to always fail with ENOSYS. Some functions are actually named
4387 something starting with __ and the normal name is an alias. */
4388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4391 char (*f) () = $ac_func;
4400 return f != $ac_func;
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest$ac_exeext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 eval "$as_ac_var=yes"
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 eval "$as_ac_var=no"
4434 rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4439 if test `eval echo '${'$as_ac_var'}'` = yes; then
4440 cat >>confdefs.h <<_ACEOF
4441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4446 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4447 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4448 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 ac_check_lib_save_LIBS=$LIBS
4453 cat >conftest.$ac_ext <<_ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4460 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466 char gethostbyname ();
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477 (eval $ac_link) 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag"
4485 || test ! -s conftest.err'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest$ac_exeext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_cv_lib_nsl_gethostbyname=yes
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_cv_lib_nsl_gethostbyname=no
4504 rm -f conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext conftest.$ac_ext
4506 LIBS=$ac_check_lib_save_LIBS
4508 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4509 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4510 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4511 cat >>confdefs.h <<_ACEOF
4512 #define HAVE_LIBNSL 1
4522 echo "$as_me:$LINENO: checking for X" >&5
4523 echo $ECHO_N "checking for X... $ECHO_C" >&6
4526 # Check whether --with-x or --without-x was given.
4527 if test "${with_x+set}" = set; then
4531 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4532 if test "x$with_x" = xno; then
4533 # The user explicitly disabled X.
4536 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4537 # Both variables are already set.
4540 if test "${ac_cv_have_x+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 # One or both of the vars are not set, and there is no cached value.
4544 ac_x_includes=no ac_x_libraries=no
4546 if mkdir conftest.dir; then
4548 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4549 cat >Imakefile <<'_ACEOF'
4551 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4553 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4554 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4555 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4556 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4557 for ac_extension in a so sl; do
4558 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4559 test -f $ac_im_libdir/libX11.$ac_extension; then
4560 ac_im_usrlibdir=$ac_im_libdir; break
4563 # Screen out bogus values from the imake configuration. They are
4564 # bogus both because they are the default anyway, and because
4565 # using them would break gcc on systems where it needs fixed includes.
4566 case $ac_im_incroot in
4568 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4570 case $ac_im_usrlibdir in
4572 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4579 # Standard set of common directories for X headers.
4580 # Check X11 before X11Rn because it is often a symlink to the current release.
4592 /usr/local/X11/include
4593 /usr/local/X11R6/include
4594 /usr/local/X11R5/include
4595 /usr/local/X11R4/include
4597 /usr/local/include/X11
4598 /usr/local/include/X11R6
4599 /usr/local/include/X11R5
4600 /usr/local/include/X11R4
4604 /usr/XFree86/include/X11
4608 /usr/unsupported/include
4610 /usr/local/x11r5/include
4611 /usr/lpp/Xamples/include
4613 /usr/openwin/include
4614 /usr/openwin/share/include'
4616 if test "$ac_x_includes" = no; then
4617 # Guess where to find include files, by looking for Intrinsic.h.
4618 # First, try using that file with no special directory specified.
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #include <X11/Intrinsic.h>
4627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630 grep -v '^ *+' conftest.er1 >conftest.err
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } >/dev/null; then
4635 if test -s conftest.err; then
4636 ac_cpp_err=$ac_c_preproc_warn_flag
4637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4644 if test -z "$ac_cpp_err"; then
4645 # We can compile using X headers with no special include directory.
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 for ac_dir in $ac_x_header_dirs; do
4652 if test -r "$ac_dir/X11/Intrinsic.h"; then
4653 ac_x_includes=$ac_dir
4658 rm -f conftest.err conftest.$ac_ext
4659 fi # $ac_x_includes = no
4661 if test "$ac_x_libraries" = no; then
4662 # Check for the libraries.
4663 # See if we find them without any special options.
4664 # Don't add to $LIBS permanently.
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 #include <X11/Intrinsic.h>
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest$ac_exeext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4705 # We can link X programs with no special library path.
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4712 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4714 # Don't even attempt the hair of trying to link an X program!
4715 for ac_extension in a so sl; do
4716 if test -r $ac_dir/libXt.$ac_extension; then
4717 ac_x_libraries=$ac_dir
4723 rm -f conftest.err conftest.$ac_objext \
4724 conftest$ac_exeext conftest.$ac_ext
4725 fi # $ac_x_libraries = no
4727 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4728 # Didn't find X anywhere. Cache the known absence of X.
4729 ac_cv_have_x="have_x=no"
4731 # Record where we found X for the cache.
4732 ac_cv_have_x="have_x=yes \
4733 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4738 eval "$ac_cv_have_x"
4741 if test "$have_x" != yes; then
4742 echo "$as_me:$LINENO: result: $have_x" >&5
4743 echo "${ECHO_T}$have_x" >&6
4746 # If each of the values was on the command line, it overrides each guess.
4747 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4748 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4749 # Update the cache value to reflect the command line values.
4750 ac_cv_have_x="have_x=yes \
4751 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4752 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4753 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4756 if test "$no_x" = yes; then
4757 # Not all programs may use this symbol, but it does not hurt to define it.
4759 cat >>confdefs.h <<\_ACEOF
4760 #define X_DISPLAY_MISSING 1
4763 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4765 if test -n "$x_includes"; then
4766 X_CFLAGS="$X_CFLAGS -I$x_includes"
4769 # It would also be nice to do this for all -L options, not just this one.
4770 if test -n "$x_libraries"; then
4771 X_LIBS="$X_LIBS -L$x_libraries"
4772 # For Solaris; some versions of Sun CC require a space after -R and
4773 # others require no space. Words are not sufficient . . . .
4774 case `(uname -sr) 2>/dev/null` in
4776 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4777 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4778 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try='test -s conftest$ac_exeext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4823 rm -f conftest.err conftest.$ac_objext \
4824 conftest$ac_exeext conftest.$ac_ext
4825 if test $ac_R_nospace = yes; then
4826 echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4828 X_LIBS="$X_LIBS -R$x_libraries"
4830 LIBS="$ac_xsave_LIBS -R $x_libraries"
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_c_werror_flag"
4856 || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest$ac_exeext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4875 rm -f conftest.err conftest.$ac_objext \
4876 conftest$ac_exeext conftest.$ac_ext
4877 if test $ac_R_space = yes; then
4878 echo "$as_me:$LINENO: result: yes" >&5
4879 echo "${ECHO_T}yes" >&6
4880 X_LIBS="$X_LIBS -R $x_libraries"
4882 echo "$as_me:$LINENO: result: neither works" >&5
4883 echo "${ECHO_T}neither works" >&6
4890 # Check for system-dependent libraries X programs must link with.
4891 # Do this before checking for the system-independent R6 libraries
4892 # (-lICE), since we may need -lsocket or whatever for X linking.
4894 if test "$ISC" = yes; then
4895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4897 # Martyn Johnson says this is needed for Ultrix, if the X
4898 # libraries were built with DECnet support. And Karl Berry says
4899 # the Alpha needs dnet_stub (dnet does not exist).
4900 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4908 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4914 char XOpenDisplay ();
4923 rm -f conftest.$ac_objext conftest$ac_exeext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925 (eval $ac_link) 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -z "$ac_c_werror_flag"
4933 || test ! -s conftest.err'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; } &&
4939 { ac_try='test -s conftest$ac_exeext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4951 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4952 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 ac_check_lib_save_LIBS=$LIBS
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4964 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4979 rm -f conftest.$ac_objext conftest$ac_exeext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981 (eval $ac_link) 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -z "$ac_c_werror_flag"
4989 || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest$ac_exeext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_cv_lib_dnet_dnet_ntoa=yes
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 ac_cv_lib_dnet_dnet_ntoa=no
5008 rm -f conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5012 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5013 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5014 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5015 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5018 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5019 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5020 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5021 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 ac_check_lib_save_LIBS=$LIBS
5025 LIBS="-ldnet_stub $LIBS"
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5033 /* Override any gcc2 internal prototype to avoid an error. */
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5048 rm -f conftest.$ac_objext conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050 (eval $ac_link) 2>conftest.er1
5052 grep -v '^ *+' conftest.er1 >conftest.err
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } &&
5057 { ac_try='test -z "$ac_c_werror_flag"
5058 || test ! -s conftest.err'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; } &&
5064 { ac_try='test -s conftest$ac_exeext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 ac_cv_lib_dnet_stub_dnet_ntoa=no
5077 rm -f conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5082 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5083 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5084 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5089 rm -f conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5091 LIBS="$ac_xsave_LIBS"
5093 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5094 # to get the SysV transport functions.
5095 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5097 # The nsl library prevents programs from opening the X display
5098 # on Irix 5.2, according to T.E. Dickey.
5099 # The functions gethostbyname, getservbyname, and inet_addr are
5100 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5101 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5102 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5103 if test "${ac_cv_func_gethostbyname+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5114 #define gethostbyname innocuous_gethostbyname
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char gethostbyname (); below.
5118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 <limits.h> exists even on freestanding compilers. */
5122 # include <limits.h>
5124 # include <assert.h>
5127 #undef gethostbyname
5129 /* Override any gcc2 internal prototype to avoid an error. */
5134 /* We use char because int might match the return type of a gcc2
5135 builtin and then its argument prototype would still apply. */
5136 char gethostbyname ();
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5143 char (*f) () = gethostbyname;
5152 return f != gethostbyname;
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_cv_func_gethostbyname=yes
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_cv_func_gethostbyname=no
5186 rm -f conftest.err conftest.$ac_objext \
5187 conftest$ac_exeext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5190 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5192 if test $ac_cv_func_gethostbyname = no; then
5193 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5194 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5195 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 ac_check_lib_save_LIBS=$LIBS
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5207 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5213 char gethostbyname ();
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_lib_nsl_gethostbyname=yes
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_cv_lib_nsl_gethostbyname=no
5251 rm -f conftest.err conftest.$ac_objext \
5252 conftest$ac_exeext conftest.$ac_ext
5253 LIBS=$ac_check_lib_save_LIBS
5255 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5256 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5257 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5261 if test $ac_cv_lib_nsl_gethostbyname = no; then
5262 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5263 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5264 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_check_lib_save_LIBS=$LIBS
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5276 /* Override any gcc2 internal prototype to avoid an error. */
5280 /* We use char because int might match the return type of a gcc2
5281 builtin and then its argument prototype would still apply. */
5282 char gethostbyname ();
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_lib_bsd_gethostbyname=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_lib_bsd_gethostbyname=no
5320 rm -f conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5324 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5325 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5326 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5333 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5334 # socket/setsockopt and other routines are undefined under SCO ODT
5335 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5336 # on later versions), says Simon Leinen: it contains gethostby*
5337 # variants that don't use the name server (or something). -lsocket
5338 # must be given before -lnsl if both are needed. We assume that
5339 # if connect needs -lnsl, so does gethostbyname.
5340 echo "$as_me:$LINENO: checking for connect" >&5
5341 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5342 if test "${ac_cv_func_connect+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5353 #define connect innocuous_connect
5355 /* System header to define __stub macros and hopefully few prototypes,
5356 which can conflict with char connect (); below.
5357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5358 <limits.h> exists even on freestanding compilers. */
5361 # include <limits.h>
5363 # include <assert.h>
5368 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5376 /* The GNU C library defines this for functions which it implements
5377 to always fail with ENOSYS. Some functions are actually named
5378 something starting with __ and the normal name is an alias. */
5379 #if defined (__stub_connect) || defined (__stub___connect)
5382 char (*f) () = connect;
5391 return f != connect;
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest$ac_exeext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_func_connect=yes
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_cv_func_connect=no
5425 rm -f conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
5428 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5429 echo "${ECHO_T}$ac_cv_func_connect" >&6
5431 if test $ac_cv_func_connect = no; then
5432 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5433 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5434 if test "${ac_cv_lib_socket_connect+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_check_lib_save_LIBS=$LIBS
5438 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5446 /* Override any gcc2 internal prototype to avoid an error. */
5450 /* We use char because int might match the return type of a gcc2
5451 builtin and then its argument prototype would still apply. */
5461 rm -f conftest.$ac_objext conftest$ac_exeext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463 (eval $ac_link) 2>conftest.er1
5465 grep -v '^ *+' conftest.er1 >conftest.err
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -z "$ac_c_werror_flag"
5471 || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try='test -s conftest$ac_exeext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 ac_cv_lib_socket_connect=yes
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ac_cv_lib_socket_connect=no
5490 rm -f conftest.err conftest.$ac_objext \
5491 conftest$ac_exeext conftest.$ac_ext
5492 LIBS=$ac_check_lib_save_LIBS
5494 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5495 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5496 if test $ac_cv_lib_socket_connect = yes; then
5497 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5502 # Guillermo Gomez says -lposix is necessary on A/UX.
5503 echo "$as_me:$LINENO: checking for remove" >&5
5504 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5505 if test "${ac_cv_func_remove+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5516 #define remove innocuous_remove
5518 /* System header to define __stub macros and hopefully few prototypes,
5519 which can conflict with char remove (); below.
5520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521 <limits.h> exists even on freestanding compilers. */
5524 # include <limits.h>
5526 # include <assert.h>
5531 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5539 /* The GNU C library defines this for functions which it implements
5540 to always fail with ENOSYS. Some functions are actually named
5541 something starting with __ and the normal name is an alias. */
5542 #if defined (__stub_remove) || defined (__stub___remove)
5545 char (*f) () = remove;
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_func_remove=yes
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 ac_cv_func_remove=no
5588 rm -f conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext conftest.$ac_ext
5591 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5592 echo "${ECHO_T}$ac_cv_func_remove" >&6
5594 if test $ac_cv_func_remove = no; then
5595 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5596 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5597 if test "${ac_cv_lib_posix_remove+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lposix $LIBS"
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5609 /* Override any gcc2 internal prototype to avoid an error. */
5613 /* We use char because int might match the return type of a gcc2
5614 builtin and then its argument prototype would still apply. */
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626 (eval $ac_link) 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -z "$ac_c_werror_flag"
5634 || test ! -s conftest.err'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest$ac_exeext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 ac_cv_lib_posix_remove=yes
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 ac_cv_lib_posix_remove=no
5653 rm -f conftest.err conftest.$ac_objext \
5654 conftest$ac_exeext conftest.$ac_ext
5655 LIBS=$ac_check_lib_save_LIBS
5657 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5658 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5659 if test $ac_cv_lib_posix_remove = yes; then
5660 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5665 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5666 echo "$as_me:$LINENO: checking for shmat" >&5
5667 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5668 if test "${ac_cv_func_shmat+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5679 #define shmat innocuous_shmat
5681 /* System header to define __stub macros and hopefully few prototypes,
5682 which can conflict with char shmat (); below.
5683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684 <limits.h> exists even on freestanding compilers. */
5687 # include <limits.h>
5689 # include <assert.h>
5694 /* Override any gcc2 internal prototype to avoid an error. */
5699 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */
5702 /* The GNU C library defines this for functions which it implements
5703 to always fail with ENOSYS. Some functions are actually named
5704 something starting with __ and the normal name is an alias. */
5705 #if defined (__stub_shmat) || defined (__stub___shmat)
5708 char (*f) () = shmat;
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724 (eval $ac_link) 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag"
5732 || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_func_shmat=yes
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5751 rm -f conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5755 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5757 if test $ac_cv_func_shmat = no; then
5758 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5759 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5760 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 ac_check_lib_save_LIBS=$LIBS
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5772 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5787 rm -f conftest.$ac_objext conftest$ac_exeext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789 (eval $ac_link) 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try='test -z "$ac_c_werror_flag"
5797 || test ! -s conftest.err'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest$ac_exeext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_lib_ipc_shmat=yes
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 ac_cv_lib_ipc_shmat=no
5816 rm -f conftest.err conftest.$ac_objext \
5817 conftest$ac_exeext conftest.$ac_ext
5818 LIBS=$ac_check_lib_save_LIBS
5820 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5821 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5822 if test $ac_cv_lib_ipc_shmat = yes; then
5823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5829 # Check for libraries that X11R6 Xt/Xaw programs need.
5830 ac_save_LDFLAGS=$LDFLAGS
5831 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5832 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5833 # check for ICE first), but we must link in the order -lSM -lICE or
5834 # we get undefined symbols. So assume we have SM if we have ICE.
5835 # These have to be linked with before -lX11, unlike the other
5836 # libraries we check for below, so use a different variable.
5837 # John Interrante, Karl Berry
5838 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5839 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5840 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 ac_check_lib_save_LIBS=$LIBS
5844 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5858 char IceConnectionNumber ();
5862 IceConnectionNumber ();
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869 (eval $ac_link) 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest$ac_exeext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_cv_lib_ICE_IceConnectionNumber=yes
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 ac_cv_lib_ICE_IceConnectionNumber=no
5896 rm -f conftest.err conftest.$ac_objext \
5897 conftest$ac_exeext conftest.$ac_ext
5898 LIBS=$ac_check_lib_save_LIBS
5900 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5901 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5902 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5903 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5906 LDFLAGS=$ac_save_LDFLAGS
5912 if test "x$with_x" = xyes; then
5913 if test "x$have_x" = xno; then
5914 if test "x$x_config_flag" = xyes; then
5915 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5916 echo "$as_me: error: Could not configure X" >&2;}
5917 { (exit 1); exit 1; }; }
5919 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5920 echo "$as_me: WARNING: Could not configure X" >&2;}
5924 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5925 if test "x$x_libraries" != x; then
5926 ldflags_x_opt="-L$x_libraries"
5927 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5928 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5932 if test "x$x_includes" != x; then
5933 CPPFLAGS="$CPPFLAGS -I$x_includes"
5937 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5938 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5939 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 ac_check_lib_save_LIBS=$LIBS
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5951 /* Override any gcc2 internal prototype to avoid an error. */
5955 /* We use char because int might match the return type of a gcc2
5956 builtin and then its argument prototype would still apply. */
5957 char XOpenDisplay ();
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968 (eval $ac_link) 2>conftest.er1
5970 grep -v '^ *+' conftest.er1 >conftest.err
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -z "$ac_c_werror_flag"
5976 || test ! -s conftest.err'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; } &&
5982 { ac_try='test -s conftest$ac_exeext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 ac_cv_lib_X11_XOpenDisplay=yes
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_cv_lib_X11_XOpenDisplay=no
5995 rm -f conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5999 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6000 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6001 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define HAVE_LIBX11 1
6010 echo "$as_me:$LINENO: checking X11 version 6" >&5
6011 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6012 if test "${timidity_cv_x11_version_6+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 #include <X11/Xlib.h>
6026 #if XlibSpecificationRelease < 6
6034 rm -f conftest.$ac_objext conftest$ac_exeext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6036 (eval $ac_link) 2>conftest.er1
6038 grep -v '^ *+' conftest.er1 >conftest.err
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -z "$ac_c_werror_flag"
6044 || test ! -s conftest.err'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; } &&
6050 { ac_try='test -s conftest$ac_exeext'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 timidity_cv_x11_version_6=yes
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 timidity_cv_x11_version_6=no
6063 rm -f conftest.err conftest.$ac_objext \
6064 conftest$ac_exeext conftest.$ac_ext
6067 if test "$timidity_cv_x11_version_6" = "yes"; then
6068 echo "$as_me:$LINENO: result: 6 or newer" >&5
6069 echo "${ECHO_T}6 or newer" >&6
6071 echo "$as_me:$LINENO: result: before 6" >&5
6072 echo "${ECHO_T}before 6" >&6
6076 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6077 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6078 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 ac_check_lib_save_LIBS=$LIBS
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6090 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6096 char XShapeCombineMask ();
6100 XShapeCombineMask ();
6105 rm -f conftest.$ac_objext conftest$ac_exeext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>conftest.er1
6109 grep -v '^ *+' conftest.er1 >conftest.err
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_lib_Xext_XShapeCombineMask=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_cv_lib_Xext_XShapeCombineMask=no
6134 rm -f conftest.err conftest.$ac_objext \
6135 conftest$ac_exeext conftest.$ac_ext
6136 LIBS=$ac_check_lib_save_LIBS
6138 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6139 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6140 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6141 have_xext=yes; LIBS="-lXext $LIBS"
6147 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6148 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6149 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_check_lib_save_LIBS=$LIBS
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6161 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6167 char IceConnectionNumber ();
6171 IceConnectionNumber ();
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_lib_ICE_IceConnectionNumber=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_cv_lib_ICE_IceConnectionNumber=no
6205 rm -f conftest.err conftest.$ac_objext \
6206 conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6209 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6210 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6211 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_LIBICE 1
6220 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6221 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6222 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_check_lib_save_LIBS=$LIBS
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6240 char SmcOpenConnection ();
6244 SmcOpenConnection ();
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_lib_SM_SmcOpenConnection=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_cv_lib_SM_SmcOpenConnection=no
6278 rm -f conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280 LIBS=$ac_check_lib_save_LIBS
6282 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6283 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6284 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6285 have_xprelibs=yes; LIBS="-lSM $LIBS"
6290 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6291 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6292 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 ac_check_lib_save_LIBS=$LIBS
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 /* Override any gcc2 internal prototype to avoid an error. */
6308 /* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
6310 char XtVaAppInitialize ();
6314 XtVaAppInitialize ();
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest$ac_exeext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_lib_Xt_XtVaAppInitialize=yes
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_lib_Xt_XtVaAppInitialize=no
6348 rm -f conftest.err conftest.$ac_objext \
6349 conftest$ac_exeext conftest.$ac_ext
6350 LIBS=$ac_check_lib_save_LIBS
6352 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6353 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6354 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6355 have_xt=yes; LIBS="-lXt $LIBS"
6360 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6361 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6362 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 ac_check_lib_save_LIBS=$LIBS
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6374 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380 char XmuInternAtom ();
6389 rm -f conftest.$ac_objext conftest$ac_exeext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391 (eval $ac_link) 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest$ac_exeext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_cv_lib_Xmu_XmuInternAtom=yes
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_cv_lib_Xmu_XmuInternAtom=no
6418 rm -f conftest.err conftest.$ac_objext \
6419 conftest$ac_exeext conftest.$ac_ext
6420 LIBS=$ac_check_lib_save_LIBS
6422 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6423 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6424 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6429 for ac_func in XmuRegisterExternalAgent
6431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6432 echo "$as_me:$LINENO: checking for $ac_func" >&5
6433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6434 if eval "test \"\${$as_ac_var+set}\" = set"; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6445 #define $ac_func innocuous_$ac_func
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func (); below.
6449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6450 <limits.h> exists even on freestanding compilers. */
6453 # include <limits.h>
6455 # include <assert.h>
6460 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6468 /* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6474 char (*f) () = $ac_func;
6483 return f != $ac_func;
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6490 (eval $ac_link) 2>conftest.er1
6492 grep -v '^ *+' conftest.er1 >conftest.err
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest$ac_exeext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 eval "$as_ac_var=yes"
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 eval "$as_ac_var=no"
6517 rm -f conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6522 if test `eval echo '${'$as_ac_var'}'` = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6530 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6531 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6532 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 ac_check_lib_save_LIBS=$LIBS
6536 LIBS="-lXaw3d $LIBS"
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6544 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550 char XawInitializeWidgetSet ();
6554 XawInitializeWidgetSet ();
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6586 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6588 rm -f conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6592 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6593 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6594 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6597 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6598 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6599 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 ac_check_lib_save_LIBS=$LIBS
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char XawInitializeWidgetSet ();
6621 XawInitializeWidgetSet ();
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6655 rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 LIBS=$ac_check_lib_save_LIBS
6659 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6660 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6661 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6669 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6670 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6671 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_check_lib_save_LIBS=$LIBS
6676 cat >conftest.$ac_ext <<_ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6683 /* Override any gcc2 internal prototype to avoid an error. */
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6689 char XmCreateForm ();
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700 (eval $ac_link) 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -z "$ac_c_werror_flag"
6708 || test ! -s conftest.err'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest$ac_exeext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6720 ac_cv_lib_Xm_XmCreateForm=yes
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 ac_cv_lib_Xm_XmCreateForm=no
6727 rm -f conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
6729 LIBS=$ac_check_lib_save_LIBS
6731 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6732 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6733 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6740 for ac_func in XShmCreatePixmap
6742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6743 echo "$as_me:$LINENO: checking for $ac_func" >&5
6744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6745 if eval "test \"\${$as_ac_var+set}\" = set"; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6756 #define $ac_func innocuous_$ac_func
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char $ac_func (); below.
6760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6761 <limits.h> exists even on freestanding compilers. */
6764 # include <limits.h>
6766 # include <assert.h>
6771 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6779 /* The GNU C library defines this for functions which it implements
6780 to always fail with ENOSYS. Some functions are actually named
6781 something starting with __ and the normal name is an alias. */
6782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6785 char (*f) () = $ac_func;
6794 return f != $ac_func;
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest$ac_exeext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 eval "$as_ac_var=yes"
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 eval "$as_ac_var=no"
6828 rm -f conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6833 if test `eval echo '${'$as_ac_var'}'` = yes; then
6834 cat >>confdefs.h <<_ACEOF
6835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6844 # Checks for header files.
6845 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6847 if test "${ac_cv_header_stdc+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 cat >conftest.$ac_ext <<_ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6873 grep -v '^ *+' conftest.er1 >conftest.err
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_header_stdc=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_header_stdc=no
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 if test $ac_cv_header_stdc = yes; then
6901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "memchr" >/dev/null 2>&1; then
6915 ac_cv_header_stdc=no
6921 if test $ac_cv_header_stdc = yes; then
6922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933 $EGREP "free" >/dev/null 2>&1; then
6936 ac_cv_header_stdc=no
6942 if test $ac_cv_header_stdc = yes; then
6943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6944 if test "$cross_compiling" = yes; then
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6954 #if ((' ' & 0x0FF) == 0x020)
6955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6958 # define ISLOWER(c) \
6959 (('a' <= (c) && (c) <= 'i') \
6960 || ('j' <= (c) && (c) <= 'r') \
6961 || ('s' <= (c) && (c) <= 'z'))
6962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6970 for (i = 0; i < 256; i++)
6971 if (XOR (islower (i), ISLOWER (i))
6972 || toupper (i) != TOUPPER (i))
6977 rm -f conftest$ac_exeext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979 (eval $ac_link) 2>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6990 echo "$as_me: program exited with status $ac_status" >&5
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_cv_header_stdc=no
6997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7001 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7003 if test $ac_cv_header_stdc = yes; then
7005 cat >>confdefs.h <<\_ACEOF
7006 #define STDC_HEADERS 1
7011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7022 inttypes.h stdint.h unistd.h
7024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025 echo "$as_me:$LINENO: checking for $ac_header" >&5
7026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7038 #include <$ac_header>
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 eval "$as_ac_Header=yes"
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 eval "$as_ac_Header=no"
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7083 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7084 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7085 if test "${ac_cv_header_stdbool_h+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 #include <stdbool.h>
7097 # error bool is not defined
7100 # error false is not defined
7103 # error false is not 0
7106 # error true is not defined
7109 # error true is not 1
7111 #ifndef __bool_true_false_are_defined
7112 # error __bool_true_false_are_defined is not defined
7115 struct s { _Bool s: 1; _Bool t; } s;
7117 char a[true == 1 ? 1 : -1];
7118 char b[false == 0 ? 1 : -1];
7119 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7120 char d[(bool) -0.5 == true ? 1 : -1];
7122 char f[(_Bool) -0.0 == false ? 1 : -1];
7124 char h[sizeof (_Bool)];
7130 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7135 rm -f conftest.$ac_objext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7137 (eval $ac_compile) 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest.$ac_objext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_header_stdbool_h=yes
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_header_stdbool_h=no
7164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7166 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7167 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7168 echo "$as_me:$LINENO: checking for _Bool" >&5
7169 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7170 if test "${ac_cv_type__Bool+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_cv_type__Bool=yes
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7222 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7223 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7224 if test $ac_cv_type__Bool = yes; then
7226 cat >>confdefs.h <<_ACEOF
7227 #define HAVE__BOOL 1
7233 if test $ac_cv_header_stdbool_h = yes; then
7235 cat >>confdefs.h <<\_ACEOF
7236 #define HAVE_STDBOOL_H 1
7241 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7242 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7243 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 cat >conftest.$ac_ext <<_ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #include <sys/types.h>
7253 #include <sys/wait.h>
7255 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7266 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest.$ac_objext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 ac_cv_header_sys_wait_h=yes
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_cv_header_sys_wait_h=no
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7303 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7304 if test $ac_cv_header_sys_wait_h = yes; then
7306 cat >>confdefs.h <<\_ACEOF
7307 #define HAVE_SYS_WAIT_H 1
7312 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7313 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7314 if test "${ac_cv_header_time+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 #include <sys/types.h>
7324 #include <sys/time.h>
7330 if ((struct tm *) 0)
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7340 grep -v '^ *+' conftest.er1 >conftest.err
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_header_time=yes
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 ac_cv_header_time=no
7365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7368 echo "${ECHO_T}$ac_cv_header_time" >&6
7369 if test $ac_cv_header_time = yes; then
7371 cat >>confdefs.h <<\_ACEOF
7372 #define TIME_WITH_SYS_TIME 1
7383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7384 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7385 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 cat >conftest.$ac_ext <<_ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 #include <sys/types.h>
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>conftest.er1
7412 grep -v '^ *+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -z "$ac_c_werror_flag"
7418 || test ! -s conftest.err'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 eval "$as_ac_Header=yes"
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 eval "$as_ac_Header=no"
7437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7442 cat >>confdefs.h <<_ACEOF
7443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7446 ac_header_dirent=$ac_hdr; break
7450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7451 if test $ac_header_dirent = dirent.h; then
7452 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7454 if test "${ac_cv_search_opendir+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 ac_func_search_save_LIBS=$LIBS
7458 ac_cv_search_opendir=no
7459 cat >conftest.$ac_ext <<_ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7466 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>conftest.er1
7485 grep -v '^ *+' conftest.er1 >conftest.err
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_search_opendir="none required"
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7509 rm -f conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511 if test "$ac_cv_search_opendir" = no; then
7512 for ac_lib in dir; do
7513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7514 cat >conftest.$ac_ext <<_ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7521 /* Override any gcc2 internal prototype to avoid an error. */
7525 /* We use char because int might match the return type of a gcc2
7526 builtin and then its argument prototype would still apply. */
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } &&
7545 { ac_try='test -z "$ac_c_werror_flag"
7546 || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try='test -s conftest$ac_exeext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_cv_search_opendir="-l$ac_lib"
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7565 rm -f conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7569 LIBS=$ac_func_search_save_LIBS
7571 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7572 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7573 if test "$ac_cv_search_opendir" != no; then
7574 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7579 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7581 if test "${ac_cv_search_opendir+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_func_search_save_LIBS=$LIBS
7585 ac_cv_search_opendir=no
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7593 /* Override any gcc2 internal prototype to avoid an error. */
7597 /* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try='test -s conftest$ac_exeext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7630 ac_cv_search_opendir="none required"
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7636 rm -f conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 if test "$ac_cv_search_opendir" = no; then
7640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7641 cat >conftest.$ac_ext <<_ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7648 /* Override any gcc2 internal prototype to avoid an error. */
7652 /* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>conftest.er1
7667 grep -v '^ *+' conftest.er1 >conftest.err
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try='test -z "$ac_c_werror_flag"
7673 || test ! -s conftest.err'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; } &&
7679 { ac_try='test -s conftest$ac_exeext'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_search_opendir="-l$ac_lib"
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7692 rm -f conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7696 LIBS=$ac_func_search_save_LIBS
7698 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7699 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7700 if test "$ac_cv_search_opendir" != no; then
7701 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7785 echo "$as_me:$LINENO: checking for $ac_header" >&5
7786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7793 # Is the header compilable?
7794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 $ac_includes_default
7803 #include <$ac_header>
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807 (eval $ac_compile) 2>conftest.er1
7809 grep -v '^ *+' conftest.er1 >conftest.err
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest.$ac_objext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 ac_header_compiler=yes
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7832 ac_header_compiler=no
7834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7836 echo "${ECHO_T}$ac_header_compiler" >&6
7838 # Is the header present?
7839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 #include <$ac_header>
7849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } >/dev/null; then
7857 if test -s conftest.err; then
7858 ac_cpp_err=$ac_c_preproc_warn_flag
7859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7866 if test -z "$ac_cpp_err"; then
7867 ac_header_preproc=yes
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 ac_header_preproc=no
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7878 # So? What about this header?
7879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7885 ac_header_preproc=yes
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7902 ## ------------------------------- ##
7903 ## Report this to root@mput.dip.jp ##
7904 ## ------------------------------- ##
7907 sed "s/^/$as_me: WARNING: /" >&2
7910 echo "$as_me:$LINENO: checking for $ac_header" >&5
7911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 eval "$as_ac_Header=\$ac_header_preproc"
7917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7922 cat >>confdefs.h <<_ACEOF
7923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7936 echo "$as_me:$LINENO: checking for $ac_header" >&5
7937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7948 #ifdef HAVE_X11_XLIB_H
7949 #include <X11/Xlib.h>
7953 #include <$ac_header>
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag"
7965 || test ! -s conftest.err'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try='test -s conftest.$ac_objext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 eval "$as_ac_Header=yes"
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 eval "$as_ac_Header=no"
7984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7989 cat >>confdefs.h <<_ACEOF
7990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7997 if test "${ac_cv_header_string_h+set}" = set; then
7998 echo "$as_me:$LINENO: checking for string.h" >&5
7999 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8000 if test "${ac_cv_header_string_h+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8004 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8006 # Is the header compilable?
8007 echo "$as_me:$LINENO: checking string.h usability" >&5
8008 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 $ac_includes_default
8018 rm -f conftest.$ac_objext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8020 (eval $ac_compile) 2>conftest.er1
8022 grep -v '^ *+' conftest.er1 >conftest.err
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -z "$ac_c_werror_flag"
8028 || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_header_compiler=yes
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 ac_header_compiler=no
8047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049 echo "${ECHO_T}$ac_header_compiler" >&6
8051 # Is the header present?
8052 echo "$as_me:$LINENO: checking string.h presence" >&5
8053 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8065 grep -v '^ *+' conftest.er1 >conftest.err
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } >/dev/null; then
8070 if test -s conftest.err; then
8071 ac_cpp_err=$ac_c_preproc_warn_flag
8072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8079 if test -z "$ac_cpp_err"; then
8080 ac_header_preproc=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 ac_header_preproc=no
8087 rm -f conftest.err conftest.$ac_ext
8088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089 echo "${ECHO_T}$ac_header_preproc" >&6
8091 # So? What about this header?
8092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8094 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8095 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8097 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc=yes
8101 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8102 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8103 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8104 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8105 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8106 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8107 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8108 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8110 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8111 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8112 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8115 ## ------------------------------- ##
8116 ## Report this to root@mput.dip.jp ##
8117 ## ------------------------------- ##
8120 sed "s/^/$as_me: WARNING: /" >&2
8123 echo "$as_me:$LINENO: checking for string.h" >&5
8124 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8125 if test "${ac_cv_header_string_h+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 ac_cv_header_string_h=$ac_header_preproc
8130 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8131 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8134 if test $ac_cv_header_string_h = yes; then
8138 cat >>confdefs.h <<\_ACEOF
8139 #define NO_STRING_H 1
8145 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes; then
8147 for ac_header in malloc.h
8149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151 echo "$as_me:$LINENO: checking for $ac_header" >&5
8152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8159 # Is the header compilable?
8160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 $ac_includes_default
8169 #include <$ac_header>
8171 rm -f conftest.$ac_objext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173 (eval $ac_compile) 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_header_compiler=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_header_compiler=no
8200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8202 echo "${ECHO_T}$ac_header_compiler" >&6
8204 # Is the header present?
8205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 #include <$ac_header>
8215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } >/dev/null; then
8223 if test -s conftest.err; then
8224 ac_cpp_err=$ac_c_preproc_warn_flag
8225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8232 if test -z "$ac_cpp_err"; then
8233 ac_header_preproc=yes
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_header_preproc=no
8240 rm -f conftest.err conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8242 echo "${ECHO_T}$ac_header_preproc" >&6
8244 # So? What about this header?
8245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8251 ac_header_preproc=yes
8254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8268 ## ------------------------------- ##
8269 ## Report this to root@mput.dip.jp ##
8270 ## ------------------------------- ##
8273 sed "s/^/$as_me: WARNING: /" >&2
8276 echo "$as_me:$LINENO: checking for $ac_header" >&5
8277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 eval "$as_ac_Header=\$ac_header_preproc"
8283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288 cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 # Checks for typedefs, structures, and compiler characteristics.
8299 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8300 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8301 if test "${ac_cv_c_bigendian+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 # See if sys/param.h defines the BYTE_ORDER macro.
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 #include <sys/types.h>
8312 #include <sys/param.h>
8317 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8325 rm -f conftest.$ac_objext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag"
8335 || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest.$ac_objext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 # It does; now see whether it defined to BIG_ENDIAN or not.
8348 cat >conftest.$ac_ext <<_ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 #include <sys/types.h>
8355 #include <sys/param.h>
8360 #if BYTE_ORDER != BIG_ENDIAN
8368 rm -f conftest.$ac_objext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370 (eval $ac_compile) 2>conftest.er1
8372 grep -v '^ *+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_c_bigendian=yes
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 ac_cv_c_bigendian=no
8397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 # It does not; compile a test program.
8403 if test "$cross_compiling" = yes; then
8404 # try to guess the endianness by grepping values into an object file
8405 ac_cv_c_bigendian=unknown
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8413 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8414 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8415 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8416 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8417 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8421 _ascii (); _ebcdic ();
8426 rm -f conftest.$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8449 ac_cv_c_bigendian=yes
8451 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8452 if test "$ac_cv_c_bigendian" = unknown; then
8453 ac_cv_c_bigendian=no
8455 # finding both strings is unlikely to happen, but who knows?
8456 ac_cv_c_bigendian=unknown
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8475 /* Are we little or big endian? From Harbison&Steele. */
8479 char c[sizeof (long)];
8482 exit (u.c[sizeof (long) - 1] == 1);
8485 rm -f conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487 (eval $ac_link) 2>&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_c_bigendian=no
8498 echo "$as_me: program exited with status $ac_status" >&5
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_c_bigendian=yes
8505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8511 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8512 case $ac_cv_c_bigendian in
8515 cat >>confdefs.h <<\_ACEOF
8516 #define WORDS_BIGENDIAN 1
8522 { { echo "$as_me:$LINENO: error: unknown endianness
8523 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8524 echo "$as_me: error: unknown endianness
8525 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8526 { (exit 1); exit 1; }; } ;;
8530 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8531 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8532 if test "${ac_cv_c_char_unsigned+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 $ac_includes_default
8545 static int test_array [1 - 2 * !(((char) -1) < 0)];
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag"
8562 || test ! -s conftest.err'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest.$ac_objext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_c_char_unsigned=no
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_cv_c_char_unsigned=yes
8581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8584 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8585 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8586 cat >>confdefs.h <<\_ACEOF
8587 #define __CHAR_UNSIGNED__ 1
8592 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8593 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8594 if test "${ac_cv_c_const+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8607 /* FIXME: Include the comments suggested by Paul. */
8609 /* Ultrix mips cc rejects this. */
8610 typedef int charset[2];
8612 /* SunOS 4.1.1 cc rejects this. */
8613 char const *const *ccp;
8615 /* NEC SVR4.0.2 mips cc rejects this. */
8616 struct point {int x, y;};
8617 static struct point const zero = {0,0};
8618 /* AIX XL C 1.02.0.0 rejects this.
8619 It does not let you subtract one const X* pointer from another in
8620 an arm of an if-expression whose if-part is not a constant
8622 const char *g = "string";
8623 ccp = &g + (g ? g-g : 0);
8624 /* HPUX 7.0 cc rejects these. */
8627 ccp = (char const *const *) p;
8628 { /* SCO 3.2v4 cc rejects this. */
8630 char const *s = 0 ? (char *) 0 : (char const *) 0;
8634 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8636 const int *foo = &x[0];
8639 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8640 typedef const int *iptr;
8644 { /* AIX XL C 1.02.0.0 rejects this saying
8645 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8646 struct s { int j; const int *ap[3]; };
8647 struct s *b; b->j = 5;
8649 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8658 rm -f conftest.$ac_objext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660 (eval $ac_compile) 2>conftest.er1
8662 grep -v '^ *+' conftest.er1 >conftest.err
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_c_werror_flag"
8668 || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try='test -s conftest.$ac_objext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8690 echo "${ECHO_T}$ac_cv_c_const" >&6
8691 if test $ac_cv_c_const = no; then
8693 cat >>confdefs.h <<\_ACEOF
8699 echo "$as_me:$LINENO: checking for inline" >&5
8700 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8701 if test "${ac_cv_c_inline+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 for ac_kw in inline __inline__ __inline; do
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8714 static $ac_kw foo_t static_foo () {return 0; }
8715 $ac_kw foo_t foo () {return 0; }
8719 rm -f conftest.$ac_objext
8720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721 (eval $ac_compile) 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag"
8729 || test ! -s conftest.err'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; } &&
8735 { ac_try='test -s conftest.$ac_objext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_c_inline=$ac_kw; break
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8752 echo "${ECHO_T}$ac_cv_c_inline" >&6
8755 case $ac_cv_c_inline in
8758 case $ac_cv_c_inline in
8760 *) ac_val=$ac_cv_c_inline;;
8762 cat >>confdefs.h <<_ACEOF
8764 #define inline $ac_val
8770 echo "$as_me:$LINENO: checking for working volatile" >&5
8771 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8772 if test "${ac_cv_c_volatile+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8792 rm -f conftest.$ac_objext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794 (eval $ac_compile) 2>conftest.er1
8796 grep -v '^ *+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 ac_cv_c_volatile=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8824 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8825 if test $ac_cv_c_volatile = no; then
8827 cat >>confdefs.h <<\_ACEOF
8833 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8834 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8835 if test "${ac_cv_c_stringize+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 cat >conftest.$ac_ext <<_ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8846 char *s = x(teststring);
8848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8849 $EGREP "#teststring" >/dev/null 2>&1; then
8850 ac_cv_c_stringize=no
8852 ac_cv_c_stringize=yes
8857 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8858 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8859 if test $ac_cv_c_stringize = yes; then
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_STRINGIZE 1
8867 echo "$as_me:$LINENO: checking for function prototypes" >&5
8868 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8869 if test "$ac_cv_prog_cc_stdc" != no; then
8870 echo "$as_me:$LINENO: result: yes" >&5
8871 echo "${ECHO_T}yes" >&6
8873 cat >>confdefs.h <<\_ACEOF
8874 #define PROTOTYPES 1
8878 cat >>confdefs.h <<\_ACEOF
8879 #define __PROTOTYPES 1
8883 echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8887 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8888 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8889 if test "${ac_cv_struct_tm+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <sys/types.h>
8904 struct tm *tp; tp->tm_sec;
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_struct_tm=time.h
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 ac_cv_struct_tm=sys/time.h
8938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8940 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8941 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8942 if test $ac_cv_struct_tm = sys/time.h; then
8944 cat >>confdefs.h <<\_ACEOF
8945 #define TM_IN_SYS_TIME 1
8950 echo "$as_me:$LINENO: checking for size_t" >&5
8951 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8952 if test "${ac_cv_type_size_t+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 $ac_includes_default
8967 if (sizeof (size_t))
8973 rm -f conftest.$ac_objext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_type_size_t=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_type_size_t=no
9002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9004 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9005 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9006 if test $ac_cv_type_size_t = yes; then
9010 cat >>confdefs.h <<_ACEOF
9011 #define size_t unsigned
9016 echo "$as_me:$LINENO: checking for off_t" >&5
9017 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9018 if test "${ac_cv_type_off_t+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 $ac_includes_default
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>conftest.er1
9043 grep -v '^ *+' conftest.er1 >conftest.err
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag"
9049 || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } &&
9055 { ac_try='test -s conftest.$ac_objext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_type_off_t=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9071 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9072 if test $ac_cv_type_off_t = yes; then
9076 cat >>confdefs.h <<_ACEOF
9082 echo "$as_me:$LINENO: checking for pid_t" >&5
9083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9084 if test "${ac_cv_type_pid_t+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 cat >conftest.$ac_ext <<_ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 $ac_includes_default
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest.$ac_objext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_type_pid_t=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9138 if test $ac_cv_type_pid_t = yes; then
9142 cat >>confdefs.h <<_ACEOF
9149 echo "$as_me:$LINENO: checking volatile declaration" >&5
9150 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9151 if test "${timidity_cv_type_volatile+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171 (eval $ac_compile) 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 timidity_cv_type_volatile=yes
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 timidity_cv_type_volatile=no
9198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9201 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9202 if test $timidity_cv_type_volatile = no; then
9204 cat >>confdefs.h <<\_ACEOF
9205 #define NO_VOLATILE 1
9210 echo "$as_me:$LINENO: checking union semun declaration" >&5
9211 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9212 if test "${timidity_cv_type_union_semun+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9222 #include <sys/types.h>
9223 #include <sys/ipc.h>
9224 #include <sys/sem.h>
9234 rm -f conftest.$ac_objext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236 (eval $ac_compile) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 timidity_cv_type_union_semun=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 timidity_cv_type_union_semun=no
9263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9265 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9266 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9267 if test $timidity_cv_type_union_semun = yes; then
9269 cat >>confdefs.h <<\_ACEOF
9270 #define HAVE_UNION_SEMUN 1
9275 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9279 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9280 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9281 if test -z "$ac_cv_prog_CC"; then
9284 our_gcc="$ac_cv_prog_CC"
9286 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9288 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9289 msnative_struct='-fnative-struct'
9293 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9294 msnative_struct='-mms-bitfields'
9298 if test x"$msnative_struct" = x ; then
9299 echo "$as_me:$LINENO: result: no way" >&5
9300 echo "${ECHO_T}no way" >&6
9301 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9302 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9304 CFLAGS="$CFLAGS $msnative_struct"
9305 CPPFLAGS="$CPPFLAGS $msnative_struct"
9306 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9307 echo "${ECHO_T}${msnative_struct}" >&6
9314 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9315 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9316 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9317 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 cat >conftest.$ac_ext <<_ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9327 #include <windows.h>
9328 #include <mmsystem.h>
9333 return WOM_OPEN != 0x3BB
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 timidity_cv_header_new_mmsystem=yes
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 timidity_cv_header_new_mmsystem=no
9367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9370 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9371 if test $timidity_cv_header_new_mmsystem = yes; then
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_NEW_MMSYSTEM 1
9380 # Checks for library functions.
9381 echo "$as_me:$LINENO: checking for error_at_line" >&5
9382 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9383 if test "${ac_cv_lib_error_at_line+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 $ac_includes_default
9396 error_at_line (0, 0, "", 0, "");
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_c_werror_flag"
9411 || test ! -s conftest.err'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try='test -s conftest$ac_exeext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_lib_error_at_line=yes
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_cv_lib_error_at_line=no
9430 rm -f conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9433 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9434 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9435 if test $ac_cv_lib_error_at_line = no; then
9437 "error.$ac_objext" | \
9438 *" error.$ac_objext" | \
9439 "error.$ac_objext "* | \
9440 *" error.$ac_objext "* ) ;;
9441 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9448 for ac_header in unistd.h vfork.h
9450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452 echo "$as_me:$LINENO: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460 # Is the header compilable?
9461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 $ac_includes_default
9470 #include <$ac_header>
9472 rm -f conftest.$ac_objext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>conftest.er1
9476 grep -v '^ *+' conftest.er1 >conftest.err
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_header_compiler=yes
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_header_compiler=no
9501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9503 echo "${ECHO_T}$ac_header_compiler" >&6
9505 # Is the header present?
9506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 #include <$ac_header>
9516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null; then
9524 if test -s conftest.err; then
9525 ac_cpp_err=$ac_c_preproc_warn_flag
9526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9533 if test -z "$ac_cpp_err"; then
9534 ac_header_preproc=yes
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_header_preproc=no
9541 rm -f conftest.err conftest.$ac_ext
9542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543 echo "${ECHO_T}$ac_header_preproc" >&6
9545 # So? What about this header?
9546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552 ac_header_preproc=yes
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9569 ## ------------------------------- ##
9570 ## Report this to root@mput.dip.jp ##
9571 ## ------------------------------- ##
9574 sed "s/^/$as_me: WARNING: /" >&2
9577 echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 eval "$as_ac_Header=\$ac_header_preproc"
9584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9589 cat >>confdefs.h <<_ACEOF
9590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9599 for ac_func in fork vfork
9601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 echo "$as_me:$LINENO: checking for $ac_func" >&5
9603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_var+set}\" = set"; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 cat >conftest.$ac_ext <<_ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615 #define $ac_func innocuous_$ac_func
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char $ac_func (); below.
9619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620 <limits.h> exists even on freestanding compilers. */
9623 # include <limits.h>
9625 # include <assert.h>
9630 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9638 /* The GNU C library defines this for functions which it implements
9639 to always fail with ENOSYS. Some functions are actually named
9640 something starting with __ and the normal name is an alias. */
9641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9644 char (*f) () = $ac_func;
9653 return f != $ac_func;
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 eval "$as_ac_var=yes"
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 eval "$as_ac_var=no"
9687 rm -f conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9692 if test `eval echo '${'$as_ac_var'}'` = yes; then
9693 cat >>confdefs.h <<_ACEOF
9694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9700 if test "x$ac_cv_func_fork" = xyes; then
9701 echo "$as_me:$LINENO: checking for working fork" >&5
9702 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9703 if test "${ac_cv_func_fork_works+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 if test "$cross_compiling" = yes; then
9707 ac_cv_func_fork_works=cross
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* By Ruediger Kuhlmann. */
9711 #include <sys/types.h>
9713 # include <unistd.h>
9715 /* Some systems only have a dummy stub for fork() */
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_func_fork_works=yes
9736 echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_func_fork_works=no
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9746 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9747 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9750 ac_cv_func_fork_works=$ac_cv_func_fork
9752 if test "x$ac_cv_func_fork_works" = xcross; then
9754 *-*-amigaos* | *-*-msdosdjgpp*)
9755 # Override, as these systems have only a dummy fork() stub
9756 ac_cv_func_fork_works=no
9759 ac_cv_func_fork_works=yes
9762 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9763 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9765 ac_cv_func_vfork_works=$ac_cv_func_vfork
9766 if test "x$ac_cv_func_vfork" = xyes; then
9767 echo "$as_me:$LINENO: checking for working vfork" >&5
9768 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9769 if test "${ac_cv_func_vfork_works+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 if test "$cross_compiling" = yes; then
9773 ac_cv_func_vfork_works=cross
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 /* Thanks to Paul Eggert for this test. */
9784 #include <sys/types.h>
9785 #include <sys/stat.h>
9786 #include <sys/wait.h>
9788 # include <unistd.h>
9793 /* On some sparc systems, changes by the child to local and incoming
9794 argument registers are propagated back to the parent. The compiler
9795 is told about this with #include <vfork.h>, but some compilers
9796 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9797 static variable whose address is put into a register that is
9798 clobbered by the vfork. */
9801 sparc_address_test (int arg)
9803 sparc_address_test (arg) int arg;
9824 pid_t parent = getpid ();
9827 sparc_address_test (0);
9832 /* Here is another test for sparc vfork register problems. This
9833 test uses lots of local variables, at least as many local
9834 variables as main has allocated so far including compiler
9835 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9836 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9837 reuse the register of parent for one of the local variables,
9838 since it will think that parent can't possibly be used any more
9839 in this routine. Assigning to the local variable will thus
9840 munge parent in the parent process. */
9842 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9843 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9844 /* Convince the compiler that p..p7 are live; otherwise, it might
9845 use the same hardware register for all 8 local variables. */
9846 if (p != p1 || p != p2 || p != p3 || p != p4
9847 || p != p5 || p != p6 || p != p7)
9850 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9851 from child file descriptors. If the child closes a descriptor
9852 before it execs or exits, this munges the parent's descriptor
9853 as well. Test for this by closing stdout in the child. */
9854 _exit(close(fileno(stdout)) != 0);
9859 while (wait(&status) != child)
9862 /* Was there some problem with vforking? */
9865 /* Did the child fail? (This shouldn't happen.) */
9868 /* Did the vfork/compiler bug occur? */
9869 || parent != getpid()
9871 /* Did the file descriptor bug occur? */
9872 || fstat(fileno(stdout), &st) != 0
9877 rm -f conftest$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879 (eval $ac_link) 2>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_func_vfork_works=yes
9890 echo "$as_me: program exited with status $ac_status" >&5
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9895 ac_cv_func_vfork_works=no
9897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9901 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9904 if test "x$ac_cv_func_fork_works" = xcross; then
9905 ac_cv_func_vfork_works=$ac_cv_func_vfork
9906 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9907 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9910 if test "x$ac_cv_func_vfork_works" = xyes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_WORKING_VFORK 1
9918 cat >>confdefs.h <<\_ACEOF
9923 if test "x$ac_cv_func_fork_works" = xyes; then
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_WORKING_FORK 1
9931 echo "$as_me:$LINENO: checking for working memcmp" >&5
9932 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9933 if test "${ac_cv_func_memcmp_working+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 if test "$cross_compiling" = yes; then
9937 ac_cv_func_memcmp_working=no
9939 cat >conftest.$ac_ext <<_ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9950 /* Some versions of memcmp are not 8-bit clean. */
9951 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9952 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9955 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9956 or more and with at least one buffer not starting on a 4-byte boundary.
9957 William Lewis provided this test program. */
9962 for (i = 0; i < 4; i++)
9966 strcpy (a, "--------01111111");
9967 strcpy (b, "--------10000000");
9968 if (memcmp (a, b, 16) >= 0)
9978 rm -f conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_func_memcmp_working=yes
9991 echo "$as_me: program exited with status $ac_status" >&5
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_cv_func_memcmp_working=no
9998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10001 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10002 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10003 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
10004 "memcmp.$ac_objext" | \
10005 *" memcmp.$ac_objext" | \
10006 "memcmp.$ac_objext "* | \
10007 *" memcmp.$ac_objext "* ) ;;
10008 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
10014 for ac_header in stdlib.h unistd.h
10016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10018 echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10026 # Is the header compilable?
10027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 $ac_includes_default
10036 #include <$ac_header>
10038 rm -f conftest.$ac_objext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040 (eval $ac_compile) 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_c_werror_flag"
10048 || test ! -s conftest.err'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try='test -s conftest.$ac_objext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_header_compiler=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ac_header_compiler=no
10067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10069 echo "${ECHO_T}$ac_header_compiler" >&6
10071 # Is the header present?
10072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 #include <$ac_header>
10082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } >/dev/null; then
10090 if test -s conftest.err; then
10091 ac_cpp_err=$ac_c_preproc_warn_flag
10092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10099 if test -z "$ac_cpp_err"; then
10100 ac_header_preproc=yes
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_header_preproc=no
10107 rm -f conftest.err conftest.$ac_ext
10108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10109 echo "${ECHO_T}$ac_header_preproc" >&6
10111 # So? What about this header?
10112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10118 ac_header_preproc=yes
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10135 ## ------------------------------- ##
10136 ## Report this to root@mput.dip.jp ##
10137 ## ------------------------------- ##
10140 sed "s/^/$as_me: WARNING: /" >&2
10143 echo "$as_me:$LINENO: checking for $ac_header" >&5
10144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 eval "$as_ac_Header=\$ac_header_preproc"
10150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10155 cat >>confdefs.h <<_ACEOF
10156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10164 for ac_func in getpagesize
10166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167 echo "$as_me:$LINENO: checking for $ac_func" >&5
10168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10169 if eval "test \"\${$as_ac_var+set}\" = set"; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10180 #define $ac_func innocuous_$ac_func
10182 /* System header to define __stub macros and hopefully few prototypes,
10183 which can conflict with char $ac_func (); below.
10184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185 <limits.h> exists even on freestanding compilers. */
10188 # include <limits.h>
10190 # include <assert.h>
10195 /* Override any gcc2 internal prototype to avoid an error. */
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10203 /* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10209 char (*f) () = $ac_func;
10218 return f != $ac_func;
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225 (eval $ac_link) 2>conftest.er1
10227 grep -v '^ *+' conftest.er1 >conftest.err
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_c_werror_flag"
10233 || test ! -s conftest.err'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; } &&
10239 { ac_try='test -s conftest$ac_exeext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 eval "$as_ac_var=yes"
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 eval "$as_ac_var=no"
10252 rm -f conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10257 if test `eval echo '${'$as_ac_var'}'` = yes; then
10258 cat >>confdefs.h <<_ACEOF
10259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10265 echo "$as_me:$LINENO: checking for working mmap" >&5
10266 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10267 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 if test "$cross_compiling" = yes; then
10271 ac_cv_func_mmap_fixed_mapped=no
10273 cat >conftest.$ac_ext <<_ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10280 /* malloc might have been renamed as rpl_malloc. */
10283 /* Thanks to Mike Haertel and Jim Avera for this test.
10284 Here is a matrix of mmap possibilities:
10285 mmap private not fixed
10286 mmap private fixed at somewhere currently unmapped
10287 mmap private fixed at somewhere already mapped
10288 mmap shared not fixed
10289 mmap shared fixed at somewhere currently unmapped
10290 mmap shared fixed at somewhere already mapped
10291 For private mappings, we should verify that changes cannot be read()
10292 back from the file, nor mmap's back from the file at a different
10293 address. (There have been systems where private was not correctly
10294 implemented like the infamous i386 svr4.0, and systems where the
10295 VM page cache was not coherent with the file system buffer cache
10296 like early versions of FreeBSD and possibly contemporary NetBSD.)
10297 For shared mappings, we should conversely verify that changes get
10298 propagated back to all the places they're supposed to be.
10300 Grep wants private fixed already mapped.
10301 The main things grep needs to know about mmap are:
10302 * does it exist and is it safe to write into the mmap'd area
10303 * how to use it (BSD variants) */
10306 #include <sys/mman.h>
10308 #if !STDC_HEADERS && !HAVE_STDLIB_H
10312 /* This mess was copied from the GNU getpagesize.h. */
10313 #if !HAVE_GETPAGESIZE
10314 /* Assume that all systems that can run configure have sys/param.h. */
10315 # if !HAVE_SYS_PARAM_H
10316 # define HAVE_SYS_PARAM_H 1
10319 # ifdef _SC_PAGESIZE
10320 # define getpagesize() sysconf(_SC_PAGESIZE)
10321 # else /* no _SC_PAGESIZE */
10322 # if HAVE_SYS_PARAM_H
10323 # include <sys/param.h>
10324 # ifdef EXEC_PAGESIZE
10325 # define getpagesize() EXEC_PAGESIZE
10326 # else /* no EXEC_PAGESIZE */
10328 # define getpagesize() NBPG * CLSIZE
10331 # endif /* no CLSIZE */
10332 # else /* no NBPG */
10334 # define getpagesize() NBPC
10335 # else /* no NBPC */
10337 # define getpagesize() PAGESIZE
10338 # endif /* PAGESIZE */
10339 # endif /* no NBPC */
10340 # endif /* no NBPG */
10341 # endif /* no EXEC_PAGESIZE */
10342 # else /* no HAVE_SYS_PARAM_H */
10343 # define getpagesize() 8192 /* punt totally */
10344 # endif /* no HAVE_SYS_PARAM_H */
10345 # endif /* no _SC_PAGESIZE */
10347 #endif /* no HAVE_GETPAGESIZE */
10352 char *data, *data2, *data3;
10356 pagesize = getpagesize ();
10358 /* First, make a file with some known garbage in it. */
10359 data = (char *) malloc (pagesize);
10362 for (i = 0; i < pagesize; ++i)
10363 *(data + i) = rand ();
10365 fd = creat ("conftest.mmap", 0600);
10368 if (write (fd, data, pagesize) != pagesize)
10372 /* Next, try to mmap the file at a fixed address which already has
10373 something else allocated at it. If we can, also make sure that
10374 we see the same garbage. */
10375 fd = open ("conftest.mmap", O_RDWR);
10378 data2 = (char *) malloc (2 * pagesize);
10381 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10382 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10383 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10385 for (i = 0; i < pagesize; ++i)
10386 if (*(data + i) != *(data2 + i))
10389 /* Finally, make sure that changes to the mapped area do not
10390 percolate back to the file as seen by read(). (This is a bug on
10391 some variants of i386 svr4.0.) */
10392 for (i = 0; i < pagesize; ++i)
10393 *(data2 + i) = *(data2 + i) + 1;
10394 data3 = (char *) malloc (pagesize);
10397 if (read (fd, data3, pagesize) != pagesize)
10399 for (i = 0; i < pagesize; ++i)
10400 if (*(data + i) != *(data3 + i))
10406 rm -f conftest$ac_exeext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_cv_func_mmap_fixed_mapped=yes
10419 echo "$as_me: program exited with status $ac_status" >&5
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ( exit $ac_status )
10424 ac_cv_func_mmap_fixed_mapped=no
10426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10430 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10431 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10433 cat >>confdefs.h <<\_ACEOF
10434 #define HAVE_MMAP 1
10438 rm -f conftest.mmap
10440 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10441 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10442 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 ac_cv_func_setvbuf_reversed=no
10446 cat >conftest.$ac_ext <<_ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10454 int (setvbuf) (FILE *, int, char *, size_t);
10459 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 cat >conftest.$ac_ext <<_ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10494 int (setvbuf) (FILE *, int, char *, size_t);
10499 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506 (eval $ac_link) 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -z "$ac_c_werror_flag"
10514 || test ! -s conftest.err'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; } &&
10520 { ac_try='test -s conftest$ac_exeext'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10526 # It compiles and links either way, so it must not be declared
10527 # with a prototype and most likely this is a K&R C compiler.
10529 if test "$cross_compiling" = yes; then
10530 : # Assume setvbuf is not reversed when cross-compiling.
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10542 /* This call has the arguments reversed.
10543 A reversed system may check and see that the address of buf
10544 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10546 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10549 exit (0); /* Non-reversed systems SEGV here. */
10554 rm -f conftest$ac_exeext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_cv_func_setvbuf_reversed=yes
10567 echo "$as_me: program exited with status $ac_status" >&5
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ( exit $ac_status )
10574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10576 ac_cv_func_setvbuf_reversed=yes
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10582 rm -f conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10592 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10593 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10594 if test $ac_cv_func_setvbuf_reversed = yes; then
10596 cat >>confdefs.h <<\_ACEOF
10597 #define SETVBUF_REVERSED 1
10602 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10603 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10604 if test "${ac_cv_type_signal+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <sys/types.h>
10614 #include <signal.h>
10619 extern "C" void (*signal (int, void (*)(int)))(int);
10621 void (*signal ()) ();
10632 rm -f conftest.$ac_objext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634 (eval $ac_compile) 2>conftest.er1
10636 grep -v '^ *+' conftest.er1 >conftest.err
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -z "$ac_c_werror_flag"
10642 || test ! -s conftest.err'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_type_signal=void
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_cv_type_signal=int
10661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10664 echo "${ECHO_T}$ac_cv_type_signal" >&6
10666 cat >>confdefs.h <<_ACEOF
10667 #define RETSIGTYPE $ac_cv_type_signal
10671 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes; then
10673 for ac_func in vprintf
10675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10676 echo "$as_me:$LINENO: checking for $ac_func" >&5
10677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10678 if eval "test \"\${$as_ac_var+set}\" = set"; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10689 #define $ac_func innocuous_$ac_func
10691 /* System header to define __stub macros and hopefully few prototypes,
10692 which can conflict with char $ac_func (); below.
10693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10694 <limits.h> exists even on freestanding compilers. */
10697 # include <limits.h>
10699 # include <assert.h>
10704 /* Override any gcc2 internal prototype to avoid an error. */
10709 /* We use char because int might match the return type of a gcc2
10710 builtin and then its argument prototype would still apply. */
10712 /* The GNU C library defines this for functions which it implements
10713 to always fail with ENOSYS. Some functions are actually named
10714 something starting with __ and the normal name is an alias. */
10715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10718 char (*f) () = $ac_func;
10727 return f != $ac_func;
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_c_werror_flag"
10742 || test ! -s conftest.err'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest$ac_exeext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 eval "$as_ac_var=yes"
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 eval "$as_ac_var=no"
10761 rm -f conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10766 if test `eval echo '${'$as_ac_var'}'` = yes; then
10767 cat >>confdefs.h <<_ACEOF
10768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10771 echo "$as_me:$LINENO: checking for _doprnt" >&5
10772 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10773 if test "${ac_cv_func__doprnt+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 cat >conftest.$ac_ext <<_ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10784 #define _doprnt innocuous__doprnt
10786 /* System header to define __stub macros and hopefully few prototypes,
10787 which can conflict with char _doprnt (); below.
10788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10789 <limits.h> exists even on freestanding compilers. */
10792 # include <limits.h>
10794 # include <assert.h>
10799 /* Override any gcc2 internal prototype to avoid an error. */
10804 /* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10807 /* The GNU C library defines this for functions which it implements
10808 to always fail with ENOSYS. Some functions are actually named
10809 something starting with __ and the normal name is an alias. */
10810 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10813 char (*f) () = _doprnt;
10822 return f != _doprnt;
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10829 (eval $ac_link) 2>conftest.er1
10831 grep -v '^ *+' conftest.er1 >conftest.err
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -z "$ac_c_werror_flag"
10837 || test ! -s conftest.err'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest$ac_exeext'
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_cv_func__doprnt=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_cv_func__doprnt=no
10856 rm -f conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10859 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10860 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10861 if test $ac_cv_func__doprnt = yes; then
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_DOPRNT 1
10942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 echo "$as_me:$LINENO: checking for $ac_func" >&5
10944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10945 if eval "test \"\${$as_ac_var+set}\" = set"; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10956 #define $ac_func innocuous_$ac_func
10958 /* System header to define __stub macros and hopefully few prototypes,
10959 which can conflict with char $ac_func (); below.
10960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961 <limits.h> exists even on freestanding compilers. */
10964 # include <limits.h>
10966 # include <assert.h>
10971 /* Override any gcc2 internal prototype to avoid an error. */
10976 /* We use char because int might match the return type of a gcc2
10977 builtin and then its argument prototype would still apply. */
10979 /* The GNU C library defines this for functions which it implements
10980 to always fail with ENOSYS. Some functions are actually named
10981 something starting with __ and the normal name is an alias. */
10982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10985 char (*f) () = $ac_func;
10994 return f != $ac_func;
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag"
11009 || test ! -s conftest.err'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 eval "$as_ac_var=yes"
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 eval "$as_ac_var=no"
11028 rm -f conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11033 if test `eval echo '${'$as_ac_var'}'` = yes; then
11034 cat >>confdefs.h <<_ACEOF
11035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11041 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define RETSIGTYPE int
11046 cat >>confdefs.h <<\_ACEOF
11047 #define HAVE_GETCWD int
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_GETHOSTBYNAME 1
11054 cat >>confdefs.h <<\_ACEOF
11055 #define HAVE_POPEN 1
11059 cat >>confdefs.h <<\_ACEOF
11060 #define popen _popen
11064 cat >>confdefs.h <<\_ACEOF
11065 #define pclose _pclose
11068 cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_SELECT 1
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_SNPRINTF 1
11076 cat >>confdefs.h <<\_ACEOF
11077 #define HAVE_STRDUP 1
11080 cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_STRERROR 1
11084 cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_STRNCASECMP 1
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_STRSTR 1
11093 cat >>confdefs.h <<\_ACEOF
11094 #define snprintf _snprintf
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_SOCKET 1
11101 cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_VSNPRINTF 1
11106 cat >>confdefs.h <<\_ACEOF
11107 #define vsnprintf _vsnprintf
11111 cat >>confdefs.h <<\_ACEOF
11112 #define TIMID_VERSION $(PACKAGE_VERSION)
11116 cat >>confdefs.h <<\_ACEOF
11117 #define DEFAULT_PATH ".\\"
11122 echo "$as_me:$LINENO: checking for getopt_long" >&5
11123 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
11124 if test "${ac_cv_func_getopt_long+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11135 #define getopt_long innocuous_getopt_long
11137 /* System header to define __stub macros and hopefully few prototypes,
11138 which can conflict with char getopt_long (); below.
11139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11140 <limits.h> exists even on freestanding compilers. */
11143 # include <limits.h>
11145 # include <assert.h>
11150 /* Override any gcc2 internal prototype to avoid an error. */
11155 /* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11157 char getopt_long ();
11158 /* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11164 char (*f) () = getopt_long;
11173 return f != getopt_long;
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag"
11188 || test ! -s conftest.err'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; } &&
11194 { ac_try='test -s conftest$ac_exeext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 ac_cv_func_getopt_long=yes
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ac_cv_func_getopt_long=no
11207 rm -f conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11211 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11212 if test $ac_cv_func_getopt_long = yes; then
11214 cat >>confdefs.h <<\_ACEOF
11215 #define HAVE_GETOPT_LONG 1
11218 tm_cv_needgetopt="no"
11220 tm_cv_needgetopt="yes"
11225 if test "x$tm_cv_needgetopt" = "xyes"; then
11227 NEEDGETOPT_FALSE='#'
11229 NEEDGETOPT_TRUE='#'
11234 # Checks on cygnus and MYSYS
11235 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
11236 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
11238 echo "$as_me:$LINENO: checking for opendir" >&5
11239 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11240 if test "${ac_cv_func_opendir+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11251 #define opendir innocuous_opendir
11253 /* System header to define __stub macros and hopefully few prototypes,
11254 which can conflict with char opendir (); below.
11255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11256 <limits.h> exists even on freestanding compilers. */
11259 # include <limits.h>
11261 # include <assert.h>
11266 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11274 /* The GNU C library defines this for functions which it implements
11275 to always fail with ENOSYS. Some functions are actually named
11276 something starting with __ and the normal name is an alias. */
11277 #if defined (__stub_opendir) || defined (__stub___opendir)
11280 char (*f) () = opendir;
11289 return f != opendir;
11294 rm -f conftest.$ac_objext conftest$ac_exeext
11295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11296 (eval $ac_link) 2>conftest.er1
11298 grep -v '^ *+' conftest.er1 >conftest.err
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -z "$ac_c_werror_flag"
11304 || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try='test -s conftest$ac_exeext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_cv_func_opendir=yes
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 ac_cv_func_opendir=no
11323 rm -f conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11327 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11328 if test $ac_cv_func_opendir = yes; then
11331 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11336 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11340 if test "x$enable_network" = "xyes"; then
11341 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
11342 EXTRALIBS="$EXTRALIBS wsock32.lib"
11343 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11345 echo "$as_me:$LINENO: checking for socket" >&5
11346 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11347 if test "${ac_cv_func_socket+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 cat >conftest.$ac_ext <<_ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11358 #define socket innocuous_socket
11360 /* System header to define __stub macros and hopefully few prototypes,
11361 which can conflict with char socket (); below.
11362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11363 <limits.h> exists even on freestanding compilers. */
11366 # include <limits.h>
11368 # include <assert.h>
11373 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub_socket) || defined (__stub___socket)
11387 char (*f) () = socket;
11396 return f != socket;
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_func_socket=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_cv_func_socket=no
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11433 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11434 echo "${ECHO_T}$ac_cv_func_socket" >&6
11435 if test $ac_cv_func_socket = yes; then
11438 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11439 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11440 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11441 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 ac_save_LIBS="$LIBS"
11445 LIBS="-lwsock32 $LIBS"
11446 cat >conftest.$ac_ext <<_ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11452 #include <windows.h>
11453 #include <winsock.h>
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11465 (eval $ac_link) 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag"
11473 || test ! -s conftest.err'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest$ac_exeext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 eval "wapi_cv_lib_$ac_lib_var=yes"
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 eval "wapi_cv_lib_$ac_lib_var=no"
11492 rm -f conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS="$ac_save_LIBS"
11497 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11498 echo "$as_me:$LINENO: result: yes" >&5
11499 echo "${ECHO_T}yes" >&6
11500 EXTRALIBS="$EXTRALIBS -lwsock32"
11501 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11504 echo "$as_me:$LINENO: result: no" >&5
11505 echo "${ECHO_T}no" >&6
11515 # Checks on extra paths
11518 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11519 if test "${with_tcl_includes+set}" = set; then
11520 withval="$with_tcl_includes"
11521 if test ! -d $withval; then
11522 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11523 echo "$as_me: WARNING: $withval is not found." >&2;}
11525 tcl_include_dir="-I$withval"
11529 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11530 if test "${with_tcl_libs+set}" = set; then
11531 withval="$with_tcl_libs"
11532 if test ! -d $withval; then
11533 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11534 echo "$as_me: WARNING: $withval is not found." >&2;}
11536 tcl_libdir="-L$withval"
11539 # Check whether --with-tk-includes or --without-tk-includes was given.
11540 if test "${with_tk_includes+set}" = set; then
11541 withval="$with_tk_includes"
11542 if test ! -d $withval; then
11543 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11544 echo "$as_me: WARNING: $withval is not found." >&2;}
11546 tk_includes="-I$withval"
11549 # Check whether --with-tk-libs or --without-tk-libs was given.
11550 if test "${with_tk_libs+set}" = set; then
11551 withval="$with_tk_libs"
11552 if test ! -d $withval; then
11553 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11554 echo "$as_me: WARNING: $withval is not found." >&2;}
11556 tk_libdir="-L$withval"
11560 # Check whether --with-offix-includes or --without-offix-includes was given.
11561 if test "${with_offix_includes+set}" = set; then
11562 withval="$with_offix_includes"
11563 if test ! -d $withval; then
11564 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11565 echo "$as_me: WARNING: $withval is not found." >&2;}
11567 offix_include_dir="-I$withval"
11570 # Check whether --with-offix-libs or --without-offix-libs was given.
11571 if test "${with_offix_libs+set}" = set; then
11572 withval="$with_offix_libs"
11573 if test ! -d $withval; then
11574 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11575 echo "$as_me: WARNING: $withval is not found." >&2;}
11577 offix_lib_dir="-L$withval"
11585 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11588 # Check whether --with-nas-library or --without-nas-library was given.
11589 if test "${with_nas_library+set}" = set; then
11590 withval="$with_nas_library"
11594 # Check whether --with-nas-includes or --without-nas-includes was given.
11595 if test "${with_nas_includes+set}" = set; then
11596 withval="$with_nas_includes"
11601 # Check whether --enable-audio or --disable-audio was given.
11602 if test "${enable_audio+set}" = set; then
11603 enableval="$enable_audio"
11604 enable_audio=$enableval
11611 test "x$enable_audio" = xyes && enable_audio=default
11613 if test "x$enable_audio" != xno; then
11614 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11615 eval "au_enable_$i=yes"
11621 # Check whether --with-default-output or --without-default-output was given.
11622 if test "${with_default_output+set}" = set; then
11623 withval="$with_default_output"
11624 if test "$enable_audio" != no; then
11625 DEFAULT_PLAYMODE=$withval
11626 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11628 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11629 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11634 if test "x$au_enable_default" = xyes; then
11636 *-*-linux*|*-*-freebsd*)
11640 au_enable_sb_dsp=yes
11642 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11670 au_enable_darwin=yes
11673 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11674 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11680 # Each audio mode's configurations
11681 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11682 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11683 if test "x$au_enable_oss" = xyes; then
11684 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11685 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11686 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11687 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11688 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11692 echo "$as_me:$LINENO: result: yes" >&5
11693 echo "${ECHO_T}yes" >&6
11696 if test "x$ac_cv_header_soundcard_h" = xyes; then
11697 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11698 echo "${ECHO_T}yes - <soundcard.h>" >&6
11700 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11701 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11707 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11708 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11709 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-lossaudio $LIBS"
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 /* Override any gcc2 internal prototype to avoid an error. */
11725 /* We use char because int might match the return type of a gcc2
11726 builtin and then its argument prototype would still apply. */
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag"
11746 || test ! -s conftest.err'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; } &&
11752 { ac_try='test -s conftest$ac_exeext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_cv_lib_ossaudio_open=yes
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 ac_cv_lib_ossaudio_open=no
11765 rm -f conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11769 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11770 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11771 if test $ac_cv_lib_ossaudio_open = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define HAVE_LIBOSSAUDIO 1
11776 LIBS="-lossaudio $LIBS"
11783 if test ! -e "/dev/dsp"; then
11784 oss_device=/dev/audio
11789 echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6
11793 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11794 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11795 if test "x$au_enable_sun" = xyes; then
11798 if test -f /usr/demo/SOUND/libaudio.a; then
11799 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11800 echo "$as_me:$LINENO: result: yes" >&5
11801 echo "${ECHO_T}yes" >&6
11803 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11804 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11808 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11809 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11810 echo "$as_me:$LINENO: result: yes" >&5
11811 echo "${ECHO_T}yes" >&6
11813 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11814 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11817 *) echo "$as_me:$LINENO: result: yes" >&5
11818 echo "${ECHO_T}yes" >&6
11821 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11822 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11824 echo "$as_me:$LINENO: result: no" >&5
11825 echo "${ECHO_T}no" >&6
11828 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11829 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11830 if test "x$au_enable_hpux" = xyes; then
11832 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11833 echo "${ECHO_T}yes" >&6 ;;
11834 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11835 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11837 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11838 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11840 echo "$as_me:$LINENO: result: no" >&5
11841 echo "${ECHO_T}no" >&6
11844 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11845 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11846 if test "x$au_enable_irix" = xyes; then
11848 *-sgi-irix5*|*-sgi-irix6.2)
11849 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11850 echo "$as_me:$LINENO: result: yes" >&5
11851 echo "${ECHO_T}yes" >&6
11854 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11855 echo "$as_me:$LINENO: result: yes" >&5
11856 echo "${ECHO_T}yes" >&6
11858 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11859 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11861 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11862 EXTRALIBS="$EXTRASLIBS -laudio"
11864 echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11868 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11869 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11870 if test "x$au_enable_mme" = xyes; then
11872 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6 ;;
11874 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11875 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11877 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11878 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11879 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11880 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11882 echo "$as_me:$LINENO: result: no" >&5
11883 echo "${ECHO_T}no" >&6
11886 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11887 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11888 if test "x$au_enable_sb_dsp" = xyes; then
11890 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11891 echo "${ECHO_T}yes" >&6 ;;
11892 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11893 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11895 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11896 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11898 echo "$as_me:$LINENO: result: no" >&5
11899 echo "${ECHO_T}no" >&6
11902 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11903 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11904 if test "x$au_enable_w32" = xyes; then
11907 echo "$as_me:$LINENO: result: yes" >&5
11908 echo "${ECHO_T}yes" >&6
11911 echo "$as_me:$LINENO: result: yes" >&5
11912 echo "${ECHO_T}yes" >&6
11915 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11916 echo "$as_me: WARNING: may not work on $target" >&2;}
11919 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11920 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
11921 EXTRALIBS="$EXTRALIBS winmm.lib"
11923 EXTRALIBS="$EXTRALIBS -lwinmm"
11925 EXTRADEFS="$EXTRADEFS -DAU_W32"
11927 echo "$as_me:$LINENO: result: no" >&5
11928 echo "${ECHO_T}no" >&6
11931 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11932 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11933 if test "x$au_enable_darwin" = xyes; then
11934 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11935 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11936 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11939 echo "$as_me:$LINENO: result: yes" >&5
11940 echo "${ECHO_T}yes" >&6;;
11942 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11943 echo "$as_me: WARNING: may not work on $target" >&2;}
11947 echo "$as_me:$LINENO: result: no" >&5
11948 echo "${ECHO_T}no" >&6
11952 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11953 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11954 if test "x$au_enable_alsa" = xyes; then
11955 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11956 echo "${ECHO_T}yes, configuring alsa" >&6
11959 KEEPLDFLAGS=$LDFLAGS
11960 alsa_save_CFLAGS="$CFLAGS"
11961 alsa_save_LDFLAGS="$LDFLAGS"
11962 alsa_save_LIBS="$LIBS"
11966 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11967 if test "${with_alsa_prefix+set}" = set; then
11968 withval="$with_alsa_prefix"
11969 alsa_prefix="$withval"
11975 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11976 if test "${with_alsa_inc_prefix+set}" = set; then
11977 withval="$with_alsa_inc_prefix"
11978 alsa_inc_prefix="$withval"
11983 # Check whether --enable-alsatest or --disable-alsatest was given.
11984 if test "${enable_alsatest+set}" = set; then
11985 enableval="$enable_alsatest"
11988 enable_alsatest=yes
11991 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11992 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11993 if test "$alsa_inc_prefix" != "" ; then
11994 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11995 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11997 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11998 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12000 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12001 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12002 if test "$alsa_prefix" != "" ; then
12003 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12004 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12007 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12008 LIBS=`echo $LIBS | sed 's/-lm//'`
12009 LIBS=`echo $LIBS | sed 's/-ldl//'`
12010 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12011 LIBS=`echo $LIBS | sed 's/ //'`
12012 LIBS="$ALSA_LIBS $LIBS"
12013 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12014 echo "${ECHO_T}$ALSA_LIBS" >&6
12016 min_alsa_version=0.1.1
12017 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12018 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12020 alsa_min_major_version=`echo $min_alsa_version | \
12021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12022 alsa_min_minor_version=`echo $min_alsa_version | \
12023 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12024 alsa_min_micro_version=`echo $min_alsa_version | \
12025 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12043 #include <alsa/asoundlib.h>
12049 /* ensure backward compatibility */
12050 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12051 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12053 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12054 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12056 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12057 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12060 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12063 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12064 # error not present
12067 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12070 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12071 # error not present
12074 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12075 # error not present
12085 rm -f conftest.$ac_objext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12087 (eval $ac_compile) 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -z "$ac_c_werror_flag"
12095 || test ! -s conftest.err'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest.$ac_objext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 echo "$as_me:$LINENO: result: found." >&5
12108 echo "${ECHO_T}found." >&6
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 cat >conftest.$ac_ext <<_ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12120 #include <sys/asoundlib.h>
12126 /* ensure backward compatibility */
12127 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12128 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12130 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12131 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12133 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12134 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12137 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12140 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12141 # error not present
12144 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12147 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12148 # error not present
12151 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12152 # error not present
12162 rm -f conftest.$ac_objext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164 (eval $ac_compile) 2>conftest.er1
12166 grep -v '^ *+' conftest.er1 >conftest.err
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -z "$ac_c_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 echo "$as_me:$LINENO: result: found." >&5
12185 echo "${ECHO_T}found." >&6
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 echo "$as_me:$LINENO: result: not present." >&5
12191 echo "${ECHO_T}not present." >&6
12192 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12193 echo "${ECHO_T}libasound was not found anywhere." >&6
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12198 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12203 ac_cpp='$CPP $CPPFLAGS'
12204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12210 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12211 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12212 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lasound $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12224 /* Override any gcc2 internal prototype to avoid an error. */
12228 /* We use char because int might match the return type of a gcc2
12229 builtin and then its argument prototype would still apply. */
12230 char snd_ctl_open ();
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241 (eval $ac_link) 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag"
12249 || test ! -s conftest.err'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest$ac_exeext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_lib_asound_snd_ctl_open=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_lib_asound_snd_ctl_open=no
12268 rm -f conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12272 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12273 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12274 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_LIBASOUND 1
12279 LIBS="-lasound $LIBS"
12282 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12283 echo "${ECHO_T}No linkable libasound was found." >&6
12289 if test "x$alsa_found" = "xyes" ; then
12291 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12292 LIBS=`echo $LIBS | sed 's/ //'`
12293 LIBS="-lasound $LIBS"
12296 CFLAGS="$alsa_save_CFLAGS"
12297 LDFLAGS="$alsa_save_LDFLAGS"
12298 LIBS="$alsa_save_LIBS"
12306 if test "x$alsa_found" = "xyes" ; then
12307 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12308 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12309 for f in $ALSA_CFLAGS; do
12311 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12312 *) CFLAGS="$CPPFLAGS $f" ;;
12316 LIBS="$LIBS $ALSA_LIBS"
12318 for ac_func in snd_seq_port_info_set_timestamping
12320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12321 echo "$as_me:$LINENO: checking for $ac_func" >&5
12322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12323 if eval "test \"\${$as_ac_var+set}\" = set"; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12334 #define $ac_func innocuous_$ac_func
12336 /* System header to define __stub macros and hopefully few prototypes,
12337 which can conflict with char $ac_func (); below.
12338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12339 <limits.h> exists even on freestanding compilers. */
12342 # include <limits.h>
12344 # include <assert.h>
12349 /* Override any gcc2 internal prototype to avoid an error. */
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12357 /* The GNU C library defines this for functions which it implements
12358 to always fail with ENOSYS. Some functions are actually named
12359 something starting with __ and the normal name is an alias. */
12360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12363 char (*f) () = $ac_func;
12372 return f != $ac_func;
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>conftest.er1
12381 grep -v '^ *+' conftest.er1 >conftest.err
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 eval "$as_ac_var=yes"
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 eval "$as_ac_var=no"
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12411 if test `eval echo '${'$as_ac_var'}'` = yes; then
12412 cat >>confdefs.h <<_ACEOF
12413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12420 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12421 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12424 LDFLAGS=$KEEPLDFLAGS
12427 echo "$as_me:$LINENO: result: no" >&5
12428 echo "${ECHO_T}no" >&6
12431 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12432 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12433 if test "x$au_enable_alib" = xyes; then
12435 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12436 echo "${ECHO_T}yes" >&6 ;;
12437 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12438 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12440 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12441 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12442 if test -d /opt/audio/include; then
12443 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12445 if test -d /opt/audio/lib; then
12446 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12448 EXTRALIBS="$EXTRALIBS -lAlib"
12450 echo "$as_me:$LINENO: result: no" >&5
12451 echo "${ECHO_T}no" >&6
12454 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12455 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12456 if test "x$au_enable_nas" = xyes; then
12457 if test "x$with_x" != xyes; then
12458 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12459 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12460 { (exit 1); exit 1; }; }
12462 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12463 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12466 if test "x$with_nas_library" != x; then
12467 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12468 echo "${ECHO_T}$with_nas_library" >&6;
12469 EXTRALIBS="$EXTRALIBS $with_nas_library"
12471 echo "$as_me:$LINENO: result: " >&5
12472 echo "${ECHO_T}" >&6
12473 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12474 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12475 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 ac_func_search_save_LIBS="$LIBS"
12479 timidity_cv_search_AuOpenServer="no"
12480 for i in $x_libraries/libaudio.a \
12481 /usr/lib/libaudio.so \
12482 /usr/lib/libaudio.a ; do
12483 LIBS="$i $ac_func_search_save_LIBS"
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 /* Override any gcc2 internal prototype to avoid an error. */
12495 /* We use char because int might match the return type of a gcc2
12496 builtin and then its argument prototype would still apply. */
12497 char AuOpenServer ();
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12508 (eval $ac_link) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag"
12516 || test ! -s conftest.err'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest$ac_exeext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 timidity_cv_search_AuOpenServer="$i"; break
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12534 rm -f conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12537 LIBS="$ac_func_search_save_LIBS"
12539 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12540 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12541 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12542 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12543 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12544 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12546 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12547 echo "$as_me: WARNING: NAS library is not found." >&2;}
12550 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12552 if test "x$have_xext" = xyes; then
12553 lib_xext_opt=-lXext
12555 if test "x$have_xprelibs" = xyes; then
12556 lib_xprelibs_opt='-lSM -lICE'
12559 echo "$as_me:$LINENO: result: no" >&5
12560 echo "${ECHO_T}no" >&6
12563 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12564 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12565 if test "x$au_enable_arts" = xyes; then
12566 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12567 echo "${ECHO_T}yes, configuring aRts" >&6
12570 KEEPLDFLAGS=$LDFLAGS
12572 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12573 if test "${with_arts_prefix+set}" = set; then
12574 withval="$with_arts_prefix"
12575 arts_prefix="$withval"
12579 # Check whether --enable-artstest or --disable-artstest was given.
12580 if test "${enable_artstest+set}" = set; then
12581 enableval="$enable_artstest"
12584 enable_artstest=yes
12587 if test x$arts_prefix != x ; then
12588 arts_args="$arts_args --prefix=$arts_prefix"
12589 if test x${ARTS_CONFIG+set} != xset ; then
12590 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12594 # Extract the first word of "artsc-config", so it can be a program name with args.
12595 set dummy artsc-config; ac_word=$2
12596 echo "$as_me:$LINENO: checking for $ac_word" >&5
12597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12598 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 case $ARTS_CONFIG in
12603 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12624 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12626 if test -n "$ARTS_CONFIG"; then
12627 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12628 echo "${ECHO_T}$ARTS_CONFIG" >&6
12630 echo "$as_me:$LINENO: result: no" >&5
12631 echo "${ECHO_T}no" >&6
12634 min_arts_version=0.9.5
12635 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12636 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12638 if test "$ARTS_CONFIG" = "no" ; then
12641 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12642 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12644 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12645 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12646 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12647 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12648 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12649 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12650 if test "x$enable_artstest" = "xyes" ; then
12651 ac_save_CFLAGS="$CFLAGS"
12652 ac_save_LIBS="$LIBS"
12653 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12654 LIBS="$LIBS $ARTS_LIBS"
12655 rm -f conf.artstest
12656 if test "$cross_compiling" = yes; then
12657 echo $ac_n "cross compiling; assumed OK... $ac_c"
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12667 #include <stdlib.h>
12668 #include <string.h>
12672 my_strdup (char *str)
12678 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12679 strcpy (new_str, str);
12689 int major, minor, micro;
12692 system ("touch conf.artstest");
12694 /* HP/UX 9 (%@#!) writes to sscanf strings */
12695 tmp_version = my_strdup("$min_arts_version");
12696 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12697 printf("%s, bad version string\n", "$min_arts_version");
12701 if (($arts_major_version > major) ||
12702 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12703 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12709 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12710 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12711 printf("*** best to upgrade to the required version.\n");
12712 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12713 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12714 printf("*** config.cache before re-running configure\n");
12721 rm -f conftest$ac_exeext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12723 (eval $ac_link) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12734 echo "$as_me: program exited with status $ac_status" >&5
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 ( exit $ac_status )
12741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12743 CFLAGS="$ac_save_CFLAGS"
12744 LIBS="$ac_save_LIBS"
12747 if test "x$no_arts" = x ; then
12748 echo "$as_me:$LINENO: result: yes" >&5
12749 echo "${ECHO_T}yes" >&6
12752 echo "$as_me:$LINENO: result: no" >&5
12753 echo "${ECHO_T}no" >&6
12754 if test "$ARTS_CONFIG" = "no" ; then
12755 echo "*** The artsc-config script installed by ARTS could not be found"
12756 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12757 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12758 echo "*** full path to artsc-config."
12760 if test -f conf.artstest ; then
12763 echo "*** Could not run ARTS test program, checking why..."
12764 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12765 LIBS="$LIBS $ARTS_LIBS"
12766 cat >conftest.$ac_ext <<_ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786 (eval $ac_link) 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 echo "*** The test program compiled, but did not run. This usually means"
12807 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12808 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12809 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12810 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12811 echo "*** is required on your system"
12813 echo "*** If you have an old version installed, it is best to remove it, although"
12814 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 echo "*** The test program failed to compile or link. See the file config.log for the"
12820 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12821 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12822 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12824 rm -f conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12826 CFLAGS="$ac_save_CFLAGS"
12827 LIBS="$ac_save_LIBS"
12836 rm -f conf.artstest
12840 LDFLAGS=$KEEPLDFLAGS
12841 if test "x$no_arts" = x; then
12842 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12843 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12844 for f in $ARTS_CFLAGS; do
12846 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12847 *) CFLAGS="$CPPFLAGS $f" ;;
12851 LIBS="$LIBS $ARTS_LIBS"
12853 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12854 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12857 echo "$as_me:$LINENO: result: no" >&5
12858 echo "${ECHO_T}no" >&6
12861 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12862 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12863 if test "x$au_enable_esd" = xyes; then
12864 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12865 echo "${ECHO_T}yes, configuring esd" >&6
12868 KEEPLDFLAGS=$LDFLAGS
12870 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12871 if test "${with_esd_prefix+set}" = set; then
12872 withval="$with_esd_prefix"
12873 esd_prefix="$withval"
12878 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12879 if test "${with_esd_exec_prefix+set}" = set; then
12880 withval="$with_esd_exec_prefix"
12881 esd_exec_prefix="$withval"
12885 # Check whether --enable-esdtest or --disable-esdtest was given.
12886 if test "${enable_esdtest+set}" = set; then
12887 enableval="$enable_esdtest"
12893 if test x$esd_exec_prefix != x ; then
12894 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12895 if test x${ESD_CONFIG+set} != xset ; then
12896 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12899 if test x$esd_prefix != x ; then
12900 esd_args="$esd_args --prefix=$esd_prefix"
12901 if test x${ESD_CONFIG+set} != xset ; then
12902 ESD_CONFIG=$esd_prefix/bin/esd-config
12906 # Extract the first word of "esd-config", so it can be a program name with args.
12907 set dummy esd-config; ac_word=$2
12908 echo "$as_me:$LINENO: checking for $ac_word" >&5
12909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12910 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 case $ESD_CONFIG in
12915 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12922 test -z "$as_dir" && as_dir=.
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12936 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12938 if test -n "$ESD_CONFIG"; then
12939 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12940 echo "${ECHO_T}$ESD_CONFIG" >&6
12942 echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6
12946 min_esd_version=0.2.7
12947 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12948 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12950 if test "$ESD_CONFIG" = "no" ; then
12956 ac_cpp='$CPP $CPPFLAGS'
12957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12961 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12962 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12964 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12966 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12967 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12968 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12969 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12970 if test "x$enable_esdtest" = "xyes" ; then
12971 ac_save_CFLAGS="$CFLAGS"
12972 ac_save_LIBS="$LIBS"
12973 CFLAGS="$CFLAGS $ESD_CFLAGS"
12974 LIBS="$LIBS $ESD_LIBS"
12976 if test "$cross_compiling" = yes; then
12977 echo $ac_n "cross compiling; assumed OK... $ac_c"
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12987 #include <stdlib.h>
12988 #include <string.h>
12992 my_strdup (char *str)
12998 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12999 strcpy (new_str, str);
13009 int major, minor, micro;
13012 system ("touch conf.esdtest");
13014 /* HP/UX 9 (%@#!) writes to sscanf strings */
13015 tmp_version = my_strdup("$min_esd_version");
13016 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13017 printf("%s, bad version string\n", "$min_esd_version");
13021 if (($esd_major_version > major) ||
13022 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13023 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13029 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13030 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13031 printf("*** best to upgrade to the required version.\n");
13032 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13033 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13034 printf("*** config.cache before re-running configure\n");
13041 rm -f conftest$ac_exeext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13043 (eval $ac_link) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13054 echo "$as_me: program exited with status $ac_status" >&5
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 ( exit $ac_status )
13061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13063 CFLAGS="$ac_save_CFLAGS"
13064 LIBS="$ac_save_LIBS"
13066 ac_cpp='$CPP $CPPFLAGS'
13067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13073 if test "x$no_esd" = x ; then
13074 echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6
13078 echo "$as_me:$LINENO: result: no" >&5
13079 echo "${ECHO_T}no" >&6
13080 if test "$ESD_CONFIG" = "no" ; then
13081 echo "*** The esd-config script installed by ESD could not be found"
13082 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13083 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13084 echo "*** full path to esd-config."
13086 if test -f conf.esdtest ; then
13089 echo "*** Could not run ESD test program, checking why..."
13090 CFLAGS="$CFLAGS $ESD_CFLAGS"
13091 LIBS="$LIBS $ESD_LIBS"
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13100 cat >conftest.$ac_ext <<_ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 (eval $ac_link) 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_c_werror_flag"
13128 || test ! -s conftest.err'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; } &&
13134 { ac_try='test -s conftest$ac_exeext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 echo "*** The test program compiled, but did not run. This usually means"
13141 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13142 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13143 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13144 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13145 echo "*** is required on your system"
13147 echo "*** If you have an old version installed, it is best to remove it, although"
13148 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 echo "*** The test program failed to compile or link. See the file config.log for the"
13154 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13155 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13156 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13158 rm -f conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 CFLAGS="$ac_save_CFLAGS"
13161 LIBS="$ac_save_LIBS"
13163 ac_cpp='$CPP $CPPFLAGS'
13164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13180 LDFLAGS=$KEEPLDFLAGS
13181 if test "x$no_esd" = x; then
13182 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13183 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13184 for f in $ESD_CFLAGS; do
13186 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13187 *) CFLAGS="$CPPFLAGS $f" ;;
13191 LIBS="$LIBS $ESD_LIBS"
13193 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13194 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13197 echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6
13201 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13202 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13203 if test "x$au_enable_portaudio" = xyes; then
13204 echo "$as_me:$LINENO: result: yes" >&5
13205 echo "${ECHO_T}yes" >&6
13206 if test "x$CYGNUS" = xyes ||test "x$MSYS" = xyes; then
13207 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13208 EXTRALIBS="$EXTRALIBS -lportaudio"
13209 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13211 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13212 EXTRALIBS="$EXTRALIBS -lportaudio"
13213 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13216 echo "$as_me:$LINENO: result: no" >&5
13217 echo "${ECHO_T}no" >&6
13220 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13221 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13222 if test "x$au_enable_jack" = xyes; then
13223 echo "$as_me:$LINENO: result: yes" >&5
13224 echo "${ECHO_T}yes" >&6
13225 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13226 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13227 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13229 echo "$as_me:$LINENO: result: no" >&5
13230 echo "${ECHO_T}no" >&6
13233 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13234 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13235 if test "x$au_enable_ao" = xyes; then
13236 echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13237 echo "${ECHO_T}yes, configuring ao" >&6
13239 # Check whether --with-ao or --without-ao was given.
13240 if test "${with_ao+set}" = set; then
13242 ao_prefix="$withval"
13247 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13248 if test "${with_ao_libraries+set}" = set; then
13249 withval="$with_ao_libraries"
13250 ao_libraries="$withval"
13255 # Check whether --with-ao-includes or --without-ao-includes was given.
13256 if test "${with_ao_includes+set}" = set; then
13257 withval="$with_ao_includes"
13258 ao_includes="$withval"
13262 # Check whether --enable-aotest or --disable-aotest was given.
13263 if test "${enable_aotest+set}" = set; then
13264 enableval="$enable_aotest"
13271 if test "x$ao_libraries" != "x" ; then
13272 AO_LIBS="-L$ao_libraries"
13273 elif test "x$ao_prefix" != "x"; then
13274 AO_LIBS="-L$ao_prefix/lib"
13275 elif test "x$prefix" != "xNONE"; then
13276 AO_LIBS="-L$prefix/lib"
13279 if test "x$ao_includes" != "x" ; then
13280 AO_CFLAGS="-I$ao_includes"
13281 elif test "x$ao_prefix" != "x"; then
13282 AO_CFLAGS="-I$ao_prefix/include"
13283 elif test "x$prefix" != "xNONE"; then
13284 AO_CFLAGS="-I$prefix/include"
13287 # see where dl* and friends live
13289 for ac_func in dlopen
13291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13292 echo "$as_me:$LINENO: checking for $ac_func" >&5
13293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13294 if eval "test \"\${$as_ac_var+set}\" = set"; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13305 #define $ac_func innocuous_$ac_func
13307 /* System header to define __stub macros and hopefully few prototypes,
13308 which can conflict with char $ac_func (); below.
13309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13310 <limits.h> exists even on freestanding compilers. */
13313 # include <limits.h>
13315 # include <assert.h>
13320 /* Override any gcc2 internal prototype to avoid an error. */
13325 /* We use char because int might match the return type of a gcc2
13326 builtin and then its argument prototype would still apply. */
13328 /* The GNU C library defines this for functions which it implements
13329 to always fail with ENOSYS. Some functions are actually named
13330 something starting with __ and the normal name is an alias. */
13331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13334 char (*f) () = $ac_func;
13343 return f != $ac_func;
13348 rm -f conftest.$ac_objext conftest$ac_exeext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13350 (eval $ac_link) 2>conftest.er1
13352 grep -v '^ *+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_c_werror_flag"
13358 || test ! -s conftest.err'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 eval "$as_ac_var=yes"
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13375 eval "$as_ac_var=no"
13377 rm -f conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13382 if test `eval echo '${'$as_ac_var'}'` = yes; then
13383 cat >>confdefs.h <<_ACEOF
13384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13389 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13390 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13391 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 ac_check_lib_save_LIBS=$LIBS
13396 cat >conftest.$ac_ext <<_ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13403 /* Override any gcc2 internal prototype to avoid an error. */
13407 /* We use char because int might match the return type of a gcc2
13408 builtin and then its argument prototype would still apply. */
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13420 (eval $ac_link) 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest$ac_exeext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_lib_dl_dlopen=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 ac_cv_lib_dl_dlopen=no
13447 rm -f conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13451 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13453 if test $ac_cv_lib_dl_dlopen = yes; then
13457 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13458 your system may not be supported." >&5
13459 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13460 your system may not be supported." >&2;}
13469 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13471 echo "$as_me:$LINENO: checking for ao" >&5
13472 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13476 if test "x$enable_aotest" = "xyes" ; then
13477 ac_save_CFLAGS="$CFLAGS"
13478 ac_save_LIBS="$LIBS"
13479 CFLAGS="$CFLAGS $AO_CFLAGS"
13480 LIBS="$LIBS $AO_LIBS"
13482 if test "$cross_compiling" = yes; then
13483 echo $ac_n "cross compiling; assumed OK... $ac_c"
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13493 #include <stdlib.h>
13494 #include <string.h>
13499 system("touch conf.aotest");
13505 rm -f conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507 (eval $ac_link) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13518 echo "$as_me: program exited with status $ac_status" >&5
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ( exit $ac_status )
13525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13527 CFLAGS="$ac_save_CFLAGS"
13528 LIBS="$ac_save_LIBS"
13531 if test "x$no_ao" = "x" ; then
13532 echo "$as_me:$LINENO: result: yes" >&5
13533 echo "${ECHO_T}yes" >&6
13536 echo "$as_me:$LINENO: result: no" >&5
13537 echo "${ECHO_T}no" >&6
13538 if test -f conf.aotest ; then
13541 echo "*** Could not run ao test program, checking why..."
13542 CFLAGS="$CFLAGS $AO_CFLAGS"
13543 LIBS="$LIBS $AO_LIBS"
13544 cat >conftest.$ac_ext <<_ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564 (eval $ac_link) 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag"
13572 || test ! -s conftest.err'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest$ac_exeext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 echo "*** The test program compiled, but did not run. This usually means"
13585 echo "*** that the run-time linker is not finding ao or finding the wrong"
13586 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13587 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13588 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13589 echo "*** is required on your system"
13591 echo "*** If you have an old version installed, it is best to remove it, although"
13592 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 echo "*** The test program failed to compile or link. See the file config.log for the"
13598 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13599 echo "*** or that you have moved ao since it was installed."
13601 rm -f conftest.err conftest.$ac_objext \
13602 conftest$ac_exeext conftest.$ac_ext
13603 CFLAGS="$ac_save_CFLAGS"
13604 LIBS="$ac_save_LIBS"
13614 if test "x$no_ao" = "x" ; then
13615 echo "$as_me:$LINENO: result: yes" >&5
13616 echo "${ECHO_T}yes" >&6
13617 EXTRADEFS="$EXTRADEFS -DAU_AO"
13618 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13619 for f in $AO_CFLAGS; do
13621 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13622 *) CFLAGS="$CPPFLAGS $f" ;;
13626 LIBS="$LIBS $AO_LIBS"
13628 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13629 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13632 echo "$as_me:$LINENO: result: no" >&5
13633 echo "${ECHO_T}no" >&6
13636 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13637 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13638 if test "x$au_enable_vorbis" = xyes; then
13639 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13640 echo "${ECHO_T}yes, configuring vorbis" >&6
13642 # Check whether --with-ogg or --without-ogg was given.
13643 if test "${with_ogg+set}" = set; then
13644 withval="$with_ogg"
13645 ogg_prefix="$withval"
13650 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13651 if test "${with_ogg_libraries+set}" = set; then
13652 withval="$with_ogg_libraries"
13653 ogg_libraries="$withval"
13658 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13659 if test "${with_ogg_includes+set}" = set; then
13660 withval="$with_ogg_includes"
13661 ogg_includes="$withval"
13665 # Check whether --enable-oggtest or --disable-oggtest was given.
13666 if test "${enable_oggtest+set}" = set; then
13667 enableval="$enable_oggtest"
13673 if test "x$ogg_libraries" != "x" ; then
13674 OGG_LIBS="-L$ogg_libraries"
13675 elif test "x$ogg_prefix" != "x" ; then
13676 OGG_LIBS="-L$ogg_prefix/lib"
13677 elif test "x$prefix" != "xNONE" ; then
13678 OGG_LIBS="-L$prefix/lib"
13681 OGG_LIBS="$OGG_LIBS -logg"
13683 if test "x$ogg_includes" != "x" ; then
13684 OGG_CFLAGS="-I$ogg_includes"
13685 elif test "x$ogg_prefix" != "x" ; then
13686 OGG_CFLAGS="-I$ogg_prefix/include"
13687 elif test "x$prefix" != "xNONE"; then
13688 OGG_CFLAGS="-I$prefix/include"
13691 echo "$as_me:$LINENO: checking for Ogg" >&5
13692 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13696 if test "x$enable_oggtest" = "xyes" ; then
13697 ac_save_CFLAGS="$CFLAGS"
13698 ac_save_LIBS="$LIBS"
13699 CFLAGS="$CFLAGS $OGG_CFLAGS"
13700 LIBS="$LIBS $OGG_LIBS"
13702 if test "$cross_compiling" = yes; then
13703 echo $ac_n "cross compiling; assumed OK... $ac_c"
13705 cat >conftest.$ac_ext <<_ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13713 #include <stdlib.h>
13714 #include <string.h>
13715 #include <ogg/ogg.h>
13719 system("touch conf.oggtest");
13725 rm -f conftest$ac_exeext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13727 (eval $ac_link) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13738 echo "$as_me: program exited with status $ac_status" >&5
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ( exit $ac_status )
13745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13747 CFLAGS="$ac_save_CFLAGS"
13748 LIBS="$ac_save_LIBS"
13751 if test "x$no_ogg" = "x" ; then
13752 echo "$as_me:$LINENO: result: yes" >&5
13753 echo "${ECHO_T}yes" >&6
13756 # Check whether --with-vorbis or --without-vorbis was given.
13757 if test "${with_vorbis+set}" = set; then
13758 withval="$with_vorbis"
13759 vorbis_prefix="$withval"
13764 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13765 if test "${with_vorbis_libraries+set}" = set; then
13766 withval="$with_vorbis_libraries"
13767 vorbis_libraries="$withval"
13769 vorbis_libraries=""
13772 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13773 if test "${with_vorbis_includes+set}" = set; then
13774 withval="$with_vorbis_includes"
13775 vorbis_includes="$withval"
13779 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13780 if test "${enable_vorbistest+set}" = set; then
13781 enableval="$enable_vorbistest"
13784 enable_vorbistest=yes
13787 if test "x$vorbis_libraries" != "x" ; then
13788 VORBIS_LIBS="-L$vorbis_libraries"
13789 elif test "x$vorbis_prefix" != "x" ; then
13790 VORBIS_LIBS="-L$vorbis_prefix/lib"
13791 elif test "x$prefix" != "xNONE"; then
13792 VORBIS_LIBS="-L$prefix/lib"
13795 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13796 VORBISFILE_LIBS="-lvorbisfile"
13797 VORBISENC_LIBS="-lvorbisenc"
13799 if test "x$vorbis_includes" != "x" ; then
13800 VORBIS_CFLAGS="-I$vorbis_includes"
13801 elif test "x$vorbis_prefix" != "x" ; then
13802 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13803 elif test "x$prefix" != "xNONE"; then
13804 VORBIS_CFLAGS="-I$prefix/include"
13808 echo "$as_me:$LINENO: checking for Vorbis" >&5
13809 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13813 if test "x$enable_vorbistest" = "xyes" ; then
13814 ac_save_CFLAGS="$CFLAGS"
13815 ac_save_LIBS="$LIBS"
13816 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13817 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13818 rm -f conf.vorbistest
13819 if test "$cross_compiling" = yes; then
13820 echo $ac_n "cross compiling; assumed OK... $ac_c"
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13830 #include <stdlib.h>
13831 #include <string.h>
13832 #include <vorbis/codec.h>
13836 system("touch conf.vorbistest");
13842 rm -f conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13855 echo "$as_me: program exited with status $ac_status" >&5
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ( exit $ac_status )
13862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13864 CFLAGS="$ac_save_CFLAGS"
13865 LIBS="$ac_save_LIBS"
13868 if test "x$no_vorbis" = "x" ; then
13869 echo "$as_me:$LINENO: result: yes" >&5
13870 echo "${ECHO_T}yes" >&6
13873 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13874 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13875 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13876 if test "x$CYGNUS" = "xyes"; then
13877 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13878 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13880 if test "x$MSYS" = "xyes"; then
13881 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13882 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13886 echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6
13888 if test -f conf.vorbistest ; then
13891 echo "*** Could not run Vorbis test program, checking why..."
13892 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13893 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13894 cat >conftest.$ac_ext <<_ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13902 #include <vorbis/codec.h>
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914 (eval $ac_link) 2>conftest.er1
13916 grep -v '^ *+' conftest.er1 >conftest.err
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } &&
13921 { ac_try='test -z "$ac_c_werror_flag"
13922 || test ! -s conftest.err'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 echo "*** The test program compiled, but did not run. This usually means"
13935 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13936 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13937 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13938 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13939 echo "*** is required on your system"
13941 echo "*** If you have an old version installed, it is best to remove it, although"
13942 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 echo "*** The test program failed to compile or link. See the file config.log for the"
13948 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13949 echo "*** or that you have moved Vorbis since it was installed."
13951 rm -f conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953 CFLAGS="$ac_save_CFLAGS"
13954 LIBS="$ac_save_LIBS"
13961 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13962 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13969 rm -f conf.vorbistest
13973 echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6
13975 if test -f conf.oggtest ; then
13978 echo "*** Could not run Ogg test program, checking why..."
13979 CFLAGS="$CFLAGS $OGG_CFLAGS"
13980 LIBS="$LIBS $OGG_LIBS"
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13989 #include <ogg/ogg.h>
13999 rm -f conftest.$ac_objext conftest$ac_exeext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14001 (eval $ac_link) 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -z "$ac_c_werror_flag"
14009 || test ! -s conftest.err'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest$ac_exeext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 echo "*** The test program compiled, but did not run. This usually means"
14022 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14023 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14024 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14025 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14026 echo "*** is required on your system"
14028 echo "*** If you have an old version installed, it is best to remove it, although"
14029 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 echo "*** The test program failed to compile or link. See the file config.log for the"
14035 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14036 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14037 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14039 rm -f conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
14041 CFLAGS="$ac_save_CFLAGS"
14042 LIBS="$ac_save_LIBS"
14047 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14048 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14057 echo "$as_me:$LINENO: result: no" >&5
14058 echo "${ECHO_T}no" >&6
14061 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes ; then
14062 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14063 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14064 if test "x$au_enable_flac" = xyes; then
14065 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14066 echo "${ECHO_T}yes, configuring flac" >&6
14067 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14069 # Check whether --with-libFLAC or --without-libFLAC was given.
14070 if test "${with_libFLAC+set}" = set; then
14071 withval="$with_libFLAC"
14072 libFLAC_prefix="$withval"
14077 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14078 if test "${with_libFLAC_libraries+set}" = set; then
14079 withval="$with_libFLAC_libraries"
14080 libFLAC_libraries="$withval"
14082 libFLAC_libraries=""
14085 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14086 if test "${with_libFLAC_includes+set}" = set; then
14087 withval="$with_libFLAC_includes"
14088 libFLAC_includes="$withval"
14090 libFLAC_includes=""
14092 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14093 if test "${enable_libFLACtest+set}" = set; then
14094 enableval="$enable_libFLACtest"
14097 enable_libFLACtest=yes
14100 if test "x$libFLAC_libraries" != "x" ; then
14101 LIBFLAC_LIBS="-L$libFLAC_libraries"
14102 elif test "x$libFLAC_prefix" != "x" ; then
14103 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14104 elif test "x$prefix" != "xNONE" ; then
14105 LIBFLAC_LIBS="-L$prefix/lib"
14108 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14110 if test "x$libFLAC_includes" != "x" ; then
14111 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14112 elif test "x$libFLAC_prefix" != "x" ; then
14113 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14114 elif test "$prefix" != "xNONE"; then
14115 LIBFLAC_CFLAGS="-I$prefix/include"
14118 echo "$as_me:$LINENO: checking for libFLAC" >&5
14119 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14123 if test "x$enable_libFLACtest" = "xyes" ; then
14124 ac_save_CFLAGS="$CFLAGS"
14125 ac_save_CXXFLAGS="$CXXFLAGS"
14126 ac_save_LIBS="$LIBS"
14127 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14128 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14129 LIBS="$LIBS $LIBFLAC_LIBS"
14130 rm -f conf.libFLACtest
14131 if test "$cross_compiling" = yes; then
14132 echo $ac_n "cross compiling; assumed OK... $ac_c"
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14142 #include <stdlib.h>
14143 #include <string.h>
14144 #include <FLAC/format.h>
14148 system("touch conf.libFLACtest");
14154 rm -f conftest$ac_exeext
14155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156 (eval $ac_link) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14167 echo "$as_me: program exited with status $ac_status" >&5
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 ( exit $ac_status )
14174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14176 CFLAGS="$ac_save_CFLAGS"
14177 LIBS="$ac_save_LIBS"
14180 if test "x$no_libFLAC" = "x" ; then
14181 echo "$as_me:$LINENO: result: yes" >&5
14182 echo "${ECHO_T}yes" >&6
14184 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14185 for f in $LIBFLAC_CFLAGS; do
14187 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14188 *) CFLAGS="$CPPFLAGS $f" ;;
14192 LIBS="$LIBS $LIBFLAC_LIBS"
14195 echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6
14197 if test -f conf.libFLACtest ; then
14200 echo "*** Could not run libFLAC test program, checking why..."
14201 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14202 LIBS="$LIBS $LIBFLAC_LIBS"
14203 cat >conftest.$ac_ext <<_ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14211 #include <FLAC/format.h>
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14223 (eval $ac_link) 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest$ac_exeext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 echo "*** The test program compiled, but did not run. This usually means"
14244 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14245 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14246 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14247 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14248 echo "*** is required on your system"
14250 echo "*** If you have an old version installed, it is best to remove it, although"
14251 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14256 echo "*** The test program failed to compile or link. See the file config.log for the"
14257 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14258 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14259 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14261 rm -f conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 CFLAGS="$ac_save_CFLAGS"
14264 LIBS="$ac_save_LIBS"
14272 rm -f conf.libFLACtest
14275 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14276 if test "${with_libOggFLAC+set}" = set; then
14277 withval="$with_libOggFLAC"
14278 libOggFLAC_prefix="$withval"
14280 libOggFLAC_prefix=""
14283 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14284 if test "${with_libOggFLAC_libraries+set}" = set; then
14285 withval="$with_libOggFLAC_libraries"
14286 libOggFLAC_libraries="$withval"
14288 libOggFLAC_libraries=""
14291 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14292 if test "${with_libOggFLAC_includes+set}" = set; then
14293 withval="$with_libOggFLAC_includes"
14294 libOggFLAC_includes="$withval"
14296 libOggFLAC_includes=""
14298 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14299 if test "${enable_libOggFLACtest+set}" = set; then
14300 enableval="$enable_libOggFLACtest"
14303 enable_libOggFLACtest=yes
14306 if test "x$libOggFLAC_libraries" != "x" ; then
14307 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14308 elif test "x$libOggFLAC_prefix" != "x" ; then
14309 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14310 elif test "x$prefix" != "xNONE" ; then
14311 LIBOGGFLAC_LIBS="-L$prefix/lib"
14314 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14316 if test "x$libOggFLAC_includes" != "x" ; then
14317 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14318 elif test "x$libOggFLAC_prefix" != "x" ; then
14319 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14320 elif test "$prefix" != "xNONE"; then
14321 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14324 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14325 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14329 if test "x$enable_libOggFLACtest" = "xyes" ; then
14330 ac_save_CFLAGS="$CFLAGS"
14331 ac_save_CXXFLAGS="$CXXFLAGS"
14332 ac_save_LIBS="$LIBS"
14333 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14334 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14335 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14336 rm -f conf.libOggFLACtest
14337 if test "$cross_compiling" = yes; then
14338 echo $ac_n "cross compiling; assumed OK... $ac_c"
14340 cat >conftest.$ac_ext <<_ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14348 #include <stdlib.h>
14349 #include <string.h>
14350 #include <OggFLAC/stream_decoder.h>
14354 system("touch conf.libOggFLACtest");
14360 rm -f conftest$ac_exeext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362 (eval $ac_link) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14373 echo "$as_me: program exited with status $ac_status" >&5
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ( exit $ac_status )
14380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14382 CFLAGS="$ac_save_CFLAGS"
14383 LIBS="$ac_save_LIBS"
14386 if test "x$no_libOggFLAC" = "x" ; then
14387 echo "$as_me:$LINENO: result: yes" >&5
14388 echo "${ECHO_T}yes" >&6
14390 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14391 for f in $LIBOGGFLAC_CFLAGS; do
14393 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14394 *) CFLAGS="$CPPFLAGS $f" ;;
14398 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14401 echo "$as_me:$LINENO: result: no" >&5
14402 echo "${ECHO_T}no" >&6
14403 if test -f conf.libOggFLACtest ; then
14406 echo "*** Could not run libOggFLAC test program, checking why..."
14407 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14408 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14409 cat >conftest.$ac_ext <<_ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14417 #include <OggFLAC/stream_decoder.h>
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429 (eval $ac_link) 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 echo "*** The test program compiled, but did not run. This usually means"
14450 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14451 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14452 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14453 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14454 echo "*** is required on your system"
14456 echo "*** If you have an old version installed, it is best to remove it, although"
14457 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 echo "*** The test program failed to compile or link. See the file config.log for the"
14463 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14464 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14465 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14467 rm -f conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 CFLAGS="$ac_save_CFLAGS"
14470 LIBS="$ac_save_LIBS"
14472 LIBOGGFLAC_CFLAGS=""
14478 rm -f conf.libOggFLACtest
14481 echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6
14485 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14486 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14487 if test "x$au_enable_flac" = xyes; then
14488 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14489 echo "${ECHO_T}yes, configuring flac" >&6
14490 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14492 # Check whether --with-libFLAC or --without-libFLAC was given.
14493 if test "${with_libFLAC+set}" = set; then
14494 withval="$with_libFLAC"
14495 libFLAC_prefix="$withval"
14500 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14501 if test "${with_libFLAC_libraries+set}" = set; then
14502 withval="$with_libFLAC_libraries"
14503 libFLAC_libraries="$withval"
14505 libFLAC_libraries=""
14508 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14509 if test "${with_libFLAC_includes+set}" = set; then
14510 withval="$with_libFLAC_includes"
14511 libFLAC_includes="$withval"
14513 libFLAC_includes=""
14515 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14516 if test "${enable_libFLACtest+set}" = set; then
14517 enableval="$enable_libFLACtest"
14520 enable_libFLACtest=yes
14523 if test "x$libFLAC_libraries" != "x" ; then
14524 LIBFLAC_LIBS="-L$libFLAC_libraries"
14525 elif test "x$libFLAC_prefix" != "x" ; then
14526 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14527 elif test "x$prefix" != "xNONE" ; then
14528 LIBFLAC_LIBS="-L$prefix/lib"
14531 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14533 if test "x$libFLAC_includes" != "x" ; then
14534 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14535 elif test "x$libFLAC_prefix" != "x" ; then
14536 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14537 elif test "$prefix" != "xNONE"; then
14538 LIBFLAC_CFLAGS="-I$prefix/include"
14541 echo "$as_me:$LINENO: checking for libFLAC" >&5
14542 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14546 if test "x$enable_libFLACtest" = "xyes" ; then
14547 ac_save_CFLAGS="$CFLAGS"
14548 ac_save_CXXFLAGS="$CXXFLAGS"
14549 ac_save_LIBS="$LIBS"
14550 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14551 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14552 LIBS="$LIBS $LIBFLAC_LIBS"
14553 rm -f conf.libFLACtest
14554 if test "$cross_compiling" = yes; then
14555 echo $ac_n "cross compiling; assumed OK... $ac_c"
14557 cat >conftest.$ac_ext <<_ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14565 #include <stdlib.h>
14566 #include <string.h>
14567 #include <FLAC/format.h>
14571 system("touch conf.libFLACtest");
14577 rm -f conftest$ac_exeext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14579 (eval $ac_link) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14590 echo "$as_me: program exited with status $ac_status" >&5
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ( exit $ac_status )
14597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14599 CFLAGS="$ac_save_CFLAGS"
14600 LIBS="$ac_save_LIBS"
14603 if test "x$no_libFLAC" = "x" ; then
14604 echo "$as_me:$LINENO: result: yes" >&5
14605 echo "${ECHO_T}yes" >&6
14607 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14608 for f in $LIBFLAC_CFLAGS; do
14610 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14611 *) CFLAGS="$CPPFLAGS $f" ;;
14615 LIBS="$LIBS $LIBFLAC_LIBS"
14618 echo "$as_me:$LINENO: result: no" >&5
14619 echo "${ECHO_T}no" >&6
14620 if test -f conf.libFLACtest ; then
14623 echo "*** Could not run libFLAC test program, checking why..."
14624 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14625 LIBS="$LIBS $LIBFLAC_LIBS"
14626 cat >conftest.$ac_ext <<_ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14634 #include <FLAC/format.h>
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646 (eval $ac_link) 2>conftest.er1
14648 grep -v '^ *+' conftest.er1 >conftest.err
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -z "$ac_c_werror_flag"
14654 || test ! -s conftest.err'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest$ac_exeext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 echo "*** The test program compiled, but did not run. This usually means"
14667 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14668 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14669 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14670 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14671 echo "*** is required on your system"
14673 echo "*** If you have an old version installed, it is best to remove it, although"
14674 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 echo "*** The test program failed to compile or link. See the file config.log for the"
14680 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14681 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14682 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14684 rm -f conftest.err conftest.$ac_objext \
14685 conftest$ac_exeext conftest.$ac_ext
14686 CFLAGS="$ac_save_CFLAGS"
14687 LIBS="$ac_save_LIBS"
14695 rm -f conf.libFLACtest
14698 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14699 if test "${with_libOggFLAC+set}" = set; then
14700 withval="$with_libOggFLAC"
14701 libOggFLAC_prefix="$withval"
14703 libOggFLAC_prefix=""
14706 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14707 if test "${with_libOggFLAC_libraries+set}" = set; then
14708 withval="$with_libOggFLAC_libraries"
14709 libOggFLAC_libraries="$withval"
14711 libOggFLAC_libraries=""
14714 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14715 if test "${with_libOggFLAC_includes+set}" = set; then
14716 withval="$with_libOggFLAC_includes"
14717 libOggFLAC_includes="$withval"
14719 libOggFLAC_includes=""
14721 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14722 if test "${enable_libOggFLACtest+set}" = set; then
14723 enableval="$enable_libOggFLACtest"
14726 enable_libOggFLACtest=yes
14729 if test "x$libOggFLAC_libraries" != "x" ; then
14730 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14731 elif test "x$libOggFLAC_prefix" != "x" ; then
14732 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14733 elif test "x$prefix" != "xNONE" ; then
14734 LIBOGGFLAC_LIBS="-L$prefix/lib"
14737 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14739 if test "x$libOggFLAC_includes" != "x" ; then
14740 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14741 elif test "x$libOggFLAC_prefix" != "x" ; then
14742 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14743 elif test "$prefix" != "xNONE"; then
14744 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14747 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14748 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14752 if test "x$enable_libOggFLACtest" = "xyes" ; then
14753 ac_save_CFLAGS="$CFLAGS"
14754 ac_save_CXXFLAGS="$CXXFLAGS"
14755 ac_save_LIBS="$LIBS"
14756 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14757 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14758 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14759 rm -f conf.libOggFLACtest
14760 if test "$cross_compiling" = yes; then
14761 echo $ac_n "cross compiling; assumed OK... $ac_c"
14763 cat >conftest.$ac_ext <<_ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14771 #include <stdlib.h>
14772 #include <string.h>
14773 #include <OggFLAC/stream_decoder.h>
14777 system("touch conf.libOggFLACtest");
14783 rm -f conftest$ac_exeext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14785 (eval $ac_link) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14796 echo "$as_me: program exited with status $ac_status" >&5
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ( exit $ac_status )
14803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14805 CFLAGS="$ac_save_CFLAGS"
14806 LIBS="$ac_save_LIBS"
14809 if test "x$no_libOggFLAC" = "x" ; then
14810 echo "$as_me:$LINENO: result: yes" >&5
14811 echo "${ECHO_T}yes" >&6
14813 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14814 for f in $LIBOGGFLAC_CFLAGS; do
14816 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14817 *) CFLAGS="$CPPFLAGS $f" ;;
14821 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14824 echo "$as_me:$LINENO: result: no" >&5
14825 echo "${ECHO_T}no" >&6
14826 if test -f conf.libOggFLACtest ; then
14829 echo "*** Could not run libOggFLAC test program, checking why..."
14830 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14831 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14840 #include <OggFLAC/stream_decoder.h>
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag"
14860 || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 echo "*** The test program compiled, but did not run. This usually means"
14873 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14874 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14875 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14876 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14877 echo "*** is required on your system"
14879 echo "*** If you have an old version installed, it is best to remove it, although"
14880 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 echo "*** The test program failed to compile or link. See the file config.log for the"
14886 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14887 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14888 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14890 rm -f conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14892 CFLAGS="$ac_save_CFLAGS"
14893 LIBS="$ac_save_LIBS"
14895 LIBOGGFLAC_CFLAGS=""
14901 rm -f conf.libOggFLACtest
14904 echo "$as_me:$LINENO: result: no" >&5
14905 echo "${ECHO_T}no" >&6
14908 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14909 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14910 if test "x$au_enable_speex" = xyes; then
14911 if test "${have_speex+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14922 #include <ogg/ogg.h>
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>conftest.er1
14938 grep -v '^ *+' conftest.er1 >conftest.err
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14963 rm -f conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14967 echo "$as_me:$LINENO: result: $have_speex" >&5
14968 echo "${ECHO_T}$have_speex" >&6
14969 if test "x$have_speex" = xyes; then
14970 SYSEXTRAS="$SYSEXTRAS speex_a.c"
14971 EXTRALIBS="$EXTRALIBS -lspeex -logg"
14972 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14975 echo "$as_me:$LINENO: result: no" >&5
14976 echo "${ECHO_T}no" >&6
14979 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14980 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14981 if test "x$au_enable_gogo" = xyes; then
14982 if test "x$CYGNUS" = "xyes"; then
14983 echo "$as_me:$LINENO: result: yes" >&5
14984 echo "${ECHO_T}yes" >&6
14986 if test "x$MSYS" = "xyes"; then
14987 echo "$as_me:$LINENO: result: yes" >&5
14988 echo "${ECHO_T}yes" >&6
14990 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
14991 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
14995 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14996 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14997 EXTRALIBS="$EXTRALIBS -lgogo"
14999 echo "$as_me:$LINENO: result: no" >&5
15000 echo "${ECHO_T}no" >&6
15003 if test "x$au_enable_none" = xyes; then
15004 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15005 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15007 echo "$as_me:$LINENO: checking default output mode" >&5
15008 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
15009 if test "x$DEFAULT_PLAYMODE" = x; then
15010 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15012 case ".$DEFAULT_PLAYMODE" in
15013 .default) TIMIDITY_OUTPUT_ID=d ;;
15014 .oss) TIMIDITY_OUTPUT_ID=d ;;
15015 .alsa) TIMIDITY_OUTPUT_ID=s ;;
15016 .sun) TIMIDITY_OUTPUT_ID=d ;;
15017 .hpux) TIMIDITY_OUTPUT_ID=d ;;
15018 .irix) TIMIDITY_OUTPUT_ID=d ;;
15019 .mme) TIMIDITY_OUTPUT_ID=d ;;
15020 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
15021 .darwin) TIMIDITY_OUTPUT_ID=d ;;
15022 .w32) TIMIDITY_OUTPUT_ID=d ;;
15023 .alib) TIMIDITY_OUTPUT_ID=A ;;
15024 .nas) TIMIDITY_OUTPUT_ID=n ;;
15025 .arts) TIMIDITY_OUTPUT_ID=R ;;
15026 .esd) TIMIDITY_OUTPUT_ID=e ;;
15027 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
15028 .wav) TIMIDITY_OUTPUT_ID=w ;;
15029 .au) TIMIDITY_OUTPUT_ID=u ;;
15030 .aiff) TIMIDITY_OUTPUT_ID=a ;;
15031 .list) TIMIDITY_OUTPUT_ID=l ;;
15032 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
15033 .flac) TIMIDITY_OUTPUT_ID=F ;;
15034 .speex) TIMIDITY_OUTPUT_ID=S ;;
15035 .gogo) TIMIDITY_OUTPUT_ID=g ;;
15036 .jack) TIMIDITY_OUTPUT_ID=j ;;
15037 *) TIMIDITY_OUTPUT_ID= ;;
15039 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15040 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
15043 # Interface Section
15046 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
15048 # Check whether --enable-interface or --disable-interface was given.
15049 if test "${enable_interface+set}" = set; then
15050 enableval="$enable_interface"
15051 for i in `echo $enableval | sed 's/,/ /g'`; do
15052 eval "enable_$i=yes"
15056 # Dynamic link configuration
15057 # Check whether --enable-dynamic or --disable-dynamic was given.
15058 if test "${enable_dynamic+set}" = set; then
15059 enableval="$enable_dynamic"
15060 if test "x$enable_dynamic" = xyes; then
15061 enable_dynamic=dynamic
15062 elif test "x$enable_dynamic" != xno; then
15063 for i in `echo $enableval | sed 's/,/ /g'`; do
15064 eval "enable_$i=dynamic"
15070 for i in $interface_targets; do
15071 eval "join_targets=$join_targets\$enable_$i"
15074 case ".$join_targets" in
15075 .*dynamic*) NEEDDLOPEN=yes;;
15079 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15080 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15082 if test "$NEEDDLOPEN" = "yes"; then
15085 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15086 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
15087 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 #include <windows.h>
15107 rm -f conftest.$ac_objext conftest$ac_exeext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15109 (eval $ac_link) 2>conftest.er1
15111 grep -v '^ *+' conftest.er1 >conftest.err
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -z "$ac_c_werror_flag"
15117 || test ! -s conftest.err'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest$ac_exeext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 wapi_cv_func_LoadLibrary=yes
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15134 wapi_cv_func_LoadLibrary=no
15136 rm -f conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15140 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15141 echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15145 echo "$as_me:$LINENO: result: no" >&5
15146 echo "${ECHO_T}no" >&6
15149 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15151 if test "$have_dl" = "no"; then
15152 echo "$as_me:$LINENO: checking for shl_load" >&5
15153 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15154 if test "${ac_cv_func_shl_load+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 cat >conftest.$ac_ext <<_ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15165 #define shl_load innocuous_shl_load
15167 /* System header to define __stub macros and hopefully few prototypes,
15168 which can conflict with char shl_load (); below.
15169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15170 <limits.h> exists even on freestanding compilers. */
15173 # include <limits.h>
15175 # include <assert.h>
15180 /* Override any gcc2 internal prototype to avoid an error. */
15185 /* We use char because int might match the return type of a gcc2
15186 builtin and then its argument prototype would still apply. */
15188 /* The GNU C library defines this for functions which it implements
15189 to always fail with ENOSYS. Some functions are actually named
15190 something starting with __ and the normal name is an alias. */
15191 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15194 char (*f) () = shl_load;
15203 return f != shl_load;
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210 (eval $ac_link) 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag"
15218 || test ! -s conftest.err'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 ac_cv_func_shl_load=yes
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_cv_func_shl_load=no
15237 rm -f conftest.err conftest.$ac_objext \
15238 conftest$ac_exeext conftest.$ac_ext
15240 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15241 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15242 if test $ac_cv_func_shl_load = yes; then
15247 if test "$have_dl" = "no"; then
15248 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15249 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15250 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 cat >conftest.$ac_ext <<_ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15261 #define NSLinkModule innocuous_NSLinkModule
15263 /* System header to define __stub macros and hopefully few prototypes,
15264 which can conflict with char NSLinkModule (); below.
15265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15266 <limits.h> exists even on freestanding compilers. */
15269 # include <limits.h>
15271 # include <assert.h>
15274 #undef NSLinkModule
15276 /* Override any gcc2 internal prototype to avoid an error. */
15281 /* We use char because int might match the return type of a gcc2
15282 builtin and then its argument prototype would still apply. */
15283 char NSLinkModule ();
15284 /* The GNU C library defines this for functions which it implements
15285 to always fail with ENOSYS. Some functions are actually named
15286 something starting with __ and the normal name is an alias. */
15287 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15290 char (*f) () = NSLinkModule;
15299 return f != NSLinkModule;
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag"
15314 || test ! -s conftest.err'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest$ac_exeext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_cv_func_NSLinkModule=yes
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_cv_func_NSLinkModule=no
15333 rm -f conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
15336 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15337 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15338 if test $ac_cv_func_NSLinkModule = yes; then
15343 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15346 if test "$have_dl" = "no"; then
15347 echo "$as_me:$LINENO: checking for dlopen" >&5
15348 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15349 if test "${ac_cv_func_dlopen+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 cat >conftest.$ac_ext <<_ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15360 #define dlopen innocuous_dlopen
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char dlopen (); below.
15364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15365 <limits.h> exists even on freestanding compilers. */
15368 # include <limits.h>
15370 # include <assert.h>
15375 /* Override any gcc2 internal prototype to avoid an error. */
15380 /* We use char because int might match the return type of a gcc2
15381 builtin and then its argument prototype would still apply. */
15383 /* The GNU C library defines this for functions which it implements
15384 to always fail with ENOSYS. Some functions are actually named
15385 something starting with __ and the normal name is an alias. */
15386 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15389 char (*f) () = dlopen;
15398 return f != dlopen;
15403 rm -f conftest.$ac_objext conftest$ac_exeext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15405 (eval $ac_link) 2>conftest.er1
15407 grep -v '^ *+' conftest.er1 >conftest.err
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -z "$ac_c_werror_flag"
15413 || test ! -s conftest.err'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; } &&
15419 { ac_try='test -s conftest$ac_exeext'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_cv_func_dlopen=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_cv_func_dlopen=no
15432 rm -f conftest.err conftest.$ac_objext \
15433 conftest$ac_exeext conftest.$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15436 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15437 if test $ac_cv_func_dlopen = yes; then
15442 if test "$have_dl" = "no"; then
15443 echo "$as_me:$LINENO: checking for dld_init" >&5
15444 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15445 if test "${ac_cv_func_dld_init+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15456 #define dld_init innocuous_dld_init
15458 /* System header to define __stub macros and hopefully few prototypes,
15459 which can conflict with char dld_init (); below.
15460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 <limits.h> exists even on freestanding compilers. */
15464 # include <limits.h>
15466 # include <assert.h>
15471 /* Override any gcc2 internal prototype to avoid an error. */
15476 /* We use char because int might match the return type of a gcc2
15477 builtin and then its argument prototype would still apply. */
15479 /* The GNU C library defines this for functions which it implements
15480 to always fail with ENOSYS. Some functions are actually named
15481 something starting with __ and the normal name is an alias. */
15482 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15485 char (*f) () = dld_init;
15494 return f != dld_init;
15499 rm -f conftest.$ac_objext conftest$ac_exeext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15501 (eval $ac_link) 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag"
15509 || test ! -s conftest.err'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; } &&
15515 { ac_try='test -s conftest$ac_exeext'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_cv_func_dld_init=yes
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_cv_func_dld_init=no
15528 rm -f conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15531 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15532 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15533 if test $ac_cv_func_dld_init = yes; then
15538 if test "$have_dl" = "no"; then
15539 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15540 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15541 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 ac_check_lib_save_LIBS=$LIBS
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15553 /* Override any gcc2 internal prototype to avoid an error. */
15557 /* We use char because int might match the return type of a gcc2
15558 builtin and then its argument prototype would still apply. */
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
15572 grep -v '^ *+' conftest.er1 >conftest.err
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
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
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_dld_dld_init=yes
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_cv_lib_dld_dld_init=no
15597 rm -f conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15602 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15603 if test $ac_cv_lib_dld_dld_init = yes; then
15604 have_dl=dld;lib_dl_opt=-ldld
15609 echo "$as_me:$LINENO: checking dynamic link method" >&5
15610 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15613 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15614 echo "${ECHO_T}use dl_dlopen.c" >&6
15615 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15616 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15617 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15618 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 case "$ac_cv_header_dlfcn_h" in
15622 yes) i_dlfcn=define;;
15633 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15635 #include <sys/types.h>
15640 extern int fred() ;
15649 int mode = RTLD_LAZY ;
15651 handle = dlopen("./dyna.$so", mode) ;
15652 if (handle == NULL) {
15657 symbol = dlsym(handle, "fred") ;
15658 if (symbol == NULL) {
15659 /* try putting a leading underscore */
15660 symbol = dlsym(handle, "_fred") ;
15661 if (symbol == NULL) {
15674 : Call the object file tmp-dyna.o in case dlext=o.
15675 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15676 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15677 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15678 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15681 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15682 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15684 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15685 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15687 3) timidity_cv_func_dlsym_underscore=yes
15689 4) timidity_cv_func_dlsym_underscore=no
15693 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15694 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15696 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15700 case "x$timidity_cv_func_dlsym_underscore" in
15702 cat >>confdefs.h <<\_ACEOF
15703 #define DLSYM_NEEDS_UNDERSCORE 1
15706 echo "$as_me:$LINENO: result: yes" >&5
15707 echo "${ECHO_T}yes" >&6
15710 echo "$as_me:$LINENO: result: no" >&5
15711 echo "${ECHO_T}no" >&6
15717 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15718 echo "${ECHO_T}use dl_dld.c" >&6
15719 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15722 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15723 echo "${ECHO_T}use dl_hpux.c" >&6
15724 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15725 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15728 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15729 echo "${ECHO_T}use dl_w32.c" >&6
15730 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15733 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15734 echo "${ECHO_T}use dl_dyld.c" >&6
15735 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15739 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15740 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15745 if test "$NEEDDLOPEN" = "yes"; then
15746 cat >> confdefs.h <<EOF
15747 #define IA_DYNAMIC 1
15751 cat >>confdefs.h <<_ACEOF
15752 #define SHARED_LIB_EXT ".$so"
15755 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15760 if test "$NEEDDLOPEN" = "yes"; then
15762 NEEDDLOPEN_FALSE='#'
15764 NEEDDLOPEN_TRUE='#'
15773 ENABLE_NCURSES_TRUE=
15774 ENABLE_NCURSES_FALSE='#'
15776 ENABLE_NCURSES_TRUE='#'
15777 ENABLE_NCURSES_FALSE=
15780 # Check whether --enable-ncurses or --disable-ncurses was given.
15781 if test "${enable_ncurses+set}" = set; then
15782 enableval="$enable_ncurses"
15783 case "x$enable_ncurses" in xyes|xdynamic)
15786 for ac_header in ncurses.h ncurses/curses.h curses.h
15788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15790 echo "$as_me:$LINENO: checking for $ac_header" >&5
15791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15798 # Is the header compilable?
15799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15801 cat >conftest.$ac_ext <<_ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 $ac_includes_default
15808 #include <$ac_header>
15810 rm -f conftest.$ac_objext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15812 (eval $ac_compile) 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -z "$ac_c_werror_flag"
15820 || test ! -s conftest.err'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } &&
15826 { ac_try='test -s conftest.$ac_objext'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_header_compiler=yes
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_header_compiler=no
15839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15841 echo "${ECHO_T}$ac_header_compiler" >&6
15843 # Is the header present?
15844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <$ac_header>
15854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15857 grep -v '^ *+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } >/dev/null; then
15862 if test -s conftest.err; then
15863 ac_cpp_err=$ac_c_preproc_warn_flag
15864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15871 if test -z "$ac_cpp_err"; then
15872 ac_header_preproc=yes
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 ac_header_preproc=no
15879 rm -f conftest.err conftest.$ac_ext
15880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15881 echo "${ECHO_T}$ac_header_preproc" >&6
15883 # So? What about this header?
15884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15890 ac_header_preproc=yes
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15907 ## ------------------------------- ##
15908 ## Report this to root@mput.dip.jp ##
15909 ## ------------------------------- ##
15912 sed "s/^/$as_me: WARNING: /" >&2
15915 echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 eval "$as_ac_Header=\$ac_header_preproc"
15922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15927 cat >>confdefs.h <<_ACEOF
15928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15937 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15939 *) for i in /usr/include /usr/local/include; do
15940 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15941 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
15942 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
15943 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15950 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15951 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15952 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lncurses $LIBS"
15957 cat >conftest.$ac_ext <<_ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15964 /* Override any gcc2 internal prototype to avoid an error. */
15968 /* We use char because int might match the return type of a gcc2
15969 builtin and then its argument prototype would still apply. */
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15981 (eval $ac_link) 2>conftest.er1
15983 grep -v '^ *+' conftest.er1 >conftest.err
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest$ac_exeext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_cv_lib_ncurses_initscr=yes
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_cv_lib_ncurses_initscr=no
16008 rm -f conftest.err conftest.$ac_objext \
16009 conftest$ac_exeext conftest.$ac_ext
16010 LIBS=$ac_check_lib_save_LIBS
16012 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16013 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
16014 if test $ac_cv_lib_ncurses_initscr = yes; then
16015 lib_curses_opt=-lncurses
16017 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16018 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
16019 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 ac_check_lib_save_LIBS=$LIBS
16023 LIBS="-lcurses $lib_user32_test $LIBS"
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16031 /* Override any gcc2 internal prototype to avoid an error. */
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16037 char PDC_set_ctrl_break ();
16041 PDC_set_ctrl_break ();
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>conftest.er1
16050 grep -v '^ *+' conftest.er1 >conftest.err
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -z "$ac_c_werror_flag"
16056 || test ! -s conftest.err'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try='test -s conftest$ac_exeext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_cv_lib_curses_PDC_set_ctrl_break=yes
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 ac_cv_lib_curses_PDC_set_ctrl_break=no
16075 rm -f conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16079 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16080 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
16081 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16082 lib_curses_opt=-lcurses
16084 cat >>confdefs.h <<\_ACEOF
16085 #define USE_PDCURSES 1
16088 lib_user32_opt="$lib_user32_test"
16091 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16092 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
16093 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 ac_check_lib_save_LIBS=$LIBS
16097 LIBS="-lpdcurses $LIBS"
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16105 /* Override any gcc2 internal prototype to avoid an error. */
16109 /* We use char because int might match the return type of a gcc2
16110 builtin and then its argument prototype would still apply. */
16111 char PDC_set_ctrl_break ();
16115 PDC_set_ctrl_break ();
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122 (eval $ac_link) 2>conftest.er1
16124 grep -v '^ *+' conftest.er1 >conftest.err
16126 cat conftest.err >&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
16129 { ac_try='test -z "$ac_c_werror_flag"
16130 || test ! -s conftest.err'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest$ac_exeext'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16149 rm -f conftest.err conftest.$ac_objext \
16150 conftest$ac_exeext conftest.$ac_ext
16151 LIBS=$ac_check_lib_save_LIBS
16153 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16154 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16155 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16156 lib_curses_opt=-lpdcurses
16158 cat >>confdefs.h <<\_ACEOF
16159 #define USE_PDCURSES 1
16162 lib_user32_opt="$lib_user32_test"
16167 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16168 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16169 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-lcurses $LIBS"
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16181 /* Override any gcc2 internal prototype to avoid an error. */
16185 /* We use char because int might match the return type of a gcc2
16186 builtin and then its argument prototype would still apply. */
16196 rm -f conftest.$ac_objext conftest$ac_exeext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16198 (eval $ac_link) 2>conftest.er1
16200 grep -v '^ *+' conftest.er1 >conftest.err
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -z "$ac_c_werror_flag"
16206 || test ! -s conftest.err'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest$ac_exeext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_cv_lib_curses_initscr=yes
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_cv_lib_curses_initscr=no
16225 rm -f conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227 LIBS=$ac_check_lib_save_LIBS
16229 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16230 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16231 if test $ac_cv_lib_curses_initscr = yes; then
16232 lib_curses_opt=-lcurses
16234 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16235 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16241 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
16242 lib_curses_opt=libpdcurses.lib
16244 cat >>confdefs.h <<\_ACEOF
16245 #define USE_PDCURSES 1
16249 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16250 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16266 case "x$enable_ncurses" in
16268 cat >> confdefs.h <<EOF
16269 #define IA_NCURSES 1
16275 ENABLE_NCURSES_TRUE=
16276 ENABLE_NCURSES_FALSE='#'
16278 ENABLE_NCURSES_TRUE='#'
16279 ENABLE_NCURSES_FALSE=
16282 LIBS="$LIBS $lib_curses_opt"
16285 EXTRALIBS="$EXTRALIBS -lmytinfo"
16288 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16292 dynamic_targets="$dynamic_targets interface_n.\$(so)"
16293 n_so_libs="$lib_curses_opt"
16296 EXTRALIBS="$EXTRALIBS -lmytinfo"
16311 ENABLE_SLANG_FALSE='#'
16313 ENABLE_SLANG_TRUE='#'
16314 ENABLE_SLANG_FALSE=
16317 # Check whether --enable-slang or --disable-slang was given.
16318 if test "${enable_slang+set}" = set; then
16319 enableval="$enable_slang"
16320 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16321 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16322 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lslang $LIBS"
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16334 /* Override any gcc2 internal prototype to avoid an error. */
16338 /* We use char because int might match the return type of a gcc2
16339 builtin and then its argument prototype would still apply. */
16340 char SLang_init_tty ();
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16351 (eval $ac_link) 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag"
16359 || test ! -s conftest.err'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest$ac_exeext'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 ac_cv_lib_slang_SLang_init_tty=yes
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_cv_lib_slang_SLang_init_tty=no
16378 rm -f conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 LIBS=$ac_check_lib_save_LIBS
16382 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16383 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16384 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16388 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16389 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16395 for ac_header in slang/slang.h slang.h
16397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16399 echo "$as_me:$LINENO: checking for $ac_header" >&5
16400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16407 # Is the header compilable?
16408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16410 cat >conftest.$ac_ext <<_ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 $ac_includes_default
16417 #include <$ac_header>
16419 rm -f conftest.$ac_objext
16420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16421 (eval $ac_compile) 2>conftest.er1
16423 grep -v '^ *+' conftest.er1 >conftest.err
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } &&
16428 { ac_try='test -z "$ac_c_werror_flag"
16429 || test ! -s conftest.err'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; } &&
16435 { ac_try='test -s conftest.$ac_objext'
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; }; then
16441 ac_header_compiler=yes
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_header_compiler=no
16448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16450 echo "${ECHO_T}$ac_header_compiler" >&6
16452 # Is the header present?
16453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 #include <$ac_header>
16463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } >/dev/null; then
16471 if test -s conftest.err; then
16472 ac_cpp_err=$ac_c_preproc_warn_flag
16473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16480 if test -z "$ac_cpp_err"; then
16481 ac_header_preproc=yes
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 ac_header_preproc=no
16488 rm -f conftest.err conftest.$ac_ext
16489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16490 echo "${ECHO_T}$ac_header_preproc" >&6
16492 # So? What about this header?
16493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16499 ac_header_preproc=yes
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16516 ## ------------------------------- ##
16517 ## Report this to root@mput.dip.jp ##
16518 ## ------------------------------- ##
16521 sed "s/^/$as_me: WARNING: /" >&2
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 eval "$as_ac_Header=\$ac_header_preproc"
16531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16536 cat >>confdefs.h <<_ACEOF
16537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16546 case "x$enable_slang" in
16548 cat >> confdefs.h <<EOF
16556 ENABLE_SLANG_FALSE='#'
16558 ENABLE_SLANG_TRUE='#'
16559 ENABLE_SLANG_FALSE=
16562 LIBS="$LIBS -lslang"
16563 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16567 dynamic_targets="$dynamic_targets interface_s.\$(so)"
16568 s_so_libs="-lslang"
16569 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16570 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16571 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 ac_check_lib_save_LIBS=$LIBS
16575 LIBS="-ltermcap $LIBS"
16576 cat >conftest.$ac_ext <<_ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16583 /* Override any gcc2 internal prototype to avoid an error. */
16587 /* We use char because int might match the return type of a gcc2
16588 builtin and then its argument prototype would still apply. */
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -z "$ac_c_werror_flag"
16608 || test ! -s conftest.err'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; } &&
16614 { ac_try='test -s conftest$ac_exeext'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_cv_lib_termcap_initscr=yes
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ac_cv_lib_termcap_initscr=no
16627 rm -f conftest.err conftest.$ac_objext \
16628 conftest$ac_exeext conftest.$ac_ext
16629 LIBS=$ac_check_lib_save_LIBS
16631 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16632 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16633 if test $ac_cv_lib_termcap_initscr = yes; then
16634 s_so_libs="$s_so_libs -ltermcap"
16650 ENABLE_MOTIF_FALSE='#'
16652 ENABLE_MOTIF_TRUE='#'
16653 ENABLE_MOTIF_FALSE=
16656 # Check whether --enable-motif or --disable-motif was given.
16657 if test "${enable_motif+set}" = set; then
16658 enableval="$enable_motif"
16659 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16660 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16661 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16662 { (exit 1); exit 1; }; }
16664 if test "x$have_xm" != xyes; then
16665 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16666 echo "$as_me: WARNING: Motif library is not found." >&2;}
16671 case "x$enable_motif" in
16673 cat >> confdefs.h <<EOF
16681 ENABLE_MOTIF_FALSE='#'
16683 ENABLE_MOTIF_TRUE='#'
16684 ENABLE_MOTIF_FALSE=
16689 lib_xext_opt=-lXext
16690 if test "x$have_xprelibs" = xyes; then
16691 lib_xprelibs_opt='-lSM -lICE'
16693 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16697 dynamic_targets="$dynamic_targets interface_m.\$(so)"
16698 if test x$have_xprelibs = xyes; then
16699 m_so_libs="-lXext -lSM -lICE"
16701 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16715 ENABLE_TCLTK_FALSE='#'
16717 ENABLE_TCLTK_TRUE='#'
16718 ENABLE_TCLTK_FALSE=
16721 # Check whether --enable-tcltk or --disable-tcltk was given.
16722 if test "${enable_tcltk+set}" = set; then
16723 enableval="$enable_tcltk"
16724 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16725 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16726 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16727 { (exit 1); exit 1; }; }
16730 KEEPCPPFLAGS=$CPPFLAGS
16731 KEEPLDFLAGS=$LDFLAGS
16734 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16735 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16736 LIBS="$LIBS $lib_dl_opt"
16740 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16741 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16742 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16743 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16744 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 ac_check_lib_save_LIBS=$LIBS
16749 cat >conftest.$ac_ext <<_ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16756 /* Override any gcc2 internal prototype to avoid an error. */
16760 /* We use char because int might match the return type of a gcc2
16761 builtin and then its argument prototype would still apply. */
16771 rm -f conftest.$ac_objext conftest$ac_exeext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773 (eval $ac_link) 2>conftest.er1
16775 grep -v '^ *+' conftest.er1 >conftest.err
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag"
16781 || test ! -s conftest.err'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; } &&
16787 { ac_try='test -s conftest$ac_exeext'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 eval "$as_ac_Lib=yes"
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16798 eval "$as_ac_Lib=no"
16800 rm -f conftest.err conftest.$ac_objext \
16801 conftest$ac_exeext conftest.$ac_ext
16802 LIBS=$ac_check_lib_save_LIBS
16804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16805 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16806 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16811 LIBS="$LIBS $tcl_lib"
16812 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16813 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16814 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16815 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16816 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 ac_check_lib_save_LIBS=$LIBS
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16828 /* Override any gcc2 internal prototype to avoid an error. */
16832 /* We use char because int might match the return type of a gcc2
16833 builtin and then its argument prototype would still apply. */
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>conftest.er1
16847 grep -v '^ *+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -z "$ac_c_werror_flag"
16853 || test ! -s conftest.err'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest$ac_exeext'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 eval "$as_ac_Lib=yes"
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16870 eval "$as_ac_Lib=no"
16872 rm -f conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16874 LIBS=$ac_check_lib_save_LIBS
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16878 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16885 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16886 CPPFLAGS=$KEEPCPPFLAGS
16887 LDFLAGS=$KEEPLDFLAGS
16889 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16890 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16892 tcltk_dep='tclIndex'
16896 case "x$enable_tcltk" in
16898 cat >> confdefs.h <<EOF
16906 ENABLE_TCLTK_FALSE='#'
16908 ENABLE_TCLTK_TRUE='#'
16909 ENABLE_TCLTK_FALSE=
16912 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16915 EXTRALIBS="$EXTRALIBS -lipc"
16918 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16922 dynamic_targets="$dynamic_targets interface_k.\$(so)"
16923 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16926 k_so_libs="$k_so_libs -lipc"
16929 k_so_libs="$k_so_libs -lX11 -lm"
16940 if test "x$enable_tcltk" = "xdynamic"; then
16941 ENABLE_DYNAMIC_TCLTK_TRUE=
16942 ENABLE_DYNAMIC_TCLTK_FALSE='#'
16944 ENABLE_DYNAMIC_TCLTK_TRUE='#'
16945 ENABLE_DYNAMIC_TCLTK_FALSE=
16953 ENABLE_EMACS_FALSE='#'
16955 ENABLE_EMACS_TRUE='#'
16956 ENABLE_EMACS_FALSE=
16959 # Check whether --enable-emacs or --disable-emacs was given.
16960 if test "${enable_emacs+set}" = set; then
16961 enableval="$enable_emacs"
16962 case "x$enable_emacs" in xyes|xdynamic) ;; esac
16964 case "x$enable_emacs" in
16966 cat >> confdefs.h <<EOF
16974 ENABLE_EMACS_FALSE='#'
16976 ENABLE_EMACS_TRUE='#'
16977 ENABLE_EMACS_FALSE=
16980 ELFILES="$ELFILES timidity.el"
16981 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16985 dynamic_targets="$dynamic_targets interface_e.\$(so)"
16986 ELFILES="$ELFILES timidity.el"
16999 ENABLE_VT100_FALSE='#'
17001 ENABLE_VT100_TRUE='#'
17002 ENABLE_VT100_FALSE=
17005 # Check whether --enable-vt100 or --disable-vt100 was given.
17006 if test "${enable_vt100+set}" = set; then
17007 enableval="$enable_vt100"
17008 case "x$enable_vt100" in xyes|xdynamic) ;; esac
17010 case "x$enable_vt100" in
17012 cat >> confdefs.h <<EOF
17020 ENABLE_VT100_FALSE='#'
17022 ENABLE_VT100_TRUE='#'
17023 ENABLE_VT100_FALSE=
17026 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17029 dynamic_targets="$dynamic_targets interface_T.\$(so)"
17043 ENABLE_XAW_FALSE='#'
17045 ENABLE_XAW_TRUE='#'
17049 # Check whether --enable-xaw or --disable-xaw was given.
17050 if test "${enable_xaw+set}" = set; then
17051 enableval="$enable_xaw"
17052 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
17053 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17054 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17055 { (exit 1); exit 1; }; }
17057 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17058 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17059 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17063 case "x$enable_xaw" in
17065 cat >> confdefs.h <<EOF
17073 ENABLE_XAW_FALSE='#'
17075 ENABLE_XAW_TRUE='#'
17079 if test "x$have_xext" = xyes; then
17080 lib_xext_opt=-lXext
17082 if test "x$have_xprelibs" = xyes; then
17083 lib_xprelibs_opt='-lSM -lICE'
17087 if test "x$have_xaw" = x3d; then
17089 cat >>confdefs.h <<\_ACEOF
17093 lib_xaw_opt=-lXaw3d
17097 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17101 dynamic_targets="$dynamic_targets interface_a.\$(so)"
17102 if test "x$have_xext" = xyes; then
17103 a_so_libs="-lXext -lX11"
17109 a_so_libs="$a_so_libs -lcc_dynamic"
17112 if test "x$have_xprelibs" = xyes; then
17113 a_so_libs="-lSM -lICE $a_so_libs"
17115 if test "x$have_xaw" = xyes; then
17116 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17117 elif test "x$have_xaw" = x3d; then
17119 cat >>confdefs.h <<\_ACEOF
17123 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17125 a_so_libs="$ldflags_x_opt $a_so_libs"
17136 if test "x$enable_xaw" = "xdynamic"; then
17137 ENABLE_DYNAMIC_XAW_TRUE=
17138 ENABLE_DYNAMIC_XAW_FALSE='#'
17140 ENABLE_DYNAMIC_XAW_TRUE='#'
17141 ENABLE_DYNAMIC_XAW_FALSE=
17149 ENABLE_XSKIN_FALSE='#'
17151 ENABLE_XSKIN_TRUE='#'
17152 ENABLE_XSKIN_FALSE=
17155 # Check whether --enable-xskin or --disable-xskin was given.
17156 if test "${enable_xskin+set}" = set; then
17157 enableval="$enable_xskin"
17158 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
17159 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17160 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17161 { (exit 1); exit 1; }; }
17165 case "x$enable_xskin" in
17167 cat >> confdefs.h <<EOF
17175 ENABLE_XSKIN_FALSE='#'
17177 ENABLE_XSKIN_TRUE='#'
17178 ENABLE_XSKIN_FALSE=
17181 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17184 dynamic_targets="$dynamic_targets interface_i.\$(so)"
17185 i_so_libs="$ldflags_x_opt -lX11"
17198 ENABLE_GTK_FALSE='#'
17200 ENABLE_GTK_TRUE='#'
17204 # Check whether --enable-gtk or --disable-gtk was given.
17205 if test "${enable_gtk+set}" = set; then
17206 enableval="$enable_gtk"
17207 case "x$enable_gtk" in xyes|xdynamic)
17208 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17209 if test "${with_gtk_prefix+set}" = set; then
17210 withval="$with_gtk_prefix"
17211 gtk_config_prefix="$withval"
17213 gtk_config_prefix=""
17216 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17217 if test "${with_gtk_exec_prefix+set}" = set; then
17218 withval="$with_gtk_exec_prefix"
17219 gtk_config_exec_prefix="$withval"
17221 gtk_config_exec_prefix=""
17223 # Check whether --enable-gtktest or --disable-gtktest was given.
17224 if test "${enable_gtktest+set}" = set; then
17225 enableval="$enable_gtktest"
17235 gtk_config_args="$gtk_config_args gthread"
17240 if test x$gtk_config_exec_prefix != x ; then
17241 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17242 if test x${GTK_CONFIG+set} != xset ; then
17243 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17246 if test x$gtk_config_prefix != x ; then
17247 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17248 if test x${GTK_CONFIG+set} != xset ; then
17249 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17253 # Extract the first word of "gtk-config", so it can be a program name with args.
17254 set dummy gtk-config; ac_word=$2
17255 echo "$as_me:$LINENO: checking for $ac_word" >&5
17256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17257 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 case $GTK_CONFIG in
17262 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17266 for as_dir in $PATH
17269 test -z "$as_dir" && as_dir=.
17270 for ac_exec_ext in '' $ac_executable_extensions; do
17271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17272 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17279 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17283 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17285 if test -n "$GTK_CONFIG"; then
17286 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17287 echo "${ECHO_T}$GTK_CONFIG" >&6
17289 echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6
17293 min_gtk_version=1.1.3
17294 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17295 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17297 if test "$GTK_CONFIG" = "no" ; then
17300 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17301 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17302 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17303 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17304 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17305 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17306 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17307 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17308 if test "x$enable_gtktest" = "xyes" ; then
17309 ac_save_CFLAGS="$CFLAGS"
17310 ac_save_LIBS="$LIBS"
17311 CFLAGS="$CFLAGS $GTK_CFLAGS"
17312 LIBS="$GTK_LIBS $LIBS"
17314 if test "$cross_compiling" = yes; then
17315 echo $ac_n "cross compiling; assumed OK... $ac_c"
17317 cat >conftest.$ac_ext <<_ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17324 #include <gtk/gtk.h>
17326 #include <stdlib.h>
17331 int major, minor, micro;
17334 system ("touch conf.gtktest");
17336 /* HP/UX 9 (%@#!) writes to sscanf strings */
17337 tmp_version = g_strdup("$min_gtk_version");
17338 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17339 printf("%s, bad version string\n", "$min_gtk_version");
17343 if ((gtk_major_version != $gtk_config_major_version) ||
17344 (gtk_minor_version != $gtk_config_minor_version) ||
17345 (gtk_micro_version != $gtk_config_micro_version))
17347 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17348 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17349 gtk_major_version, gtk_minor_version, gtk_micro_version);
17350 printf ("*** was found! If gtk-config was correct, then it is best\n");
17351 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17352 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17353 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17354 printf("*** required on your system.\n");
17355 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17356 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17357 printf("*** before re-running configure\n");
17359 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17360 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17361 (gtk_minor_version != GTK_MINOR_VERSION) ||
17362 (gtk_micro_version != GTK_MICRO_VERSION))
17364 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17365 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17366 printf("*** library (version %d.%d.%d)\n",
17367 gtk_major_version, gtk_minor_version, gtk_micro_version);
17369 #endif /* defined (GTK_MAJOR_VERSION) ... */
17372 if ((gtk_major_version > major) ||
17373 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17374 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17380 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17381 gtk_major_version, gtk_minor_version, gtk_micro_version);
17382 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17383 major, minor, micro);
17384 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17386 printf("*** If you have already installed a sufficiently new version, this error\n");
17387 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17388 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17389 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17390 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17391 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17392 printf("*** so that the correct libraries are found at run-time))\n");
17399 rm -f conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17412 echo "$as_me: program exited with status $ac_status" >&5
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ( exit $ac_status )
17419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17421 CFLAGS="$ac_save_CFLAGS"
17422 LIBS="$ac_save_LIBS"
17425 if test "x$no_gtk" = x ; then
17426 echo "$as_me:$LINENO: result: yes" >&5
17427 echo "${ECHO_T}yes" >&6
17430 echo "$as_me:$LINENO: result: no" >&5
17431 echo "${ECHO_T}no" >&6
17432 if test "$GTK_CONFIG" = "no" ; then
17433 echo "*** The gtk-config script installed by GTK could not be found"
17434 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17435 echo "*** your path, or set the GTK_CONFIG environment variable to the"
17436 echo "*** full path to gtk-config."
17438 if test -f conf.gtktest ; then
17441 echo "*** Could not run GTK test program, checking why..."
17442 CFLAGS="$CFLAGS $GTK_CFLAGS"
17443 LIBS="$LIBS $GTK_LIBS"
17444 cat >conftest.$ac_ext <<_ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17451 #include <gtk/gtk.h>
17457 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464 (eval $ac_link) 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag"
17472 || test ! -s conftest.err'
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest$ac_exeext'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; }; then
17484 echo "*** The test program compiled, but did not run. This usually means"
17485 echo "*** that the run-time linker is not finding GTK or finding the wrong"
17486 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17487 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17488 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17489 echo "*** is required on your system"
17491 echo "*** If you have an old version installed, it is best to remove it, although"
17492 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17494 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17495 echo "*** came with the system with the command"
17497 echo "*** rpm --erase --nodeps gtk gtk-devel"
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 echo "*** The test program failed to compile or link. See the file config.log for the"
17503 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17504 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17505 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17507 rm -f conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509 CFLAGS="$ac_save_CFLAGS"
17510 LIBS="$ac_save_LIBS"
17522 case "x$enable_gtk" in
17524 cat >> confdefs.h <<EOF
17532 ENABLE_GTK_FALSE='#'
17534 ENABLE_GTK_TRUE='#'
17538 LIBS="$LIBS $GTK_LIBS"
17539 for f in $GTK_CFLAGS; do
17541 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17542 *) CFLAGS="$CPPFLAGS $f" ;;
17546 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17550 dynamic_targets="$dynamic_targets interface_g.\$(so)"
17551 if test "x$GCC" = xyes; then
17552 for i in $GTK_LIBS; do
17555 *) g_so_libs="$g_so_libs $i" ;;
17559 g_so_libs="$GTK_LIBS"
17561 for f in $GTK_CFLAGS; do
17563 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17564 *) CFLAGS="$CPPFLAGS $f" ;;
17579 ENABLE_SERVER_TRUE=
17580 ENABLE_SERVER_FALSE='#'
17582 ENABLE_SERVER_TRUE='#'
17583 ENABLE_SERVER_FALSE=
17586 # Check whether --enable-server or --disable-server was given.
17587 if test "${enable_server+set}" = set; then
17588 enableval="$enable_server"
17589 case "x$enable_server" in xyes|xdynamic) ;; esac
17591 case "x$enable_server" in
17593 cat >> confdefs.h <<EOF
17594 #define IA_SERVER 1
17600 ENABLE_SERVER_TRUE=
17601 ENABLE_SERVER_FALSE='#'
17603 ENABLE_SERVER_TRUE='#'
17604 ENABLE_SERVER_FALSE=
17607 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17609 for ac_header in sys/soundcard.h
17611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17613 echo "$as_me:$LINENO: checking for $ac_header" >&5
17614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17621 # Is the header compilable?
17622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17631 #include <$ac_header>
17633 rm -f conftest.$ac_objext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17635 (eval $ac_compile) 2>conftest.er1
17637 grep -v '^ *+' conftest.er1 >conftest.err
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
17642 { ac_try='test -z "$ac_c_werror_flag"
17643 || test ! -s conftest.err'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest.$ac_objext'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_header_compiler=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_header_compiler=no
17662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17664 echo "${ECHO_T}$ac_header_compiler" >&6
17666 # Is the header present?
17667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 #include <$ac_header>
17677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } >/dev/null; then
17685 if test -s conftest.err; then
17686 ac_cpp_err=$ac_c_preproc_warn_flag
17687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17694 if test -z "$ac_cpp_err"; then
17695 ac_header_preproc=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_header_preproc=no
17702 rm -f conftest.err conftest.$ac_ext
17703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17704 echo "${ECHO_T}$ac_header_preproc" >&6
17706 # So? What about this header?
17707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17713 ac_header_preproc=yes
17716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17730 ## ------------------------------- ##
17731 ## Report this to root@mput.dip.jp ##
17732 ## ------------------------------- ##
17735 sed "s/^/$as_me: WARNING: /" >&2
17738 echo "$as_me:$LINENO: checking for $ac_header" >&5
17739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17743 eval "$as_ac_Header=\$ac_header_preproc"
17745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17761 dynamic_targets="$dynamic_targets interface_r.\$(so)"
17774 ENABLE_ALSASEQ_TRUE=
17775 ENABLE_ALSASEQ_FALSE='#'
17777 ENABLE_ALSASEQ_TRUE='#'
17778 ENABLE_ALSASEQ_FALSE=
17781 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17782 if test "${enable_alsaseq+set}" = set; then
17783 enableval="$enable_alsaseq"
17784 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
17786 case "x$enable_alsaseq" in
17788 cat >> confdefs.h <<EOF
17789 #define IA_ALSASEQ 1
17795 ENABLE_ALSASEQ_TRUE=
17796 ENABLE_ALSASEQ_FALSE='#'
17798 ENABLE_ALSASEQ_TRUE='#'
17799 ENABLE_ALSASEQ_FALSE=
17802 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17803 alsa_save_CFLAGS="$CFLAGS"
17804 alsa_save_LDFLAGS="$LDFLAGS"
17805 alsa_save_LIBS="$LIBS"
17809 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17810 if test "${with_alsa_prefix+set}" = set; then
17811 withval="$with_alsa_prefix"
17812 alsa_prefix="$withval"
17818 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17819 if test "${with_alsa_inc_prefix+set}" = set; then
17820 withval="$with_alsa_inc_prefix"
17821 alsa_inc_prefix="$withval"
17826 # Check whether --enable-alsatest or --disable-alsatest was given.
17827 if test "${enable_alsatest+set}" = set; then
17828 enableval="$enable_alsatest"
17831 enable_alsatest=yes
17834 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17835 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17836 if test "$alsa_inc_prefix" != "" ; then
17837 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17838 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17840 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17841 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17843 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17844 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17845 if test "$alsa_prefix" != "" ; then
17846 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17847 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17850 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17851 LIBS=`echo $LIBS | sed 's/-lm//'`
17852 LIBS=`echo $LIBS | sed 's/-ldl//'`
17853 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17854 LIBS=`echo $LIBS | sed 's/ //'`
17855 LIBS="$ALSA_LIBS $LIBS"
17856 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17857 echo "${ECHO_T}$ALSA_LIBS" >&6
17859 min_alsa_version=0.1.1
17860 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17861 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17863 alsa_min_major_version=`echo $min_alsa_version | \
17864 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17865 alsa_min_minor_version=`echo $min_alsa_version | \
17866 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17867 alsa_min_micro_version=`echo $min_alsa_version | \
17868 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17874 ac_cpp='$CPP $CPPFLAGS'
17875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17886 #include <alsa/asoundlib.h>
17892 /* ensure backward compatibility */
17893 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17894 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17896 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17897 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17899 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17900 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17903 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17906 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17907 # error not present
17910 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17913 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17914 # error not present
17917 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17918 # error not present
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930 (eval $ac_compile) 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
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
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 echo "$as_me:$LINENO: result: found." >&5
17951 echo "${ECHO_T}found." >&6
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 cat >conftest.$ac_ext <<_ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17963 #include <sys/asoundlib.h>
17969 /* ensure backward compatibility */
17970 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17971 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17973 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17974 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17976 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17977 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17980 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17983 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17984 # error not present
17987 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17990 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17991 # error not present
17994 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17995 # error not present
18005 rm -f conftest.$ac_objext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007 (eval $ac_compile) 2>conftest.er1
18009 grep -v '^ *+' conftest.er1 >conftest.err
18011 cat conftest.err >&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } &&
18014 { ac_try='test -z "$ac_c_werror_flag"
18015 || test ! -s conftest.err'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 echo "$as_me:$LINENO: result: found." >&5
18028 echo "${ECHO_T}found." >&6
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 echo "$as_me:$LINENO: result: not present." >&5
18034 echo "${ECHO_T}not present." >&6
18035 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18036 echo "${ECHO_T}libasound was not found anywhere." >&6
18039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18040 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18041 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18046 ac_cpp='$CPP $CPPFLAGS'
18047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18053 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18054 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18055 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 ac_check_lib_save_LIBS=$LIBS
18059 LIBS="-lasound $LIBS"
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18067 /* Override any gcc2 internal prototype to avoid an error. */
18071 /* We use char because int might match the return type of a gcc2
18072 builtin and then its argument prototype would still apply. */
18073 char snd_ctl_open ();
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>conftest.er1
18086 grep -v '^ *+' conftest.er1 >conftest.err
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest$ac_exeext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_cv_lib_asound_snd_ctl_open=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_cv_lib_asound_snd_ctl_open=no
18111 rm -f conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18113 LIBS=$ac_check_lib_save_LIBS
18115 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18116 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18117 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define HAVE_LIBASOUND 1
18122 LIBS="-lasound $LIBS"
18125 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18126 echo "${ECHO_T}No linkable libasound was found." >&6
18132 if test "x$alsa_found" = "xyes" ; then
18134 LIBS=`echo $LIBS | sed 's/-lasound//g'`
18135 LIBS=`echo $LIBS | sed 's/ //'`
18136 LIBS="-lasound $LIBS"
18139 CFLAGS="$alsa_save_CFLAGS"
18140 LDFLAGS="$alsa_save_LDFLAGS"
18141 LIBS="$alsa_save_LIBS"
18152 dynamic_targets="$dynamic_targets interface_A.\$(so)"
18165 ENABLE_WINSYN_TRUE=
18166 ENABLE_WINSYN_FALSE='#'
18168 ENABLE_WINSYN_TRUE='#'
18169 ENABLE_WINSYN_FALSE=
18172 # Check whether --enable-winsyn or --disable-winsyn was given.
18173 if test "${enable_winsyn+set}" = set; then
18174 enableval="$enable_winsyn"
18175 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
18177 case "x$enable_winsyn" in
18179 cat >> confdefs.h <<EOF
18180 #define IA_WINSYN 1
18186 ENABLE_WINSYN_TRUE=
18187 ENABLE_WINSYN_FALSE='#'
18189 ENABLE_WINSYN_TRUE='#'
18190 ENABLE_WINSYN_FALSE=
18193 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18196 dynamic_targets="$dynamic_targets interface_W.\$(so)"
18209 ENABLE_PORTMIDISYN_TRUE=
18210 ENABLE_PORTMIDISYN_FALSE='#'
18212 ENABLE_PORTMIDISYN_TRUE='#'
18213 ENABLE_PORTMIDISYN_FALSE=
18216 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18217 if test "${enable_portmidisyn+set}" = set; then
18218 enableval="$enable_portmidisyn"
18219 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
18221 case "x$enable_portmidisyn" in
18223 cat >> confdefs.h <<EOF
18224 #define IA_PORTMIDISYN 1
18230 ENABLE_PORTMIDISYN_TRUE=
18231 ENABLE_PORTMIDISYN_FALSE='#'
18233 ENABLE_PORTMIDISYN_TRUE='#'
18234 ENABLE_PORTMIDISYN_FALSE=
18237 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18240 dynamic_targets="$dynamic_targets interface_P.\$(so)"
18253 ENABLE_W32G_SYN_TRUE=
18254 ENABLE_W32G_SYN_FALSE='#'
18256 ENABLE_W32G_SYN_TRUE='#'
18257 ENABLE_W32G_SYN_FALSE=
18260 # Check whether --enable-winsyng or --disable-winsyng was given.
18261 if test "${enable_winsyng+set}" = set; then
18262 enableval="$enable_winsyng"
18263 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
18265 case "x$enable_winsyng" in
18267 cat >> confdefs.h <<EOF
18268 #define IA_W32G_SYN 1
18274 ENABLE_W32G_SYN_TRUE=
18275 ENABLE_W32G_SYN_FALSE='#'
18277 ENABLE_W32G_SYN_TRUE='#'
18278 ENABLE_W32G_SYN_FALSE=
18282 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
18283 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"
18285 cat >>confdefs.h <<\_ACEOF
18286 #define ANOTHER_MAIN 1
18289 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18290 lib_user32_opt='user32.lib'
18291 if test "x$VCPP" = xyes; then
18292 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18294 BORLANDC_START='C0W32.OBJ'
18295 CFLAGS="$CFLAGS -tW"
18298 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18299 lib_user32_opt='-luser32'
18300 LDFLAGS="-mwindows $LDFLAGS"
18301 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"
18306 dynamic_targets="$dynamic_targets interface_W.\$(so)"
18320 ENABLE_W32GUI_TRUE=
18321 ENABLE_W32GUI_FALSE='#'
18323 ENABLE_W32GUI_TRUE='#'
18324 ENABLE_W32GUI_FALSE=
18327 # Check whether --enable-w32gui or --disable-w32gui was given.
18328 if test "${enable_w32gui+set}" = set; then
18329 enableval="$enable_w32gui"
18330 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
18332 case "x$enable_w32gui" in
18334 cat >> confdefs.h <<EOF
18335 #define IA_W32GUI 1
18341 ENABLE_W32GUI_TRUE=
18342 ENABLE_W32GUI_FALSE='#'
18344 ENABLE_W32GUI_TRUE='#'
18345 ENABLE_W32GUI_FALSE=
18349 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes; then
18350 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"
18352 cat >>confdefs.h <<\_ACEOF
18353 #define ANOTHER_MAIN 1
18356 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18357 lib_user32_opt='user32.lib'
18358 if test "x$VCPP" = xyes; then
18359 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18361 BORLANDC_START='C0W32.OBJ'
18362 CFLAGS="$CFLAGS -tW"
18365 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18366 lib_user32_opt='-luser32'
18367 LDFLAGS="-mwindows $LDFLAGS"
18368 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"
18373 dynamic_targets="$dynamic_targets interface_w.\$(so)"
18386 ENABLE_PLUGIN_TRUE=
18387 ENABLE_PLUGIN_FALSE='#'
18389 ENABLE_PLUGIN_TRUE='#'
18390 ENABLE_PLUGIN_FALSE=
18393 # Check whether --enable-ump or --disable-ump was given.
18394 if test "${enable_ump+set}" = set; then
18395 enableval="$enable_ump"
18396 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
18397 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
18398 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
18399 { (exit 1); exit 1; }; }
18401 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18402 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18403 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18404 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18408 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18410 # Is the header compilable?
18411 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18412 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 $ac_includes_default
18420 #include <X11/xpm.h>
18422 rm -f conftest.$ac_objext
18423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18424 (eval $ac_compile) 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag"
18432 || test ! -s conftest.err'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest.$ac_objext'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_header_compiler=yes
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_header_compiler=no
18451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18453 echo "${ECHO_T}$ac_header_compiler" >&6
18455 # Is the header present?
18456 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18457 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <X11/xpm.h>
18466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18469 grep -v '^ *+' conftest.er1 >conftest.err
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } >/dev/null; then
18474 if test -s conftest.err; then
18475 ac_cpp_err=$ac_c_preproc_warn_flag
18476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18483 if test -z "$ac_cpp_err"; then
18484 ac_header_preproc=yes
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_header_preproc=no
18491 rm -f conftest.err conftest.$ac_ext
18492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18493 echo "${ECHO_T}$ac_header_preproc" >&6
18495 # So? What about this header?
18496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18498 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18499 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18501 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18502 ac_header_preproc=yes
18505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18506 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18507 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
18508 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
18509 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18510 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18511 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
18512 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18513 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18514 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18515 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18516 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18519 ## ------------------------------- ##
18520 ## Report this to root@mput.dip.jp ##
18521 ## ------------------------------- ##
18524 sed "s/^/$as_me: WARNING: /" >&2
18527 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18528 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18529 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18532 ac_cv_header_X11_xpm_h=$ac_header_preproc
18534 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18535 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18538 if test $ac_cv_header_X11_xpm_h = yes; then
18541 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18542 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18543 { (exit 1); exit 1; }; }
18547 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18548 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18549 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 ac_check_lib_save_LIBS=$LIBS
18554 cat >conftest.$ac_ext <<_ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18561 /* Override any gcc2 internal prototype to avoid an error. */
18565 /* We use char because int might match the return type of a gcc2
18566 builtin and then its argument prototype would still apply. */
18567 char XpmCreatePixmapFromData ();
18571 XpmCreatePixmapFromData ();
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18578 (eval $ac_link) 2>conftest.er1
18580 grep -v '^ *+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag"
18586 || test ! -s conftest.err'
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest$ac_exeext'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
18598 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18600 echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18603 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18605 rm -f conftest.err conftest.$ac_objext \
18606 conftest$ac_exeext conftest.$ac_ext
18607 LIBS=$ac_check_lib_save_LIBS
18609 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18610 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18611 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18614 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18615 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18616 { (exit 1); exit 1; }; }
18619 if test "x$have_xext" = xyes; then
18620 lib_xext_opt=-lXext
18622 if test "x$have_xprelibs" = xyes; then
18623 lib_xprelibs_opt='-lSM -lICE'
18629 case "x$enable_ump" in
18631 cat >> confdefs.h <<EOF
18632 #define IA_PLUGIN 1
18638 ENABLE_PLUGIN_TRUE=
18639 ENABLE_PLUGIN_FALSE='#'
18641 ENABLE_PLUGIN_TRUE='#'
18642 ENABLE_PLUGIN_FALSE=
18648 dynamic_targets="$dynamic_targets interface_p.\$(so)"
18659 # Check whether --enable-offix or --disable-offix was given.
18660 if test "${enable_offix+set}" = set; then
18661 enableval="$enable_offix"
18662 if test "$enableval" = "yes"; then
18663 KEEPCPPFLAGS=$CPPFLAGS
18665 KEEPLDFLAGS=$LDFLAGS
18666 CPPFLAGS="$CPPFLAGS $offix_include_dir"
18667 LDFLAGS="$LDFLAGS $offix_lib_dir"
18668 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18669 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18670 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18671 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 ac_check_lib_save_LIBS=$LIBS
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18683 /* Override any gcc2 internal prototype to avoid an error. */
18687 /* We use char because int might match the return type of a gcc2
18688 builtin and then its argument prototype would still apply. */
18689 char DndInitialize ();
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700 (eval $ac_link) 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag"
18708 || test ! -s conftest.err'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ac_cv_lib_Dnd_DndInitialize=yes
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 ac_cv_lib_Dnd_DndInitialize=no
18727 rm -f conftest.err conftest.$ac_objext \
18728 conftest$ac_exeext conftest.$ac_ext
18729 LIBS=$ac_check_lib_save_LIBS
18731 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18732 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18733 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18736 lib_offix_opt="-lDnd"
18738 cat >>confdefs.h <<\_ACEOF
18744 LDFLAGS=$KEEPLDFLAGS
18745 CPPFLAGS=$KEEPCPPFLAGS
18754 # Check whether --enable-network or --disable-network was given.
18755 if test "${enable_network+set}" = set; then
18756 enableval="$enable_network"
18757 if test "$enableval" = "yes"; then
18759 cat >>confdefs.h <<\_ACEOF
18760 #define SUPPORT_SOCKET 1
18767 if test "x$enable_network" = "xyes"; then
18768 ENABLE_NETWORK_TRUE=
18769 ENABLE_NETWORK_FALSE='#'
18771 ENABLE_NETWORK_TRUE='#'
18772 ENABLE_NETWORK_FALSE=
18776 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18777 if test "${enable_spectrogram+set}" = set; then
18778 enableval="$enable_spectrogram"
18779 if test "$enableval" = "yes"; then
18780 if test "x$with_x" != xyes; then
18781 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18782 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18783 { (exit 1); exit 1; }; }
18786 cat >>confdefs.h <<\_ACEOF
18787 #define SUPPORT_SOUNDSPEC 1
18794 if test "x$enable_spectrogram" = "xyes"; then
18795 ENABLE_SOUND_SPEC_TRUE=
18796 ENABLE_SOUND_SPEC_FALSE='#'
18798 ENABLE_SOUND_SPEC_TRUE='#'
18799 ENABLE_SOUND_SPEC_FALSE=
18803 # Check whether --enable-spline or --disable-spline was given.
18804 if test "${enable_spline+set}" = set; then
18805 enableval="$enable_spline"
18806 case "x$enableval" in
18809 cat >>confdefs.h <<\_ACEOF
18810 #define DEFAULT_RESAMPLATION resample_linear
18816 cat >>confdefs.h <<\_ACEOF
18817 #define DEFAULT_RESAMPLATION resample_cspline
18823 cat >>confdefs.h <<\_ACEOF
18824 #define DEFAULT_RESAMPLATION resample_lagrange
18830 cat >>confdefs.h <<\_ACEOF
18831 #define DEFAULT_RESAMPLATION resample_newton
18837 cat >>confdefs.h <<\_ACEOF
18838 #define DEFAULT_RESAMPLATION resample_gauss
18844 cat >>confdefs.h <<\_ACEOF
18845 #define DEFAULT_RESAMPLATION resample_none
18850 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18851 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18852 { (exit 1); exit 1; }; }
18857 # Check whether --enable-wrd or --disable-wrd was given.
18858 if test "${enable_wrd+set}" = set; then
18859 enableval="$enable_wrd"
18860 if test "$enableval" = "yes"; then
18861 if test "x$with_x" != xyes; then
18862 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18863 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18864 { (exit 1); exit 1; }; }
18867 cat >>confdefs.h <<\_ACEOF
18871 enable_sherry_wrd=yes
18872 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18873 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18874 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 ac_check_lib_save_LIBS=$LIBS
18879 cat >conftest.$ac_ext <<_ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18886 /* Override any gcc2 internal prototype to avoid an error. */
18890 /* We use char because int might match the return type of a gcc2
18891 builtin and then its argument prototype would still apply. */
18892 char zlibVersion ();
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18903 (eval $ac_link) 2>conftest.er1
18905 grep -v '^ *+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag"
18911 || test ! -s conftest.err'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; } &&
18917 { ac_try='test -s conftest$ac_exeext'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_cv_lib_z_zlibVersion=yes
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 ac_cv_lib_z_zlibVersion=no
18930 rm -f conftest.err conftest.$ac_objext \
18931 conftest$ac_exeext conftest.$ac_ext
18932 LIBS=$ac_check_lib_save_LIBS
18934 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18935 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18936 if test $ac_cv_lib_z_zlibVersion = yes; then
18939 enable_sherry_wrd=no
18942 if test "${ac_cv_header_png_h+set}" = set; then
18943 echo "$as_me:$LINENO: checking for png.h" >&5
18944 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18945 if test "${ac_cv_header_png_h+set}" = set; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18949 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18951 # Is the header compilable?
18952 echo "$as_me:$LINENO: checking png.h usability" >&5
18953 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18960 $ac_includes_default
18963 rm -f conftest.$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965 (eval $ac_compile) 2>conftest.er1
18967 grep -v '^ *+' conftest.er1 >conftest.err
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag"
18973 || test ! -s conftest.err'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest.$ac_objext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 ac_header_compiler=yes
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18990 ac_header_compiler=no
18992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18994 echo "${ECHO_T}$ac_header_compiler" >&6
18996 # Is the header present?
18997 echo "$as_me:$LINENO: checking png.h presence" >&5
18998 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19010 grep -v '^ *+' conftest.er1 >conftest.err
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } >/dev/null; then
19015 if test -s conftest.err; then
19016 ac_cpp_err=$ac_c_preproc_warn_flag
19017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19024 if test -z "$ac_cpp_err"; then
19025 ac_header_preproc=yes
19027 echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19030 ac_header_preproc=no
19032 rm -f conftest.err conftest.$ac_ext
19033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19034 echo "${ECHO_T}$ac_header_preproc" >&6
19036 # So? What about this header?
19037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19039 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19040 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19041 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19042 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19043 ac_header_preproc=yes
19046 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19047 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19049 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19051 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19053 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19055 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19056 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19057 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19060 ## ------------------------------- ##
19061 ## Report this to root@mput.dip.jp ##
19062 ## ------------------------------- ##
19065 sed "s/^/$as_me: WARNING: /" >&2
19068 echo "$as_me:$LINENO: checking for png.h" >&5
19069 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19070 if test "${ac_cv_header_png_h+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 ac_cv_header_png_h=$ac_header_preproc
19075 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19076 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19079 if test $ac_cv_header_png_h = yes; then
19082 enable_sherry_wrd=no
19086 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19087 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19088 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 ac_check_lib_save_LIBS=$LIBS
19092 LIBS="-lpng -lz $LIBS"
19093 cat >conftest.$ac_ext <<_ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19100 /* Override any gcc2 internal prototype to avoid an error. */
19104 /* We use char because int might match the return type of a gcc2
19105 builtin and then its argument prototype would still apply. */
19106 char png_init_io ();
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19117 (eval $ac_link) 2>conftest.er1
19119 grep -v '^ *+' conftest.er1 >conftest.err
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
19124 { ac_try='test -z "$ac_c_werror_flag"
19125 || test ! -s conftest.err'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; } &&
19131 { ac_try='test -s conftest$ac_exeext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_lib_png_png_init_io=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_lib_png_png_init_io=no
19144 rm -f conftest.err conftest.$ac_objext \
19145 conftest$ac_exeext conftest.$ac_ext
19146 LIBS=$ac_check_lib_save_LIBS
19148 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19149 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19150 if test $ac_cv_lib_png_png_init_io = yes; then
19153 enable_sherry_wrd=no
19156 if test "$enable_sherry_wrd" = yes; then
19158 cat >>confdefs.h <<\_ACEOF
19159 #define ENABLE_SHERRY 1
19165 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19166 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19168 if test "x$have_xext" = xyes; then
19169 lib_xext_opt=-lXext
19182 if test "x$enable_wrd" = "xyes"; then
19184 ENABLE_WRD_FALSE='#'
19186 ENABLE_WRD_TRUE='#'
19192 if test "x$CYGNUS" = xyes; then
19202 if test "x$MSYS" = xyes; then
19212 if test "x$VCPP" = xyes; then
19222 if test "x$BORLANDC" = xyes; then
19233 if test "x$W32READDIR" = "xyes"; then
19235 W32READDIR_FALSE='#'
19237 W32READDIR_TRUE='#'
19242 rm -f wordtmp >/dev/null 2>&1
19244 for f in $LDFLAGS; do
19245 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19248 echo $f >>wordtmp; val="$val $f"
19253 rm -f wordtmp >/dev/null 2>&1
19255 rm -f wordtmp >/dev/null 2>&1
19257 for f in $SHLDFLAGS; do
19258 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19261 echo $f >>wordtmp; val="$val $f"
19266 rm -f wordtmp >/dev/null 2>&1
19268 rm -f wordtmp >/dev/null 2>&1
19270 for f in $EXTRACFLAGS $CFLAGS; do
19271 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19274 echo $f >>wordtmp; val="$val $f"
19279 rm -f wordtmp >/dev/null 2>&1
19281 rm -f wordtmp >/dev/null 2>&1
19283 for f in $CPPFLAGS $EXTRADEFS; do
19284 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19287 echo $f >>wordtmp; val="$val $f"
19292 rm -f wordtmp >/dev/null 2>&1
19295 if test "x$oss_device" != x; then
19297 cat >>confdefs.h <<_ACEOF
19298 #define OSS_DEVICE "$oss_device"
19303 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19311 if test "x$with_x" = xyes; then
19312 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/"`
19314 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19315 SHLD="$SHLD $SHLDFLAGS"
19338 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
19340 cat >confcache <<\_ACEOF
19341 # This file is a shell script that caches the results of configure
19342 # tests run on this system so they can be shared between configure
19343 # scripts and configure runs, see configure's option --config-cache.
19344 # It is not useful on other systems. If it contains results you don't
19345 # want to keep, you may remove or edit it.
19347 # config.status only pays attention to the cache file if you give it
19348 # the --recheck option to rerun configure.
19350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19352 # following values.
19356 # The following way of writing the cache mishandles newlines in values,
19357 # but we know of no workaround that is simple, portable, and efficient.
19358 # So, don't put newlines in cache variables' values.
19359 # Ultrix sh set writes to stderr and can't be redirected directly,
19360 # and sets the high bit in the cache file unless we assign to the vars.
19363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19365 # `set' does not quote correctly, so add quotes (double-quote
19366 # substitution turns \\\\ into \\, and sed turns \\ into \).
19369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19372 # `set' quotes correctly as required by POSIX, so do not add quotes.
19374 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19383 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19385 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19386 if test -w $cache_file; then
19387 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19388 cat confcache >$cache_file
19390 echo "not updating unwritable cache $cache_file"
19395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19396 # Let make expand exec_prefix.
19397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19399 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19400 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19401 # trailing colons and then remove the whole line if VPATH becomes empty
19402 # (actually we leave an empty line to preserve line numbers).
19403 if test "x$srcdir" = x.; then
19404 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19405 s/:*\$(srcdir):*/:/;
19406 s/:*\${srcdir}:*/:/;
19408 s/^\([^=]*=[ ]*\):*/\1/;
19414 DEFS=-DHAVE_CONFIG_H
19418 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19419 # 1. Remove the extension, and $U if already installed.
19420 ac_i=`echo "$ac_i" |
19421 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19423 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19424 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19426 LIBOBJS=$ac_libobjs
19428 LTLIBOBJS=$ac_ltlibobjs
19431 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19432 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19433 Usually this means the macro was only invoked conditionally." >&5
19434 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19435 Usually this means the macro was only invoked conditionally." >&2;}
19436 { (exit 1); exit 1; }; }
19438 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19439 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19440 Usually this means the macro was only invoked conditionally." >&5
19441 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19442 Usually this means the macro was only invoked conditionally." >&2;}
19443 { (exit 1); exit 1; }; }
19445 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19446 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19447 Usually this means the macro was only invoked conditionally." >&5
19448 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19449 Usually this means the macro was only invoked conditionally." >&2;}
19450 { (exit 1); exit 1; }; }
19452 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
19453 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
19454 Usually this means the macro was only invoked conditionally." >&5
19455 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
19456 Usually this means the macro was only invoked conditionally." >&2;}
19457 { (exit 1); exit 1; }; }
19459 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
19460 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
19461 Usually this means the macro was only invoked conditionally." >&5
19462 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
19463 Usually this means the macro was only invoked conditionally." >&2;}
19464 { (exit 1); exit 1; }; }
19466 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19467 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19468 Usually this means the macro was only invoked conditionally." >&5
19469 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19470 Usually this means the macro was only invoked conditionally." >&2;}
19471 { (exit 1); exit 1; }; }
19473 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19474 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19475 Usually this means the macro was only invoked conditionally." >&5
19476 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19477 Usually this means the macro was only invoked conditionally." >&2;}
19478 { (exit 1); exit 1; }; }
19480 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19481 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19482 Usually this means the macro was only invoked conditionally." >&5
19483 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19484 Usually this means the macro was only invoked conditionally." >&2;}
19485 { (exit 1); exit 1; }; }
19487 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19488 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19489 Usually this means the macro was only invoked conditionally." >&5
19490 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19491 Usually this means the macro was only invoked conditionally." >&2;}
19492 { (exit 1); exit 1; }; }
19494 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19495 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19496 Usually this means the macro was only invoked conditionally." >&5
19497 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19498 Usually this means the macro was only invoked conditionally." >&2;}
19499 { (exit 1); exit 1; }; }
19501 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19502 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19503 Usually this means the macro was only invoked conditionally." >&5
19504 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19505 Usually this means the macro was only invoked conditionally." >&2;}
19506 { (exit 1); exit 1; }; }
19508 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19509 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19510 Usually this means the macro was only invoked conditionally." >&5
19511 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19512 Usually this means the macro was only invoked conditionally." >&2;}
19513 { (exit 1); exit 1; }; }
19515 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19516 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19517 Usually this means the macro was only invoked conditionally." >&5
19518 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19519 Usually this means the macro was only invoked conditionally." >&2;}
19520 { (exit 1); exit 1; }; }
19522 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19523 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19524 Usually this means the macro was only invoked conditionally." >&5
19525 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19526 Usually this means the macro was only invoked conditionally." >&2;}
19527 { (exit 1); exit 1; }; }
19529 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19530 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19531 Usually this means the macro was only invoked conditionally." >&5
19532 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19533 Usually this means the macro was only invoked conditionally." >&2;}
19534 { (exit 1); exit 1; }; }
19536 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19537 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19538 Usually this means the macro was only invoked conditionally." >&5
19539 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19540 Usually this means the macro was only invoked conditionally." >&2;}
19541 { (exit 1); exit 1; }; }
19543 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19544 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19545 Usually this means the macro was only invoked conditionally." >&5
19546 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19547 Usually this means the macro was only invoked conditionally." >&2;}
19548 { (exit 1); exit 1; }; }
19550 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19551 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19552 Usually this means the macro was only invoked conditionally." >&5
19553 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19554 Usually this means the macro was only invoked conditionally." >&2;}
19555 { (exit 1); exit 1; }; }
19557 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19558 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19559 Usually this means the macro was only invoked conditionally." >&5
19560 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19561 Usually this means the macro was only invoked conditionally." >&2;}
19562 { (exit 1); exit 1; }; }
19564 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19565 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19566 Usually this means the macro was only invoked conditionally." >&5
19567 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19568 Usually this means the macro was only invoked conditionally." >&2;}
19569 { (exit 1); exit 1; }; }
19571 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19572 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19573 Usually this means the macro was only invoked conditionally." >&5
19574 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19575 Usually this means the macro was only invoked conditionally." >&2;}
19576 { (exit 1); exit 1; }; }
19578 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19579 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19580 Usually this means the macro was only invoked conditionally." >&5
19581 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19582 Usually this means the macro was only invoked conditionally." >&2;}
19583 { (exit 1); exit 1; }; }
19585 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19586 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19587 Usually this means the macro was only invoked conditionally." >&5
19588 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19589 Usually this means the macro was only invoked conditionally." >&2;}
19590 { (exit 1); exit 1; }; }
19592 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19593 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19594 Usually this means the macro was only invoked conditionally." >&5
19595 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19596 Usually this means the macro was only invoked conditionally." >&2;}
19597 { (exit 1); exit 1; }; }
19599 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19600 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19601 Usually this means the macro was only invoked conditionally." >&5
19602 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19603 Usually this means the macro was only invoked conditionally." >&2;}
19604 { (exit 1); exit 1; }; }
19606 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19607 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19608 Usually this means the macro was only invoked conditionally." >&5
19609 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19610 Usually this means the macro was only invoked conditionally." >&2;}
19611 { (exit 1); exit 1; }; }
19613 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19614 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19615 Usually this means the macro was only invoked conditionally." >&5
19616 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19617 Usually this means the macro was only invoked conditionally." >&2;}
19618 { (exit 1); exit 1; }; }
19620 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19621 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19622 Usually this means the macro was only invoked conditionally." >&5
19623 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19624 Usually this means the macro was only invoked conditionally." >&2;}
19625 { (exit 1); exit 1; }; }
19627 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19628 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19629 Usually this means the macro was only invoked conditionally." >&5
19630 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19631 Usually this means the macro was only invoked conditionally." >&2;}
19632 { (exit 1); exit 1; }; }
19634 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19635 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19636 Usually this means the macro was only invoked conditionally." >&5
19637 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19638 Usually this means the macro was only invoked conditionally." >&2;}
19639 { (exit 1); exit 1; }; }
19641 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19642 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19643 Usually this means the macro was only invoked conditionally." >&5
19644 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19645 Usually this means the macro was only invoked conditionally." >&2;}
19646 { (exit 1); exit 1; }; }
19648 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19649 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19650 Usually this means the macro was only invoked conditionally." >&5
19651 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19652 Usually this means the macro was only invoked conditionally." >&2;}
19653 { (exit 1); exit 1; }; }
19655 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19656 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19657 Usually this means the macro was only invoked conditionally." >&5
19658 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19659 Usually this means the macro was only invoked conditionally." >&2;}
19660 { (exit 1); exit 1; }; }
19662 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19663 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19664 Usually this means the macro was only invoked conditionally." >&5
19665 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19666 Usually this means the macro was only invoked conditionally." >&2;}
19667 { (exit 1); exit 1; }; }
19669 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19670 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19671 Usually this means the macro was only invoked conditionally." >&5
19672 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19673 Usually this means the macro was only invoked conditionally." >&2;}
19674 { (exit 1); exit 1; }; }
19676 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19677 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19678 Usually this means the macro was only invoked conditionally." >&5
19679 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19680 Usually this means the macro was only invoked conditionally." >&2;}
19681 { (exit 1); exit 1; }; }
19683 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19684 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19685 Usually this means the macro was only invoked conditionally." >&5
19686 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19687 Usually this means the macro was only invoked conditionally." >&2;}
19688 { (exit 1); exit 1; }; }
19690 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19691 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19692 Usually this means the macro was only invoked conditionally." >&5
19693 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19694 Usually this means the macro was only invoked conditionally." >&2;}
19695 { (exit 1); exit 1; }; }
19697 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19698 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19699 Usually this means the macro was only invoked conditionally." >&5
19700 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19701 Usually this means the macro was only invoked conditionally." >&2;}
19702 { (exit 1); exit 1; }; }
19704 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19705 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19706 Usually this means the macro was only invoked conditionally." >&5
19707 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19708 Usually this means the macro was only invoked conditionally." >&2;}
19709 { (exit 1); exit 1; }; }
19711 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19712 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19713 Usually this means the macro was only invoked conditionally." >&5
19714 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19715 Usually this means the macro was only invoked conditionally." >&2;}
19716 { (exit 1); exit 1; }; }
19718 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19719 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19720 Usually this means the macro was only invoked conditionally." >&5
19721 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19722 Usually this means the macro was only invoked conditionally." >&2;}
19723 { (exit 1); exit 1; }; }
19725 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19726 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19727 Usually this means the macro was only invoked conditionally." >&5
19728 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19729 Usually this means the macro was only invoked conditionally." >&2;}
19730 { (exit 1); exit 1; }; }
19732 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
19733 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
19734 Usually this means the macro was only invoked conditionally." >&5
19735 echo "$as_me: error: conditional \"MSYS\" was never defined.
19736 Usually this means the macro was only invoked conditionally." >&2;}
19737 { (exit 1); exit 1; }; }
19739 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
19740 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
19741 Usually this means the macro was only invoked conditionally." >&5
19742 echo "$as_me: error: conditional \"VCPP\" was never defined.
19743 Usually this means the macro was only invoked conditionally." >&2;}
19744 { (exit 1); exit 1; }; }
19746 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
19747 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
19748 Usually this means the macro was only invoked conditionally." >&5
19749 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
19750 Usually this means the macro was only invoked conditionally." >&2;}
19751 { (exit 1); exit 1; }; }
19753 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19754 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19755 Usually this means the macro was only invoked conditionally." >&5
19756 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19757 Usually this means the macro was only invoked conditionally." >&2;}
19758 { (exit 1); exit 1; }; }
19761 : ${CONFIG_STATUS=./config.status}
19762 ac_clean_files_save=$ac_clean_files
19763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19766 cat >$CONFIG_STATUS <<_ACEOF
19768 # Generated by $as_me.
19769 # Run this file to recreate the current configuration.
19770 # Compiler output produced by configure, useful for debugging
19771 # configure, is in config.log if it exists.
19774 ac_cs_recheck=false
19776 SHELL=\${CONFIG_SHELL-$SHELL}
19779 cat >>$CONFIG_STATUS <<\_ACEOF
19780 ## --------------------- ##
19781 ## M4sh Initialization. ##
19782 ## --------------------- ##
19784 # Be Bourne compatible
19785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19788 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19789 # is contrary to our usage. Disable this feature.
19790 alias -g '${1+"$@"}'='"$@"'
19791 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19794 DUALCASE=1; export DUALCASE # for MKS sh
19796 # Support unset when possible.
19797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19804 # Work around bugs in pre-3.0 UWIN ksh.
19805 $as_unset ENV MAIL MAILPATH
19812 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19813 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19814 LC_TELEPHONE LC_TIME
19816 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19817 eval $as_var=C; export $as_var
19823 # Required to use basename.
19824 if expr a : '\(a\)' >/dev/null 2>&1; then
19830 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19831 as_basename=basename
19837 # Name of the executable.
19838 as_me=`$as_basename "$0" ||
19839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19840 X"$0" : 'X\(//\)$' \| \
19841 X"$0" : 'X\(/\)$' \| \
19842 . : '\(.\)' 2>/dev/null ||
19844 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19845 /^X\/\(\/\/\)$/{ s//\1/; q; }
19846 /^X\/\(\/\).*/{ s//\1/; q; }
19850 # PATH needs CR, and LINENO needs CR and PATH.
19851 # Avoid depending upon Character Ranges.
19852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19855 as_cr_digits='0123456789'
19856 as_cr_alnum=$as_cr_Letters$as_cr_digits
19858 # The user is always right.
19859 if test "${PATH_SEPARATOR+set}" != set; then
19860 echo "#! /bin/sh" >conf$$.sh
19861 echo "exit 0" >>conf$$.sh
19863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19872 as_lineno_1=$LINENO
19873 as_lineno_2=$LINENO
19874 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19875 test "x$as_lineno_1" != "x$as_lineno_2" &&
19876 test "x$as_lineno_3" = "x$as_lineno_2" || {
19877 # Find who we are. Look in the path if we contain no path at all
19880 *[\\/]* ) as_myself=$0 ;;
19881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19882 for as_dir in $PATH
19885 test -z "$as_dir" && as_dir=.
19886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19891 # We did not find ourselves, most probably we were run as `sh COMMAND'
19892 # in which case we are not to be found in the path.
19893 if test "x$as_myself" = x; then
19896 if test ! -f "$as_myself"; then
19897 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19898 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19899 { (exit 1); exit 1; }; }
19901 case $CONFIG_SHELL in
19903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19907 test -z "$as_dir" && as_dir=.
19908 for as_base in sh bash ksh sh5; do
19911 if ("$as_dir/$as_base" -c '
19912 as_lineno_1=$LINENO
19913 as_lineno_2=$LINENO
19914 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19915 test "x$as_lineno_1" != "x$as_lineno_2" &&
19916 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19917 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19918 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19919 CONFIG_SHELL=$as_dir/$as_base
19920 export CONFIG_SHELL
19921 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19929 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19930 # uniformly replaced by the line number. The first 'sed' inserts a
19931 # line-number line before each line; the second 'sed' does the real
19932 # work. The second script uses 'N' to pair each line-number line
19933 # with the numbered line, and appends trailing '-' during
19934 # substitution so that $LINENO is not a special case at line end.
19935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19936 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19937 sed '=' <$as_myself |
19942 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19945 s,^['$as_cr_digits']*\n,,
19946 ' >$as_me.lineno &&
19947 chmod +x $as_me.lineno ||
19948 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19949 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19950 { (exit 1); exit 1; }; }
19952 # Don't try to exec as it changes $[0], causing all sort of problems
19953 # (the dirname of $[0] is not the place where we might find the
19954 # original and so on. Autoconf is especially sensible to this).
19956 # Exit status is that of the last command.
19961 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19962 *c*,-n*) ECHO_N= ECHO_C='
19964 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19965 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19968 if expr a : '\(a\)' >/dev/null 2>&1; then
19974 rm -f conf$$ conf$$.exe conf$$.file
19976 if ln -s conf$$.file conf$$ 2>/dev/null; then
19977 # We could just check for DJGPP; but this test a) works b) is more generic
19978 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19979 if test -f conf$$.exe; then
19980 # Don't use ln at all; we don't have any links
19985 elif ln conf$$.file conf$$ 2>/dev/null; then
19990 rm -f conf$$ conf$$.exe conf$$.file
19992 if mkdir -p . 2>/dev/null; then
19995 test -d ./-p && rmdir ./-p
19999 as_executable_p="test -f"
20001 # Sed expression to map a string onto a valid CPP name.
20002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20004 # Sed expression to map a string onto a valid variable name.
20005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20009 # We need space, tab and new line, in precisely that order.
20019 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20020 # report actual input values of CONFIG_FILES etc. instead of their
20021 # values after options handling. Logging --version etc. is OK.
20025 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20026 ## Running $as_me. ##
20031 This file was extended by TiMidity++ $as_me current, which was
20032 generated by GNU Autoconf 2.59. Invocation command line was
20034 CONFIG_FILES = $CONFIG_FILES
20035 CONFIG_HEADERS = $CONFIG_HEADERS
20036 CONFIG_LINKS = $CONFIG_LINKS
20037 CONFIG_COMMANDS = $CONFIG_COMMANDS
20041 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20045 # Files that config.status was made for.
20046 if test -n "$ac_config_files"; then
20047 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20050 if test -n "$ac_config_headers"; then
20051 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20054 if test -n "$ac_config_links"; then
20055 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20058 if test -n "$ac_config_commands"; then
20059 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20062 cat >>$CONFIG_STATUS <<\_ACEOF
20065 \`$as_me' instantiates files from templates according to the
20066 current configuration.
20068 Usage: $0 [OPTIONS] [FILE]...
20070 -h, --help print this help, then exit
20071 -V, --version print version number, then exit
20072 -q, --quiet do not print progress messages
20073 -d, --debug don't remove temporary files
20074 --recheck update $as_me by reconfiguring in the same conditions
20075 --file=FILE[:TEMPLATE]
20076 instantiate the configuration file FILE
20077 --header=FILE[:TEMPLATE]
20078 instantiate the configuration header FILE
20080 Configuration files:
20083 Configuration headers:
20086 Configuration commands:
20089 Report bugs to <bug-autoconf@gnu.org>."
20092 cat >>$CONFIG_STATUS <<_ACEOF
20094 TiMidity++ config.status current
20095 configured by $0, generated by GNU Autoconf 2.59,
20096 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20098 Copyright (C) 2003 Free Software Foundation, Inc.
20099 This config.status script is free software; the Free Software Foundation
20100 gives unlimited permission to copy, distribute and modify it."
20105 cat >>$CONFIG_STATUS <<\_ACEOF
20106 # If no file are specified by the user, then we need to provide default
20107 # value. By we need to know if files were specified by the user.
20113 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20114 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20122 *) # This is not an option, so the user has probably given explicit
20125 ac_need_defaults=false;;
20129 # Handling of the options.
20131 cat >>$CONFIG_STATUS <<\_ACEOF
20132 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20134 --version | --vers* | -V )
20135 echo "$ac_cs_version"; exit 0 ;;
20137 # Conflict between --help and --header
20138 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20139 Try \`$0 --help' for more information." >&5
20140 echo "$as_me: error: ambiguous option: $1
20141 Try \`$0 --help' for more information." >&2;}
20142 { (exit 1); exit 1; }; };;
20143 --help | --hel | -h )
20144 echo "$ac_cs_usage"; exit 0 ;;
20145 --debug | --d* | -d )
20147 --file | --fil | --fi | --f )
20149 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20150 ac_need_defaults=false;;
20151 --header | --heade | --head | --hea )
20153 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20154 ac_need_defaults=false;;
20155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20159 # This is an error.
20160 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20161 Try \`$0 --help' for more information." >&5
20162 echo "$as_me: error: unrecognized option: $1
20163 Try \`$0 --help' for more information." >&2;}
20164 { (exit 1); exit 1; }; } ;;
20166 *) ac_config_targets="$ac_config_targets $1" ;;
20172 ac_configure_extra_args=
20174 if $ac_cs_silent; then
20176 ac_configure_extra_args="$ac_configure_extra_args --silent"
20180 cat >>$CONFIG_STATUS <<_ACEOF
20181 if \$ac_cs_recheck; then
20182 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20183 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20188 cat >>$CONFIG_STATUS <<_ACEOF
20190 # INIT-COMMANDS section.
20193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20199 cat >>$CONFIG_STATUS <<\_ACEOF
20200 for ac_config_target in $ac_config_targets
20202 case "$ac_config_target" in
20203 # Handling of arguments.
20204 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20205 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20206 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20207 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20208 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20209 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20210 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20211 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20212 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20213 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20214 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20215 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20216 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20217 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20218 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20219 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20220 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20221 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20222 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20223 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20224 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20225 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20226 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20227 { (exit 1); exit 1; }; };;
20231 # If the user did not use the arguments to specify the items to instantiate,
20232 # then the envvar interface is used. Set only those that are not.
20233 # We use the long form for the default assignment because of an extremely
20234 # bizarre bug on SunOS 4.1.3.
20235 if $ac_need_defaults; then
20236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20238 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20241 # Have a temporary directory for convenience. Make it in the build tree
20242 # simply because there is no reason to put it here, and in addition,
20243 # creating and moving files from /tmp can sometimes cause problems.
20244 # Create a temporary directory, and hook for its removal unless debugging.
20247 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20248 trap '{ (exit 1); exit 1; }' 1 2 13 15
20251 # Create a (secure) tmp directory for tmp files.
20254 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20255 test -n "$tmp" && test -d "$tmp"
20258 tmp=./confstat$$-$RANDOM
20259 (umask 077 && mkdir $tmp)
20262 echo "$me: cannot create a temporary directory in ." >&2
20263 { (exit 1); exit 1; }
20268 cat >>$CONFIG_STATUS <<_ACEOF
20271 # CONFIG_FILES section.
20274 # No need to generate the scripts if there are no CONFIG_FILES.
20275 # This happens for instance when ./config.status config.h
20276 if test -n "\$CONFIG_FILES"; then
20277 # Protect against being on the right side of a sed subst in config.status.
20278 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20279 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20280 s,@SHELL@,$SHELL,;t t
20281 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20282 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20283 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20284 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20285 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20286 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20287 s,@exec_prefix@,$exec_prefix,;t t
20288 s,@prefix@,$prefix,;t t
20289 s,@program_transform_name@,$program_transform_name,;t t
20290 s,@bindir@,$bindir,;t t
20291 s,@sbindir@,$sbindir,;t t
20292 s,@libexecdir@,$libexecdir,;t t
20293 s,@datadir@,$datadir,;t t
20294 s,@sysconfdir@,$sysconfdir,;t t
20295 s,@sharedstatedir@,$sharedstatedir,;t t
20296 s,@localstatedir@,$localstatedir,;t t
20297 s,@libdir@,$libdir,;t t
20298 s,@includedir@,$includedir,;t t
20299 s,@oldincludedir@,$oldincludedir,;t t
20300 s,@infodir@,$infodir,;t t
20301 s,@mandir@,$mandir,;t t
20302 s,@build_alias@,$build_alias,;t t
20303 s,@host_alias@,$host_alias,;t t
20304 s,@target_alias@,$target_alias,;t t
20305 s,@DEFS@,$DEFS,;t t
20306 s,@ECHO_C@,$ECHO_C,;t t
20307 s,@ECHO_N@,$ECHO_N,;t t
20308 s,@ECHO_T@,$ECHO_T,;t t
20309 s,@LIBS@,$LIBS,;t t
20310 s,@build@,$build,;t t
20311 s,@build_cpu@,$build_cpu,;t t
20312 s,@build_vendor@,$build_vendor,;t t
20313 s,@build_os@,$build_os,;t t
20314 s,@host@,$host,;t t
20315 s,@host_cpu@,$host_cpu,;t t
20316 s,@host_vendor@,$host_vendor,;t t
20317 s,@host_os@,$host_os,;t t
20318 s,@target@,$target,;t t
20319 s,@target_cpu@,$target_cpu,;t t
20320 s,@target_vendor@,$target_vendor,;t t
20321 s,@target_os@,$target_os,;t t
20322 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20323 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20324 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20325 s,@CYGPATH_W@,$CYGPATH_W,;t t
20326 s,@PACKAGE@,$PACKAGE,;t t
20327 s,@VERSION@,$VERSION,;t t
20328 s,@ACLOCAL@,$ACLOCAL,;t t
20329 s,@AUTOCONF@,$AUTOCONF,;t t
20330 s,@AUTOMAKE@,$AUTOMAKE,;t t
20331 s,@AUTOHEADER@,$AUTOHEADER,;t t
20332 s,@MAKEINFO@,$MAKEINFO,;t t
20333 s,@AMTAR@,$AMTAR,;t t
20334 s,@install_sh@,$install_sh,;t t
20335 s,@STRIP@,$STRIP,;t t
20336 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20337 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20339 s,@SET_MAKE@,$SET_MAKE,;t t
20340 s,@am__leading_dot@,$am__leading_dot,;t t
20341 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20342 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20343 s,@MAINT@,$MAINT,;t t
20344 s,@EMACS@,$EMACS,;t t
20345 s,@lispdir@,$lispdir,;t t
20347 s,@CFLAGS@,$CFLAGS,;t t
20348 s,@LDFLAGS@,$LDFLAGS,;t t
20349 s,@CPPFLAGS@,$CPPFLAGS,;t t
20350 s,@ac_ct_CC@,$ac_ct_CC,;t t
20351 s,@EXEEXT@,$EXEEXT,;t t
20352 s,@OBJEXT@,$OBJEXT,;t t
20353 s,@DEPDIR@,$DEPDIR,;t t
20354 s,@am__include@,$am__include,;t t
20355 s,@am__quote@,$am__quote,;t t
20356 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20357 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20358 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20359 s,@CCDEPMODE@,$CCDEPMODE,;t t
20360 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20361 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20363 s,@EGREP@,$EGREP,;t t
20364 s,@RANLIB@,$RANLIB,;t t
20365 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20366 s,@LN_S@,$LN_S,;t t
20367 s,@X_CFLAGS@,$X_CFLAGS,;t t
20368 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20369 s,@X_LIBS@,$X_LIBS,;t t
20370 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20371 s,@LIBOBJS@,$LIBOBJS,;t t
20372 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20373 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20374 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20375 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20376 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20377 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20378 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20379 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20380 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20381 s,@ESD_LIBS@,$ESD_LIBS,;t t
20382 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20383 s,@AO_LIBS@,$AO_LIBS,;t t
20384 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20385 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20386 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20387 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20388 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20389 s,@OGG_LIBS@,$OGG_LIBS,;t t
20390 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20391 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20392 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20393 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20394 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20395 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20396 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20397 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20398 s,@n_so_libs@,$n_so_libs,;t t
20399 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20400 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20401 s,@s_so_libs@,$s_so_libs,;t t
20402 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20403 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20404 s,@m_so_libs@,$m_so_libs,;t t
20405 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20406 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20407 s,@k_so_libs@,$k_so_libs,;t t
20408 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20409 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20410 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20411 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20412 s,@e_so_libs@,$e_so_libs,;t t
20413 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
20414 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
20415 s,@T_so_libs@,$T_so_libs,;t t
20416 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
20417 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
20418 s,@a_so_libs@,$a_so_libs,;t t
20419 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
20420 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
20421 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
20422 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
20423 s,@i_so_libs@,$i_so_libs,;t t
20424 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
20425 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
20426 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20427 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20428 s,@GTK_LIBS@,$GTK_LIBS,;t t
20429 s,@g_so_libs@,$g_so_libs,;t t
20430 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
20431 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
20432 s,@r_so_libs@,$r_so_libs,;t t
20433 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
20434 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
20435 s,@A_so_libs@,$A_so_libs,;t t
20436 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
20437 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
20438 s,@W_so_libs@,$W_so_libs,;t t
20439 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
20440 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
20441 s,@P_so_libs@,$P_so_libs,;t t
20442 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
20443 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
20444 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
20445 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
20446 s,@w_so_libs@,$w_so_libs,;t t
20447 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
20448 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
20449 s,@p_so_libs@,$p_so_libs,;t t
20450 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
20451 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
20452 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
20453 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
20454 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
20455 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
20456 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
20457 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
20458 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
20459 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
20460 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
20461 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
20462 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
20463 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
20464 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
20465 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
20466 s,@BORLANDC_START@,$BORLANDC_START,;t t
20467 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
20468 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
20469 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
20470 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
20471 s,@EXTRALIBS@,$EXTRALIBS,;t t
20472 s,@NETSRCS@,$NETSRCS,;t t
20473 s,@ELFILES@,$ELFILES,;t t
20474 s,@SHLD@,$SHLD,;t t
20475 s,@SHCFLAGS@,$SHCFLAGS,;t t
20476 s,@dynamic_targets@,$dynamic_targets,;t t
20478 s,@WISH@,$WISH,;t t
20479 s,@tcltk_dep@,$tcltk_dep,;t t
20480 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
20481 s,@pkgdatadir@,$pkgdatadir,;t t
20482 s,@pkglibdir@,$pkglibdir,;t t
20483 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20488 cat >>$CONFIG_STATUS <<\_ACEOF
20489 # Split the substitutions into bite-sized pieces for seds with
20490 # small command number limits, like on Digital OSF/1 and HP-UX.
20491 ac_max_sed_lines=48
20492 ac_sed_frag=1 # Number of current file.
20493 ac_beg=1 # First line for current file.
20494 ac_end=$ac_max_sed_lines # Line after last line for current file.
20497 while $ac_more_lines; do
20498 if test $ac_beg -gt 1; then
20499 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20501 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20503 if test ! -s $tmp/subs.frag; then
20504 ac_more_lines=false
20506 # The purpose of the label and of the branching condition is to
20507 # speed up the sed processing (if there are no `@' at all, there
20508 # is no need to browse any of the substitutions).
20509 # These are the two extra sed commands mentioned above.
20511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20512 if test -z "$ac_sed_cmds"; then
20513 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20515 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20517 ac_sed_frag=`expr $ac_sed_frag + 1`
20519 ac_end=`expr $ac_end + $ac_max_sed_lines`
20522 if test -z "$ac_sed_cmds"; then
20525 fi # test -n "$CONFIG_FILES"
20528 cat >>$CONFIG_STATUS <<\_ACEOF
20529 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20532 - | *:- | *:-:* ) # input from stdin
20534 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20536 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20538 * ) ac_file_in=$ac_file.in ;;
20541 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20542 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20543 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544 X"$ac_file" : 'X\(//\)[^/]' \| \
20545 X"$ac_file" : 'X\(//\)$' \| \
20546 X"$ac_file" : 'X\(/\)' \| \
20547 . : '\(.\)' 2>/dev/null ||
20549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20551 /^X\(\/\/\)$/{ s//\1/; q; }
20552 /^X\(\/\).*/{ s//\1/; q; }
20554 { if $as_mkdir_p; then
20559 while test ! -d "$as_dir"; do
20560 as_dirs="$as_dir $as_dirs"
20561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20563 X"$as_dir" : 'X\(//\)[^/]' \| \
20564 X"$as_dir" : 'X\(//\)$' \| \
20565 X"$as_dir" : 'X\(/\)' \| \
20566 . : '\(.\)' 2>/dev/null ||
20568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20570 /^X\(\/\/\)$/{ s//\1/; q; }
20571 /^X\(\/\).*/{ s//\1/; q; }
20574 test ! -n "$as_dirs" || mkdir $as_dirs
20575 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20576 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20577 { (exit 1); exit 1; }; }; }
20581 if test "$ac_dir" != .; then
20582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20583 # A "../" for each directory in $ac_dir_suffix.
20584 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20586 ac_dir_suffix= ac_top_builddir=
20590 .) # No --srcdir option. We are building in place.
20592 if test -z "$ac_top_builddir"; then
20595 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20597 [\\/]* | ?:[\\/]* ) # Absolute path.
20598 ac_srcdir=$srcdir$ac_dir_suffix;
20599 ac_top_srcdir=$srcdir ;;
20600 *) # Relative path.
20601 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20602 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20605 # Do not use `cd foo && pwd` to compute absolute paths, because
20606 # the directories may not exist.
20608 .) ac_abs_builddir="$ac_dir";;
20611 .) ac_abs_builddir=`pwd`;;
20612 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20613 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20616 case $ac_abs_builddir in
20617 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20619 case ${ac_top_builddir}. in
20620 .) ac_abs_top_builddir=$ac_abs_builddir;;
20621 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20622 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20625 case $ac_abs_builddir in
20626 .) ac_abs_srcdir=$ac_srcdir;;
20629 .) ac_abs_srcdir=$ac_abs_builddir;;
20630 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20631 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20634 case $ac_abs_builddir in
20635 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20637 case $ac_top_srcdir in
20638 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20639 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20640 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20647 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20650 if test x"$ac_file" != x-; then
20651 { echo "$as_me:$LINENO: creating $ac_file" >&5
20652 echo "$as_me: creating $ac_file" >&6;}
20655 # Let's still pretend it is `configure' which instantiates (i.e., don't
20656 # use $as_me), people would be surprised to read:
20657 # /* config.h. Generated by config.status. */
20658 if test x"$ac_file" = x-; then
20661 configure_input="$ac_file. "
20663 configure_input=$configure_input"Generated from `echo $ac_file_in |
20664 sed 's,.*/,,'` by configure."
20666 # First look for the input files in the build tree, otherwise in the
20668 ac_file_inputs=`IFS=:
20669 for f in $ac_file_in; do
20671 -) echo $tmp/stdin ;;
20673 # Absolute (can't be DOS-style, as IFS=:)
20674 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20675 echo "$as_me: error: cannot find input file: $f" >&2;}
20676 { (exit 1); exit 1; }; }
20679 if test -f "$f"; then
20682 elif test -f "$srcdir/$f"; then
20687 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20688 echo "$as_me: error: cannot find input file: $f" >&2;}
20689 { (exit 1); exit 1; }; }
20692 done` || { (exit 1); exit 1; }
20694 cat >>$CONFIG_STATUS <<_ACEOF
20698 cat >>$CONFIG_STATUS <<\_ACEOF
20700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20701 s,@configure_input@,$configure_input,;t t
20702 s,@srcdir@,$ac_srcdir,;t t
20703 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20704 s,@top_srcdir@,$ac_top_srcdir,;t t
20705 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20706 s,@builddir@,$ac_builddir,;t t
20707 s,@abs_builddir@,$ac_abs_builddir,;t t
20708 s,@top_builddir@,$ac_top_builddir,;t t
20709 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20710 s,@INSTALL@,$ac_INSTALL,;t t
20711 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20713 if test x"$ac_file" != x-; then
20714 mv $tmp/out $ac_file
20722 cat >>$CONFIG_STATUS <<\_ACEOF
20725 # CONFIG_HEADER section.
20728 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20729 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20731 # ac_d sets the value in "#define NAME VALUE" lines.
20732 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20733 ac_dB='[ ].*$,\1#\2'
20736 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20737 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20738 ac_uB='$,\1#\2define\3'
20742 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20745 - | *:- | *:-:* ) # input from stdin
20747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20751 * ) ac_file_in=$ac_file.in ;;
20754 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20755 echo "$as_me: creating $ac_file" >&6;}
20757 # First look for the input files in the build tree, otherwise in the
20759 ac_file_inputs=`IFS=:
20760 for f in $ac_file_in; do
20762 -) echo $tmp/stdin ;;
20764 # Absolute (can't be DOS-style, as IFS=:)
20765 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20766 echo "$as_me: error: cannot find input file: $f" >&2;}
20767 { (exit 1); exit 1; }; }
20768 # Do quote $f, to prevent DOS paths from being IFS'd.
20771 if test -f "$f"; then
20774 elif test -f "$srcdir/$f"; then
20779 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20780 echo "$as_me: error: cannot find input file: $f" >&2;}
20781 { (exit 1); exit 1; }; }
20784 done` || { (exit 1); exit 1; }
20785 # Remove the trailing spaces.
20786 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20790 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20791 # `conftest.undefs', that substitutes the proper values into
20792 # config.h.in to produce config.h. The first handles `#define'
20793 # templates, and the second `#undef' templates.
20794 # And first: Protect against being on the right side of a sed subst in
20795 # config.status. Protect against being in an unquoted here document
20796 # in config.status.
20797 rm -f conftest.defines conftest.undefs
20798 # Using a here document instead of a string reduces the quoting nightmare.
20799 # Putting comments in sed scripts is not portable.
20801 # `end' is used to avoid that the second main sed command (meant for
20802 # 0-ary CPP macros) applies to n-ary macro definitions.
20803 # See the Autoconf documentation for `clear'.
20804 cat >confdef2sed.sed <<\_ACEOF
20809 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20811 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20814 # If some macros were called several times there might be several times
20815 # the same #defines, which is useless. Nevertheless, we may not want to
20816 # sort them, since we want the *last* AC-DEFINE to be honored.
20817 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20818 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20819 rm -f confdef2sed.sed
20821 # This sed command replaces #undef with comments. This is necessary, for
20822 # example, in the case of _POSIX_SOURCE, which is predefined and required
20823 # on some systems where configure will not decide to define it.
20824 cat >>conftest.undefs <<\_ACEOF
20825 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20828 # Break up conftest.defines because some shells have a limit on the size
20829 # of here documents, and old seds have small limits too (100 cmds).
20830 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20831 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20832 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20833 echo ' :' >>$CONFIG_STATUS
20834 rm -f conftest.tail
20835 while grep . conftest.defines >/dev/null
20837 # Write a limited-size here document to $tmp/defines.sed.
20838 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20839 # Speed up: don't consider the non `#define' lines.
20840 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20841 # Work around the forget-to-reset-the-flag bug.
20842 echo 't clr' >>$CONFIG_STATUS
20843 echo ': clr' >>$CONFIG_STATUS
20844 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20846 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20848 mv $tmp/out $tmp/in
20850 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20851 rm -f conftest.defines
20852 mv conftest.tail conftest.defines
20854 rm -f conftest.defines
20855 echo ' fi # grep' >>$CONFIG_STATUS
20856 echo >>$CONFIG_STATUS
20858 # Break up conftest.undefs because some shells have a limit on the size
20859 # of here documents, and old seds have small limits too (100 cmds).
20860 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20861 rm -f conftest.tail
20862 while grep . conftest.undefs >/dev/null
20864 # Write a limited-size here document to $tmp/undefs.sed.
20865 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20866 # Speed up: don't consider the non `#undef'
20867 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20868 # Work around the forget-to-reset-the-flag bug.
20869 echo 't clr' >>$CONFIG_STATUS
20870 echo ': clr' >>$CONFIG_STATUS
20871 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20873 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20875 mv $tmp/out $tmp/in
20877 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20878 rm -f conftest.undefs
20879 mv conftest.tail conftest.undefs
20881 rm -f conftest.undefs
20883 cat >>$CONFIG_STATUS <<\_ACEOF
20884 # Let's still pretend it is `configure' which instantiates (i.e., don't
20885 # use $as_me), people would be surprised to read:
20886 # /* config.h. Generated by config.status. */
20887 if test x"$ac_file" = x-; then
20888 echo "/* Generated by configure. */" >$tmp/config.h
20890 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20892 cat $tmp/in >>$tmp/config.h
20894 if test x"$ac_file" != x-; then
20895 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20896 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20897 echo "$as_me: $ac_file is unchanged" >&6;}
20899 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901 X"$ac_file" : 'X\(//\)[^/]' \| \
20902 X"$ac_file" : 'X\(//\)$' \| \
20903 X"$ac_file" : 'X\(/\)' \| \
20904 . : '\(.\)' 2>/dev/null ||
20906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20908 /^X\(\/\/\)$/{ s//\1/; q; }
20909 /^X\(\/\).*/{ s//\1/; q; }
20911 { if $as_mkdir_p; then
20916 while test ! -d "$as_dir"; do
20917 as_dirs="$as_dir $as_dirs"
20918 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920 X"$as_dir" : 'X\(//\)[^/]' \| \
20921 X"$as_dir" : 'X\(//\)$' \| \
20922 X"$as_dir" : 'X\(/\)' \| \
20923 . : '\(.\)' 2>/dev/null ||
20925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20927 /^X\(\/\/\)$/{ s//\1/; q; }
20928 /^X\(\/\).*/{ s//\1/; q; }
20931 test ! -n "$as_dirs" || mkdir $as_dirs
20932 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20933 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20934 { (exit 1); exit 1; }; }; }
20937 mv $tmp/config.h $ac_file
20941 rm -f $tmp/config.h
20943 # Compute $ac_file's index in $config_headers.
20945 for _am_header in $config_headers :; do
20946 case $_am_header in
20947 $ac_file | $ac_file:* )
20950 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20953 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20954 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955 X$ac_file : 'X\(//\)[^/]' \| \
20956 X$ac_file : 'X\(//\)$' \| \
20957 X$ac_file : 'X\(/\)' \| \
20958 . : '\(.\)' 2>/dev/null ||
20960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20962 /^X\(\/\/\)$/{ s//\1/; q; }
20963 /^X\(\/\).*/{ s//\1/; q; }
20964 s/.*/./; q'`/stamp-h$_am_stamp_count
20967 cat >>$CONFIG_STATUS <<\_ACEOF
20970 # CONFIG_COMMANDS section.
20972 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20973 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20974 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20975 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20976 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977 X"$ac_dest" : 'X\(//\)[^/]' \| \
20978 X"$ac_dest" : 'X\(//\)$' \| \
20979 X"$ac_dest" : 'X\(/\)' \| \
20980 . : '\(.\)' 2>/dev/null ||
20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20984 /^X\(\/\/\)$/{ s//\1/; q; }
20985 /^X\(\/\).*/{ s//\1/; q; }
20987 { if $as_mkdir_p; then
20992 while test ! -d "$as_dir"; do
20993 as_dirs="$as_dir $as_dirs"
20994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$as_dir" : 'X\(//\)[^/]' \| \
20997 X"$as_dir" : 'X\(//\)$' \| \
20998 X"$as_dir" : 'X\(/\)' \| \
20999 . : '\(.\)' 2>/dev/null ||
21001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21003 /^X\(\/\/\)$/{ s//\1/; q; }
21004 /^X\(\/\).*/{ s//\1/; q; }
21007 test ! -n "$as_dirs" || mkdir $as_dirs
21008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21010 { (exit 1); exit 1; }; }; }
21014 if test "$ac_dir" != .; then
21015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21016 # A "../" for each directory in $ac_dir_suffix.
21017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21019 ac_dir_suffix= ac_top_builddir=
21023 .) # No --srcdir option. We are building in place.
21025 if test -z "$ac_top_builddir"; then
21028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21030 [\\/]* | ?:[\\/]* ) # Absolute path.
21031 ac_srcdir=$srcdir$ac_dir_suffix;
21032 ac_top_srcdir=$srcdir ;;
21033 *) # Relative path.
21034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21038 # Do not use `cd foo && pwd` to compute absolute paths, because
21039 # the directories may not exist.
21041 .) ac_abs_builddir="$ac_dir";;
21044 .) ac_abs_builddir=`pwd`;;
21045 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21046 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21049 case $ac_abs_builddir in
21050 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21052 case ${ac_top_builddir}. in
21053 .) ac_abs_top_builddir=$ac_abs_builddir;;
21054 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21055 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21058 case $ac_abs_builddir in
21059 .) ac_abs_srcdir=$ac_srcdir;;
21062 .) ac_abs_srcdir=$ac_abs_builddir;;
21063 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21064 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21067 case $ac_abs_builddir in
21068 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21070 case $ac_top_srcdir in
21071 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21072 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21073 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21078 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21079 echo "$as_me: executing $ac_dest commands" >&6;}
21081 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21082 # Strip MF so we end up with the name of the file.
21083 mf=`echo "$mf" | sed -e 's/:.*$//'`
21084 # Check whether this is an Automake generated Makefile or not.
21085 # We used to match only the files named `Makefile.in', but
21086 # some people rename them; so instead we look at the file content.
21087 # Grep'ing the first line is not enough: some people post-process
21088 # each Makefile.in and add a new line on top of each file to say so.
21089 # So let's grep whole file.
21090 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21091 dirpart=`(dirname "$mf") 2>/dev/null ||
21092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21093 X"$mf" : 'X\(//\)[^/]' \| \
21094 X"$mf" : 'X\(//\)$' \| \
21095 X"$mf" : 'X\(/\)' \| \
21096 . : '\(.\)' 2>/dev/null ||
21098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21100 /^X\(\/\/\)$/{ s//\1/; q; }
21101 /^X\(\/\).*/{ s//\1/; q; }
21106 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21107 # Extract the definition of DEP_FILES from the Makefile without
21109 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21110 test -z "$DEPDIR" && continue
21111 # When using ansi2knr, U may be empty or an underscore; expand it
21112 U=`sed -n -e '/^U = / s///p' < "$mf"`
21113 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21114 # We invoke sed twice because it is the simplest approach to
21115 # changing $(DEPDIR) to its actual value in the expansion.
21116 for file in `sed -n -e '
21117 /^DEP_FILES = .*\\\\$/ {
21126 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21127 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21128 # Make sure the directory exists.
21129 test -f "$dirpart/$file" && continue
21130 fdir=`(dirname "$file") 2>/dev/null ||
21131 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21132 X"$file" : 'X\(//\)[^/]' \| \
21133 X"$file" : 'X\(//\)$' \| \
21134 X"$file" : 'X\(/\)' \| \
21135 . : '\(.\)' 2>/dev/null ||
21137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21139 /^X\(\/\/\)$/{ s//\1/; q; }
21140 /^X\(\/\).*/{ s//\1/; q; }
21142 { if $as_mkdir_p; then
21143 mkdir -p $dirpart/$fdir
21145 as_dir=$dirpart/$fdir
21147 while test ! -d "$as_dir"; do
21148 as_dirs="$as_dir $as_dirs"
21149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151 X"$as_dir" : 'X\(//\)[^/]' \| \
21152 X"$as_dir" : 'X\(//\)$' \| \
21153 X"$as_dir" : 'X\(/\)' \| \
21154 . : '\(.\)' 2>/dev/null ||
21156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21158 /^X\(\/\/\)$/{ s//\1/; q; }
21159 /^X\(\/\).*/{ s//\1/; q; }
21162 test ! -n "$as_dirs" || mkdir $as_dirs
21163 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21164 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21165 { (exit 1); exit 1; }; }; }
21167 # echo "creating $dirpart/$file"
21168 echo '# dummy' > "$dirpart/$file"
21176 cat >>$CONFIG_STATUS <<\_ACEOF
21178 { (exit 0); exit 0; }
21180 chmod +x $CONFIG_STATUS
21181 ac_clean_files=$ac_clean_files_save
21184 # configure is writing to config.log, and then calls config.status.
21185 # config.status does its own redirection, appending to config.log.
21186 # Unfortunately, on DOS this fails, as config.log is still kept open
21187 # by configure, so config.status won't be able to write to it; its
21188 # output is simply discarded. So we exec the FD to /dev/null,
21189 # effectively closing config.log, so it can be properly (re)opened and
21190 # appended to by config.status. When coming back to configure, we
21191 # need to make the FD available again.
21192 if test "$no_create" != yes; then
21194 ac_config_status_args=
21195 test "$silent" = yes &&
21196 ac_config_status_args="$ac_config_status_args --quiet"
21198 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21200 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21201 # would make configure fail if this is the last instruction.
21202 $ac_cs_success || { (exit 1); exit 1; }