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 NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
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
885 gogo: MP3 GOGO (Only Windows is supported)
886 --disable-alsatest Do not try to compile and run a test Alsa program
887 --disable-artstest Do not try to compile and run a test ARTS program
888 --disable-esdtest Do not try to compile and run a test ESD program
889 --disable-aotest Do not try to compile and run a test ao program
890 --disable-oggtest Do not try to compile and run a test Ogg program
891 --disable-vorbistest Do not try to compile and run a test Vorbis program
892 --enable-interface=interface_list
893 Comma separated interface list
894 --enable-dynamic Enable dynamic link interface (default is no)
895 --enable-dynamic=dynamic_list
896 Comma separated dynamic interface list
897 --enable-ncurses Enable ncurses interface (default is no)
898 --enable-slang Enable slang interface (default is no)
899 --enable-motif Enable motif interface (default is no)
900 --enable-tcltk Enable tcltk interface (default is no)
901 --enable-emacs Enable emacs interface (default is no)
902 --enable-vt100 Enable VT100 interface (default is no)
903 --enable-xaw Enable athena interface (default is no)
904 --enable-xskin Enable X skin interface (default is no)
905 --enable-gtk Enable GTK+ interface (default is no)
906 --disable-gtktest Do not try to compile and run a test GTK program
907 --enable-server Enable server interface (default is no)
908 --enable-alsaseq Enable ALSA sequencer server interface
910 --enable-winsyn Enable Windows Synthesizer interface
912 --enable-portmidisyn Enable PortMIDI Synthesizer interface
914 --enable-winsyng Enable Windows GUI Synthesizer interface
916 --enable-w32gui Enable Windows GUI interface (default is no)
917 --enable-ump UMP configuration (default is no)
918 --enable-offix Enable offix support (default is no)
919 --enable-network Enable network support (default is no)
920 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
921 --enable-spline=method Specify spline method.
922 one of no,linear,cubic,lagrange,newton,gauss
924 --enable-wrd Enable WRD interface for X (default is no)
927 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
928 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
929 --with-includes=DIR Specify include directories (colon separated)
930 --with-libraries=DIR Specify library directories (colon separated)
931 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
932 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
933 --with-lispdir Override the default lisp directory
934 --with-elf create ELF shared object instead of AOUT
935 --with-x use the X Window System
936 --with-tcl-includes=DIR Tcl include file path
937 --with-tcl-libs=DIR Tcl library file path
938 --with-tk-includes=DIR Tk include file path
939 --with-tk-libs=DIR Tk library file path
940 --with-offix-includes=DIR Offix include file path
941 --with-offix-libs=DIR Offix include file path
942 --with-nas-library=library NAS absolute library path(Don't use -laudio)
943 --with-nas-includes=DIR NAS include files are in dir
944 --with-default-output=<mode> Specify default output mode (optional):
945 (default|alsa|alib|arts|nas|
946 esd|wav|au|aiff|list|vorbis|
947 gogo|portaudio|jack|ao)
948 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
949 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
950 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
951 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
952 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
953 --with-ao=PFX Prefix where libao is installed (optional)
954 --with-ao-libraries=DIR Directory where libao library is installed (optional)
955 --with-ao-includes=DIR Directory where libao header files are installed (optional)
956 --with-ogg=PFX Prefix where libogg is installed (optional)
957 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
958 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
959 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
960 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
961 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
962 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
963 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
965 Some influential environment variables:
966 CC C compiler command
967 CFLAGS C compiler flags
968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
969 nonstandard directory <lib dir>
970 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
971 headers in a nonstandard directory <include dir>
974 Use these variables to override the choices made by `configure' or to help
975 it to find libraries and programs with nonstandard names/locations.
977 Report bugs to <root@mput.dip.jp>.
981 if test "$ac_init_help" = "recursive"; then
982 # If there are subdirs, report their specific --help.
984 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
985 test -d $ac_dir || continue
988 if test "$ac_dir" != .; then
989 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
990 # A "../" for each directory in $ac_dir_suffix.
991 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
993 ac_dir_suffix= ac_top_builddir=
997 .) # No --srcdir option. We are building in place.
999 if test -z "$ac_top_builddir"; then
1002 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1004 [\\/]* | ?:[\\/]* ) # Absolute path.
1005 ac_srcdir=$srcdir$ac_dir_suffix;
1006 ac_top_srcdir=$srcdir ;;
1008 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1009 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1012 # Do not use `cd foo && pwd` to compute absolute paths, because
1013 # the directories may not exist.
1015 .) ac_abs_builddir="$ac_dir";;
1018 .) ac_abs_builddir=`pwd`;;
1019 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1020 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1023 case $ac_abs_builddir in
1024 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1026 case ${ac_top_builddir}. in
1027 .) ac_abs_top_builddir=$ac_abs_builddir;;
1028 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1029 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1032 case $ac_abs_builddir in
1033 .) ac_abs_srcdir=$ac_srcdir;;
1036 .) ac_abs_srcdir=$ac_abs_builddir;;
1037 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1038 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1041 case $ac_abs_builddir in
1042 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1044 case $ac_top_srcdir in
1045 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1046 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1047 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1052 # Check for guested configure; otherwise get Cygnus style configure.
1053 if test -f $ac_srcdir/configure.gnu; then
1055 $SHELL $ac_srcdir/configure.gnu --help=recursive
1056 elif test -f $ac_srcdir/configure; then
1058 $SHELL $ac_srcdir/configure --help=recursive
1059 elif test -f $ac_srcdir/configure.ac ||
1060 test -f $ac_srcdir/configure.in; then
1062 $ac_configure --help
1064 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1070 test -n "$ac_init_help" && exit 0
1071 if $ac_init_version; then
1073 TiMidity++ configure current
1074 generated by GNU Autoconf 2.59
1076 Copyright (C) 2003 Free Software Foundation, Inc.
1077 This configure script is free software; the Free Software Foundation
1078 gives unlimited permission to copy, distribute and modify it.
1084 This file contains any messages produced by compilers while
1085 running configure, to aid debugging if configure makes a mistake.
1087 It was created by TiMidity++ $as_me current, which was
1088 generated by GNU Autoconf 2.59. Invocation command line was
1099 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1100 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1101 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1102 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1103 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1105 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1106 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1108 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1109 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1110 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1111 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1112 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1113 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1114 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1122 test -z "$as_dir" && as_dir=.
1123 echo "PATH: $as_dir"
1138 # Keep a trace of the command line.
1139 # Strip out --no-create and --no-recursion so they do not pile up.
1140 # Strip out --silent because we don't want to record it for future runs.
1141 # Also quote any args containing shell meta-characters.
1142 # Make two passes to allow for proper duplicate-argument suppression.
1147 ac_must_keep_next=false
1153 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1157 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1158 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1161 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1163 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1164 if test $ac_must_keep_next = true; then
1165 ac_must_keep_next=false # Got value, back to normal.
1168 *=* | --config-cache | -C | -disable-* | --disable-* \
1169 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1170 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1171 | -with-* | --with-* | -without-* | --without-* | --x)
1172 case "$ac_configure_args0 " in
1173 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1176 -* ) ac_must_keep_next=true ;;
1179 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1180 # Get rid of the leading space.
1186 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1187 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1189 # When interrupted or exit'd, cleanup temporary files, and complete
1190 # config.log. We remove comments because anyway the quotes in there
1191 # would cause problems or look ugly.
1192 # WARNING: Be sure not to use single quotes in there, as some shells,
1193 # such as our DU 5.0 friend, will then `close' the trap.
1194 trap 'exit_status=$?
1195 # Save into config.log some information that might help in debugging.
1200 ## ---------------- ##
1201 ## Cache variables. ##
1202 ## ---------------- ##
1205 # The following way of writing the cache mishandles newlines in values,
1208 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1211 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1216 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1223 ## ----------------- ##
1224 ## Output variables. ##
1225 ## ----------------- ##
1228 for ac_var in $ac_subst_vars
1230 eval ac_val=$`echo $ac_var`
1231 echo "$ac_var='"'"'$ac_val'"'"'"
1235 if test -n "$ac_subst_files"; then
1242 for ac_var in $ac_subst_files
1244 eval ac_val=$`echo $ac_var`
1245 echo "$ac_var='"'"'$ac_val'"'"'"
1250 if test -s confdefs.h; then
1257 sed "/^$/d" confdefs.h | sort
1260 test "$ac_signal" != 0 &&
1261 echo "$as_me: caught signal $ac_signal"
1262 echo "$as_me: exit $exit_status"
1264 rm -f core *.core &&
1265 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1268 for ac_signal in 1 2 13 15; do
1269 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1273 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1274 rm -rf conftest* confdefs.h
1275 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1278 # Predefined preprocessor variables.
1280 cat >>confdefs.h <<_ACEOF
1281 #define PACKAGE_NAME "$PACKAGE_NAME"
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_STRING "$PACKAGE_STRING"
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1305 # Let the site file select an alternate cache file if it wants to.
1306 # Prefer explicitly selected file to automatically selected ones.
1307 if test -z "$CONFIG_SITE"; then
1308 if test "x$prefix" != xNONE; then
1309 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1311 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1314 for ac_site_file in $CONFIG_SITE; do
1315 if test -r "$ac_site_file"; then
1316 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1317 echo "$as_me: loading site script $ac_site_file" >&6;}
1318 sed 's/^/| /' "$ac_site_file" >&5
1323 if test -r "$cache_file"; then
1324 # Some versions of bash will fail to source /dev/null (special
1325 # files actually), so we avoid doing that.
1326 if test -f "$cache_file"; then
1327 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1328 echo "$as_me: loading cache $cache_file" >&6;}
1330 [\\/]* | ?:[\\/]* ) . $cache_file;;
1331 *) . ./$cache_file;;
1335 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1336 echo "$as_me: creating cache $cache_file" >&6;}
1340 # Check that the precious variables saved in the cache have kept the same
1342 ac_cache_corrupted=false
1343 for ac_var in `(set) 2>&1 |
1344 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1345 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1346 eval ac_new_set=\$ac_env_${ac_var}_set
1347 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1348 eval ac_new_val="\$ac_env_${ac_var}_value"
1349 case $ac_old_set,$ac_new_set in
1351 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1352 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1353 ac_cache_corrupted=: ;;
1355 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1356 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1357 ac_cache_corrupted=: ;;
1360 if test "x$ac_old_val" != "x$ac_new_val"; then
1361 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1362 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1363 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1364 echo "$as_me: former value: $ac_old_val" >&2;}
1365 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1366 echo "$as_me: current value: $ac_new_val" >&2;}
1367 ac_cache_corrupted=:
1370 # Pass precious variables to config.status.
1371 if test "$ac_new_set" = set; then
1373 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1374 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1375 *) ac_arg=$ac_var=$ac_new_val ;;
1377 case " $ac_configure_args " in
1378 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1379 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1383 if $ac_cache_corrupted; then
1384 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1385 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1386 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1387 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1388 { (exit 1); exit 1; }; }
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1424 for ac_dir in autoconf $srcdir/autoconf; do
1425 if test -f $ac_dir/install-sh; then
1427 ac_install_sh="$ac_aux_dir/install-sh -c"
1429 elif test -f $ac_dir/install.sh; then
1431 ac_install_sh="$ac_aux_dir/install.sh -c"
1433 elif test -f $ac_dir/shtool; then
1435 ac_install_sh="$ac_aux_dir/shtool install -c"
1439 if test -z "$ac_aux_dir"; then
1440 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1441 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1442 { (exit 1); exit 1; }; }
1444 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1445 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1446 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1448 # Make sure we can run config.sub.
1449 $ac_config_sub sun4 >/dev/null 2>&1 ||
1450 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1451 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1452 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: checking build system type" >&5
1455 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1456 if test "${ac_cv_build+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 ac_cv_build_alias=$build_alias
1460 test -z "$ac_cv_build_alias" &&
1461 ac_cv_build_alias=`$ac_config_guess`
1462 test -z "$ac_cv_build_alias" &&
1463 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1464 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1465 { (exit 1); exit 1; }; }
1466 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1468 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1469 { (exit 1); exit 1; }; }
1472 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1473 echo "${ECHO_T}$ac_cv_build" >&6
1475 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1476 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1477 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480 echo "$as_me:$LINENO: checking host system type" >&5
1481 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1482 if test "${ac_cv_host+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 ac_cv_host_alias=$host_alias
1486 test -z "$ac_cv_host_alias" &&
1487 ac_cv_host_alias=$ac_cv_build_alias
1488 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1491 { (exit 1); exit 1; }; }
1494 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1495 echo "${ECHO_T}$ac_cv_host" >&6
1497 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502 echo "$as_me:$LINENO: checking target system type" >&5
1503 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1504 if test "${ac_cv_target+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 ac_cv_target_alias=$target_alias
1508 test "x$ac_cv_target_alias" = "x" &&
1509 ac_cv_target_alias=$ac_cv_host_alias
1510 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1511 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1513 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1517 echo "${ECHO_T}$ac_cv_target" >&6
1518 target=$ac_cv_target
1519 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524 # The aliases save the names the user supplied, while $host etc.
1525 # will get canonicalized.
1526 test -n "$target_alias" &&
1527 test "$program_prefix$program_suffix$program_transform_name" = \
1529 program_prefix=${target_alias}-
1530 am__api_version="1.7"
1531 # Find a good install program. We prefer a C program (faster),
1532 # so one script is as good as another. But avoid the broken or
1533 # incompatible versions:
1534 # SysV /etc/install, /usr/sbin/install
1535 # SunOS /usr/etc/install
1536 # IRIX /sbin/install
1538 # AmigaOS /C/install, which installs bootblocks on floppy discs
1539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1542 # OS/2's system install, which has a completely different semantic
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1545 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1546 if test -z "$INSTALL"; then
1547 if test "${ac_cv_path_install+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 # Account for people who put trailing slashes in PATH elements.
1557 ./ | .// | /cC/* | \
1558 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1559 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1562 # OSF1 and SCO ODT 3.0 have their own names for install.
1563 # Don't use installbsd from OSF since it installs stuff as root
1565 for ac_prog in ginstall scoinst install; do
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1568 if test $ac_prog = install &&
1569 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570 # AIX install. It has an incompatible calling convention.
1572 elif test $ac_prog = install &&
1573 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574 # program-specific install script used by HP pwplus--don't use.
1577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1589 if test "${ac_cv_path_install+set}" = set; then
1590 INSTALL=$ac_cv_path_install
1592 # As a last resort, use the slow shell script. We don't cache a
1593 # path for INSTALL within a source directory, because that will
1594 # break other packages using the cache if that directory is
1595 # removed, or if the path is relative.
1596 INSTALL=$ac_install_sh
1599 echo "$as_me:$LINENO: result: $INSTALL" >&5
1600 echo "${ECHO_T}$INSTALL" >&6
1602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1603 # It thinks the first close brace ends the variable substitution.
1604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1610 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1611 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1614 echo timestamp > conftest.file
1615 # Do `set' in a subshell so we don't clobber the current shell's
1616 # arguments. Must try -L first in case configure is actually a
1617 # symlink; some systems play weird games with the mod time of symlinks
1618 # (eg FreeBSD returns the mod time of the symlink's containing
1621 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1622 if test "$*" = "X"; then
1624 set X `ls -t $srcdir/configure conftest.file`
1627 if test "$*" != "X $srcdir/configure conftest.file" \
1628 && test "$*" != "X conftest.file $srcdir/configure"; then
1630 # If neither matched, then we have a broken ls. This can happen
1631 # if, for instance, CONFIG_SHELL is bash and it inherits a
1632 # broken ls alias from the environment. This has actually
1633 # happened. Such a system could not be considered "sane".
1634 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1635 alias in your environment" >&5
1636 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1637 alias in your environment" >&2;}
1638 { (exit 1); exit 1; }; }
1641 test "$2" = conftest.file
1647 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1648 Check your system clock" >&5
1649 echo "$as_me: error: newly created file is older than distributed files!
1650 Check your system clock" >&2;}
1651 { (exit 1); exit 1; }; }
1653 echo "$as_me:$LINENO: result: yes" >&5
1654 echo "${ECHO_T}yes" >&6
1655 test "$program_prefix" != NONE &&
1656 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1657 # Use a double $ so make ignores it.
1658 test "$program_suffix" != NONE &&
1659 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1660 # Double any \ or $. echo might interpret backslashes.
1661 # By default was `s,x,x', remove it if useless.
1662 cat <<\_ACEOF >conftest.sed
1663 s/[\\$]/&&/g;s/;s,x,x,$//
1665 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1669 # expand $ac_aux_dir to an absolute path
1670 am_aux_dir=`cd $ac_aux_dir && pwd`
1672 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1673 # Use eval to expand $SHELL
1674 if eval "$MISSING --run true"; then
1675 am_missing_run="$MISSING --run "
1678 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1679 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1682 for ac_prog in gawk mawk nawk awk
1684 # Extract the first word of "$ac_prog", so it can be a program name with args.
1685 set dummy $ac_prog; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_AWK+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$AWK"; then
1692 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_AWK="$ac_prog"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 if test -n "$AWK"; then
1712 echo "$as_me:$LINENO: result: $AWK" >&5
1713 echo "${ECHO_T}$AWK" >&6
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1719 test -n "$AWK" && break
1722 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1723 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1724 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1725 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 cat >conftest.make <<\_ACEOF
1730 @echo 'ac_maketemp="$(MAKE)"'
1732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1733 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1734 if test -n "$ac_maketemp"; then
1735 eval ac_cv_prog_make_${ac_make}_set=yes
1737 eval ac_cv_prog_make_${ac_make}_set=no
1741 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1742 echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 SET_MAKE="MAKE=${MAKE-make}"
1751 rm -rf .tst 2>/dev/null
1752 mkdir .tst 2>/dev/null
1753 if test -d .tst; then
1758 rmdir .tst 2>/dev/null
1760 # test to see if srcdir already configured
1761 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1762 test -f $srcdir/config.status; then
1763 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1764 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1765 { (exit 1); exit 1; }; }
1768 # test whether we have cygpath
1769 if test -z "$CYGPATH_W"; then
1770 if (cygpath --version) >/dev/null 2>/dev/null; then
1771 CYGPATH_W='cygpath -w'
1778 # Define the identity of the package.
1779 PACKAGE='TiMidity++'
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE "$PACKAGE"
1788 cat >>confdefs.h <<_ACEOF
1789 #define VERSION "$VERSION"
1792 # Some tools Automake needs.
1794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1809 AMTAR=${AMTAR-"${am_missing_run}tar"}
1811 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1813 # Installed binaries are usually stripped using `strip' when the user
1814 # run `make install-strip'. However `strip' might not be the right
1815 # tool to use in cross-compilation environments, therefore Automake
1816 # will honor the `STRIP' environment variable to overrule this program.
1817 if test "$cross_compiling" != no; then
1818 if test -n "$ac_tool_prefix"; then
1819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1820 set dummy ${ac_tool_prefix}strip; ac_word=$2
1821 echo "$as_me:$LINENO: checking for $ac_word" >&5
1822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823 if test "${ac_cv_prog_STRIP+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 if test -n "$STRIP"; then
1827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 test -z "$as_dir" && as_dir=.
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 STRIP=$ac_cv_prog_STRIP
1846 if test -n "$STRIP"; then
1847 echo "$as_me:$LINENO: result: $STRIP" >&5
1848 echo "${ECHO_T}$STRIP" >&6
1850 echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1855 if test -z "$ac_cv_prog_STRIP"; then
1857 # Extract the first word of "strip", so it can be a program name with args.
1858 set dummy strip; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$ac_ct_STRIP"; then
1865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_ac_ct_STRIP="strip"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1885 if test -n "$ac_ct_STRIP"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1887 echo "${ECHO_T}$ac_ct_STRIP" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1895 STRIP="$ac_cv_prog_STRIP"
1899 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1901 # We need awk for the "check" target. The system "awk" is bad on
1907 ac_config_headers="$ac_config_headers config.h interface.h"
1909 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1910 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1911 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1912 if test "${enable_maintainer_mode+set}" = set; then
1913 enableval="$enable_maintainer_mode"
1914 USE_MAINTAINER_MODE=$enableval
1916 USE_MAINTAINER_MODE=no
1918 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1919 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1922 if test $USE_MAINTAINER_MODE = yes; then
1923 MAINTAINER_MODE_TRUE=
1924 MAINTAINER_MODE_FALSE='#'
1926 MAINTAINER_MODE_TRUE='#'
1927 MAINTAINER_MODE_FALSE=
1930 MAINT=$MAINTAINER_MODE_TRUE
1934 SHELL=${CONFIG_SHELL-"/bin/sh"}
1937 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1938 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1939 echo "grimblepritz" >grimble
1940 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1941 contains="./contains"
1942 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1945 contains="./contains"
1949 grep) echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6
1953 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1954 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1955 cat >./contains <<'EOSS'
1956 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1958 chmod +x "./contains"
1963 # Check for compiler options -- such as debug flags.
1965 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1966 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1967 # Check whether --enable-debug or --disable-debug was given.
1968 if test "${enable_debug+set}" = set; then
1969 enableval="$enable_debug"
1970 timidity_cv_debug="yes"
1972 timidity_cv_debug="no"
1974 if test "x$timidity_cv_debug" = "xyes"; then
1976 cat >>confdefs.h <<\_ACEOF
1980 CFLAGS=${CFLAGS-"-g"}
1982 if test "x$timidity_cv_debug" = "xno"; then
1984 cat >>confdefs.h <<\_ACEOF
1989 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1990 echo "${ECHO_T}$timidity_cv_debug" >&6
1992 CFLAGS=${CFLAGS-"-O2"}
1994 if test "x$with_x" = x; then
2000 # Checking gcc environment
2001 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2002 LDFLAGS="$LDFLAGS -L${i}"
2004 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2005 CPPFLAGS="$CPPFLAGS -I${i}"
2008 # add $prefix if specified.
2009 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2010 LDFLAGS="-L$prefix/lib $LDFLAGS"
2011 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2012 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2016 # Check whether --with-includes or --without-includes was given.
2017 if test "${with_includes+set}" = set; then
2018 withval="$with_includes"
2020 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2023 CPPFLAGS="$j$CPPFLAGS"
2028 # Check whether --with-libraries or --without-libraries was given.
2029 if test "${with_libraries+set}" = set; then
2030 withval="$with_libraries"
2032 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2035 LDFLAGS="$j$LDFLAGS"
2041 # Check whether --with-default-path or --without-default-path was given.
2042 if test "${with_default_path+set}" = set; then
2043 withval="$with_default_path"
2047 if test "x$prefix" != "xNONE"; then
2048 pkgdatadir='${prefix}/share/timidity'
2050 pkgdatadir='/usr/local/share/timidity'
2054 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2056 cat >>confdefs.h <<_ACEOF
2057 #define DEFAULT_PATH "$tmpdefpath"
2061 cat >>confdefs.h <<\_ACEOF
2062 #define PKGDATADIR DEFAULT_PATH
2067 # Check whether --with-module-dir or --without-module-dir was given.
2068 if test "${with_module_dir+set}" = set; then
2069 withval="$with_module_dir"
2073 if test "x$prefix" != "xNONE"; then
2074 pkglibdir='${prefix}/lib/timidity'
2076 pkglibdir='/usr/local/lib/timidity'
2080 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2082 cat >>confdefs.h <<_ACEOF
2083 #define PKGLIBDIR "$tmplibdir"
2088 # Checks for programs.
2090 # Check whether --with-lispdir or --without-lispdir was given.
2091 if test "${with_lispdir+set}" = set; then
2092 withval="$with_lispdir"
2094 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2095 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2096 echo "$as_me:$LINENO: result: $lispdir" >&5
2097 echo "${ECHO_T}$lispdir" >&6
2100 # If set to t, that means we are running in a shell under Emacs.
2101 # If you have an Emacs named "t", then use the full path.
2102 test x"$EMACS" = xt && EMACS=
2103 for ac_prog in emacs xemacs
2105 # Extract the first word of "$ac_prog", so it can be a program name with args.
2106 set dummy $ac_prog; ac_word=$2
2107 echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109 if test "${ac_cv_prog_EMACS+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 if test -n "$EMACS"; then
2113 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122 ac_cv_prog_EMACS="$ac_prog"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 EMACS=$ac_cv_prog_EMACS
2132 if test -n "$EMACS"; then
2133 echo "$as_me:$LINENO: result: $EMACS" >&5
2134 echo "${ECHO_T}$EMACS" >&6
2136 echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6
2140 test -n "$EMACS" && break
2142 test -n "$EMACS" || EMACS="no"
2144 if test $EMACS != "no"; then
2145 if test x${lispdir+set} != xset; then
2146 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2147 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2148 if test "${am_cv_lispdir+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2152 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2153 # which is non-obvious for non-emacs users.
2154 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2155 # emacsen earlier and avoid running this altogether.
2156 { (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
2157 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2161 am_cv_lispdir=`sed -n \
2163 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2164 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2167 if test -z "$am_cv_lispdir"; then
2168 am_cv_lispdir='${datadir}/emacs/site-lisp'
2172 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2173 echo "${ECHO_T}$am_cv_lispdir" >&6
2174 lispdir="$am_cv_lispdir"
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 if test -n "$ac_tool_prefix"; then
2187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2189 echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test -n "$CC"; then
2195 ac_cv_prog_CC="$CC" # Let the user override the test.
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 if test -n "$CC"; then
2215 echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6
2218 echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6
2223 if test -z "$ac_cv_prog_CC"; then
2225 # Extract the first word of "gcc", so it can be a program name with args.
2226 set dummy gcc; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test -n "$ac_ct_CC"; then
2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_ac_ct_CC="gcc"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252 if test -n "$ac_ct_CC"; then
2253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254 echo "${ECHO_T}$ac_ct_CC" >&6
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2265 if test -z "$CC"; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}cc; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_CC="${ac_tool_prefix}cc"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2298 echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2303 if test -z "$ac_cv_prog_CC"; then
2305 # Extract the first word of "cc", so it can be a program name with args.
2306 set dummy cc; ac_word=$2
2307 echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 if test -n "$ac_ct_CC"; then
2313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322 ac_cv_prog_ac_ct_CC="cc"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332 if test -n "$ac_ct_CC"; then
2333 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334 echo "${ECHO_T}$ac_ct_CC" >&6
2336 echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6
2346 if test -z "$CC"; then
2347 # Extract the first word of "cc", so it can be a program name with args.
2348 set dummy cc; ac_word=$2
2349 echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366 ac_prog_rejected=yes
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test $ac_prog_rejected = yes; then
2377 # We found a bogon in the path, so make sure we never use it.
2378 set dummy $ac_cv_prog_CC
2380 if test $# != 0; then
2381 # We chose a different compiler from the bogus one.
2382 # However, it has the same basename, so the bogon will be chosen
2383 # first if we set CC to just the basename; use the full file name.
2385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391 if test -n "$CC"; then
2392 echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6
2395 echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2400 if test -z "$CC"; then
2401 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 if test -n "$CC"; then
2432 echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6
2435 echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2439 test -n "$CC" && break
2442 if test -z "$CC"; then
2446 # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$ac_ct_CC"; then
2454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_ac_ct_CC="$ac_prog"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6
2477 echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2481 test -n "$ac_ct_CC" && break
2490 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&2;}
2494 { (exit 1); exit 1; }; }
2496 # Provide some information about the compiler.
2497 echo "$as_me:$LINENO:" \
2498 "checking for C compiler version" >&5
2499 ac_compiler=`set X $ac_compile; echo $2`
2500 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2501 (eval $ac_compiler --version </dev/null >&5) 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2506 (eval $ac_compiler -v </dev/null >&5) 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2511 (eval $ac_compiler -V </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2516 cat >conftest.$ac_ext <<_ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 ac_clean_files_save=$ac_clean_files
2532 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2533 # Try to create an executable without -o first, disregard a.out.
2534 # It will help us diagnose broken compilers, and finding out an intuition
2536 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2537 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2540 (eval $ac_link_default) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; then
2544 # Find the output, starting from the most likely. This scheme is
2545 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2548 # Be careful to initialize this variable, since it used to be cached.
2549 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2551 # b.out is created by i960 compilers.
2552 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2554 test -f "$ac_file" || continue
2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2559 # This is the source file.
2562 # We found the default executable, but exeext='' is most
2566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2567 # FIXME: I believe we export ac_cv_exeext for Libtool,
2568 # but it would be cool to find out if it's true. Does anybody
2569 # maintain Libtool? --akim.
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584 { (exit 77); exit 77; }; }
2587 ac_exeext=$ac_cv_exeext
2588 echo "$as_me:$LINENO: result: $ac_file" >&5
2589 echo "${ECHO_T}$ac_file" >&6
2591 # Check the compiler produces executables we can run. If not, either
2592 # the compiler is broken, or we cross compile.
2593 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2596 # If not cross compiling, check that we can run a simple program.
2597 if test "$cross_compiling" != yes; then
2598 if { ac_try='./$ac_file'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2606 if test "$cross_compiling" = maybe; then
2609 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot run C compiled programs.
2613 If you meant to cross compile, use \`--host'.
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2619 echo "$as_me:$LINENO: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6
2622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 # Check the compiler produces executables we can run. If not, either
2625 # the compiler is broken, or we cross compile.
2626 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2628 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2629 echo "${ECHO_T}$cross_compiling" >&6
2631 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634 (eval $ac_link) 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; then
2638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 for ac_file in conftest.exe conftest conftest.*; do
2643 test -f "$ac_file" || continue
2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2667 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; then
2693 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2696 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2704 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2707 See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2713 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2714 echo "${ECHO_T}$ac_cv_objext" >&6
2715 OBJEXT=$ac_cv_objext
2717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2803 grep -v '^ *+' conftest.er1 >conftest.err
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2832 if test "$ac_test_CFLAGS" = set; then
2833 CFLAGS=$ac_save_CFLAGS
2834 elif test $ac_cv_prog_cc_g = yes; then
2835 if test "$GCC" = yes; then
2841 if test "$GCC" = yes; then
2847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 ac_cv_prog_cc_stdc=no
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2862 #include <sys/types.h>
2863 #include <sys/stat.h>
2864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2865 struct buf { int x; };
2866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2867 static char *e (p, i)
2873 static char *f (char * (*g) (char **, int), char **p, ...)
2878 s = g (p, va_arg (v,int));
2883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2884 function prototypes and stuff, but not '\xHH' hex character constants.
2885 These don't provoke an error unfortunately, instead are silently treated
2886 as 'x'. The following induces an error, until -std1 is added to get
2887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2888 array size at least. It's necessary to write '\x00'==0 to get something
2889 that's true only with -std1. */
2890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2892 int test (int i, double x);
2893 struct s1 {int (*f) (int a);};
2894 struct s2 {int (*f) (double a);};
2895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2906 # Don't try gcc -ansi; that turns off useful extensions and
2907 # breaks some systems' header files.
2908 # AIX -qlanglvl=ansi
2909 # Ultrix and OSF/1 -std1
2910 # HP-UX 10.20 and later -Ae
2911 # HP-UX older versions -Aa -D_HPUX_SOURCE
2912 # SVR4 -Xc -D__EXTENSIONS__
2913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2915 CC="$ac_save_CC $ac_arg"
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_prog_cc_stdc=$ac_arg
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 rm -f conftest.err conftest.$ac_objext
2947 rm -f conftest.$ac_ext conftest.$ac_objext
2952 case "x$ac_cv_prog_cc_stdc" in
2954 echo "$as_me:$LINENO: result: none needed" >&5
2955 echo "${ECHO_T}none needed" >&6 ;;
2957 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2959 CC="$CC $ac_cv_prog_cc_stdc" ;;
2962 # Some people use a C++ compiler to compile C. Since we use `exit',
2963 # in C++ we need to declare it. In case someone uses the same compiler
2964 # for both compiling C and C++ we need to have the C++ compiler decide
2965 # the declaration of exit, since it's the most demanding environment.
2966 cat >conftest.$ac_ext <<_ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 for ac_declaration in \
2995 'extern "C" void std::exit (int) throw (); using std::exit;' \
2996 'extern "C" void std::exit (int); using std::exit;' \
2997 'extern "C" void exit (int) throw ();' \
2998 'extern "C" void exit (int);' \
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019 (eval $ac_compile) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag"
3027 || test ! -s conftest.err'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3093 if test -n "$ac_declaration"; then
3094 echo '#ifdef __cplusplus' >>confdefs.h
3095 echo $ac_declaration >>confdefs.h
3096 echo '#endif' >>confdefs.h
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 DEPDIR="${am__leading_dot}deps"
3112 ac_config_commands="$ac_config_commands depfiles"
3115 am_make=${MAKE-make}
3116 cat > confinc << 'END'
3121 # If we don't find an include directive, just comment out the code.
3122 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3123 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3127 # First try GNU make style include.
3128 echo "include confinc" > confmf
3129 # We grep out `Entering directory' and `Leaving directory'
3130 # messages which can occur if `w' ends up in MAKEFLAGS.
3131 # In particular we don't look at `^make:' because GNU make might
3132 # be invoked under some other name (usually "gmake"), in which
3133 # case it prints its new name instead of `make'.
3134 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141 echo '.include "confinc"' > confmf
3142 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3143 am__include=.include
3150 echo "$as_me:$LINENO: result: $_am_result" >&5
3151 echo "${ECHO_T}$_am_result" >&6
3152 rm -f confinc confmf
3154 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3155 if test "${enable_dependency_tracking+set}" = set; then
3156 enableval="$enable_dependency_tracking"
3159 if test "x$enable_dependency_tracking" != xno; then
3160 am_depcomp="$ac_aux_dir/depcomp"
3165 if test "x$enable_dependency_tracking" != xno; then
3176 depcc="$CC" am_compiler_list=
3178 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3179 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3180 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3184 # We make a subdir and do the tests there. Otherwise we can end up
3185 # making bogus files that we don't know about and never remove. For
3186 # instance it was reported that on HP-UX the gcc test will end up
3187 # making a dummy file named `D' -- because `-MD' means `put the output
3190 # Copy depcomp to subdir because otherwise we won't find it if we're
3191 # using a relative directory.
3192 cp "$am_depcomp" conftest.dir
3194 # We will build objects and dependencies in a subdirectory because
3195 # it helps to detect inapplicable dependency modes. For instance
3196 # both Tru64's cc and ICC support -MD to output dependencies as a
3197 # side effect of compilation, but ICC will put the dependencies in
3198 # the current directory while Tru64 will put them in the object
3202 am_cv_CC_dependencies_compiler_type=none
3203 if test "$am_compiler_list" = ""; then
3204 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3206 for depmode in $am_compiler_list; do
3207 # Setup a source with many dependencies, because some compilers
3208 # like to wrap large dependency lists on column 80 (with \), and
3209 # we should not choose a depcomp mode which is confused by this.
3211 # We need to recreate these files for each test, as the compiler may
3212 # overwrite some of them when testing with obscure command lines.
3213 # This happens at least with the AIX C compiler.
3215 for i in 1 2 3 4 5 6; do
3216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3219 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3223 # after this tag, mechanisms are not by side-effect, so they'll
3224 # only be used when explicitly requested
3225 if test "x$enable_dependency_tracking" = xyes; then
3233 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3234 # mode. It turns out that the SunPro C++ compiler does not properly
3235 # handle `-M -o', and we need to detect this.
3236 if depmode=$depmode \
3237 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3238 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3239 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3240 >/dev/null 2>conftest.err &&
3241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3242 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3244 # icc doesn't choke on unknown options, it will just issue warnings
3245 # (even with -Werror). So we grep stderr for any message
3246 # that says an option was ignored.
3247 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3248 am_cv_CC_dependencies_compiler_type=$depmode
3257 am_cv_CC_dependencies_compiler_type=none
3261 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3262 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3263 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3268 test "x$enable_dependency_tracking" != xno \
3269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271 am__fastdepCC_FALSE='#'
3273 am__fastdepCC_TRUE='#'
3274 am__fastdepCC_FALSE=
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3285 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3286 # On Suns, sometimes $CPP names a directory.
3287 if test -n "$CPP" && test -d "$CPP"; then
3290 if test -z "$CPP"; then
3291 if test "${ac_cv_prog_CPP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 # Double quotes because CPP needs to be expanded
3295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3298 for ac_c_preproc_warn_flag in '' yes
3300 # Use a header file that comes with gcc, so configuring glibc
3301 # with a fresh cross-compiler works.
3302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3303 # <limits.h> exists even on freestanding compilers.
3304 # On the NeXT, cc -E runs the code through the compiler's parser,
3305 # not just through cpp. "Syntax error" is here to catch this case.
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3313 # include <limits.h>
3315 # include <assert.h>
3319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null; then
3327 if test -s conftest.err; then
3328 ac_cpp_err=$ac_c_preproc_warn_flag
3329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336 if test -z "$ac_cpp_err"; then
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Broken: fails on valid input.
3345 rm -f conftest.err conftest.$ac_ext
3347 # OK, works on sane cases. Now check whether non-existent headers
3348 # can be detected and how.
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #include <ac_nonexistent.h>
3357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 grep -v '^ *+' conftest.er1 >conftest.err
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } >/dev/null; then
3365 if test -s conftest.err; then
3366 ac_cpp_err=$ac_c_preproc_warn_flag
3367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3374 if test -z "$ac_cpp_err"; then
3375 # Broken: success on invalid input.
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Passes both tests.
3385 rm -f conftest.err conftest.$ac_ext
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then
3402 echo "$as_me:$LINENO: result: $CPP" >&5
3403 echo "${ECHO_T}$CPP" >&6
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 # include <limits.h>
3422 # include <assert.h>
3426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null; then
3434 if test -s conftest.err; then
3435 ac_cpp_err=$ac_c_preproc_warn_flag
3436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 if test -z "$ac_cpp_err"; then
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Broken: fails on valid input.
3452 rm -f conftest.err conftest.$ac_ext
3454 # OK, works on sane cases. Now check whether non-existent headers
3455 # can be detected and how.
3456 cat >conftest.$ac_ext <<_ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #include <ac_nonexistent.h>
3464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3481 if test -z "$ac_cpp_err"; then
3482 # Broken: success on invalid input.
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Passes both tests.
3492 rm -f conftest.err conftest.$ac_ext
3495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496 rm -f conftest.err conftest.$ac_ext
3497 if $ac_preproc_ok; then
3500 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3501 See \`config.log' for more details." >&5
3502 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3503 See \`config.log' for more details." >&2;}
3504 { (exit 1); exit 1; }; }
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 echo "$as_me:$LINENO: checking for egrep" >&5
3515 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3516 if test "${ac_cv_prog_egrep+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3520 then ac_cv_prog_egrep='grep -E'
3521 else ac_cv_prog_egrep='egrep'
3524 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3525 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3526 EGREP=$ac_cv_prog_egrep
3529 if test $ac_cv_c_compiler_gnu = yes; then
3530 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3531 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3532 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 ac_pattern="Autoconf.*'x'"
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3547 ac_cv_prog_gcc_traditional=yes
3549 ac_cv_prog_gcc_traditional=no
3554 if test $ac_cv_prog_gcc_traditional = no; then
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3566 ac_cv_prog_gcc_traditional=yes
3572 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3573 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3574 if test $ac_cv_prog_gcc_traditional = yes; then
3575 CC="$CC -traditional"
3579 # Find a good install program. We prefer a C program (faster),
3580 # so one script is as good as another. But avoid the broken or
3581 # incompatible versions:
3582 # SysV /etc/install, /usr/sbin/install
3583 # SunOS /usr/etc/install
3584 # IRIX /sbin/install
3586 # AmigaOS /C/install, which installs bootblocks on floppy discs
3587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3590 # OS/2's system install, which has a completely different semantic
3591 # ./install, which can be erroneously created by make from ./install.sh.
3592 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3594 if test -z "$INSTALL"; then
3595 if test "${ac_cv_path_install+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 # Account for people who put trailing slashes in PATH elements.
3605 ./ | .// | /cC/* | \
3606 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3607 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3610 # OSF1 and SCO ODT 3.0 have their own names for install.
3611 # Don't use installbsd from OSF since it installs stuff as root
3613 for ac_prog in ginstall scoinst install; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3616 if test $ac_prog = install &&
3617 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3618 # AIX install. It has an incompatible calling convention.
3620 elif test $ac_prog = install &&
3621 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3622 # program-specific install script used by HP pwplus--don't use.
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3637 if test "${ac_cv_path_install+set}" = set; then
3638 INSTALL=$ac_cv_path_install
3640 # As a last resort, use the slow shell script. We don't cache a
3641 # path for INSTALL within a source directory, because that will
3642 # break other packages using the cache if that directory is
3643 # removed, or if the path is relative.
3644 INSTALL=$ac_install_sh
3647 echo "$as_me:$LINENO: result: $INSTALL" >&5
3648 echo "${ECHO_T}$INSTALL" >&6
3650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3651 # It thinks the first close brace ends the variable substitution.
3652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3658 for ac_prog in gawk mawk nawk awk
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_prog_AWK+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if test -n "$AWK"; then
3668 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_AWK="$ac_prog"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 if test -n "$AWK"; then
3688 echo "$as_me:$LINENO: result: $AWK" >&5
3689 echo "${ECHO_T}$AWK" >&6
3691 echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3695 test -n "$AWK" && break
3698 if test -n "$ac_tool_prefix"; then
3699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_prog_RANLIB+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 if test -n "$RANLIB"; then
3707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 RANLIB=$ac_cv_prog_RANLIB
3726 if test -n "$RANLIB"; then
3727 echo "$as_me:$LINENO: result: $RANLIB" >&5
3728 echo "${ECHO_T}$RANLIB" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3735 if test -z "$ac_cv_prog_RANLIB"; then
3736 ac_ct_RANLIB=$RANLIB
3737 # Extract the first word of "ranlib", so it can be a program name with args.
3738 set dummy ranlib; ac_word=$2
3739 echo "$as_me:$LINENO: checking for $ac_word" >&5
3740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 if test -n "$ac_ct_RANLIB"; then
3745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_ac_ct_RANLIB="ranlib"
3755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3765 if test -n "$ac_ct_RANLIB"; then
3766 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3767 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 RANLIB=$ac_ct_RANLIB
3775 RANLIB="$ac_cv_prog_RANLIB"
3778 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3779 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3781 if test "$LN_S" = "ln -s"; then
3782 echo "$as_me:$LINENO: result: yes" >&5
3783 echo "${ECHO_T}yes" >&6
3785 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3786 echo "${ECHO_T}no, using $LN_S" >&6
3789 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3790 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3791 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3792 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 cat > conftest.$ac_ext <<EOF
3796 int main() {return 0;}
3798 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3799 if test -s conftest.out; then
3800 eval "timidity_cv_ccoption_$ac_ccoption=no"
3802 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3805 eval "timidity_cv_ccoption_$ac_ccoption=no"
3810 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3811 echo "$as_me:$LINENO: result: yes" >&5
3812 echo "${ECHO_T}yes" >&6
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3821 # Checks for target dependencies
3824 # Check whether --with-elf or --without-elf was given.
3825 if test "${with_elf+set}" = set; then
3833 # [ --with-simd create SIMD friendly binary (default is no) ],
3834 # [ SIMD=$withval ], [ SIMD="no" ])
3839 test -n "$SHLD" || SHLD="ld -b"
3843 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3844 test -n "$SHLD" || SHLD="cc -shared -all"
3848 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3853 test -n "$SHLD" || SHLD="ld -Bshareable"
3857 if test "$ELFFORMAT" = yes; then
3858 test -n "$SHLD" || SHLD="ld -Bshareable"
3861 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3862 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3868 # EXTRALIBS="$EXTRALIBS -lxpg4"
3869 # test -n "$SHLD" || SHLD="ld -Bshareable"
3874 EXTRADEFS="-D__W32__"
3877 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3878 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3879 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3880 *) test -n "$SHLD" || SHLD="unknown" ;;
3884 lib_user32_test=-luser32
3887 EXTRADEFS="-D__W32__"
3890 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3891 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3892 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3893 *) test -n "$SHLD" || SHLD="unknown" ;;
3897 lib_user32_test=-luser32
3901 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3905 EXTRADEFS="-DSOLARIS"
3906 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3910 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3914 if test "x$SIMD" = "xyes"; then
3916 cat >>confdefs.h <<\_ACEOF
3917 #define USE_ALTIVEC 1
3920 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3921 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3924 cat >>confdefs.h <<\_ACEOF
3925 #define USE_ALTIVEC 0
3929 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3930 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3931 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3935 test -n "$SHLD" || \
3936 if test "x$GCC" = xyes; then
3939 SHLD="ld -Bdynamic -G"
3946 # Checks for libraries.
3948 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3949 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3950 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 ac_check_lib_save_LIBS=$LIBS
3955 cat >conftest.$ac_ext <<_ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3962 /* Override any gcc2 internal prototype to avoid an error. */
3966 /* We use char because int might match the return type of a gcc2
3967 builtin and then its argument prototype would still apply. */
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979 (eval $ac_link) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_c_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_lib_m_sqrt=yes
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4006 rm -f conftest.err conftest.$ac_objext \
4007 conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_check_lib_save_LIBS
4010 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4011 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4012 if test $ac_cv_lib_m_sqrt = yes; then
4013 cat >>confdefs.h <<_ACEOF
4022 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4023 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4024 if test "${ac_cv_lib_socket_socket+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 ac_check_lib_save_LIBS=$LIBS
4028 LIBS="-lsocket $LIBS"
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4036 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4051 rm -f conftest.$ac_objext conftest$ac_exeext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053 (eval $ac_link) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_c_werror_flag"
4061 || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try='test -s conftest$ac_exeext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 ac_cv_lib_socket_socket=yes
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 ac_cv_lib_socket_socket=no
4080 rm -f conftest.err conftest.$ac_objext \
4081 conftest$ac_exeext conftest.$ac_ext
4082 LIBS=$ac_check_lib_save_LIBS
4084 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4085 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4086 if test $ac_cv_lib_socket_socket = yes; then
4087 cat >>confdefs.h <<_ACEOF
4088 #define HAVE_LIBSOCKET 1
4091 LIBS="-lsocket $LIBS"
4095 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4096 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 ac_check_lib_save_LIBS=$LIBS
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4109 /* Override any gcc2 internal prototype to avoid an error. */
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4124 rm -f conftest.$ac_objext conftest$ac_exeext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4126 (eval $ac_link) 2>conftest.er1
4128 grep -v '^ *+' conftest.er1 >conftest.err
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest$ac_exeext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_lib_dl_dlopen=yes
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_cv_lib_dl_dlopen=no
4153 rm -f conftest.err conftest.$ac_objext \
4154 conftest$ac_exeext conftest.$ac_ext
4155 LIBS=$ac_check_lib_save_LIBS
4157 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4158 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4159 if test $ac_cv_lib_dl_dlopen = yes; then
4163 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4164 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4165 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 ac_check_lib_save_LIBS=$LIBS
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4177 /* Override any gcc2 internal prototype to avoid an error. */
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4183 char NSLinkModule ();
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194 (eval $ac_link) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_lib_objc_NSLinkModule=yes
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_lib_objc_NSLinkModule=no
4221 rm -f conftest.err conftest.$ac_objext \
4222 conftest$ac_exeext conftest.$ac_ext
4223 LIBS=$ac_check_lib_save_LIBS
4225 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4226 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4227 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4230 # Mac OS X need this.
4232 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4233 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4234 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 ac_check_lib_save_LIBS=$LIBS
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4246 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4261 rm -f conftest.$ac_objext conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag"
4271 || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try='test -s conftest$ac_exeext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_lib_xpg4_setlocale=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 ac_cv_lib_xpg4_setlocale=no
4290 rm -f conftest.err conftest.$ac_objext \
4291 conftest$ac_exeext conftest.$ac_ext
4292 LIBS=$ac_check_lib_save_LIBS
4294 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4295 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4296 if test $ac_cv_lib_xpg4_setlocale = yes; then
4297 cat >>confdefs.h <<_ACEOF
4298 #define HAVE_LIBXPG4 1
4304 # Mac OS X (and maybe NetBSD) need this.
4306 for ac_func in gethostbyname
4308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4309 echo "$as_me:$LINENO: checking for $ac_func" >&5
4310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4311 if eval "test \"\${$as_ac_var+set}\" = set"; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4322 #define $ac_func innocuous_$ac_func
4324 /* System header to define __stub macros and hopefully few prototypes,
4325 which can conflict with char $ac_func (); below.
4326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 <limits.h> exists even on freestanding compilers. */
4330 # include <limits.h>
4332 # include <assert.h>
4337 /* Override any gcc2 internal prototype to avoid an error. */
4342 /* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4345 /* The GNU C library defines this for functions which it implements
4346 to always fail with ENOSYS. Some functions are actually named
4347 something starting with __ and the normal name is an alias. */
4348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4351 char (*f) () = $ac_func;
4360 return f != $ac_func;
4365 rm -f conftest.$ac_objext conftest$ac_exeext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367 (eval $ac_link) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest$ac_exeext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 eval "$as_ac_var=yes"
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 eval "$as_ac_var=no"
4394 rm -f conftest.err conftest.$ac_objext \
4395 conftest$ac_exeext conftest.$ac_ext
4397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4399 if test `eval echo '${'$as_ac_var'}'` = yes; then
4400 cat >>confdefs.h <<_ACEOF
4401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4406 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4407 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4408 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 ac_check_lib_save_LIBS=$LIBS
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4420 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4426 char gethostbyname ();
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437 (eval $ac_link) 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag"
4445 || test ! -s conftest.err'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest$ac_exeext'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 ac_cv_lib_nsl_gethostbyname=yes
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 ac_cv_lib_nsl_gethostbyname=no
4464 rm -f conftest.err conftest.$ac_objext \
4465 conftest$ac_exeext conftest.$ac_ext
4466 LIBS=$ac_check_lib_save_LIBS
4468 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4469 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4470 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4471 cat >>confdefs.h <<_ACEOF
4472 #define HAVE_LIBNSL 1
4482 echo "$as_me:$LINENO: checking for X" >&5
4483 echo $ECHO_N "checking for X... $ECHO_C" >&6
4486 # Check whether --with-x or --without-x was given.
4487 if test "${with_x+set}" = set; then
4491 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4492 if test "x$with_x" = xno; then
4493 # The user explicitly disabled X.
4496 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4497 # Both variables are already set.
4500 if test "${ac_cv_have_x+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 # One or both of the vars are not set, and there is no cached value.
4504 ac_x_includes=no ac_x_libraries=no
4506 if mkdir conftest.dir; then
4508 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4509 cat >Imakefile <<'_ACEOF'
4511 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4513 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4515 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4517 for ac_extension in a so sl; do
4518 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4519 test -f $ac_im_libdir/libX11.$ac_extension; then
4520 ac_im_usrlibdir=$ac_im_libdir; break
4523 # Screen out bogus values from the imake configuration. They are
4524 # bogus both because they are the default anyway, and because
4525 # using them would break gcc on systems where it needs fixed includes.
4526 case $ac_im_incroot in
4528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4530 case $ac_im_usrlibdir in
4532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4539 # Standard set of common directories for X headers.
4540 # Check X11 before X11Rn because it is often a symlink to the current release.
4552 /usr/local/X11/include
4553 /usr/local/X11R6/include
4554 /usr/local/X11R5/include
4555 /usr/local/X11R4/include
4557 /usr/local/include/X11
4558 /usr/local/include/X11R6
4559 /usr/local/include/X11R5
4560 /usr/local/include/X11R4
4564 /usr/XFree86/include/X11
4568 /usr/unsupported/include
4570 /usr/local/x11r5/include
4571 /usr/lpp/Xamples/include
4573 /usr/openwin/include
4574 /usr/openwin/share/include'
4576 if test "$ac_x_includes" = no; then
4577 # Guess where to find include files, by looking for Intrinsic.h.
4578 # First, try using that file with no special directory specified.
4579 cat >conftest.$ac_ext <<_ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 #include <X11/Intrinsic.h>
4587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } >/dev/null; then
4595 if test -s conftest.err; then
4596 ac_cpp_err=$ac_c_preproc_warn_flag
4597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4604 if test -z "$ac_cpp_err"; then
4605 # We can compile using X headers with no special include directory.
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 for ac_dir in $ac_x_header_dirs; do
4612 if test -r "$ac_dir/X11/Intrinsic.h"; then
4613 ac_x_includes=$ac_dir
4618 rm -f conftest.err conftest.$ac_ext
4619 fi # $ac_x_includes = no
4621 if test "$ac_x_libraries" = no; then
4622 # Check for the libraries.
4623 # See if we find them without any special options.
4624 # Don't add to $LIBS permanently.
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 #include <X11/Intrinsic.h>
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>conftest.er1
4646 grep -v '^ *+' conftest.er1 >conftest.err
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -z "$ac_c_werror_flag"
4652 || test ! -s conftest.err'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; } &&
4658 { ac_try='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4665 # We can link X programs with no special library path.
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4672 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4674 # Don't even attempt the hair of trying to link an X program!
4675 for ac_extension in a so sl; do
4676 if test -r $ac_dir/libXt.$ac_extension; then
4677 ac_x_libraries=$ac_dir
4683 rm -f conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4685 fi # $ac_x_libraries = no
4687 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4688 # Didn't find X anywhere. Cache the known absence of X.
4689 ac_cv_have_x="have_x=no"
4691 # Record where we found X for the cache.
4692 ac_cv_have_x="have_x=yes \
4693 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4698 eval "$ac_cv_have_x"
4701 if test "$have_x" != yes; then
4702 echo "$as_me:$LINENO: result: $have_x" >&5
4703 echo "${ECHO_T}$have_x" >&6
4706 # If each of the values was on the command line, it overrides each guess.
4707 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4708 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4709 # Update the cache value to reflect the command line values.
4710 ac_cv_have_x="have_x=yes \
4711 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4712 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4713 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4716 if test "$no_x" = yes; then
4717 # Not all programs may use this symbol, but it does not hurt to define it.
4719 cat >>confdefs.h <<\_ACEOF
4720 #define X_DISPLAY_MISSING 1
4723 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4725 if test -n "$x_includes"; then
4726 X_CFLAGS="$X_CFLAGS -I$x_includes"
4729 # It would also be nice to do this for all -L options, not just this one.
4730 if test -n "$x_libraries"; then
4731 X_LIBS="$X_LIBS -L$x_libraries"
4732 # For Solaris; some versions of Sun CC require a space after -R and
4733 # others require no space. Words are not sufficient . . . .
4734 case `(uname -sr) 2>/dev/null` in
4736 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4737 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4738 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest$ac_exeext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4783 rm -f conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4785 if test $ac_R_nospace = yes; then
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 X_LIBS="$X_LIBS -R$x_libraries"
4790 LIBS="$ac_xsave_LIBS -R $x_libraries"
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4806 rm -f conftest.$ac_objext conftest$ac_exeext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4808 (eval $ac_link) 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -z "$ac_c_werror_flag"
4816 || test ! -s conftest.err'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; } &&
4822 { ac_try='test -s conftest$ac_exeext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4835 rm -f conftest.err conftest.$ac_objext \
4836 conftest$ac_exeext conftest.$ac_ext
4837 if test $ac_R_space = yes; then
4838 echo "$as_me:$LINENO: result: yes" >&5
4839 echo "${ECHO_T}yes" >&6
4840 X_LIBS="$X_LIBS -R $x_libraries"
4842 echo "$as_me:$LINENO: result: neither works" >&5
4843 echo "${ECHO_T}neither works" >&6
4850 # Check for system-dependent libraries X programs must link with.
4851 # Do this before checking for the system-independent R6 libraries
4852 # (-lICE), since we may need -lsocket or whatever for X linking.
4854 if test "$ISC" = yes; then
4855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4857 # Martyn Johnson says this is needed for Ultrix, if the X
4858 # libraries were built with DECnet support. And Karl Berry says
4859 # the Alpha needs dnet_stub (dnet does not exist).
4860 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4868 /* Override any gcc2 internal prototype to avoid an error. */
4872 /* We use char because int might match the return type of a gcc2
4873 builtin and then its argument prototype would still apply. */
4874 char XOpenDisplay ();
4883 rm -f conftest.$ac_objext conftest$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest$ac_exeext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4911 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4912 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 ac_check_lib_save_LIBS=$LIBS
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4924 /* Override any gcc2 internal prototype to avoid an error. */
4928 /* We use char because int might match the return type of a gcc2
4929 builtin and then its argument prototype would still apply. */
4939 rm -f conftest.$ac_objext conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>conftest.er1
4943 grep -v '^ *+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest$ac_exeext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_lib_dnet_dnet_ntoa=yes
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 ac_cv_lib_dnet_dnet_ntoa=no
4968 rm -f conftest.err conftest.$ac_objext \
4969 conftest$ac_exeext conftest.$ac_ext
4970 LIBS=$ac_check_lib_save_LIBS
4972 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4973 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4974 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4978 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4979 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4980 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4981 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 ac_check_lib_save_LIBS=$LIBS
4985 LIBS="-ldnet_stub $LIBS"
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 ac_cv_lib_dnet_stub_dnet_ntoa=no
5037 rm -f conftest.err conftest.$ac_objext \
5038 conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5042 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5043 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5044 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5049 rm -f conftest.err conftest.$ac_objext \
5050 conftest$ac_exeext conftest.$ac_ext
5051 LIBS="$ac_xsave_LIBS"
5053 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5054 # to get the SysV transport functions.
5055 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5057 # The nsl library prevents programs from opening the X display
5058 # on Irix 5.2, according to T.E. Dickey.
5059 # The functions gethostbyname, getservbyname, and inet_addr are
5060 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5061 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5062 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5063 if test "${ac_cv_func_gethostbyname+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5074 #define gethostbyname innocuous_gethostbyname
5076 /* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char gethostbyname (); below.
5078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079 <limits.h> exists even on freestanding compilers. */
5082 # include <limits.h>
5084 # include <assert.h>
5087 #undef gethostbyname
5089 /* Override any gcc2 internal prototype to avoid an error. */
5094 /* We use char because int might match the return type of a gcc2
5095 builtin and then its argument prototype would still apply. */
5096 char gethostbyname ();
5097 /* The GNU C library defines this for functions which it implements
5098 to always fail with ENOSYS. Some functions are actually named
5099 something starting with __ and the normal name is an alias. */
5100 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5103 char (*f) () = gethostbyname;
5112 return f != gethostbyname;
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>conftest.er1
5121 grep -v '^ *+' conftest.er1 >conftest.err
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try='test -z "$ac_c_werror_flag"
5127 || test ! -s conftest.err'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; } &&
5133 { ac_try='test -s conftest$ac_exeext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_cv_func_gethostbyname=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 ac_cv_func_gethostbyname=no
5146 rm -f conftest.err conftest.$ac_objext \
5147 conftest$ac_exeext conftest.$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5150 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5152 if test $ac_cv_func_gethostbyname = no; then
5153 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5154 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5155 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 ac_check_lib_save_LIBS=$LIBS
5160 cat >conftest.$ac_ext <<_ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5167 /* Override any gcc2 internal prototype to avoid an error. */
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5173 char gethostbyname ();
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest$ac_exeext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_lib_nsl_gethostbyname=yes
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_cv_lib_nsl_gethostbyname=no
5211 rm -f conftest.err conftest.$ac_objext \
5212 conftest$ac_exeext conftest.$ac_ext
5213 LIBS=$ac_check_lib_save_LIBS
5215 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5216 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5217 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5221 if test $ac_cv_lib_nsl_gethostbyname = no; then
5222 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5223 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5224 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_check_lib_save_LIBS=$LIBS
5229 cat >conftest.$ac_ext <<_ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5236 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5242 char gethostbyname ();
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253 (eval $ac_link) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag"
5261 || test ! -s conftest.err'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest$ac_exeext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_lib_bsd_gethostbyname=yes
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 ac_cv_lib_bsd_gethostbyname=no
5280 rm -f conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5284 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5285 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5286 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5293 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5294 # socket/setsockopt and other routines are undefined under SCO ODT
5295 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5296 # on later versions), says Simon Leinen: it contains gethostby*
5297 # variants that don't use the name server (or something). -lsocket
5298 # must be given before -lnsl if both are needed. We assume that
5299 # if connect needs -lnsl, so does gethostbyname.
5300 echo "$as_me:$LINENO: checking for connect" >&5
5301 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5302 if test "${ac_cv_func_connect+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5313 #define connect innocuous_connect
5315 /* System header to define __stub macros and hopefully few prototypes,
5316 which can conflict with char connect (); below.
5317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5318 <limits.h> exists even on freestanding compilers. */
5321 # include <limits.h>
5323 # include <assert.h>
5328 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5336 /* The GNU C library defines this for functions which it implements
5337 to always fail with ENOSYS. Some functions are actually named
5338 something starting with __ and the normal name is an alias. */
5339 #if defined (__stub_connect) || defined (__stub___connect)
5342 char (*f) () = connect;
5351 return f != connect;
5356 rm -f conftest.$ac_objext conftest$ac_exeext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5358 (eval $ac_link) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest$ac_exeext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_func_connect=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_cv_func_connect=no
5385 rm -f conftest.err conftest.$ac_objext \
5386 conftest$ac_exeext conftest.$ac_ext
5388 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5389 echo "${ECHO_T}$ac_cv_func_connect" >&6
5391 if test $ac_cv_func_connect = no; then
5392 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5393 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5394 if test "${ac_cv_lib_socket_connect+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5406 /* Override any gcc2 internal prototype to avoid an error. */
5410 /* We use char because int might match the return type of a gcc2
5411 builtin and then its argument prototype would still apply. */
5421 rm -f conftest.$ac_objext conftest$ac_exeext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5423 (eval $ac_link) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest$ac_exeext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_cv_lib_socket_connect=yes
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_cv_lib_socket_connect=no
5450 rm -f conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5452 LIBS=$ac_check_lib_save_LIBS
5454 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5455 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5456 if test $ac_cv_lib_socket_connect = yes; then
5457 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5462 # Guillermo Gomez says -lposix is necessary on A/UX.
5463 echo "$as_me:$LINENO: checking for remove" >&5
5464 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5465 if test "${ac_cv_func_remove+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5476 #define remove innocuous_remove
5478 /* System header to define __stub macros and hopefully few prototypes,
5479 which can conflict with char remove (); below.
5480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5481 <limits.h> exists even on freestanding compilers. */
5484 # include <limits.h>
5486 # include <assert.h>
5491 /* Override any gcc2 internal prototype to avoid an error. */
5496 /* We use char because int might match the return type of a gcc2
5497 builtin and then its argument prototype would still apply. */
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_remove) || defined (__stub___remove)
5505 char (*f) () = remove;
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_c_werror_flag"
5529 || test ! -s conftest.err'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; } &&
5535 { ac_try='test -s conftest$ac_exeext'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; }; then
5541 ac_cv_func_remove=yes
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5546 ac_cv_func_remove=no
5548 rm -f conftest.err conftest.$ac_objext \
5549 conftest$ac_exeext conftest.$ac_ext
5551 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5552 echo "${ECHO_T}$ac_cv_func_remove" >&6
5554 if test $ac_cv_func_remove = no; then
5555 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5556 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5557 if test "${ac_cv_lib_posix_remove+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lposix $LIBS"
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5569 /* Override any gcc2 internal prototype to avoid an error. */
5573 /* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5584 rm -f conftest.$ac_objext conftest$ac_exeext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586 (eval $ac_link) 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -z "$ac_c_werror_flag"
5594 || test ! -s conftest.err'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; } &&
5600 { ac_try='test -s conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_lib_posix_remove=yes
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 ac_cv_lib_posix_remove=no
5613 rm -f conftest.err conftest.$ac_objext \
5614 conftest$ac_exeext conftest.$ac_ext
5615 LIBS=$ac_check_lib_save_LIBS
5617 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5618 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5619 if test $ac_cv_lib_posix_remove = yes; then
5620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5625 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5626 echo "$as_me:$LINENO: checking for shmat" >&5
5627 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5628 if test "${ac_cv_func_shmat+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5639 #define shmat innocuous_shmat
5641 /* System header to define __stub macros and hopefully few prototypes,
5642 which can conflict with char shmat (); below.
5643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5644 <limits.h> exists even on freestanding compilers. */
5647 # include <limits.h>
5649 # include <assert.h>
5654 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5662 /* The GNU C library defines this for functions which it implements
5663 to always fail with ENOSYS. Some functions are actually named
5664 something starting with __ and the normal name is an alias. */
5665 #if defined (__stub_shmat) || defined (__stub___shmat)
5668 char (*f) () = shmat;
5682 rm -f conftest.$ac_objext conftest$ac_exeext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5684 (eval $ac_link) 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } &&
5691 { ac_try='test -z "$ac_c_werror_flag"
5692 || test ! -s conftest.err'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; } &&
5698 { ac_try='test -s conftest$ac_exeext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 ac_cv_func_shmat=yes
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5714 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5715 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5717 if test $ac_cv_func_shmat = no; then
5718 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5719 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5720 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 ac_check_lib_save_LIBS=$LIBS
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5732 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5747 rm -f conftest.$ac_objext conftest$ac_exeext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749 (eval $ac_link) 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try='test -z "$ac_c_werror_flag"
5757 || test ! -s conftest.err'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; } &&
5763 { ac_try='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_lib_ipc_shmat=yes
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 ac_cv_lib_ipc_shmat=no
5776 rm -f conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5778 LIBS=$ac_check_lib_save_LIBS
5780 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5781 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5782 if test $ac_cv_lib_ipc_shmat = yes; then
5783 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5789 # Check for libraries that X11R6 Xt/Xaw programs need.
5790 ac_save_LDFLAGS=$LDFLAGS
5791 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5792 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5793 # check for ICE first), but we must link in the order -lSM -lICE or
5794 # we get undefined symbols. So assume we have SM if we have ICE.
5795 # These have to be linked with before -lX11, unlike the other
5796 # libraries we check for below, so use a different variable.
5797 # John Interrante, Karl Berry
5798 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5799 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5800 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 ac_check_lib_save_LIBS=$LIBS
5804 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5812 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5818 char IceConnectionNumber ();
5822 IceConnectionNumber ();
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 ac_cv_lib_ICE_IceConnectionNumber=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_cv_lib_ICE_IceConnectionNumber=no
5856 rm -f conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5861 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5862 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5863 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5866 LDFLAGS=$ac_save_LDFLAGS
5872 if test "x$with_x" = xyes; then
5873 if test "x$have_x" = xno; then
5874 if test "x$x_config_flag" = xyes; then
5875 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5876 echo "$as_me: error: Could not configure X" >&2;}
5877 { (exit 1); exit 1; }; }
5879 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5880 echo "$as_me: WARNING: Could not configure X" >&2;}
5884 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5885 if test "x$x_libraries" != x; then
5886 ldflags_x_opt="-L$x_libraries"
5887 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5888 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5892 if test "x$x_includes" != x; then
5893 CPPFLAGS="$CPPFLAGS -I$x_includes"
5897 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5898 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5899 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 ac_check_lib_save_LIBS=$LIBS
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5911 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5917 char XOpenDisplay ();
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest$ac_exeext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_cv_lib_X11_XOpenDisplay=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_cv_lib_X11_XOpenDisplay=no
5955 rm -f conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 LIBS=$ac_check_lib_save_LIBS
5959 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5960 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5961 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5962 cat >>confdefs.h <<_ACEOF
5963 #define HAVE_LIBX11 1
5970 echo "$as_me:$LINENO: checking X11 version 6" >&5
5971 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5972 if test "${timidity_cv_x11_version_6+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <X11/Xlib.h>
5986 #if XlibSpecificationRelease < 6
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>conftest.er1
5998 grep -v '^ *+' conftest.er1 >conftest.err
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest$ac_exeext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 timidity_cv_x11_version_6=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 timidity_cv_x11_version_6=no
6023 rm -f conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6027 if test "$timidity_cv_x11_version_6" = "yes"; then
6028 echo "$as_me:$LINENO: result: 6 or newer" >&5
6029 echo "${ECHO_T}6 or newer" >&6
6031 echo "$as_me:$LINENO: result: before 6" >&5
6032 echo "${ECHO_T}before 6" >&6
6036 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6037 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6038 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 ac_check_lib_save_LIBS=$LIBS
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6050 /* Override any gcc2 internal prototype to avoid an error. */
6054 /* We use char because int might match the return type of a gcc2
6055 builtin and then its argument prototype would still apply. */
6056 char XShapeCombineMask ();
6060 XShapeCombineMask ();
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>conftest.er1
6069 grep -v '^ *+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_lib_Xext_XShapeCombineMask=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_lib_Xext_XShapeCombineMask=no
6094 rm -f conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6096 LIBS=$ac_check_lib_save_LIBS
6098 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6099 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6100 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6101 have_xext=yes; LIBS="-lXext $LIBS"
6107 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6108 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6109 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_check_lib_save_LIBS=$LIBS
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6121 /* Override any gcc2 internal prototype to avoid an error. */
6125 /* We use char because int might match the return type of a gcc2
6126 builtin and then its argument prototype would still apply. */
6127 char IceConnectionNumber ();
6131 IceConnectionNumber ();
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_lib_ICE_IceConnectionNumber=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ac_cv_lib_ICE_IceConnectionNumber=no
6165 rm -f conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6167 LIBS=$ac_check_lib_save_LIBS
6169 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6170 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6171 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6172 cat >>confdefs.h <<_ACEOF
6173 #define HAVE_LIBICE 1
6180 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6181 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6182 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_check_lib_save_LIBS=$LIBS
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6194 /* Override any gcc2 internal prototype to avoid an error. */
6198 /* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6200 char SmcOpenConnection ();
6204 SmcOpenConnection ();
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211 (eval $ac_link) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest$ac_exeext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_lib_SM_SmcOpenConnection=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 ac_cv_lib_SM_SmcOpenConnection=no
6238 rm -f conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6240 LIBS=$ac_check_lib_save_LIBS
6242 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6243 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6244 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6245 have_xprelibs=yes; LIBS="-lSM $LIBS"
6250 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6251 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6252 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 ac_check_lib_save_LIBS=$LIBS
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6264 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6270 char XtVaAppInitialize ();
6274 XtVaAppInitialize ();
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_lib_Xt_XtVaAppInitialize=yes
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 ac_cv_lib_Xt_XtVaAppInitialize=no
6308 rm -f conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6312 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6313 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6314 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6315 have_xt=yes; LIBS="-lXt $LIBS"
6320 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6321 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6322 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 ac_check_lib_save_LIBS=$LIBS
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6340 char XmuInternAtom ();
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351 (eval $ac_link) 2>conftest.er1
6353 grep -v '^ *+' conftest.er1 >conftest.err
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -z "$ac_c_werror_flag"
6359 || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_lib_Xmu_XmuInternAtom=yes
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_lib_Xmu_XmuInternAtom=no
6378 rm -f conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6382 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6383 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6384 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6389 for ac_func in XmuRegisterExternalAgent
6391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6392 echo "$as_me:$LINENO: checking for $ac_func" >&5
6393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_var+set}\" = set"; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 cat >conftest.$ac_ext <<_ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6405 #define $ac_func innocuous_$ac_func
6407 /* System header to define __stub macros and hopefully few prototypes,
6408 which can conflict with char $ac_func (); below.
6409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6410 <limits.h> exists even on freestanding compilers. */
6413 # include <limits.h>
6415 # include <assert.h>
6420 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6428 /* The GNU C library defines this for functions which it implements
6429 to always fail with ENOSYS. Some functions are actually named
6430 something starting with __ and the normal name is an alias. */
6431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6434 char (*f) () = $ac_func;
6443 return f != $ac_func;
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450 (eval $ac_link) 2>conftest.er1
6452 grep -v '^ *+' conftest.er1 >conftest.err
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -z "$ac_c_werror_flag"
6458 || test ! -s conftest.err'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 eval "$as_ac_var=yes"
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 eval "$as_ac_var=no"
6477 rm -f conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6482 if test `eval echo '${'$as_ac_var'}'` = yes; then
6483 cat >>confdefs.h <<_ACEOF
6484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6490 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6491 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6492 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lXaw3d $LIBS"
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6508 /* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6510 char XawInitializeWidgetSet ();
6514 XawInitializeWidgetSet ();
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1 >conftest.err
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6548 rm -f conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6552 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6553 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6554 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6557 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6558 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6559 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 ac_check_lib_save_LIBS=$LIBS
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6571 /* Override any gcc2 internal prototype to avoid an error. */
6575 /* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6577 char XawInitializeWidgetSet ();
6581 XawInitializeWidgetSet ();
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6615 rm -f conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6620 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6621 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6629 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6630 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6631 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_check_lib_save_LIBS=$LIBS
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6643 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6649 char XmCreateForm ();
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660 (eval $ac_link) 2>conftest.er1
6662 grep -v '^ *+' conftest.er1 >conftest.err
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -z "$ac_c_werror_flag"
6668 || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try='test -s conftest$ac_exeext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_cv_lib_Xm_XmCreateForm=yes
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 ac_cv_lib_Xm_XmCreateForm=no
6687 rm -f conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext
6689 LIBS=$ac_check_lib_save_LIBS
6691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6692 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6693 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6700 for ac_func in XShmCreatePixmap
6702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 echo "$as_me:$LINENO: checking for $ac_func" >&5
6704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6705 if eval "test \"\${$as_ac_var+set}\" = set"; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6716 #define $ac_func innocuous_$ac_func
6718 /* System header to define __stub macros and hopefully few prototypes,
6719 which can conflict with char $ac_func (); below.
6720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721 <limits.h> exists even on freestanding compilers. */
6724 # include <limits.h>
6726 # include <assert.h>
6731 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6739 /* The GNU C library defines this for functions which it implements
6740 to always fail with ENOSYS. Some functions are actually named
6741 something starting with __ and the normal name is an alias. */
6742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6745 char (*f) () = $ac_func;
6754 return f != $ac_func;
6759 rm -f conftest.$ac_objext conftest$ac_exeext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761 (eval $ac_link) 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -z "$ac_c_werror_flag"
6769 || test ! -s conftest.err'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 eval "$as_ac_var=yes"
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 eval "$as_ac_var=no"
6788 rm -f conftest.err conftest.$ac_objext \
6789 conftest$ac_exeext conftest.$ac_ext
6791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6793 if test `eval echo '${'$as_ac_var'}'` = yes; then
6794 cat >>confdefs.h <<_ACEOF
6795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6804 # Checks for header files.
6805 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6807 if test "${ac_cv_header_stdc+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_header_stdc=yes
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_cv_header_stdc=no
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860 if test $ac_cv_header_stdc = yes; then
6861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872 $EGREP "memchr" >/dev/null 2>&1; then
6875 ac_cv_header_stdc=no
6881 if test $ac_cv_header_stdc = yes; then
6882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 $EGREP "free" >/dev/null 2>&1; then
6896 ac_cv_header_stdc=no
6902 if test $ac_cv_header_stdc = yes; then
6903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6904 if test "$cross_compiling" = yes; then
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6914 #if ((' ' & 0x0FF) == 0x020)
6915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 # define ISLOWER(c) \
6919 (('a' <= (c) && (c) <= 'i') \
6920 || ('j' <= (c) && (c) <= 'r') \
6921 || ('s' <= (c) && (c) <= 'z'))
6922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6930 for (i = 0; i < 256; i++)
6931 if (XOR (islower (i), ISLOWER (i))
6932 || toupper (i) != TOUPPER (i))
6937 rm -f conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939 (eval $ac_link) 2>&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6950 echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_header_stdc=no
6957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6961 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6962 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6963 if test $ac_cv_header_stdc = yes; then
6965 cat >>confdefs.h <<\_ACEOF
6966 #define STDC_HEADERS 1
6971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6982 inttypes.h stdint.h unistd.h
6984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 echo "$as_me:$LINENO: checking for $ac_header" >&5
6986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 $ac_includes_default
6998 #include <$ac_header>
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1 >conftest.err
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 eval "$as_ac_Header=yes"
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 eval "$as_ac_Header=no"
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7034 cat >>confdefs.h <<_ACEOF
7035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7043 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7044 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7045 if test "${ac_cv_header_stdbool_h+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7055 #include <stdbool.h>
7057 # error bool is not defined
7060 # error false is not defined
7063 # error false is not 0
7066 # error true is not defined
7069 # error true is not 1
7071 #ifndef __bool_true_false_are_defined
7072 # error __bool_true_false_are_defined is not defined
7075 struct s { _Bool s: 1; _Bool t; } s;
7077 char a[true == 1 ? 1 : -1];
7078 char b[false == 0 ? 1 : -1];
7079 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7080 char d[(bool) -0.5 == true ? 1 : -1];
7082 char f[(_Bool) -0.0 == false ? 1 : -1];
7084 char h[sizeof (_Bool)];
7090 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7095 rm -f conftest.$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>conftest.er1
7099 grep -v '^ *+' conftest.er1 >conftest.err
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -z "$ac_c_werror_flag"
7105 || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try='test -s conftest.$ac_objext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_header_stdbool_h=yes
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 ac_cv_header_stdbool_h=no
7124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7127 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7128 echo "$as_me:$LINENO: checking for _Bool" >&5
7129 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7130 if test "${ac_cv_type__Bool+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 cat >conftest.$ac_ext <<_ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 $ac_includes_default
7151 rm -f conftest.$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7155 grep -v '^ *+' conftest.er1 >conftest.err
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag"
7161 || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_cv_type__Bool=yes
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7182 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7183 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7184 if test $ac_cv_type__Bool = yes; then
7186 cat >>confdefs.h <<_ACEOF
7187 #define HAVE__BOOL 1
7193 if test $ac_cv_header_stdbool_h = yes; then
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_STDBOOL_H 1
7201 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7202 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7203 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 cat >conftest.$ac_ext <<_ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <sys/types.h>
7213 #include <sys/wait.h>
7215 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7218 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7226 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7231 rm -f conftest.$ac_objext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233 (eval $ac_compile) 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag"
7241 || test ! -s conftest.err'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; } &&
7247 { ac_try='test -s conftest.$ac_objext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_cv_header_sys_wait_h=yes
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 ac_cv_header_sys_wait_h=no
7260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7264 if test $ac_cv_header_sys_wait_h = yes; then
7266 cat >>confdefs.h <<\_ACEOF
7267 #define HAVE_SYS_WAIT_H 1
7272 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7273 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7274 if test "${ac_cv_header_time+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 #include <sys/types.h>
7284 #include <sys/time.h>
7290 if ((struct tm *) 0)
7296 rm -f conftest.$ac_objext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7298 (eval $ac_compile) 2>conftest.er1
7300 grep -v '^ *+' conftest.er1 >conftest.err
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -z "$ac_c_werror_flag"
7306 || test ! -s conftest.err'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; } &&
7312 { ac_try='test -s conftest.$ac_objext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_cv_header_time=yes
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 ac_cv_header_time=no
7325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7328 echo "${ECHO_T}$ac_cv_header_time" >&6
7329 if test $ac_cv_header_time = yes; then
7331 cat >>confdefs.h <<\_ACEOF
7332 #define TIME_WITH_SYS_TIME 1
7343 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7344 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7345 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7346 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 cat >conftest.$ac_ext <<_ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #include <sys/types.h>
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>conftest.er1
7372 grep -v '^ *+' conftest.er1 >conftest.err
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_c_werror_flag"
7378 || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 eval "$as_ac_Header=yes"
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 eval "$as_ac_Header=no"
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402 cat >>confdefs.h <<_ACEOF
7403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7406 ac_header_dirent=$ac_hdr; break
7410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7411 if test $ac_header_dirent = dirent.h; then
7412 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7413 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7414 if test "${ac_cv_search_opendir+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 ac_func_search_save_LIBS=$LIBS
7418 ac_cv_search_opendir=no
7419 cat >conftest.$ac_ext <<_ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7426 /* Override any gcc2 internal prototype to avoid an error. */
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest$ac_exeext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_search_opendir="none required"
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7469 rm -f conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 if test "$ac_cv_search_opendir" = no; then
7472 for ac_lib in dir; do
7473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7481 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7496 rm -f conftest.$ac_objext conftest$ac_exeext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7498 (eval $ac_link) 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } &&
7505 { ac_try='test -z "$ac_c_werror_flag"
7506 || test ! -s conftest.err'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7518 ac_cv_search_opendir="-l$ac_lib"
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7525 rm -f conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7529 LIBS=$ac_func_search_save_LIBS
7531 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7532 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7533 if test "$ac_cv_search_opendir" != no; then
7534 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7539 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7540 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7541 if test "${ac_cv_search_opendir+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_func_search_save_LIBS=$LIBS
7545 ac_cv_search_opendir=no
7546 cat >conftest.$ac_ext <<_ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7553 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7568 rm -f conftest.$ac_objext conftest$ac_exeext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>conftest.er1
7572 grep -v '^ *+' conftest.er1 >conftest.err
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try='test -z "$ac_c_werror_flag"
7578 || test ! -s conftest.err'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; } &&
7584 { ac_try='test -s conftest$ac_exeext'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 ac_cv_search_opendir="none required"
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7596 rm -f conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 if test "$ac_cv_search_opendir" = no; then
7600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7608 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7623 rm -f conftest.$ac_objext conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625 (eval $ac_link) 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -z "$ac_c_werror_flag"
7633 || test ! -s conftest.err'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_search_opendir="-l$ac_lib"
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7652 rm -f conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7656 LIBS=$ac_func_search_save_LIBS
7658 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7659 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7660 if test "$ac_cv_search_opendir" != no; then
7661 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747 echo "$as_me:$LINENO: checking for $ac_header" >&5
7748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7755 # Is the header compilable?
7756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 $ac_includes_default
7765 #include <$ac_header>
7767 rm -f conftest.$ac_objext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>conftest.er1
7771 grep -v '^ *+' conftest.er1 >conftest.err
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -z "$ac_c_werror_flag"
7777 || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_header_compiler=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_header_compiler=no
7796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7798 echo "${ECHO_T}$ac_header_compiler" >&6
7800 # Is the header present?
7801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 #include <$ac_header>
7811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } >/dev/null; then
7819 if test -s conftest.err; then
7820 ac_cpp_err=$ac_c_preproc_warn_flag
7821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7828 if test -z "$ac_cpp_err"; then
7829 ac_header_preproc=yes
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ac_header_preproc=no
7836 rm -f conftest.err conftest.$ac_ext
7837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7838 echo "${ECHO_T}$ac_header_preproc" >&6
7840 # So? What about this header?
7841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7847 ac_header_preproc=yes
7850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7864 ## ------------------------------- ##
7865 ## Report this to root@mput.dip.jp ##
7866 ## ------------------------------- ##
7869 sed "s/^/$as_me: WARNING: /" >&2
7872 echo "$as_me:$LINENO: checking for $ac_header" >&5
7873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 eval "$as_ac_Header=\$ac_header_preproc"
7879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7884 cat >>confdefs.h <<_ACEOF
7885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7895 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7898 echo "$as_me:$LINENO: checking for $ac_header" >&5
7899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 #ifdef HAVE_X11_XLIB_H
7911 #include <X11/Xlib.h>
7915 #include <$ac_header>
7917 rm -f conftest.$ac_objext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919 (eval $ac_compile) 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 eval "$as_ac_Header=yes"
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 eval "$as_ac_Header=no"
7946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951 cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7959 if test "${ac_cv_header_string_h+set}" = set; then
7960 echo "$as_me:$LINENO: checking for string.h" >&5
7961 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7962 if test "${ac_cv_header_string_h+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7966 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7968 # Is the header compilable?
7969 echo "$as_me:$LINENO: checking string.h usability" >&5
7970 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977 $ac_includes_default
7980 rm -f conftest.$ac_objext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982 (eval $ac_compile) 2>conftest.er1
7984 grep -v '^ *+' conftest.er1 >conftest.err
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try='test -z "$ac_c_werror_flag"
7990 || test ! -s conftest.err'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; } &&
7996 { ac_try='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_header_compiler=yes
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 ac_header_compiler=no
8009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8011 echo "${ECHO_T}$ac_header_compiler" >&6
8013 # Is the header present?
8014 echo "$as_me:$LINENO: checking string.h presence" >&5
8015 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8027 grep -v '^ *+' conftest.er1 >conftest.err
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } >/dev/null; then
8032 if test -s conftest.err; then
8033 ac_cpp_err=$ac_c_preproc_warn_flag
8034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8041 if test -z "$ac_cpp_err"; then
8042 ac_header_preproc=yes
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 ac_header_preproc=no
8049 rm -f conftest.err conftest.$ac_ext
8050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8051 echo "${ECHO_T}$ac_header_preproc" >&6
8053 # So? What about this header?
8054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8056 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8057 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8059 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8060 ac_header_preproc=yes
8063 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8064 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8065 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8066 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8068 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8070 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8072 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8074 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8077 ## ------------------------------- ##
8078 ## Report this to root@mput.dip.jp ##
8079 ## ------------------------------- ##
8082 sed "s/^/$as_me: WARNING: /" >&2
8085 echo "$as_me:$LINENO: checking for string.h" >&5
8086 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8087 if test "${ac_cv_header_string_h+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 ac_cv_header_string_h=$ac_header_preproc
8092 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8093 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8096 if test $ac_cv_header_string_h = yes; then
8100 cat >>confdefs.h <<\_ACEOF
8101 #define NO_STRING_H 1
8108 # Checks for typedefs, structures, and compiler characteristics.
8109 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8110 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8111 if test "${ac_cv_c_bigendian+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 # See if sys/param.h defines the BYTE_ORDER macro.
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 #include <sys/types.h>
8122 #include <sys/param.h>
8127 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag"
8145 || test ! -s conftest.err'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; } &&
8151 { ac_try='test -s conftest.$ac_objext'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 # It does; now see whether it defined to BIG_ENDIAN or not.
8158 cat >conftest.$ac_ext <<_ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <sys/types.h>
8165 #include <sys/param.h>
8170 #if BYTE_ORDER != BIG_ENDIAN
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_cv_c_bigendian=yes
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 ac_cv_c_bigendian=no
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 # It does not; compile a test program.
8213 if test "$cross_compiling" = yes; then
8214 # try to guess the endianness by grepping values into an object file
8215 ac_cv_c_bigendian=unknown
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8223 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8224 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8225 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8226 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8227 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8231 _ascii (); _ebcdic ();
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8259 ac_cv_c_bigendian=yes
8261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8262 if test "$ac_cv_c_bigendian" = unknown; then
8263 ac_cv_c_bigendian=no
8265 # finding both strings is unlikely to happen, but who knows?
8266 ac_cv_c_bigendian=unknown
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 cat >conftest.$ac_ext <<_ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8285 /* Are we little or big endian? From Harbison&Steele. */
8289 char c[sizeof (long)];
8292 exit (u.c[sizeof (long) - 1] == 1);
8295 rm -f conftest$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_c_bigendian=no
8308 echo "$as_me: program exited with status $ac_status" >&5
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_cv_c_bigendian=yes
8315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8321 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8322 case $ac_cv_c_bigendian in
8325 cat >>confdefs.h <<\_ACEOF
8326 #define WORDS_BIGENDIAN 1
8332 { { echo "$as_me:$LINENO: error: unknown endianness
8333 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8334 echo "$as_me: error: unknown endianness
8335 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8336 { (exit 1); exit 1; }; } ;;
8340 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8341 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8342 if test "${ac_cv_c_char_unsigned+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $ac_includes_default
8355 static int test_array [1 - 2 * !(((char) -1) < 0)];
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_cv_c_char_unsigned=no
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 ac_cv_c_char_unsigned=yes
8391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8393 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8394 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8395 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8396 cat >>confdefs.h <<\_ACEOF
8397 #define __CHAR_UNSIGNED__ 1
8402 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8403 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8404 if test "${ac_cv_c_const+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8417 /* FIXME: Include the comments suggested by Paul. */
8419 /* Ultrix mips cc rejects this. */
8420 typedef int charset[2];
8422 /* SunOS 4.1.1 cc rejects this. */
8423 char const *const *ccp;
8425 /* NEC SVR4.0.2 mips cc rejects this. */
8426 struct point {int x, y;};
8427 static struct point const zero = {0,0};
8428 /* AIX XL C 1.02.0.0 rejects this.
8429 It does not let you subtract one const X* pointer from another in
8430 an arm of an if-expression whose if-part is not a constant
8432 const char *g = "string";
8433 ccp = &g + (g ? g-g : 0);
8434 /* HPUX 7.0 cc rejects these. */
8437 ccp = (char const *const *) p;
8438 { /* SCO 3.2v4 cc rejects this. */
8440 char const *s = 0 ? (char *) 0 : (char const *) 0;
8444 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8446 const int *foo = &x[0];
8449 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8450 typedef const int *iptr;
8454 { /* AIX XL C 1.02.0.0 rejects this saying
8455 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8456 struct s { int j; const int *ap[3]; };
8457 struct s *b; b->j = 5;
8459 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8499 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8500 echo "${ECHO_T}$ac_cv_c_const" >&6
8501 if test $ac_cv_c_const = no; then
8503 cat >>confdefs.h <<\_ACEOF
8509 echo "$as_me:$LINENO: checking for inline" >&5
8510 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8511 if test "${ac_cv_c_inline+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 for ac_kw in inline __inline__ __inline; do
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8524 static $ac_kw foo_t static_foo () {return 0; }
8525 $ac_kw foo_t foo () {return 0; }
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_c_inline=$ac_kw; break
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8562 echo "${ECHO_T}$ac_cv_c_inline" >&6
8565 case $ac_cv_c_inline in
8568 case $ac_cv_c_inline in
8570 *) ac_val=$ac_cv_c_inline;;
8572 cat >>confdefs.h <<_ACEOF
8574 #define inline $ac_val
8580 echo "$as_me:$LINENO: checking for working volatile" >&5
8581 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8582 if test "${ac_cv_c_volatile+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag"
8612 || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_c_volatile=yes
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8634 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8635 if test $ac_cv_c_volatile = no; then
8637 cat >>confdefs.h <<\_ACEOF
8643 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8644 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8645 if test "${ac_cv_c_stringize+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8656 char *s = x(teststring);
8658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8659 $EGREP "#teststring" >/dev/null 2>&1; then
8660 ac_cv_c_stringize=no
8662 ac_cv_c_stringize=yes
8667 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8668 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8669 if test $ac_cv_c_stringize = yes; then
8671 cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_STRINGIZE 1
8677 echo "$as_me:$LINENO: checking for function prototypes" >&5
8678 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8679 if test "$ac_cv_prog_cc_stdc" != no; then
8680 echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8683 cat >>confdefs.h <<\_ACEOF
8684 #define PROTOTYPES 1
8688 cat >>confdefs.h <<\_ACEOF
8689 #define __PROTOTYPES 1
8693 echo "$as_me:$LINENO: result: no" >&5
8694 echo "${ECHO_T}no" >&6
8697 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8698 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8699 if test "${ac_cv_struct_tm+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 #include <sys/types.h>
8714 struct tm *tp; tp->tm_sec;
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_struct_tm=time.h
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_cv_struct_tm=sys/time.h
8748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8751 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8752 if test $ac_cv_struct_tm = sys/time.h; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define TM_IN_SYS_TIME 1
8760 echo "$as_me:$LINENO: checking for size_t" >&5
8761 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8762 if test "${ac_cv_type_size_t+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 $ac_includes_default
8777 if (sizeof (size_t))
8783 rm -f conftest.$ac_objext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785 (eval $ac_compile) 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag"
8793 || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest.$ac_objext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_cv_type_size_t=yes
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_cv_type_size_t=no
8812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8814 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8815 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8816 if test $ac_cv_type_size_t = yes; then
8820 cat >>confdefs.h <<_ACEOF
8821 #define size_t unsigned
8826 echo "$as_me:$LINENO: checking for off_t" >&5
8827 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8828 if test "${ac_cv_type_off_t+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 $ac_includes_default
8849 rm -f conftest.$ac_objext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag"
8859 || test ! -s conftest.err'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_type_off_t=yes
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8881 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8882 if test $ac_cv_type_off_t = yes; then
8886 cat >>confdefs.h <<_ACEOF
8892 echo "$as_me:$LINENO: checking for pid_t" >&5
8893 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8894 if test "${ac_cv_type_pid_t+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 cat >conftest.$ac_ext <<_ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 $ac_includes_default
8915 rm -f conftest.$ac_objext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917 (eval $ac_compile) 2>conftest.er1
8919 grep -v '^ *+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag"
8925 || test ! -s conftest.err'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 ac_cv_type_pid_t=yes
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8947 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8948 if test $ac_cv_type_pid_t = yes; then
8952 cat >>confdefs.h <<_ACEOF
8959 echo "$as_me:$LINENO: checking volatile declaration" >&5
8960 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8961 if test "${timidity_cv_type_volatile+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -z "$ac_c_werror_flag"
8989 || test ! -s conftest.err'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest.$ac_objext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 timidity_cv_type_volatile=yes
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 timidity_cv_type_volatile=no
9008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9011 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9012 if test $timidity_cv_type_volatile = no; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define NO_VOLATILE 1
9020 echo "$as_me:$LINENO: checking union semun declaration" >&5
9021 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9022 if test "${timidity_cv_type_union_semun+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9032 #include <sys/types.h>
9033 #include <sys/ipc.h>
9034 #include <sys/sem.h>
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 timidity_cv_type_union_semun=yes
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 timidity_cv_type_union_semun=no
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9076 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9077 if test $timidity_cv_type_union_semun = yes; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNION_SEMUN 1
9085 if test "x$CYGNUS" = xyes; then
9086 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9087 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9088 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9098 #include <windows.h>
9099 #include <mmsystem.h>
9104 return WOM_OPEN != 0x3BB
9109 rm -f conftest.$ac_objext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111 (eval $ac_compile) 2>conftest.er1
9113 grep -v '^ *+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 timidity_cv_header_new_mmsystem=yes
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 timidity_cv_header_new_mmsystem=no
9138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9141 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9142 if test $timidity_cv_header_new_mmsystem = yes; then
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_NEW_MMSYSTEM 1
9151 if test "x$MINGW" = xyes; then
9152 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9153 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9154 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9164 #include <windows.h>
9165 #include <mmsystem.h>
9170 return WOM_OPEN != 0x3BB
9175 rm -f conftest.$ac_objext
9176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177 (eval $ac_compile) 2>conftest.er1
9179 grep -v '^ *+' conftest.er1 >conftest.err
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } &&
9184 { ac_try='test -z "$ac_c_werror_flag"
9185 || test ! -s conftest.err'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try='test -s conftest.$ac_objext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 timidity_cv_header_new_mmsystem=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 timidity_cv_header_new_mmsystem=no
9204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9207 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9208 if test $timidity_cv_header_new_mmsystem = yes; then
9210 cat >>confdefs.h <<\_ACEOF
9211 #define HAVE_NEW_MMSYSTEM 1
9217 # Checks for library functions.
9218 echo "$as_me:$LINENO: checking for error_at_line" >&5
9219 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9220 if test "${ac_cv_lib_error_at_line+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9233 error_at_line (0, 0, "", 0, "");
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest$ac_exeext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_lib_error_at_line=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_cv_lib_error_at_line=no
9267 rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9270 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9271 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9272 if test $ac_cv_lib_error_at_line = no; then
9274 "error.$ac_objext" | \
9275 *" error.$ac_objext" | \
9276 "error.$ac_objext "* | \
9277 *" error.$ac_objext "* ) ;;
9278 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9285 for ac_header in unistd.h vfork.h
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306 $ac_includes_default
9307 #include <$ac_header>
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_header_compiler=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_header_compiler=no
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 #include <$ac_header>
9353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } >/dev/null; then
9361 if test -s conftest.err; then
9362 ac_cpp_err=$ac_c_preproc_warn_flag
9363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9370 if test -z "$ac_cpp_err"; then
9371 ac_header_preproc=yes
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 ac_header_preproc=no
9378 rm -f conftest.err conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6
9382 # So? What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9389 ac_header_preproc=yes
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9406 ## ------------------------------- ##
9407 ## Report this to root@mput.dip.jp ##
9408 ## ------------------------------- ##
9411 sed "s/^/$as_me: WARNING: /" >&2
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 eval "$as_ac_Header=\$ac_header_preproc"
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9436 for ac_func in fork vfork
9438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439 echo "$as_me:$LINENO: checking for $ac_func" >&5
9440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9441 if eval "test \"\${$as_ac_var+set}\" = set"; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9452 #define $ac_func innocuous_$ac_func
9454 /* System header to define __stub macros and hopefully few prototypes,
9455 which can conflict with char $ac_func (); below.
9456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457 <limits.h> exists even on freestanding compilers. */
9460 # include <limits.h>
9462 # include <assert.h>
9467 /* Override any gcc2 internal prototype to avoid an error. */
9472 /* We use char because int might match the return type of a gcc2
9473 builtin and then its argument prototype would still apply. */
9475 /* The GNU C library defines this for functions which it implements
9476 to always fail with ENOSYS. Some functions are actually named
9477 something starting with __ and the normal name is an alias. */
9478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9481 char (*f) () = $ac_func;
9490 return f != $ac_func;
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 eval "$as_ac_var=yes"
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 eval "$as_ac_var=no"
9524 rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9529 if test `eval echo '${'$as_ac_var'}'` = yes; then
9530 cat >>confdefs.h <<_ACEOF
9531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9537 if test "x$ac_cv_func_fork" = xyes; then
9538 echo "$as_me:$LINENO: checking for working fork" >&5
9539 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9540 if test "${ac_cv_func_fork_works+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 if test "$cross_compiling" = yes; then
9544 ac_cv_func_fork_works=cross
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* By Ruediger Kuhlmann. */
9548 #include <sys/types.h>
9550 # include <unistd.h>
9552 /* Some systems only have a dummy stub for fork() */
9560 rm -f conftest$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_func_fork_works=yes
9573 echo "$as_me: program exited with status $ac_status" >&5
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9578 ac_cv_func_fork_works=no
9580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9583 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9584 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9587 ac_cv_func_fork_works=$ac_cv_func_fork
9589 if test "x$ac_cv_func_fork_works" = xcross; then
9591 *-*-amigaos* | *-*-msdosdjgpp*)
9592 # Override, as these systems have only a dummy fork() stub
9593 ac_cv_func_fork_works=no
9596 ac_cv_func_fork_works=yes
9599 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9600 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9602 ac_cv_func_vfork_works=$ac_cv_func_vfork
9603 if test "x$ac_cv_func_vfork" = xyes; then
9604 echo "$as_me:$LINENO: checking for working vfork" >&5
9605 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9606 if test "${ac_cv_func_vfork_works+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 if test "$cross_compiling" = yes; then
9610 ac_cv_func_vfork_works=cross
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 /* Thanks to Paul Eggert for this test. */
9621 #include <sys/types.h>
9622 #include <sys/stat.h>
9623 #include <sys/wait.h>
9625 # include <unistd.h>
9630 /* On some sparc systems, changes by the child to local and incoming
9631 argument registers are propagated back to the parent. The compiler
9632 is told about this with #include <vfork.h>, but some compilers
9633 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9634 static variable whose address is put into a register that is
9635 clobbered by the vfork. */
9638 sparc_address_test (int arg)
9640 sparc_address_test (arg) int arg;
9661 pid_t parent = getpid ();
9664 sparc_address_test (0);
9669 /* Here is another test for sparc vfork register problems. This
9670 test uses lots of local variables, at least as many local
9671 variables as main has allocated so far including compiler
9672 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9673 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9674 reuse the register of parent for one of the local variables,
9675 since it will think that parent can't possibly be used any more
9676 in this routine. Assigning to the local variable will thus
9677 munge parent in the parent process. */
9679 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9680 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9681 /* Convince the compiler that p..p7 are live; otherwise, it might
9682 use the same hardware register for all 8 local variables. */
9683 if (p != p1 || p != p2 || p != p3 || p != p4
9684 || p != p5 || p != p6 || p != p7)
9687 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9688 from child file descriptors. If the child closes a descriptor
9689 before it execs or exits, this munges the parent's descriptor
9690 as well. Test for this by closing stdout in the child. */
9691 _exit(close(fileno(stdout)) != 0);
9696 while (wait(&status) != child)
9699 /* Was there some problem with vforking? */
9702 /* Did the child fail? (This shouldn't happen.) */
9705 /* Did the vfork/compiler bug occur? */
9706 || parent != getpid()
9708 /* Did the file descriptor bug occur? */
9709 || fstat(fileno(stdout), &st) != 0
9714 rm -f conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_cv_func_vfork_works=yes
9727 echo "$as_me: program exited with status $ac_status" >&5
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9732 ac_cv_func_vfork_works=no
9734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9738 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9741 if test "x$ac_cv_func_fork_works" = xcross; then
9742 ac_cv_func_vfork_works=$ac_cv_func_vfork
9743 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9744 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9747 if test "x$ac_cv_func_vfork_works" = xyes; then
9749 cat >>confdefs.h <<\_ACEOF
9750 #define HAVE_WORKING_VFORK 1
9755 cat >>confdefs.h <<\_ACEOF
9760 if test "x$ac_cv_func_fork_works" = xyes; then
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_WORKING_FORK 1
9768 echo "$as_me:$LINENO: checking for working memcmp" >&5
9769 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9770 if test "${ac_cv_func_memcmp_working+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 if test "$cross_compiling" = yes; then
9774 ac_cv_func_memcmp_working=no
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9787 /* Some versions of memcmp are not 8-bit clean. */
9788 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9789 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9792 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9793 or more and with at least one buffer not starting on a 4-byte boundary.
9794 William Lewis provided this test program. */
9799 for (i = 0; i < 4; i++)
9803 strcpy (a, "--------01111111");
9804 strcpy (b, "--------10000000");
9805 if (memcmp (a, b, 16) >= 0)
9815 rm -f conftest$ac_exeext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817 (eval $ac_link) 2>&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_func_memcmp_working=yes
9828 echo "$as_me: program exited with status $ac_status" >&5
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_func_memcmp_working=no
9835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9838 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9839 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9840 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9841 "memcmp.$ac_objext" | \
9842 *" memcmp.$ac_objext" | \
9843 "memcmp.$ac_objext "* | \
9844 *" memcmp.$ac_objext "* ) ;;
9845 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9851 for ac_header in stdlib.h unistd.h
9853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855 echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9863 # Is the header compilable?
9864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 #include <$ac_header>
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9879 grep -v '^ *+' conftest.er1 >conftest.err
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_header_compiler=yes
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_header_compiler=no
9904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9906 echo "${ECHO_T}$ac_header_compiler" >&6
9908 # Is the header present?
9909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 #include <$ac_header>
9919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } >/dev/null; then
9927 if test -s conftest.err; then
9928 ac_cpp_err=$ac_c_preproc_warn_flag
9929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9936 if test -z "$ac_cpp_err"; then
9937 ac_header_preproc=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_header_preproc=no
9944 rm -f conftest.err conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9946 echo "${ECHO_T}$ac_header_preproc" >&6
9948 # So? What about this header?
9949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9955 ac_header_preproc=yes
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9972 ## ------------------------------- ##
9973 ## Report this to root@mput.dip.jp ##
9974 ## ------------------------------- ##
9977 sed "s/^/$as_me: WARNING: /" >&2
9980 echo "$as_me:$LINENO: checking for $ac_header" >&5
9981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 eval "$as_ac_Header=\$ac_header_preproc"
9987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9992 cat >>confdefs.h <<_ACEOF
9993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10001 for ac_func in getpagesize
10003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10004 echo "$as_me:$LINENO: checking for $ac_func" >&5
10005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10006 if eval "test \"\${$as_ac_var+set}\" = set"; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10017 #define $ac_func innocuous_$ac_func
10019 /* System header to define __stub macros and hopefully few prototypes,
10020 which can conflict with char $ac_func (); below.
10021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10022 <limits.h> exists even on freestanding compilers. */
10025 # include <limits.h>
10027 # include <assert.h>
10032 /* Override any gcc2 internal prototype to avoid an error. */
10037 /* We use char because int might match the return type of a gcc2
10038 builtin and then its argument prototype would still apply. */
10040 /* The GNU C library defines this for functions which it implements
10041 to always fail with ENOSYS. Some functions are actually named
10042 something starting with __ and the normal name is an alias. */
10043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10046 char (*f) () = $ac_func;
10055 return f != $ac_func;
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062 (eval $ac_link) 2>conftest.er1
10064 grep -v '^ *+' conftest.er1 >conftest.err
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_c_werror_flag"
10070 || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest$ac_exeext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 eval "$as_ac_var=yes"
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 eval "$as_ac_var=no"
10089 rm -f conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10094 if test `eval echo '${'$as_ac_var'}'` = yes; then
10095 cat >>confdefs.h <<_ACEOF
10096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10102 echo "$as_me:$LINENO: checking for working mmap" >&5
10103 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10104 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 if test "$cross_compiling" = yes; then
10108 ac_cv_func_mmap_fixed_mapped=no
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 /* malloc might have been renamed as rpl_malloc. */
10120 /* Thanks to Mike Haertel and Jim Avera for this test.
10121 Here is a matrix of mmap possibilities:
10122 mmap private not fixed
10123 mmap private fixed at somewhere currently unmapped
10124 mmap private fixed at somewhere already mapped
10125 mmap shared not fixed
10126 mmap shared fixed at somewhere currently unmapped
10127 mmap shared fixed at somewhere already mapped
10128 For private mappings, we should verify that changes cannot be read()
10129 back from the file, nor mmap's back from the file at a different
10130 address. (There have been systems where private was not correctly
10131 implemented like the infamous i386 svr4.0, and systems where the
10132 VM page cache was not coherent with the file system buffer cache
10133 like early versions of FreeBSD and possibly contemporary NetBSD.)
10134 For shared mappings, we should conversely verify that changes get
10135 propagated back to all the places they're supposed to be.
10137 Grep wants private fixed already mapped.
10138 The main things grep needs to know about mmap are:
10139 * does it exist and is it safe to write into the mmap'd area
10140 * how to use it (BSD variants) */
10143 #include <sys/mman.h>
10145 #if !STDC_HEADERS && !HAVE_STDLIB_H
10149 /* This mess was copied from the GNU getpagesize.h. */
10150 #if !HAVE_GETPAGESIZE
10151 /* Assume that all systems that can run configure have sys/param.h. */
10152 # if !HAVE_SYS_PARAM_H
10153 # define HAVE_SYS_PARAM_H 1
10156 # ifdef _SC_PAGESIZE
10157 # define getpagesize() sysconf(_SC_PAGESIZE)
10158 # else /* no _SC_PAGESIZE */
10159 # if HAVE_SYS_PARAM_H
10160 # include <sys/param.h>
10161 # ifdef EXEC_PAGESIZE
10162 # define getpagesize() EXEC_PAGESIZE
10163 # else /* no EXEC_PAGESIZE */
10165 # define getpagesize() NBPG * CLSIZE
10168 # endif /* no CLSIZE */
10169 # else /* no NBPG */
10171 # define getpagesize() NBPC
10172 # else /* no NBPC */
10174 # define getpagesize() PAGESIZE
10175 # endif /* PAGESIZE */
10176 # endif /* no NBPC */
10177 # endif /* no NBPG */
10178 # endif /* no EXEC_PAGESIZE */
10179 # else /* no HAVE_SYS_PARAM_H */
10180 # define getpagesize() 8192 /* punt totally */
10181 # endif /* no HAVE_SYS_PARAM_H */
10182 # endif /* no _SC_PAGESIZE */
10184 #endif /* no HAVE_GETPAGESIZE */
10189 char *data, *data2, *data3;
10193 pagesize = getpagesize ();
10195 /* First, make a file with some known garbage in it. */
10196 data = (char *) malloc (pagesize);
10199 for (i = 0; i < pagesize; ++i)
10200 *(data + i) = rand ();
10202 fd = creat ("conftest.mmap", 0600);
10205 if (write (fd, data, pagesize) != pagesize)
10209 /* Next, try to mmap the file at a fixed address which already has
10210 something else allocated at it. If we can, also make sure that
10211 we see the same garbage. */
10212 fd = open ("conftest.mmap", O_RDWR);
10215 data2 = (char *) malloc (2 * pagesize);
10218 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10219 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10220 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10222 for (i = 0; i < pagesize; ++i)
10223 if (*(data + i) != *(data2 + i))
10226 /* Finally, make sure that changes to the mapped area do not
10227 percolate back to the file as seen by read(). (This is a bug on
10228 some variants of i386 svr4.0.) */
10229 for (i = 0; i < pagesize; ++i)
10230 *(data2 + i) = *(data2 + i) + 1;
10231 data3 = (char *) malloc (pagesize);
10234 if (read (fd, data3, pagesize) != pagesize)
10236 for (i = 0; i < pagesize; ++i)
10237 if (*(data + i) != *(data3 + i))
10243 rm -f conftest$ac_exeext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_func_mmap_fixed_mapped=yes
10256 echo "$as_me: program exited with status $ac_status" >&5
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ( exit $ac_status )
10261 ac_cv_func_mmap_fixed_mapped=no
10263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10266 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10267 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_MMAP 1
10275 rm -f conftest.mmap
10277 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10278 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10279 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 ac_cv_func_setvbuf_reversed=no
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10291 int (setvbuf) (FILE *, int, char *, size_t);
10296 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>conftest.er1
10305 grep -v '^ *+' conftest.er1 >conftest.err
10307 cat conftest.err >&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } &&
10310 { ac_try='test -z "$ac_c_werror_flag"
10311 || test ! -s conftest.err'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; } &&
10317 { ac_try='test -s conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 cat >conftest.$ac_ext <<_ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10331 int (setvbuf) (FILE *, int, char *, size_t);
10336 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343 (eval $ac_link) 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try='test -s conftest$ac_exeext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 # It compiles and links either way, so it must not be declared
10364 # with a prototype and most likely this is a K&R C compiler.
10366 if test "$cross_compiling" = yes; then
10367 : # Assume setvbuf is not reversed when cross-compiling.
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10379 /* This call has the arguments reversed.
10380 A reversed system may check and see that the address of buf
10381 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10383 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10386 exit (0); /* Non-reversed systems SEGV here. */
10391 rm -f conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_cv_func_setvbuf_reversed=yes
10404 echo "$as_me: program exited with status $ac_status" >&5
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ( exit $ac_status )
10411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10413 ac_cv_func_setvbuf_reversed=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10419 rm -f conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10426 rm -f conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10430 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10431 if test $ac_cv_func_setvbuf_reversed = yes; then
10433 cat >>confdefs.h <<\_ACEOF
10434 #define SETVBUF_REVERSED 1
10439 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10440 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10441 if test "${ac_cv_type_signal+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 #include <sys/types.h>
10451 #include <signal.h>
10456 extern "C" void (*signal (int, void (*)(int)))(int);
10458 void (*signal ()) ();
10469 rm -f conftest.$ac_objext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471 (eval $ac_compile) 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -z "$ac_c_werror_flag"
10479 || test ! -s conftest.err'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_cv_type_signal=void
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ac_cv_type_signal=int
10498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10500 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10501 echo "${ECHO_T}$ac_cv_type_signal" >&6
10503 cat >>confdefs.h <<_ACEOF
10504 #define RETSIGTYPE $ac_cv_type_signal
10509 for ac_func in vprintf
10511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10512 echo "$as_me:$LINENO: checking for $ac_func" >&5
10513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10514 if eval "test \"\${$as_ac_var+set}\" = set"; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10525 #define $ac_func innocuous_$ac_func
10527 /* System header to define __stub macros and hopefully few prototypes,
10528 which can conflict with char $ac_func (); below.
10529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530 <limits.h> exists even on freestanding compilers. */
10533 # include <limits.h>
10535 # include <assert.h>
10540 /* Override any gcc2 internal prototype to avoid an error. */
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10548 /* The GNU C library defines this for functions which it implements
10549 to always fail with ENOSYS. Some functions are actually named
10550 something starting with __ and the normal name is an alias. */
10551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10554 char (*f) () = $ac_func;
10563 return f != $ac_func;
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 eval "$as_ac_var=yes"
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 eval "$as_ac_var=no"
10597 rm -f conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10602 if test `eval echo '${'$as_ac_var'}'` = yes; then
10603 cat >>confdefs.h <<_ACEOF
10604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10607 echo "$as_me:$LINENO: checking for _doprnt" >&5
10608 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10609 if test "${ac_cv_func__doprnt+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10620 #define _doprnt innocuous__doprnt
10622 /* System header to define __stub macros and hopefully few prototypes,
10623 which can conflict with char _doprnt (); below.
10624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10625 <limits.h> exists even on freestanding compilers. */
10628 # include <limits.h>
10630 # include <assert.h>
10635 /* Override any gcc2 internal prototype to avoid an error. */
10640 /* We use char because int might match the return type of a gcc2
10641 builtin and then its argument prototype would still apply. */
10643 /* The GNU C library defines this for functions which it implements
10644 to always fail with ENOSYS. Some functions are actually named
10645 something starting with __ and the normal name is an alias. */
10646 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10649 char (*f) () = _doprnt;
10658 return f != _doprnt;
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -z "$ac_c_werror_flag"
10673 || test ! -s conftest.err'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest$ac_exeext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_func__doprnt=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ac_cv_func__doprnt=no
10692 rm -f conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10695 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10696 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10697 if test $ac_cv_func__doprnt = yes; then
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_DOPRNT 1
10777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10778 echo "$as_me:$LINENO: checking for $ac_func" >&5
10779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10780 if eval "test \"\${$as_ac_var+set}\" = set"; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10791 #define $ac_func innocuous_$ac_func
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char $ac_func (); below.
10795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10796 <limits.h> exists even on freestanding compilers. */
10799 # include <limits.h>
10801 # include <assert.h>
10806 /* Override any gcc2 internal prototype to avoid an error. */
10811 /* We use char because int might match the return type of a gcc2
10812 builtin and then its argument prototype would still apply. */
10814 /* The GNU C library defines this for functions which it implements
10815 to always fail with ENOSYS. Some functions are actually named
10816 something starting with __ and the normal name is an alias. */
10817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10820 char (*f) () = $ac_func;
10829 return f != $ac_func;
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 eval "$as_ac_var=yes"
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 eval "$as_ac_var=no"
10863 rm -f conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10868 if test `eval echo '${'$as_ac_var'}'` = yes; then
10869 cat >>confdefs.h <<_ACEOF
10870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10876 echo "$as_me:$LINENO: checking for getopt_long" >&5
10877 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10878 if test "${ac_cv_func_getopt_long+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10889 #define getopt_long innocuous_getopt_long
10891 /* System header to define __stub macros and hopefully few prototypes,
10892 which can conflict with char getopt_long (); below.
10893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10894 <limits.h> exists even on freestanding compilers. */
10897 # include <limits.h>
10899 # include <assert.h>
10904 /* Override any gcc2 internal prototype to avoid an error. */
10909 /* We use char because int might match the return type of a gcc2
10910 builtin and then its argument prototype would still apply. */
10911 char getopt_long ();
10912 /* The GNU C library defines this for functions which it implements
10913 to always fail with ENOSYS. Some functions are actually named
10914 something starting with __ and the normal name is an alias. */
10915 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10918 char (*f) () = getopt_long;
10927 return f != getopt_long;
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934 (eval $ac_link) 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag"
10942 || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_func_getopt_long=yes
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_func_getopt_long=no
10961 rm -f conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10964 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10965 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10966 if test $ac_cv_func_getopt_long = yes; then
10968 cat >>confdefs.h <<\_ACEOF
10969 #define HAVE_GETOPT_LONG 1
10972 tm_cv_needgetopt="no"
10974 tm_cv_needgetopt="yes"
10979 if test "x$tm_cv_needgetopt" = "xyes"; then
10981 NEEDGETOPT_FALSE='#'
10983 NEEDGETOPT_TRUE='#'
10989 if test "x$CYGNUS" = xyes; then
10990 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
10992 echo "$as_me:$LINENO: checking for opendir" >&5
10993 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10994 if test "${ac_cv_func_opendir+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define opendir innocuous_opendir
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char opendir (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11013 # include <limits.h>
11015 # include <assert.h>
11020 /* Override any gcc2 internal prototype to avoid an error. */
11025 /* We use char because int might match the return type of a gcc2
11026 builtin and then its argument prototype would still apply. */
11028 /* The GNU C library defines this for functions which it implements
11029 to always fail with ENOSYS. Some functions are actually named
11030 something starting with __ and the normal name is an alias. */
11031 #if defined (__stub_opendir) || defined (__stub___opendir)
11034 char (*f) () = opendir;
11043 return f != opendir;
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>conftest.er1
11052 grep -v '^ *+' conftest.er1 >conftest.err
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest$ac_exeext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_func_opendir=yes
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_cv_func_opendir=no
11077 rm -f conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11081 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11082 if test $ac_cv_func_opendir = yes; then
11085 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11090 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11094 if test "x$enable_network" = "xyes"; then
11095 echo "$as_me:$LINENO: checking for socket" >&5
11096 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11097 if test "${ac_cv_func_socket+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11108 #define socket innocuous_socket
11110 /* System header to define __stub macros and hopefully few prototypes,
11111 which can conflict with char socket (); below.
11112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11113 <limits.h> exists even on freestanding compilers. */
11116 # include <limits.h>
11118 # include <assert.h>
11123 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */
11131 /* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134 #if defined (__stub_socket) || defined (__stub___socket)
11137 char (*f) () = socket;
11146 return f != socket;
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_func_socket=yes
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_func_socket=no
11180 rm -f conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11183 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11184 echo "${ECHO_T}$ac_cv_func_socket" >&6
11185 if test $ac_cv_func_socket = yes; then
11188 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11189 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11190 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11191 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 ac_save_LIBS="$LIBS"
11195 LIBS="-lwsock32 $LIBS"
11196 cat >conftest.$ac_ext <<_ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <windows.h>
11203 #include <winsock.h>
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -z "$ac_c_werror_flag"
11223 || test ! -s conftest.err'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 eval "wapi_cv_lib_$ac_lib_var=yes"
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 eval "wapi_cv_lib_$ac_lib_var=no"
11242 rm -f conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11244 LIBS="$ac_save_LIBS"
11247 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11248 echo "$as_me:$LINENO: result: yes" >&5
11249 echo "${ECHO_T}yes" >&6
11250 EXTRALIBS="$EXTRALIBS -lwsock32"
11251 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11253 echo "$as_me:$LINENO: result: no" >&5
11254 echo "${ECHO_T}no" >&6
11263 if test "x$CYGWIN" = xyes; then
11264 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
11266 echo "$as_me:$LINENO: checking for opendir" >&5
11267 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11268 if test "${ac_cv_func_opendir+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.$ac_ext <<_ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11279 #define opendir innocuous_opendir
11281 /* System header to define __stub macros and hopefully few prototypes,
11282 which can conflict with char opendir (); below.
11283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11284 <limits.h> exists even on freestanding compilers. */
11287 # include <limits.h>
11289 # include <assert.h>
11294 /* Override any gcc2 internal prototype to avoid an error. */
11299 /* We use char because int might match the return type of a gcc2
11300 builtin and then its argument prototype would still apply. */
11302 /* The GNU C library defines this for functions which it implements
11303 to always fail with ENOSYS. Some functions are actually named
11304 something starting with __ and the normal name is an alias. */
11305 #if defined (__stub_opendir) || defined (__stub___opendir)
11308 char (*f) () = opendir;
11317 return f != opendir;
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324 (eval $ac_link) 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag"
11332 || test ! -s conftest.err'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest$ac_exeext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 ac_cv_func_opendir=yes
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_cv_func_opendir=no
11351 rm -f conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11355 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11356 if test $ac_cv_func_opendir = yes; then
11359 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11364 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11368 if test "x$enable_network" = "xyes"; then
11369 echo "$as_me:$LINENO: checking for socket" >&5
11370 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11371 if test "${ac_cv_func_socket+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11382 #define socket innocuous_socket
11384 /* System header to define __stub macros and hopefully few prototypes,
11385 which can conflict with char socket (); below.
11386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11387 <limits.h> exists even on freestanding compilers. */
11390 # include <limits.h>
11392 # include <assert.h>
11397 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11405 /* The GNU C library defines this for functions which it implements
11406 to always fail with ENOSYS. Some functions are actually named
11407 something starting with __ and the normal name is an alias. */
11408 #if defined (__stub_socket) || defined (__stub___socket)
11411 char (*f) () = socket;
11420 return f != socket;
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_c_werror_flag"
11435 || test ! -s conftest.err'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 ac_cv_func_socket=yes
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_cv_func_socket=no
11454 rm -f conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11458 echo "${ECHO_T}$ac_cv_func_socket" >&6
11459 if test $ac_cv_func_socket = yes; then
11462 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11463 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11464 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11465 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 ac_save_LIBS="$LIBS"
11469 LIBS="-lwsock32 $LIBS"
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <windows.h>
11477 #include <winsock.h>
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11489 (eval $ac_link) 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 eval "wapi_cv_lib_$ac_lib_var=yes"
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 eval "wapi_cv_lib_$ac_lib_var=no"
11516 rm -f conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS="$ac_save_LIBS"
11521 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11522 echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6
11524 EXTRALIBS="$EXTRALIBS -lwsock32"
11525 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11527 echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11536 # Checks on extra paths
11539 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11540 if test "${with_tcl_includes+set}" = set; then
11541 withval="$with_tcl_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 tcl_include_dir="-I$withval"
11550 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11551 if test "${with_tcl_libs+set}" = set; then
11552 withval="$with_tcl_libs"
11553 if test ! -d $withval; then
11554 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11555 echo "$as_me: WARNING: $withval is not found." >&2;}
11557 tcl_libdir="-L$withval"
11560 # Check whether --with-tk-includes or --without-tk-includes was given.
11561 if test "${with_tk_includes+set}" = set; then
11562 withval="$with_tk_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 tk_includes="-I$withval"
11570 # Check whether --with-tk-libs or --without-tk-libs was given.
11571 if test "${with_tk_libs+set}" = set; then
11572 withval="$with_tk_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 tk_libdir="-L$withval"
11581 # Check whether --with-offix-includes or --without-offix-includes was given.
11582 if test "${with_offix_includes+set}" = set; then
11583 withval="$with_offix_includes"
11584 if test ! -d $withval; then
11585 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11586 echo "$as_me: WARNING: $withval is not found." >&2;}
11588 offix_include_dir="-I$withval"
11591 # Check whether --with-offix-libs or --without-offix-libs was given.
11592 if test "${with_offix_libs+set}" = set; then
11593 withval="$with_offix_libs"
11594 if test ! -d $withval; then
11595 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11596 echo "$as_me: WARNING: $withval is not found." >&2;}
11598 offix_lib_dir="-L$withval"
11606 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack ao'
11609 # Check whether --with-nas-library or --without-nas-library was given.
11610 if test "${with_nas_library+set}" = set; then
11611 withval="$with_nas_library"
11615 # Check whether --with-nas-includes or --without-nas-includes was given.
11616 if test "${with_nas_includes+set}" = set; then
11617 withval="$with_nas_includes"
11622 # Check whether --enable-audio or --disable-audio was given.
11623 if test "${enable_audio+set}" = set; then
11624 enableval="$enable_audio"
11625 enable_audio=$enableval
11632 test "x$enable_audio" = xyes && enable_audio=default
11634 if test "x$enable_audio" != xno; then
11635 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11636 eval "au_enable_$i=yes"
11642 # Check whether --with-default-output or --without-default-output was given.
11643 if test "${with_default_output+set}" = set; then
11644 withval="$with_default_output"
11645 if test "$enable_audio" != no; then
11646 DEFAULT_PLAYMODE=$withval
11647 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11649 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11650 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11655 if test "x$au_enable_default" = xyes; then
11657 *-*-linux*|*-*-freebsd*)
11661 au_enable_sb_dsp=yes
11663 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11691 au_enable_darwin=yes
11694 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11695 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11701 # Each audio mode's configurations
11702 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11703 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11704 if test "x$au_enable_oss" = xyes; then
11705 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11706 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11707 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11708 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11709 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11713 echo "$as_me:$LINENO: result: yes" >&5
11714 echo "${ECHO_T}yes" >&6
11717 if test "x$ac_cv_header_soundcard_h" = xyes; then
11718 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11719 echo "${ECHO_T}yes - <soundcard.h>" >&6
11721 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11722 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11728 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11729 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11730 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-lossaudio $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 /* Override any gcc2 internal prototype to avoid an error. */
11746 /* We use char because int might match the return type of a gcc2
11747 builtin and then its argument prototype would still apply. */
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag"
11767 || test ! -s conftest.err'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try='test -s conftest$ac_exeext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_lib_ossaudio_open=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 ac_cv_lib_ossaudio_open=no
11786 rm -f conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11788 LIBS=$ac_check_lib_save_LIBS
11790 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11791 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11792 if test $ac_cv_lib_ossaudio_open = yes; then
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_LIBOSSAUDIO 1
11797 LIBS="-lossaudio $LIBS"
11804 if test ! -e "/dev/dsp"; then
11805 oss_device=/dev/audio
11810 echo "$as_me:$LINENO: result: no" >&5
11811 echo "${ECHO_T}no" >&6
11814 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11815 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11816 if test "x$au_enable_sun" = xyes; then
11819 if test -f /usr/demo/SOUND/libaudio.a; then
11820 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11821 echo "$as_me:$LINENO: result: yes" >&5
11822 echo "${ECHO_T}yes" >&6
11824 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11825 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11829 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11830 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11831 echo "$as_me:$LINENO: result: yes" >&5
11832 echo "${ECHO_T}yes" >&6
11834 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11835 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11838 *) echo "$as_me:$LINENO: result: yes" >&5
11839 echo "${ECHO_T}yes" >&6
11842 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11843 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11845 echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11849 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11850 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11851 if test "x$au_enable_hpux" = xyes; then
11853 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11854 echo "${ECHO_T}yes" >&6 ;;
11855 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11856 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11858 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11859 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11861 echo "$as_me:$LINENO: result: no" >&5
11862 echo "${ECHO_T}no" >&6
11865 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11866 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11867 if test "x$au_enable_irix" = xyes; then
11869 *-sgi-irix5*|*-sgi-irix6.2)
11870 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11871 echo "$as_me:$LINENO: result: yes" >&5
11872 echo "${ECHO_T}yes" >&6
11875 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11876 echo "$as_me:$LINENO: result: yes" >&5
11877 echo "${ECHO_T}yes" >&6
11879 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11880 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11882 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11883 EXTRALIBS="$EXTRASLIBS -laudio"
11885 echo "$as_me:$LINENO: result: no" >&5
11886 echo "${ECHO_T}no" >&6
11889 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11890 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11891 if test "x$au_enable_mme" = xyes; then
11893 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11894 echo "${ECHO_T}yes" >&6 ;;
11895 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11896 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11898 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11899 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11900 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11901 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11903 echo "$as_me:$LINENO: result: no" >&5
11904 echo "${ECHO_T}no" >&6
11907 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11908 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11909 if test "x$au_enable_sb_dsp" = xyes; then
11911 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11912 echo "${ECHO_T}yes" >&6 ;;
11913 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11914 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11916 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11917 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11919 echo "$as_me:$LINENO: result: no" >&5
11920 echo "${ECHO_T}no" >&6
11923 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11924 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11925 if test "x$au_enable_w32" = xyes; then
11928 echo "$as_me:$LINENO: result: yes" >&5
11929 echo "${ECHO_T}yes" >&6
11932 echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11936 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11937 echo "$as_me: WARNING: may not work on $target" >&2;}
11940 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11941 EXTRALIBS="$EXTRALIBS -lwinmm"
11942 EXTRADEFS="$EXTRADEFS -DAU_W32"
11944 echo "$as_me:$LINENO: result: no" >&5
11945 echo "${ECHO_T}no" >&6
11948 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11949 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11950 if test "x$au_enable_darwin" = xyes; then
11951 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11952 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11953 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11956 echo "$as_me:$LINENO: result: yes" >&5
11957 echo "${ECHO_T}yes" >&6;;
11959 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11960 echo "$as_me: WARNING: may not work on $target" >&2;}
11964 echo "$as_me:$LINENO: result: no" >&5
11965 echo "${ECHO_T}no" >&6
11969 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11970 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11971 if test "x$au_enable_alsa" = xyes; then
11972 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11973 echo "${ECHO_T}yes, configuring alsa" >&6
11976 KEEPLDFLAGS=$LDFLAGS
11977 alsa_save_CFLAGS="$CFLAGS"
11978 alsa_save_LDFLAGS="$LDFLAGS"
11979 alsa_save_LIBS="$LIBS"
11983 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11984 if test "${with_alsa_prefix+set}" = set; then
11985 withval="$with_alsa_prefix"
11986 alsa_prefix="$withval"
11992 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11993 if test "${with_alsa_inc_prefix+set}" = set; then
11994 withval="$with_alsa_inc_prefix"
11995 alsa_inc_prefix="$withval"
12000 # Check whether --enable-alsatest or --disable-alsatest was given.
12001 if test "${enable_alsatest+set}" = set; then
12002 enableval="$enable_alsatest"
12005 enable_alsatest=yes
12008 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12009 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12010 if test "$alsa_inc_prefix" != "" ; then
12011 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12012 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12014 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12015 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12017 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12018 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12019 if test "$alsa_prefix" != "" ; then
12020 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12021 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12024 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12025 LIBS=`echo $LIBS | sed 's/-lm//'`
12026 LIBS=`echo $LIBS | sed 's/-ldl//'`
12027 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12028 LIBS=`echo $LIBS | sed 's/ //'`
12029 LIBS="$ALSA_LIBS $LIBS"
12030 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12031 echo "${ECHO_T}$ALSA_LIBS" >&6
12033 min_alsa_version=0.1.1
12034 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12035 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12037 alsa_min_major_version=`echo $min_alsa_version | \
12038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12039 alsa_min_minor_version=`echo $min_alsa_version | \
12040 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12041 alsa_min_micro_version=`echo $min_alsa_version | \
12042 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12060 #include <alsa/asoundlib.h>
12066 /* ensure backward compatibility */
12067 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12068 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12070 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12071 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12073 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12074 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12077 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12080 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12081 # error not present
12084 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12087 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12088 # error not present
12091 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12092 # error not present
12102 rm -f conftest.$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 echo "$as_me:$LINENO: result: found." >&5
12125 echo "${ECHO_T}found." >&6
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 cat >conftest.$ac_ext <<_ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12137 #include <sys/asoundlib.h>
12143 /* ensure backward compatibility */
12144 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12145 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12147 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12148 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12150 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12151 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12154 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12157 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12158 # error not present
12161 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12164 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12165 # error not present
12168 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12169 # error not present
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181 (eval $ac_compile) 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_c_werror_flag"
12189 || test ! -s conftest.err'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest.$ac_objext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 echo "$as_me:$LINENO: result: found." >&5
12202 echo "${ECHO_T}found." >&6
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 echo "$as_me:$LINENO: result: not present." >&5
12208 echo "${ECHO_T}not present." >&6
12209 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12210 echo "${ECHO_T}libasound was not found anywhere." >&6
12213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12215 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 ac_cpp='$CPP $CPPFLAGS'
12221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12228 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12229 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lasound $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any gcc2 internal prototype to avoid an error. */
12245 /* We use char because int might match the return type of a gcc2
12246 builtin and then its argument prototype would still apply. */
12247 char snd_ctl_open ();
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_lib_asound_snd_ctl_open=yes
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_cv_lib_asound_snd_ctl_open=no
12285 rm -f conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12289 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12290 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12291 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293 #define HAVE_LIBASOUND 1
12296 LIBS="-lasound $LIBS"
12299 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12300 echo "${ECHO_T}No linkable libasound was found." >&6
12306 if test "x$alsa_found" = "xyes" ; then
12308 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12309 LIBS=`echo $LIBS | sed 's/ //'`
12310 LIBS="-lasound $LIBS"
12313 CFLAGS="$alsa_save_CFLAGS"
12314 LDFLAGS="$alsa_save_LDFLAGS"
12315 LIBS="$alsa_save_LIBS"
12323 if test "x$alsa_found" = "xyes" ; then
12324 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12325 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12326 for f in $ALSA_CFLAGS; do
12328 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12329 *) CFLAGS="$CPPFLAGS $f" ;;
12333 LIBS="$KEEPLIBS $ALSA_LIBS"
12335 for ac_func in snd_seq_port_info_set_timestamping
12337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12338 echo "$as_me:$LINENO: checking for $ac_func" >&5
12339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12340 if eval "test \"\${$as_ac_var+set}\" = set"; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12351 #define $ac_func innocuous_$ac_func
12353 /* System header to define __stub macros and hopefully few prototypes,
12354 which can conflict with char $ac_func (); below.
12355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12356 <limits.h> exists even on freestanding compilers. */
12359 # include <limits.h>
12361 # include <assert.h>
12366 /* Override any gcc2 internal prototype to avoid an error. */
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12374 /* The GNU C library defines this for functions which it implements
12375 to always fail with ENOSYS. Some functions are actually named
12376 something starting with __ and the normal name is an alias. */
12377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12380 char (*f) () = $ac_func;
12389 return f != $ac_func;
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12398 grep -v '^ *+' conftest.er1 >conftest.err
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -z "$ac_c_werror_flag"
12404 || test ! -s conftest.err'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest$ac_exeext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 eval "$as_ac_var=yes"
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 eval "$as_ac_var=no"
12423 rm -f conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12428 if test `eval echo '${'$as_ac_var'}'` = yes; then
12429 cat >>confdefs.h <<_ACEOF
12430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12437 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12438 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12441 LDFLAGS=$KEEPLDFLAGS
12444 echo "$as_me:$LINENO: result: no" >&5
12445 echo "${ECHO_T}no" >&6
12448 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12449 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12450 if test "x$au_enable_alib" = xyes; then
12452 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12453 echo "${ECHO_T}yes" >&6 ;;
12454 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12455 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12457 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12458 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12459 if test -d /opt/audio/include; then
12460 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12462 if test -d /opt/audio/lib; then
12463 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12465 EXTRALIBS="$EXTRALIBS -lAlib"
12467 echo "$as_me:$LINENO: result: no" >&5
12468 echo "${ECHO_T}no" >&6
12471 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12472 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12473 if test "x$au_enable_nas" = xyes; then
12474 if test "x$with_x" != xyes; then
12475 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12476 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12477 { (exit 1); exit 1; }; }
12479 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12480 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12483 if test "x$with_nas_library" != x; then
12484 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12485 echo "${ECHO_T}$with_nas_library" >&6;
12486 EXTRALIBS="$EXTRALIBS $with_nas_library"
12488 echo "$as_me:$LINENO: result: " >&5
12489 echo "${ECHO_T}" >&6
12490 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12491 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12492 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 ac_func_search_save_LIBS="$LIBS"
12496 timidity_cv_search_AuOpenServer="no"
12497 for i in $x_libraries/libaudio.a \
12498 /usr/lib/libaudio.so \
12499 /usr/lib/libaudio.a ; do
12500 LIBS="$i $ac_func_search_save_LIBS"
12501 cat >conftest.$ac_ext <<_ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12508 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char AuOpenServer ();
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 timidity_cv_search_AuOpenServer="$i"; break
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12551 rm -f conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12554 LIBS="$ac_func_search_save_LIBS"
12556 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12557 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12558 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12559 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12560 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12561 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12563 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12564 echo "$as_me: WARNING: NAS library is not found." >&2;}
12567 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12569 if test "x$have_xext" = xyes; then
12570 lib_xext_opt=-lXext
12572 if test "x$have_xprelibs" = xyes; then
12573 lib_xprelibs_opt='-lSM -lICE'
12576 echo "$as_me:$LINENO: result: no" >&5
12577 echo "${ECHO_T}no" >&6
12580 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12581 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12582 if test "x$au_enable_arts" = xyes; then
12583 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12584 echo "${ECHO_T}yes, configuring aRts" >&6
12587 KEEPLDFLAGS=$LDFLAGS
12589 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12590 if test "${with_arts_prefix+set}" = set; then
12591 withval="$with_arts_prefix"
12592 arts_prefix="$withval"
12596 # Check whether --enable-artstest or --disable-artstest was given.
12597 if test "${enable_artstest+set}" = set; then
12598 enableval="$enable_artstest"
12601 enable_artstest=yes
12604 if test x$arts_prefix != x ; then
12605 arts_args="$arts_args --prefix=$arts_prefix"
12606 if test x${ARTS_CONFIG+set} != xset ; then
12607 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12611 # Extract the first word of "artsc-config", so it can be a program name with args.
12612 set dummy artsc-config; ac_word=$2
12613 echo "$as_me:$LINENO: checking for $ac_word" >&5
12614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12615 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 case $ARTS_CONFIG in
12620 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12627 test -z "$as_dir" && as_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12641 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12643 if test -n "$ARTS_CONFIG"; then
12644 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12645 echo "${ECHO_T}$ARTS_CONFIG" >&6
12647 echo "$as_me:$LINENO: result: no" >&5
12648 echo "${ECHO_T}no" >&6
12651 min_arts_version=0.9.5
12652 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12653 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12655 if test "$ARTS_CONFIG" = "no" ; then
12658 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12659 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12661 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12662 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12663 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12664 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12665 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12666 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12667 if test "x$enable_artstest" = "xyes" ; then
12668 ac_save_CFLAGS="$CFLAGS"
12669 ac_save_LIBS="$LIBS"
12670 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12671 LIBS="$LIBS $ARTS_LIBS"
12672 rm -f conf.artstest
12673 if test "$cross_compiling" = yes; then
12674 echo $ac_n "cross compiling; assumed OK... $ac_c"
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12684 #include <stdlib.h>
12685 #include <string.h>
12689 my_strdup (char *str)
12695 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12696 strcpy (new_str, str);
12706 int major, minor, micro;
12709 system ("touch conf.artstest");
12711 /* HP/UX 9 (%@#!) writes to sscanf strings */
12712 tmp_version = my_strdup("$min_arts_version");
12713 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12714 printf("%s, bad version string\n", "$min_arts_version");
12718 if (($arts_major_version > major) ||
12719 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12720 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12726 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12727 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12728 printf("*** best to upgrade to the required version.\n");
12729 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12730 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12731 printf("*** config.cache before re-running configure\n");
12738 rm -f conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12751 echo "$as_me: program exited with status $ac_status" >&5
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ( exit $ac_status )
12758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12760 CFLAGS="$ac_save_CFLAGS"
12761 LIBS="$ac_save_LIBS"
12764 if test "x$no_arts" = x ; then
12765 echo "$as_me:$LINENO: result: yes" >&5
12766 echo "${ECHO_T}yes" >&6
12769 echo "$as_me:$LINENO: result: no" >&5
12770 echo "${ECHO_T}no" >&6
12771 if test "$ARTS_CONFIG" = "no" ; then
12772 echo "*** The artsc-config script installed by ARTS could not be found"
12773 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12774 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12775 echo "*** full path to artsc-config."
12777 if test -f conf.artstest ; then
12780 echo "*** Could not run ARTS test program, checking why..."
12781 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12782 LIBS="$LIBS $ARTS_LIBS"
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>conftest.er1
12805 grep -v '^ *+' conftest.er1 >conftest.err
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try='test -z "$ac_c_werror_flag"
12811 || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest$ac_exeext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 echo "*** The test program compiled, but did not run. This usually means"
12824 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12825 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12826 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12827 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12828 echo "*** is required on your system"
12830 echo "*** If you have an old version installed, it is best to remove it, although"
12831 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 echo "*** The test program failed to compile or link. See the file config.log for the"
12837 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12838 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12839 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12841 rm -f conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 CFLAGS="$ac_save_CFLAGS"
12844 LIBS="$ac_save_LIBS"
12853 rm -f conf.artstest
12857 LDFLAGS=$KEEPLDFLAGS
12858 if test "x$no_arts" = x; then
12859 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12860 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12861 for f in $ARTS_CFLAGS; do
12863 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12864 *) CFLAGS="$CPPFLAGS $f" ;;
12868 LIBS="$LIBS $ARTS_LIBS"
12870 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12871 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12874 echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6
12878 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12879 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12880 if test "x$au_enable_esd" = xyes; then
12881 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12882 echo "${ECHO_T}yes, configuring esd" >&6
12885 KEEPLDFLAGS=$LDFLAGS
12887 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12888 if test "${with_esd_prefix+set}" = set; then
12889 withval="$with_esd_prefix"
12890 esd_prefix="$withval"
12895 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12896 if test "${with_esd_exec_prefix+set}" = set; then
12897 withval="$with_esd_exec_prefix"
12898 esd_exec_prefix="$withval"
12902 # Check whether --enable-esdtest or --disable-esdtest was given.
12903 if test "${enable_esdtest+set}" = set; then
12904 enableval="$enable_esdtest"
12910 if test x$esd_exec_prefix != x ; then
12911 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12912 if test x${ESD_CONFIG+set} != xset ; then
12913 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12916 if test x$esd_prefix != x ; then
12917 esd_args="$esd_args --prefix=$esd_prefix"
12918 if test x${ESD_CONFIG+set} != xset ; then
12919 ESD_CONFIG=$esd_prefix/bin/esd-config
12923 # Extract the first word of "esd-config", so it can be a program name with args.
12924 set dummy esd-config; ac_word=$2
12925 echo "$as_me:$LINENO: checking for $ac_word" >&5
12926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12927 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 case $ESD_CONFIG in
12932 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12942 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12953 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12955 if test -n "$ESD_CONFIG"; then
12956 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12957 echo "${ECHO_T}$ESD_CONFIG" >&6
12959 echo "$as_me:$LINENO: result: no" >&5
12960 echo "${ECHO_T}no" >&6
12963 min_esd_version=0.2.7
12964 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12965 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12967 if test "$ESD_CONFIG" = "no" ; then
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12979 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12981 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12983 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12985 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12986 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12987 if test "x$enable_esdtest" = "xyes" ; then
12988 ac_save_CFLAGS="$CFLAGS"
12989 ac_save_LIBS="$LIBS"
12990 CFLAGS="$CFLAGS $ESD_CFLAGS"
12991 LIBS="$LIBS $ESD_LIBS"
12993 if test "$cross_compiling" = yes; then
12994 echo $ac_n "cross compiling; assumed OK... $ac_c"
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13004 #include <stdlib.h>
13005 #include <string.h>
13009 my_strdup (char *str)
13015 new_str = malloc ((strlen (str) + 1) * sizeof(char));
13016 strcpy (new_str, str);
13026 int major, minor, micro;
13029 system ("touch conf.esdtest");
13031 /* HP/UX 9 (%@#!) writes to sscanf strings */
13032 tmp_version = my_strdup("$min_esd_version");
13033 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13034 printf("%s, bad version string\n", "$min_esd_version");
13038 if (($esd_major_version > major) ||
13039 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13040 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13046 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13047 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13048 printf("*** best to upgrade to the required version.\n");
13049 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13050 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13051 printf("*** config.cache before re-running configure\n");
13058 rm -f conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060 (eval $ac_link) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13071 echo "$as_me: program exited with status $ac_status" >&5
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ( exit $ac_status )
13078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13080 CFLAGS="$ac_save_CFLAGS"
13081 LIBS="$ac_save_LIBS"
13083 ac_cpp='$CPP $CPPFLAGS'
13084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13090 if test "x$no_esd" = x ; then
13091 echo "$as_me:$LINENO: result: yes" >&5
13092 echo "${ECHO_T}yes" >&6
13095 echo "$as_me:$LINENO: result: no" >&5
13096 echo "${ECHO_T}no" >&6
13097 if test "$ESD_CONFIG" = "no" ; then
13098 echo "*** The esd-config script installed by ESD could not be found"
13099 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13100 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13101 echo "*** full path to esd-config."
13103 if test -f conf.esdtest ; then
13106 echo "*** Could not run ESD test program, checking why..."
13107 CFLAGS="$CFLAGS $ESD_CFLAGS"
13108 LIBS="$LIBS $ESD_LIBS"
13112 ac_cpp='$CPP $CPPFLAGS'
13113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13117 cat >conftest.$ac_ext <<_ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 (eval $ac_link) 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
13144 { ac_try='test -z "$ac_c_werror_flag"
13145 || test ! -s conftest.err'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 echo "*** The test program compiled, but did not run. This usually means"
13158 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13159 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13160 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13161 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13162 echo "*** is required on your system"
13164 echo "*** If you have an old version installed, it is best to remove it, although"
13165 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 echo "*** The test program failed to compile or link. See the file config.log for the"
13171 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13172 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13173 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13175 rm -f conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177 CFLAGS="$ac_save_CFLAGS"
13178 LIBS="$ac_save_LIBS"
13180 ac_cpp='$CPP $CPPFLAGS'
13181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13197 LDFLAGS=$KEEPLDFLAGS
13198 if test "x$no_esd" = x; then
13199 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13200 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13201 for f in $ESD_CFLAGS; do
13203 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13204 *) CFLAGS="$CPPFLAGS $f" ;;
13208 LIBS="$LIBS $ESD_LIBS"
13210 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13211 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13214 echo "$as_me:$LINENO: result: no" >&5
13215 echo "${ECHO_T}no" >&6
13218 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13219 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13220 if test "x$au_enable_portaudio" = xyes; then
13221 echo "$as_me:$LINENO: result: yes" >&5
13222 echo "${ECHO_T}yes" >&6
13223 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13224 EXTRALIBS="$EXTRALIBS -lportaudio"
13225 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13227 echo "$as_me:$LINENO: result: no" >&5
13228 echo "${ECHO_T}no" >&6
13231 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13232 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13233 if test "x$au_enable_jack" = xyes; then
13234 echo "$as_me:$LINENO: result: yes" >&5
13235 echo "${ECHO_T}yes" >&6
13236 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13237 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13238 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13240 echo "$as_me:$LINENO: result: no" >&5
13241 echo "${ECHO_T}no" >&6
13244 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13245 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13246 if test "x$au_enable_ao" = xyes; then
13247 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
13248 echo "${ECHO_T}yes, configuring alsa" >&6
13251 KEEPLDFLAGS=$LDFLAGS
13253 # Check whether --with-ao or --without-ao was given.
13254 if test "${with_ao+set}" = set; then
13256 ao_prefix="$withval"
13261 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13262 if test "${with_ao_libraries+set}" = set; then
13263 withval="$with_ao_libraries"
13264 ao_libraries="$withval"
13269 # Check whether --with-ao-includes or --without-ao-includes was given.
13270 if test "${with_ao_includes+set}" = set; then
13271 withval="$with_ao_includes"
13272 ao_includes="$withval"
13276 # Check whether --enable-aotest or --disable-aotest was given.
13277 if test "${enable_aotest+set}" = set; then
13278 enableval="$enable_aotest"
13285 if test "x$ao_libraries" != "x" ; then
13286 AO_LIBS="-L$ao_libraries"
13287 elif test "x$ao_prefix" != "x"; then
13288 AO_LIBS="-L$ao_prefix/lib"
13289 elif test "x$prefix" != "xNONE"; then
13290 AO_LIBS="-L$prefix/lib"
13293 if test "x$ao_includes" != "x" ; then
13294 AO_CFLAGS="-I$ao_includes"
13295 elif test "x$ao_prefix" != "x"; then
13296 AO_CFLAGS="-I$ao_prefix/include"
13297 elif test "x$prefix" != "xNONE"; then
13298 AO_CFLAGS="-I$prefix/include"
13301 # see where dl* and friends live
13303 for ac_func in dlopen
13305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13306 echo "$as_me:$LINENO: checking for $ac_func" >&5
13307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13308 if eval "test \"\${$as_ac_var+set}\" = set"; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13319 #define $ac_func innocuous_$ac_func
13321 /* System header to define __stub macros and hopefully few prototypes,
13322 which can conflict with char $ac_func (); below.
13323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13324 <limits.h> exists even on freestanding compilers. */
13327 # include <limits.h>
13329 # include <assert.h>
13334 /* Override any gcc2 internal prototype to avoid an error. */
13339 /* We use char because int might match the return type of a gcc2
13340 builtin and then its argument prototype would still apply. */
13342 /* The GNU C library defines this for functions which it implements
13343 to always fail with ENOSYS. Some functions are actually named
13344 something starting with __ and the normal name is an alias. */
13345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13348 char (*f) () = $ac_func;
13357 return f != $ac_func;
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364 (eval $ac_link) 2>conftest.er1
13366 grep -v '^ *+' conftest.er1 >conftest.err
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -z "$ac_c_werror_flag"
13372 || test ! -s conftest.err'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; } &&
13378 { ac_try='test -s conftest$ac_exeext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 eval "$as_ac_var=yes"
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 eval "$as_ac_var=no"
13391 rm -f conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext conftest.$ac_ext
13394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13396 if test `eval echo '${'$as_ac_var'}'` = yes; then
13397 cat >>confdefs.h <<_ACEOF
13398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13403 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13404 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13405 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 ac_check_lib_save_LIBS=$LIBS
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13417 /* Override any gcc2 internal prototype to avoid an error. */
13421 /* We use char because int might match the return type of a gcc2
13422 builtin and then its argument prototype would still apply. */
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434 (eval $ac_link) 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag"
13442 || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest$ac_exeext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_cv_lib_dl_dlopen=yes
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 ac_cv_lib_dl_dlopen=no
13461 rm -f conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13463 LIBS=$ac_check_lib_save_LIBS
13465 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13467 if test $ac_cv_lib_dl_dlopen = yes; then
13471 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13472 your system may not be supported." >&5
13473 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13474 your system may not be supported." >&2;}
13483 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13485 echo "$as_me:$LINENO: checking for ao" >&5
13486 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13490 if test "x$enable_aotest" = "xyes" ; then
13491 ac_save_CFLAGS="$CFLAGS"
13492 ac_save_LIBS="$LIBS"
13493 CFLAGS="$CFLAGS $AO_CFLAGS"
13494 LIBS="$LIBS $AO_LIBS"
13496 if test "$cross_compiling" = yes; then
13497 echo $ac_n "cross compiling; assumed OK... $ac_c"
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13507 #include <stdlib.h>
13508 #include <string.h>
13513 system("touch conf.aotest");
13519 rm -f conftest$ac_exeext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13521 (eval $ac_link) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13532 echo "$as_me: program exited with status $ac_status" >&5
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ( exit $ac_status )
13539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13541 CFLAGS="$ac_save_CFLAGS"
13542 LIBS="$ac_save_LIBS"
13545 if test "x$no_ao" = "x" ; then
13546 echo "$as_me:$LINENO: result: yes" >&5
13547 echo "${ECHO_T}yes" >&6
13550 echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6
13552 if test -f conf.aotest ; then
13555 echo "*** Could not run ao test program, checking why..."
13556 CFLAGS="$CFLAGS $AO_CFLAGS"
13557 LIBS="$LIBS $AO_LIBS"
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578 (eval $ac_link) 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag"
13586 || test ! -s conftest.err'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 echo "*** The test program compiled, but did not run. This usually means"
13599 echo "*** that the run-time linker is not finding ao or finding the wrong"
13600 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13601 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13602 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13603 echo "*** is required on your system"
13605 echo "*** If you have an old version installed, it is best to remove it, although"
13606 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13608 echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13611 echo "*** The test program failed to compile or link. See the file config.log for the"
13612 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13613 echo "*** or that you have moved ao since it was installed."
13615 rm -f conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext conftest.$ac_ext
13617 CFLAGS="$ac_save_CFLAGS"
13618 LIBS="$ac_save_LIBS"
13628 if test "x$no_ao" = "x" ; then
13629 EXTRADEFS="$EXTRADEFS -DAU_AO"
13630 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13631 for f in $AO_CFLAGS; do
13633 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13634 *) CFLAGS="$CPPFLAGS $f" ;;
13638 LIBS="$KEEPLIBS $AO_LIBS"
13640 for ac_func in snd_seq_port_info_set_timestamping
13642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13643 echo "$as_me:$LINENO: checking for $ac_func" >&5
13644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_var+set}\" = set"; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13656 #define $ac_func innocuous_$ac_func
13658 /* System header to define __stub macros and hopefully few prototypes,
13659 which can conflict with char $ac_func (); below.
13660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13661 <limits.h> exists even on freestanding compilers. */
13664 # include <limits.h>
13666 # include <assert.h>
13671 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13679 /* The GNU C library defines this for functions which it implements
13680 to always fail with ENOSYS. Some functions are actually named
13681 something starting with __ and the normal name is an alias. */
13682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13685 char (*f) () = $ac_func;
13694 return f != $ac_func;
13699 rm -f conftest.$ac_objext conftest$ac_exeext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13701 (eval $ac_link) 2>conftest.er1
13703 grep -v '^ *+' conftest.er1 >conftest.err
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag"
13709 || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 eval "$as_ac_var=yes"
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 eval "$as_ac_var=no"
13728 rm -f conftest.err conftest.$ac_objext \
13729 conftest$ac_exeext conftest.$ac_ext
13731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13733 if test `eval echo '${'$as_ac_var'}'` = yes; then
13734 cat >>confdefs.h <<_ACEOF
13735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13742 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13743 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13746 LDFLAGS=$KEEPLDFLAGS
13749 echo "$as_me:$LINENO: result: no" >&5
13750 echo "${ECHO_T}no" >&6
13753 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13754 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13755 if test "x$au_enable_vorbis" = xyes; then
13756 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13757 echo "${ECHO_T}yes, configuring vorbis" >&6
13759 # Check whether --with-ogg or --without-ogg was given.
13760 if test "${with_ogg+set}" = set; then
13761 withval="$with_ogg"
13762 ogg_prefix="$withval"
13767 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13768 if test "${with_ogg_libraries+set}" = set; then
13769 withval="$with_ogg_libraries"
13770 ogg_libraries="$withval"
13775 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13776 if test "${with_ogg_includes+set}" = set; then
13777 withval="$with_ogg_includes"
13778 ogg_includes="$withval"
13782 # Check whether --enable-oggtest or --disable-oggtest was given.
13783 if test "${enable_oggtest+set}" = set; then
13784 enableval="$enable_oggtest"
13790 if test "x$ogg_libraries" != "x" ; then
13791 OGG_LIBS="-L$ogg_libraries"
13792 elif test "x$ogg_prefix" != "x" ; then
13793 OGG_LIBS="-L$ogg_prefix/lib"
13794 elif test "x$prefix" != "xNONE" ; then
13795 OGG_LIBS="-L$prefix/lib"
13798 OGG_LIBS="$OGG_LIBS -logg"
13800 if test "x$ogg_includes" != "x" ; then
13801 OGG_CFLAGS="-I$ogg_includes"
13802 elif test "x$ogg_prefix" != "x" ; then
13803 OGG_CFLAGS="-I$ogg_prefix/include"
13804 elif test "x$prefix" != "xNONE"; then
13805 OGG_CFLAGS="-I$prefix/include"
13808 echo "$as_me:$LINENO: checking for Ogg" >&5
13809 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13813 if test "x$enable_oggtest" = "xyes" ; then
13814 ac_save_CFLAGS="$CFLAGS"
13815 ac_save_LIBS="$LIBS"
13816 CFLAGS="$CFLAGS $OGG_CFLAGS"
13817 LIBS="$LIBS $OGG_LIBS"
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 <ogg/ogg.h>
13836 system("touch conf.oggtest");
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_ogg" = "x" ; then
13869 echo "$as_me:$LINENO: result: yes" >&5
13870 echo "${ECHO_T}yes" >&6
13873 # Check whether --with-vorbis or --without-vorbis was given.
13874 if test "${with_vorbis+set}" = set; then
13875 withval="$with_vorbis"
13876 vorbis_prefix="$withval"
13881 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13882 if test "${with_vorbis_libraries+set}" = set; then
13883 withval="$with_vorbis_libraries"
13884 vorbis_libraries="$withval"
13886 vorbis_libraries=""
13889 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13890 if test "${with_vorbis_includes+set}" = set; then
13891 withval="$with_vorbis_includes"
13892 vorbis_includes="$withval"
13896 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13897 if test "${enable_vorbistest+set}" = set; then
13898 enableval="$enable_vorbistest"
13901 enable_vorbistest=yes
13904 if test "x$vorbis_libraries" != "x" ; then
13905 VORBIS_LIBS="-L$vorbis_libraries"
13906 elif test "x$vorbis_prefix" != "x" ; then
13907 VORBIS_LIBS="-L$vorbis_prefix/lib"
13908 elif test "x$prefix" != "xNONE"; then
13909 VORBIS_LIBS="-L$prefix/lib"
13912 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13913 VORBISFILE_LIBS="-lvorbisfile"
13914 VORBISENC_LIBS="-lvorbisenc"
13916 if test "x$vorbis_includes" != "x" ; then
13917 VORBIS_CFLAGS="-I$vorbis_includes"
13918 elif test "x$vorbis_prefix" != "x" ; then
13919 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13920 elif test "x$prefix" != "xNONE"; then
13921 VORBIS_CFLAGS="-I$prefix/include"
13925 echo "$as_me:$LINENO: checking for Vorbis" >&5
13926 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13930 if test "x$enable_vorbistest" = "xyes" ; then
13931 ac_save_CFLAGS="$CFLAGS"
13932 ac_save_LIBS="$LIBS"
13933 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13934 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13935 rm -f conf.vorbistest
13936 if test "$cross_compiling" = yes; then
13937 echo $ac_n "cross compiling; assumed OK... $ac_c"
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13947 #include <stdlib.h>
13948 #include <string.h>
13949 #include <vorbis/codec.h>
13953 system("touch conf.vorbistest");
13959 rm -f conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13972 echo "$as_me: program exited with status $ac_status" >&5
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ( exit $ac_status )
13979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13981 CFLAGS="$ac_save_CFLAGS"
13982 LIBS="$ac_save_LIBS"
13985 if test "x$no_vorbis" = "x" ; then
13986 echo "$as_me:$LINENO: result: yes" >&5
13987 echo "${ECHO_T}yes" >&6
13990 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13991 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13992 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13993 if test "x$CYGNUS" = "xyes"; then
13994 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13995 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13997 if test "x$MINGW" = "xyes"; then
13998 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13999 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14003 echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6
14005 if test -f conf.vorbistest ; then
14008 echo "*** Could not run Vorbis test program, checking why..."
14009 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14010 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14011 cat >conftest.$ac_ext <<_ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14019 #include <vorbis/codec.h>
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag"
14039 || test ! -s conftest.err'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 echo "*** The test program compiled, but did not run. This usually means"
14052 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14053 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14054 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14055 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14056 echo "*** is required on your system"
14058 echo "*** If you have an old version installed, it is best to remove it, although"
14059 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 echo "*** The test program failed to compile or link. See the file config.log for the"
14065 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14066 echo "*** or that you have moved Vorbis since it was installed."
14068 rm -f conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 CFLAGS="$ac_save_CFLAGS"
14071 LIBS="$ac_save_LIBS"
14078 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14079 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14086 rm -f conf.vorbistest
14090 echo "$as_me:$LINENO: result: no" >&5
14091 echo "${ECHO_T}no" >&6
14092 if test -f conf.oggtest ; then
14095 echo "*** Could not run Ogg test program, checking why..."
14096 CFLAGS="$CFLAGS $OGG_CFLAGS"
14097 LIBS="$LIBS $OGG_LIBS"
14098 cat >conftest.$ac_ext <<_ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14106 #include <ogg/ogg.h>
14116 rm -f conftest.$ac_objext conftest$ac_exeext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118 (eval $ac_link) 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag"
14126 || test ! -s conftest.err'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 echo "*** The test program compiled, but did not run. This usually means"
14139 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14140 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14141 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14142 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14143 echo "*** is required on your system"
14145 echo "*** If you have an old version installed, it is best to remove it, although"
14146 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 echo "*** The test program failed to compile or link. See the file config.log for the"
14152 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14153 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14154 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14156 rm -f conftest.err conftest.$ac_objext \
14157 conftest$ac_exeext conftest.$ac_ext
14158 CFLAGS="$ac_save_CFLAGS"
14159 LIBS="$ac_save_LIBS"
14164 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14165 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14174 echo "$as_me:$LINENO: result: no" >&5
14175 echo "${ECHO_T}no" >&6
14178 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14179 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14180 if test "x$au_enable_gogo" = xyes; then
14181 if test "x$CYGNUS" = "xyes"; then
14182 echo "$as_me:$LINENO: result: yes" >&5
14183 echo "${ECHO_T}yes" >&6
14185 if test "x$MINGW" = "xyes"; then
14186 echo "$as_me:$LINENO: result: yes" >&5
14187 echo "${ECHO_T}yes" >&6
14189 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
14190 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
14194 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14195 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14196 EXTRALIBS="$EXTRALIBS -lgogo"
14198 echo "$as_me:$LINENO: result: no" >&5
14199 echo "${ECHO_T}no" >&6
14202 if test "x$au_enable_none" = xyes; then
14203 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14204 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14206 echo "$as_me:$LINENO: checking default output mode" >&5
14207 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14208 if test "x$DEFAULT_PLAYMODE" = x; then
14209 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14211 case ".$DEFAULT_PLAYMODE" in
14212 .default) TIMIDITY_OUTPUT_ID=d ;;
14213 .oss) TIMIDITY_OUTPUT_ID=d ;;
14214 .alsa) TIMIDITY_OUTPUT_ID=s ;;
14215 .sun) TIMIDITY_OUTPUT_ID=d ;;
14216 .hpux) TIMIDITY_OUTPUT_ID=d ;;
14217 .irix) TIMIDITY_OUTPUT_ID=d ;;
14218 .mme) TIMIDITY_OUTPUT_ID=d ;;
14219 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
14220 .darwin) TIMIDITY_OUTPUT_ID=d ;;
14221 .w32) TIMIDITY_OUTPUT_ID=d ;;
14222 .alib) TIMIDITY_OUTPUT_ID=A ;;
14223 .nas) TIMIDITY_OUTPUT_ID=n ;;
14224 .arts) TIMIDITY_OUTPUT_ID=R ;;
14225 .esd) TIMIDITY_OUTPUT_ID=e ;;
14226 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
14227 .wav) TIMIDITY_OUTPUT_ID=w ;;
14228 .au) TIMIDITY_OUTPUT_ID=u ;;
14229 .aiff) TIMIDITY_OUTPUT_ID=a ;;
14230 .list) TIMIDITY_OUTPUT_ID=l ;;
14231 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
14232 .gogo) TIMIDITY_OUTPUT_ID=g ;;
14233 .jack) TIMIDITY_OUTPUT_ID=j ;;
14234 *) TIMIDITY_OUTPUT_ID= ;;
14236 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14237 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14240 # Interface Section
14243 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14245 # Check whether --enable-interface or --disable-interface was given.
14246 if test "${enable_interface+set}" = set; then
14247 enableval="$enable_interface"
14248 for i in `echo $enableval | sed 's/,/ /g'`; do
14249 eval "enable_$i=yes"
14253 # Dynamic link configuration
14254 # Check whether --enable-dynamic or --disable-dynamic was given.
14255 if test "${enable_dynamic+set}" = set; then
14256 enableval="$enable_dynamic"
14257 if test "x$enable_dynamic" = xyes; then
14258 enable_dynamic=dynamic
14259 elif test "x$enable_dynamic" != xno; then
14260 for i in `echo $enableval | sed 's/,/ /g'`; do
14261 eval "enable_$i=dynamic"
14267 for i in $interface_targets; do
14268 eval "join_targets=$join_targets\$enable_$i"
14271 case ".$join_targets" in
14272 .*dynamic*) NEEDDLOPEN=yes;;
14276 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14277 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14279 if test "$NEEDDLOPEN" = "yes"; then
14282 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14283 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14284 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <windows.h>
14304 rm -f conftest.$ac_objext conftest$ac_exeext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306 (eval $ac_link) 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag"
14314 || test ! -s conftest.err'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest$ac_exeext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 wapi_cv_func_LoadLibrary=yes
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 wapi_cv_func_LoadLibrary=no
14333 rm -f conftest.err conftest.$ac_objext \
14334 conftest$ac_exeext conftest.$ac_ext
14337 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14338 echo "$as_me:$LINENO: result: yes" >&5
14339 echo "${ECHO_T}yes" >&6
14342 echo "$as_me:$LINENO: result: no" >&5
14343 echo "${ECHO_T}no" >&6
14346 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14348 if test "$have_dl" = "no"; then
14349 echo "$as_me:$LINENO: checking for shl_load" >&5
14350 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14351 if test "${ac_cv_func_shl_load+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14362 #define shl_load innocuous_shl_load
14364 /* System header to define __stub macros and hopefully few prototypes,
14365 which can conflict with char shl_load (); below.
14366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14367 <limits.h> exists even on freestanding compilers. */
14370 # include <limits.h>
14372 # include <assert.h>
14377 /* Override any gcc2 internal prototype to avoid an error. */
14382 /* We use char because int might match the return type of a gcc2
14383 builtin and then its argument prototype would still apply. */
14385 /* The GNU C library defines this for functions which it implements
14386 to always fail with ENOSYS. Some functions are actually named
14387 something starting with __ and the normal name is an alias. */
14388 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14391 char (*f) () = shl_load;
14400 return f != shl_load;
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 (eval $ac_link) 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -z "$ac_c_werror_flag"
14415 || test ! -s conftest.err'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; } &&
14421 { ac_try='test -s conftest$ac_exeext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 ac_cv_func_shl_load=yes
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 ac_cv_func_shl_load=no
14434 rm -f conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14437 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14438 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14439 if test $ac_cv_func_shl_load = yes; then
14444 if test "$have_dl" = "no"; then
14445 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14446 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14447 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458 #define NSLinkModule innocuous_NSLinkModule
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char NSLinkModule (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14466 # include <limits.h>
14468 # include <assert.h>
14471 #undef NSLinkModule
14473 /* Override any gcc2 internal prototype to avoid an error. */
14478 /* We use char because int might match the return type of a gcc2
14479 builtin and then its argument prototype would still apply. */
14480 char NSLinkModule ();
14481 /* The GNU C library defines this for functions which it implements
14482 to always fail with ENOSYS. Some functions are actually named
14483 something starting with __ and the normal name is an alias. */
14484 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14487 char (*f) () = NSLinkModule;
14496 return f != NSLinkModule;
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14503 (eval $ac_link) 2>conftest.er1
14505 grep -v '^ *+' conftest.er1 >conftest.err
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try='test -z "$ac_c_werror_flag"
14511 || test ! -s conftest.err'
14512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } &&
14517 { ac_try='test -s conftest$ac_exeext'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523 ac_cv_func_NSLinkModule=yes
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 ac_cv_func_NSLinkModule=no
14530 rm -f conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14533 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14534 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14535 if test $ac_cv_func_NSLinkModule = yes; then
14540 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14543 if test "$have_dl" = "no"; then
14544 echo "$as_me:$LINENO: checking for dlopen" >&5
14545 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14546 if test "${ac_cv_func_dlopen+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 cat >conftest.$ac_ext <<_ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14557 #define dlopen innocuous_dlopen
14559 /* System header to define __stub macros and hopefully few prototypes,
14560 which can conflict with char dlopen (); below.
14561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14562 <limits.h> exists even on freestanding compilers. */
14565 # include <limits.h>
14567 # include <assert.h>
14572 /* Override any gcc2 internal prototype to avoid an error. */
14577 /* We use char because int might match the return type of a gcc2
14578 builtin and then its argument prototype would still apply. */
14580 /* The GNU C library defines this for functions which it implements
14581 to always fail with ENOSYS. Some functions are actually named
14582 something starting with __ and the normal name is an alias. */
14583 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14586 char (*f) () = dlopen;
14595 return f != dlopen;
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag"
14610 || test ! -s conftest.err'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest$ac_exeext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_cv_func_dlopen=yes
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14627 ac_cv_func_dlopen=no
14629 rm -f conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14632 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14633 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14634 if test $ac_cv_func_dlopen = yes; then
14639 if test "$have_dl" = "no"; then
14640 echo "$as_me:$LINENO: checking for dld_init" >&5
14641 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
14642 if test "${ac_cv_func_dld_init+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 cat >conftest.$ac_ext <<_ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
14652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14653 #define dld_init innocuous_dld_init
14655 /* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char dld_init (); below.
14657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658 <limits.h> exists even on freestanding compilers. */
14661 # include <limits.h>
14663 # include <assert.h>
14668 /* Override any gcc2 internal prototype to avoid an error. */
14673 /* We use char because int might match the return type of a gcc2
14674 builtin and then its argument prototype would still apply. */
14676 /* The GNU C library defines this for functions which it implements
14677 to always fail with ENOSYS. Some functions are actually named
14678 something starting with __ and the normal name is an alias. */
14679 #if defined (__stub_dld_init) || defined (__stub___dld_init)
14682 char (*f) () = dld_init;
14691 return f != dld_init;
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_func_dld_init=yes
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_cv_func_dld_init=no
14725 rm -f conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14728 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
14729 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
14730 if test $ac_cv_func_dld_init = yes; then
14735 if test "$have_dl" = "no"; then
14736 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
14737 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
14738 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 ac_check_lib_save_LIBS=$LIBS
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14750 /* Override any gcc2 internal prototype to avoid an error. */
14754 /* We use char because int might match the return type of a gcc2
14755 builtin and then its argument prototype would still apply. */
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767 (eval $ac_link) 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try='test -s conftest$ac_exeext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14787 ac_cv_lib_dld_dld_init=yes
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ac_cv_lib_dld_dld_init=no
14794 rm -f conftest.err conftest.$ac_objext \
14795 conftest$ac_exeext conftest.$ac_ext
14796 LIBS=$ac_check_lib_save_LIBS
14798 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
14799 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
14800 if test $ac_cv_lib_dld_dld_init = yes; then
14801 have_dl=dld;lib_dl_opt=-ldld
14806 echo "$as_me:$LINENO: checking dynamic link method" >&5
14807 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
14810 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
14811 echo "${ECHO_T}use dl_dlopen.c" >&6
14812 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
14813 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
14814 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
14815 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 case "$ac_cv_header_dlfcn_h" in
14819 yes) i_dlfcn=define;;
14830 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
14832 #include <sys/types.h>
14837 extern int fred() ;
14846 int mode = RTLD_LAZY ;
14848 handle = dlopen("./dyna.$so", mode) ;
14849 if (handle == NULL) {
14854 symbol = dlsym(handle, "fred") ;
14855 if (symbol == NULL) {
14856 /* try putting a leading underscore */
14857 symbol = dlsym(handle, "_fred") ;
14858 if (symbol == NULL) {
14871 : Call the object file tmp-dyna.o in case dlext=o.
14872 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
14873 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
14874 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
14875 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
14878 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
14879 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
14881 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
14882 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
14884 3) timidity_cv_func_dlsym_underscore=yes
14886 4) timidity_cv_func_dlsym_underscore=no
14890 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
14891 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
14893 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
14897 case "x$timidity_cv_func_dlsym_underscore" in
14899 cat >>confdefs.h <<\_ACEOF
14900 #define DLSYM_NEEDS_UNDERSCORE 1
14903 echo "$as_me:$LINENO: result: yes" >&5
14904 echo "${ECHO_T}yes" >&6
14907 echo "$as_me:$LINENO: result: no" >&5
14908 echo "${ECHO_T}no" >&6
14914 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
14915 echo "${ECHO_T}use dl_dld.c" >&6
14916 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
14919 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
14920 echo "${ECHO_T}use dl_hpux.c" >&6
14921 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
14922 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
14925 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
14926 echo "${ECHO_T}use dl_w32.c" >&6
14927 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
14930 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
14931 echo "${ECHO_T}use dl_dyld.c" >&6
14932 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
14936 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
14937 echo "$as_me: WARNING: no method to open a shared object" >&2;}
14942 if test "$NEEDDLOPEN" = "yes"; then
14943 cat >> confdefs.h <<EOF
14944 #define IA_DYNAMIC 1
14948 cat >>confdefs.h <<_ACEOF
14949 #define SHARED_LIB_EXT ".$so"
14952 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
14957 if test "$NEEDDLOPEN" = "yes"; then
14959 NEEDDLOPEN_FALSE='#'
14961 NEEDDLOPEN_TRUE='#'
14970 ENABLE_NCURSES_TRUE=
14971 ENABLE_NCURSES_FALSE='#'
14973 ENABLE_NCURSES_TRUE='#'
14974 ENABLE_NCURSES_FALSE=
14977 # Check whether --enable-ncurses or --disable-ncurses was given.
14978 if test "${enable_ncurses+set}" = set; then
14979 enableval="$enable_ncurses"
14980 case "x$enable_ncurses" in xyes|xdynamic)
14983 for ac_header in ncurses.h ncurses/curses.h curses.h
14985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14987 echo "$as_me:$LINENO: checking for $ac_header" >&5
14988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14995 # Is the header compilable?
14996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 $ac_includes_default
15005 #include <$ac_header>
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009 (eval $ac_compile) 2>conftest.er1
15011 grep -v '^ *+' conftest.er1 >conftest.err
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -z "$ac_c_werror_flag"
15017 || test ! -s conftest.err'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; } &&
15023 { ac_try='test -s conftest.$ac_objext'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15029 ac_header_compiler=yes
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15034 ac_header_compiler=no
15036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15038 echo "${ECHO_T}$ac_header_compiler" >&6
15040 # Is the header present?
15041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 #include <$ac_header>
15051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15054 grep -v '^ *+' conftest.er1 >conftest.err
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } >/dev/null; then
15059 if test -s conftest.err; then
15060 ac_cpp_err=$ac_c_preproc_warn_flag
15061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15068 if test -z "$ac_cpp_err"; then
15069 ac_header_preproc=yes
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 ac_header_preproc=no
15076 rm -f conftest.err conftest.$ac_ext
15077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15078 echo "${ECHO_T}$ac_header_preproc" >&6
15080 # So? What about this header?
15081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15087 ac_header_preproc=yes
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15104 ## ------------------------------- ##
15105 ## Report this to root@mput.dip.jp ##
15106 ## ------------------------------- ##
15109 sed "s/^/$as_me: WARNING: /" >&2
15112 echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 eval "$as_ac_Header=\$ac_header_preproc"
15119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15124 cat >>confdefs.h <<_ACEOF
15125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15134 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15136 *) for i in /usr/include /usr/local/include; do
15137 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15138 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
15139 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
15140 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15147 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15148 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15149 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 ac_check_lib_save_LIBS=$LIBS
15153 LIBS="-lncurses $LIBS"
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15161 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_cv_lib_ncurses_initscr=yes
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15203 ac_cv_lib_ncurses_initscr=no
15205 rm -f conftest.err conftest.$ac_objext \
15206 conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15209 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15210 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15211 if test $ac_cv_lib_ncurses_initscr = yes; then
15212 lib_curses_opt=-lncurses
15214 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15215 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15216 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 ac_check_lib_save_LIBS=$LIBS
15220 LIBS="-lcurses $lib_user32_test $LIBS"
15221 cat >conftest.$ac_ext <<_ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15228 /* Override any gcc2 internal prototype to avoid an error. */
15232 /* We use char because int might match the return type of a gcc2
15233 builtin and then its argument prototype would still apply. */
15234 char PDC_set_ctrl_break ();
15238 PDC_set_ctrl_break ();
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15245 (eval $ac_link) 2>conftest.er1
15247 grep -v '^ *+' conftest.er1 >conftest.err
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag"
15253 || test ! -s conftest.err'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest$ac_exeext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_cv_lib_curses_PDC_set_ctrl_break=yes
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 ac_cv_lib_curses_PDC_set_ctrl_break=no
15272 rm -f conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15274 LIBS=$ac_check_lib_save_LIBS
15276 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15277 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15278 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15279 lib_curses_opt=-lcurses
15281 cat >>confdefs.h <<\_ACEOF
15282 #define USE_PDCURSES 1
15285 lib_user32_opt="$lib_user32_test"
15288 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15289 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15290 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 ac_check_lib_save_LIBS=$LIBS
15294 LIBS="-lpdcurses $LIBS"
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15302 /* Override any gcc2 internal prototype to avoid an error. */
15306 /* We use char because int might match the return type of a gcc2
15307 builtin and then its argument prototype would still apply. */
15308 char PDC_set_ctrl_break ();
15312 PDC_set_ctrl_break ();
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>conftest.er1
15321 grep -v '^ *+' conftest.er1 >conftest.err
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag"
15327 || test ! -s conftest.err'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest$ac_exeext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15346 rm -f conftest.err conftest.$ac_objext \
15347 conftest$ac_exeext conftest.$ac_ext
15348 LIBS=$ac_check_lib_save_LIBS
15350 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15351 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15352 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15353 lib_curses_opt=-lpdcurses
15355 cat >>confdefs.h <<\_ACEOF
15356 #define USE_PDCURSES 1
15359 lib_user32_opt="$lib_user32_test"
15364 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15365 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15366 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 ac_check_lib_save_LIBS=$LIBS
15370 LIBS="-lcurses $LIBS"
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15378 /* Override any gcc2 internal prototype to avoid an error. */
15382 /* We use char because int might match the return type of a gcc2
15383 builtin and then its argument prototype would still apply. */
15393 rm -f conftest.$ac_objext conftest$ac_exeext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15395 (eval $ac_link) 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag"
15403 || test ! -s conftest.err'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest$ac_exeext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_cv_lib_curses_initscr=yes
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_cv_lib_curses_initscr=no
15422 rm -f conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15426 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15427 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15428 if test $ac_cv_lib_curses_initscr = yes; then
15429 lib_curses_opt=-lcurses
15431 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15432 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15439 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15454 case "x$enable_ncurses" in
15456 cat >> confdefs.h <<EOF
15457 #define IA_NCURSES 1
15463 ENABLE_NCURSES_TRUE=
15464 ENABLE_NCURSES_FALSE='#'
15466 ENABLE_NCURSES_TRUE='#'
15467 ENABLE_NCURSES_FALSE=
15470 LIBS="$LIBS $lib_curses_opt"
15473 EXTRALIBS="$EXTRALIBS -lmytinfo"
15476 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15480 dynamic_targets="$dynamic_targets interface_n.\$(so)"
15481 n_so_libs="$lib_curses_opt"
15484 EXTRALIBS="$EXTRALIBS -lmytinfo"
15499 ENABLE_SLANG_FALSE='#'
15501 ENABLE_SLANG_TRUE='#'
15502 ENABLE_SLANG_FALSE=
15505 # Check whether --enable-slang or --disable-slang was given.
15506 if test "${enable_slang+set}" = set; then
15507 enableval="$enable_slang"
15508 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15509 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15510 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 ac_check_lib_save_LIBS=$LIBS
15514 LIBS="-lslang $LIBS"
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15522 /* Override any gcc2 internal prototype to avoid an error. */
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15528 char SLang_init_tty ();
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539 (eval $ac_link) 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest$ac_exeext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_lib_slang_SLang_init_tty=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_cv_lib_slang_SLang_init_tty=no
15566 rm -f conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15568 LIBS=$ac_check_lib_save_LIBS
15570 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15571 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15572 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15576 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15577 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15583 for ac_header in slang/slang.h slang.h
15585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587 echo "$as_me:$LINENO: checking for $ac_header" >&5
15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15595 # Is the header compilable?
15596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 $ac_includes_default
15605 #include <$ac_header>
15607 rm -f conftest.$ac_objext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15609 (eval $ac_compile) 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag"
15617 || test ! -s conftest.err'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; } &&
15623 { ac_try='test -s conftest.$ac_objext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_header_compiler=yes
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 ac_header_compiler=no
15636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15638 echo "${ECHO_T}$ac_header_compiler" >&6
15640 # Is the header present?
15641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15643 cat >conftest.$ac_ext <<_ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15649 #include <$ac_header>
15651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } >/dev/null; then
15659 if test -s conftest.err; then
15660 ac_cpp_err=$ac_c_preproc_warn_flag
15661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15668 if test -z "$ac_cpp_err"; then
15669 ac_header_preproc=yes
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_header_preproc=no
15676 rm -f conftest.err conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15678 echo "${ECHO_T}$ac_header_preproc" >&6
15680 # So? What about this header?
15681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15687 ac_header_preproc=yes
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15704 ## ------------------------------- ##
15705 ## Report this to root@mput.dip.jp ##
15706 ## ------------------------------- ##
15709 sed "s/^/$as_me: WARNING: /" >&2
15712 echo "$as_me:$LINENO: checking for $ac_header" >&5
15713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 eval "$as_ac_Header=\$ac_header_preproc"
15719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15724 cat >>confdefs.h <<_ACEOF
15725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15734 case "x$enable_slang" in
15736 cat >> confdefs.h <<EOF
15744 ENABLE_SLANG_FALSE='#'
15746 ENABLE_SLANG_TRUE='#'
15747 ENABLE_SLANG_FALSE=
15750 LIBS="$LIBS -lslang"
15751 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
15755 dynamic_targets="$dynamic_targets interface_s.\$(so)"
15756 s_so_libs="-lslang"
15757 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
15758 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
15759 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 ac_check_lib_save_LIBS=$LIBS
15763 LIBS="-ltermcap $LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15771 /* Override any gcc2 internal prototype to avoid an error. */
15775 /* We use char because int might match the return type of a gcc2
15776 builtin and then its argument prototype would still apply. */
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_lib_termcap_initscr=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_cv_lib_termcap_initscr=no
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15817 LIBS=$ac_check_lib_save_LIBS
15819 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
15820 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
15821 if test $ac_cv_lib_termcap_initscr = yes; then
15822 s_so_libs="$s_so_libs -ltermcap"
15838 ENABLE_MOTIF_FALSE='#'
15840 ENABLE_MOTIF_TRUE='#'
15841 ENABLE_MOTIF_FALSE=
15844 # Check whether --enable-motif or --disable-motif was given.
15845 if test "${enable_motif+set}" = set; then
15846 enableval="$enable_motif"
15847 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
15848 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
15849 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
15850 { (exit 1); exit 1; }; }
15852 if test "x$have_xm" != xyes; then
15853 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
15854 echo "$as_me: WARNING: Motif library is not found." >&2;}
15859 case "x$enable_motif" in
15861 cat >> confdefs.h <<EOF
15869 ENABLE_MOTIF_FALSE='#'
15871 ENABLE_MOTIF_TRUE='#'
15872 ENABLE_MOTIF_FALSE=
15877 lib_xext_opt=-lXext
15878 if test "x$have_xprelibs" = xyes; then
15879 lib_xprelibs_opt='-lSM -lICE'
15881 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
15885 dynamic_targets="$dynamic_targets interface_m.\$(so)"
15886 if test x$have_xprelibs = xyes; then
15887 m_so_libs="-lXext -lSM -lICE"
15889 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
15903 ENABLE_TCLTK_FALSE='#'
15905 ENABLE_TCLTK_TRUE='#'
15906 ENABLE_TCLTK_FALSE=
15909 # Check whether --enable-tcltk or --disable-tcltk was given.
15910 if test "${enable_tcltk+set}" = set; then
15911 enableval="$enable_tcltk"
15912 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
15913 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
15914 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
15915 { (exit 1); exit 1; }; }
15918 KEEPCPPFLAGS=$CPPFLAGS
15919 KEEPLDFLAGS=$LDFLAGS
15922 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
15923 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
15924 LIBS="$LIBS $lib_dl_opt"
15928 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
15929 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
15930 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
15931 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
15932 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 ac_check_lib_save_LIBS=$LIBS
15937 cat >conftest.$ac_ext <<_ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15944 /* Override any gcc2 internal prototype to avoid an error. */
15948 /* We use char because int might match the return type of a gcc2
15949 builtin and then its argument prototype would still apply. */
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15961 (eval $ac_link) 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest$ac_exeext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 eval "$as_ac_Lib=yes"
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 eval "$as_ac_Lib=no"
15988 rm -f conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15990 LIBS=$ac_check_lib_save_LIBS
15992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15993 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15994 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15999 LIBS="$LIBS $tcl_lib"
16000 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16001 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16002 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16003 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16004 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 ac_check_lib_save_LIBS=$LIBS
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16016 /* Override any gcc2 internal prototype to avoid an error. */
16020 /* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16031 rm -f conftest.$ac_objext conftest$ac_exeext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16033 (eval $ac_link) 2>conftest.er1
16035 grep -v '^ *+' conftest.er1 >conftest.err
16037 cat conftest.err >&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
16040 { ac_try='test -z "$ac_c_werror_flag"
16041 || test ! -s conftest.err'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; } &&
16047 { ac_try='test -s conftest$ac_exeext'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16053 eval "$as_ac_Lib=yes"
16055 echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16058 eval "$as_ac_Lib=no"
16060 rm -f conftest.err conftest.$ac_objext \
16061 conftest$ac_exeext conftest.$ac_ext
16062 LIBS=$ac_check_lib_save_LIBS
16064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16065 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16066 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16073 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16074 CPPFLAGS=$KEEPCPPFLAGS
16075 LDFLAGS=$KEEPLDFLAGS
16077 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16078 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16080 tcltk_dep='tclIndex'
16084 case "x$enable_tcltk" in
16086 cat >> confdefs.h <<EOF
16094 ENABLE_TCLTK_FALSE='#'
16096 ENABLE_TCLTK_TRUE='#'
16097 ENABLE_TCLTK_FALSE=
16100 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16103 EXTRALIBS="$EXTRALIBS -lipc"
16106 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16110 dynamic_targets="$dynamic_targets interface_k.\$(so)"
16111 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16114 k_so_libs="$k_so_libs -lipc"
16117 k_so_libs="$k_so_libs -lX11 -lm"
16128 if test "x$enable_tcltk" = "xdynamic"; then
16129 ENABLE_DYNAMIC_TCLTK_TRUE=
16130 ENABLE_DYNAMIC_TCLTK_FALSE='#'
16132 ENABLE_DYNAMIC_TCLTK_TRUE='#'
16133 ENABLE_DYNAMIC_TCLTK_FALSE=
16141 ENABLE_EMACS_FALSE='#'
16143 ENABLE_EMACS_TRUE='#'
16144 ENABLE_EMACS_FALSE=
16147 # Check whether --enable-emacs or --disable-emacs was given.
16148 if test "${enable_emacs+set}" = set; then
16149 enableval="$enable_emacs"
16150 case "x$enable_emacs" in xyes|xdynamic) ;; esac
16152 case "x$enable_emacs" in
16154 cat >> confdefs.h <<EOF
16162 ENABLE_EMACS_FALSE='#'
16164 ENABLE_EMACS_TRUE='#'
16165 ENABLE_EMACS_FALSE=
16168 ELFILES="$ELFILES timidity.el"
16169 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16173 dynamic_targets="$dynamic_targets interface_e.\$(so)"
16174 ELFILES="$ELFILES timidity.el"
16187 ENABLE_VT100_FALSE='#'
16189 ENABLE_VT100_TRUE='#'
16190 ENABLE_VT100_FALSE=
16193 # Check whether --enable-vt100 or --disable-vt100 was given.
16194 if test "${enable_vt100+set}" = set; then
16195 enableval="$enable_vt100"
16196 case "x$enable_vt100" in xyes|xdynamic) ;; esac
16198 case "x$enable_vt100" in
16200 cat >> confdefs.h <<EOF
16208 ENABLE_VT100_FALSE='#'
16210 ENABLE_VT100_TRUE='#'
16211 ENABLE_VT100_FALSE=
16214 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16217 dynamic_targets="$dynamic_targets interface_T.\$(so)"
16231 ENABLE_XAW_FALSE='#'
16233 ENABLE_XAW_TRUE='#'
16237 # Check whether --enable-xaw or --disable-xaw was given.
16238 if test "${enable_xaw+set}" = set; then
16239 enableval="$enable_xaw"
16240 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
16241 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16242 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16243 { (exit 1); exit 1; }; }
16245 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16246 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16247 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16251 case "x$enable_xaw" in
16253 cat >> confdefs.h <<EOF
16261 ENABLE_XAW_FALSE='#'
16263 ENABLE_XAW_TRUE='#'
16267 if test "x$have_xext" = xyes; then
16268 lib_xext_opt=-lXext
16270 if test "x$have_xprelibs" = xyes; then
16271 lib_xprelibs_opt='-lSM -lICE'
16275 if test "x$have_xaw" = x3d; then
16277 cat >>confdefs.h <<\_ACEOF
16281 lib_xaw_opt=-lXaw3d
16285 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16289 dynamic_targets="$dynamic_targets interface_a.\$(so)"
16290 if test "x$have_xext" = xyes; then
16291 a_so_libs="-lXext -lX11"
16297 a_so_libs="$a_so_libs -lcc_dynamic"
16300 if test "x$have_xprelibs" = xyes; then
16301 a_so_libs="-lSM -lICE $a_so_libs"
16303 if test "x$have_xaw" = xyes; then
16304 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16305 elif test "x$have_xaw" = x3d; then
16307 cat >>confdefs.h <<\_ACEOF
16311 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16313 a_so_libs="$ldflags_x_opt $a_so_libs"
16324 if test "x$enable_xaw" = "xdynamic"; then
16325 ENABLE_DYNAMIC_XAW_TRUE=
16326 ENABLE_DYNAMIC_XAW_FALSE='#'
16328 ENABLE_DYNAMIC_XAW_TRUE='#'
16329 ENABLE_DYNAMIC_XAW_FALSE=
16337 ENABLE_XSKIN_FALSE='#'
16339 ENABLE_XSKIN_TRUE='#'
16340 ENABLE_XSKIN_FALSE=
16343 # Check whether --enable-xskin or --disable-xskin was given.
16344 if test "${enable_xskin+set}" = set; then
16345 enableval="$enable_xskin"
16346 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
16347 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16348 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16349 { (exit 1); exit 1; }; }
16353 case "x$enable_xskin" in
16355 cat >> confdefs.h <<EOF
16363 ENABLE_XSKIN_FALSE='#'
16365 ENABLE_XSKIN_TRUE='#'
16366 ENABLE_XSKIN_FALSE=
16369 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16372 dynamic_targets="$dynamic_targets interface_i.\$(so)"
16373 i_so_libs="$ldflags_x_opt -lX11"
16386 ENABLE_GTK_FALSE='#'
16388 ENABLE_GTK_TRUE='#'
16392 # Check whether --enable-gtk or --disable-gtk was given.
16393 if test "${enable_gtk+set}" = set; then
16394 enableval="$enable_gtk"
16395 case "x$enable_gtk" in xyes|xdynamic)
16396 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16397 if test "${with_gtk_prefix+set}" = set; then
16398 withval="$with_gtk_prefix"
16399 gtk_config_prefix="$withval"
16401 gtk_config_prefix=""
16404 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16405 if test "${with_gtk_exec_prefix+set}" = set; then
16406 withval="$with_gtk_exec_prefix"
16407 gtk_config_exec_prefix="$withval"
16409 gtk_config_exec_prefix=""
16411 # Check whether --enable-gtktest or --disable-gtktest was given.
16412 if test "${enable_gtktest+set}" = set; then
16413 enableval="$enable_gtktest"
16423 gtk_config_args="$gtk_config_args gthread"
16428 if test x$gtk_config_exec_prefix != x ; then
16429 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16430 if test x${GTK_CONFIG+set} != xset ; then
16431 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16434 if test x$gtk_config_prefix != x ; then
16435 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16436 if test x${GTK_CONFIG+set} != xset ; then
16437 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16441 # Extract the first word of "gtk-config", so it can be a program name with args.
16442 set dummy gtk-config; ac_word=$2
16443 echo "$as_me:$LINENO: checking for $ac_word" >&5
16444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16445 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 case $GTK_CONFIG in
16450 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16454 for as_dir in $PATH
16457 test -z "$as_dir" && as_dir=.
16458 for ac_exec_ext in '' $ac_executable_extensions; do
16459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16460 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16467 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16471 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16473 if test -n "$GTK_CONFIG"; then
16474 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16475 echo "${ECHO_T}$GTK_CONFIG" >&6
16477 echo "$as_me:$LINENO: result: no" >&5
16478 echo "${ECHO_T}no" >&6
16481 min_gtk_version=1.1.3
16482 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16483 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16485 if test "$GTK_CONFIG" = "no" ; then
16488 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16489 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16490 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16491 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16492 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16493 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16494 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16495 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16496 if test "x$enable_gtktest" = "xyes" ; then
16497 ac_save_CFLAGS="$CFLAGS"
16498 ac_save_LIBS="$LIBS"
16499 CFLAGS="$CFLAGS $GTK_CFLAGS"
16500 LIBS="$GTK_LIBS $LIBS"
16502 if test "$cross_compiling" = yes; then
16503 echo $ac_n "cross compiling; assumed OK... $ac_c"
16505 cat >conftest.$ac_ext <<_ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16512 #include <gtk/gtk.h>
16514 #include <stdlib.h>
16519 int major, minor, micro;
16522 system ("touch conf.gtktest");
16524 /* HP/UX 9 (%@#!) writes to sscanf strings */
16525 tmp_version = g_strdup("$min_gtk_version");
16526 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
16527 printf("%s, bad version string\n", "$min_gtk_version");
16531 if ((gtk_major_version != $gtk_config_major_version) ||
16532 (gtk_minor_version != $gtk_config_minor_version) ||
16533 (gtk_micro_version != $gtk_config_micro_version))
16535 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16536 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16537 gtk_major_version, gtk_minor_version, gtk_micro_version);
16538 printf ("*** was found! If gtk-config was correct, then it is best\n");
16539 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16540 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16541 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16542 printf("*** required on your system.\n");
16543 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16544 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16545 printf("*** before re-running configure\n");
16547 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16548 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16549 (gtk_minor_version != GTK_MINOR_VERSION) ||
16550 (gtk_micro_version != GTK_MICRO_VERSION))
16552 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16553 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16554 printf("*** library (version %d.%d.%d)\n",
16555 gtk_major_version, gtk_minor_version, gtk_micro_version);
16557 #endif /* defined (GTK_MAJOR_VERSION) ... */
16560 if ((gtk_major_version > major) ||
16561 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16562 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16568 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16569 gtk_major_version, gtk_minor_version, gtk_micro_version);
16570 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16571 major, minor, micro);
16572 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16574 printf("*** If you have already installed a sufficiently new version, this error\n");
16575 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16576 printf("*** being found. The easiest way to fix this is to remove the old version\n");
16577 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16578 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16579 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16580 printf("*** so that the correct libraries are found at run-time))\n");
16587 rm -f conftest$ac_exeext
16588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16589 (eval $ac_link) 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16600 echo "$as_me: program exited with status $ac_status" >&5
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ( exit $ac_status )
16607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16609 CFLAGS="$ac_save_CFLAGS"
16610 LIBS="$ac_save_LIBS"
16613 if test "x$no_gtk" = x ; then
16614 echo "$as_me:$LINENO: result: yes" >&5
16615 echo "${ECHO_T}yes" >&6
16618 echo "$as_me:$LINENO: result: no" >&5
16619 echo "${ECHO_T}no" >&6
16620 if test "$GTK_CONFIG" = "no" ; then
16621 echo "*** The gtk-config script installed by GTK could not be found"
16622 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16623 echo "*** your path, or set the GTK_CONFIG environment variable to the"
16624 echo "*** full path to gtk-config."
16626 if test -f conf.gtktest ; then
16629 echo "*** Could not run GTK test program, checking why..."
16630 CFLAGS="$CFLAGS $GTK_CFLAGS"
16631 LIBS="$LIBS $GTK_LIBS"
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16639 #include <gtk/gtk.h>
16645 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 (eval $ac_link) 2>conftest.er1
16654 grep -v '^ *+' conftest.er1 >conftest.err
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag"
16660 || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 echo "*** The test program compiled, but did not run. This usually means"
16673 echo "*** that the run-time linker is not finding GTK or finding the wrong"
16674 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
16675 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16676 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16677 echo "*** is required on your system"
16679 echo "*** If you have an old version installed, it is best to remove it, although"
16680 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16682 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
16683 echo "*** came with the system with the command"
16685 echo "*** rpm --erase --nodeps gtk gtk-devel"
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 echo "*** The test program failed to compile or link. See the file config.log for the"
16691 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
16692 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
16693 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
16695 rm -f conftest.err conftest.$ac_objext \
16696 conftest$ac_exeext conftest.$ac_ext
16697 CFLAGS="$ac_save_CFLAGS"
16698 LIBS="$ac_save_LIBS"
16710 case "x$enable_gtk" in
16712 cat >> confdefs.h <<EOF
16720 ENABLE_GTK_FALSE='#'
16722 ENABLE_GTK_TRUE='#'
16726 LIBS="$LIBS $GTK_LIBS"
16727 for f in $GTK_CFLAGS; do
16729 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
16730 *) CFLAGS="$CPPFLAGS $f" ;;
16734 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
16738 dynamic_targets="$dynamic_targets interface_g.\$(so)"
16739 if test "x$GCC" = xyes; then
16740 for i in $GTK_LIBS; do
16743 *) g_so_libs="$g_so_libs $i" ;;
16747 g_so_libs="$GTK_LIBS"
16749 for f in $GTK_CFLAGS; do
16751 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
16752 *) CFLAGS="$CPPFLAGS $f" ;;
16767 ENABLE_SERVER_TRUE=
16768 ENABLE_SERVER_FALSE='#'
16770 ENABLE_SERVER_TRUE='#'
16771 ENABLE_SERVER_FALSE=
16774 # Check whether --enable-server or --disable-server was given.
16775 if test "${enable_server+set}" = set; then
16776 enableval="$enable_server"
16777 case "x$enable_server" in xyes|xdynamic) ;; esac
16779 case "x$enable_server" in
16781 cat >> confdefs.h <<EOF
16782 #define IA_SERVER 1
16788 ENABLE_SERVER_TRUE=
16789 ENABLE_SERVER_FALSE='#'
16791 ENABLE_SERVER_TRUE='#'
16792 ENABLE_SERVER_FALSE=
16795 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
16797 for ac_header in sys/soundcard.h
16799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16801 echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16809 # Is the header compilable?
16810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16812 cat >conftest.$ac_ext <<_ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16819 #include <$ac_header>
16821 rm -f conftest.$ac_objext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823 (eval $ac_compile) 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_header_compiler=yes
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_header_compiler=no
16850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16852 echo "${ECHO_T}$ac_header_compiler" >&6
16854 # Is the header present?
16855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16857 cat >conftest.$ac_ext <<_ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 #include <$ac_header>
16865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16868 grep -v '^ *+' conftest.er1 >conftest.err
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev/null; then
16873 if test -s conftest.err; then
16874 ac_cpp_err=$ac_c_preproc_warn_flag
16875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16882 if test -z "$ac_cpp_err"; then
16883 ac_header_preproc=yes
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 ac_header_preproc=no
16890 rm -f conftest.err conftest.$ac_ext
16891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16892 echo "${ECHO_T}$ac_header_preproc" >&6
16894 # So? What about this header?
16895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16901 ac_header_preproc=yes
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16918 ## ------------------------------- ##
16919 ## Report this to root@mput.dip.jp ##
16920 ## ------------------------------- ##
16923 sed "s/^/$as_me: WARNING: /" >&2
16926 echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 eval "$as_ac_Header=\$ac_header_preproc"
16933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16949 dynamic_targets="$dynamic_targets interface_r.\$(so)"
16962 ENABLE_ALSASEQ_TRUE=
16963 ENABLE_ALSASEQ_FALSE='#'
16965 ENABLE_ALSASEQ_TRUE='#'
16966 ENABLE_ALSASEQ_FALSE=
16969 # Check whether --enable-alsaseq or --disable-alsaseq was given.
16970 if test "${enable_alsaseq+set}" = set; then
16971 enableval="$enable_alsaseq"
16972 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
16974 case "x$enable_alsaseq" in
16976 cat >> confdefs.h <<EOF
16977 #define IA_ALSASEQ 1
16983 ENABLE_ALSASEQ_TRUE=
16984 ENABLE_ALSASEQ_FALSE='#'
16986 ENABLE_ALSASEQ_TRUE='#'
16987 ENABLE_ALSASEQ_FALSE=
16990 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
16991 alsa_save_CFLAGS="$CFLAGS"
16992 alsa_save_LDFLAGS="$LDFLAGS"
16993 alsa_save_LIBS="$LIBS"
16997 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
16998 if test "${with_alsa_prefix+set}" = set; then
16999 withval="$with_alsa_prefix"
17000 alsa_prefix="$withval"
17006 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17007 if test "${with_alsa_inc_prefix+set}" = set; then
17008 withval="$with_alsa_inc_prefix"
17009 alsa_inc_prefix="$withval"
17014 # Check whether --enable-alsatest or --disable-alsatest was given.
17015 if test "${enable_alsatest+set}" = set; then
17016 enableval="$enable_alsatest"
17019 enable_alsatest=yes
17022 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17023 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17024 if test "$alsa_inc_prefix" != "" ; then
17025 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17026 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17028 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17029 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17031 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17032 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17033 if test "$alsa_prefix" != "" ; then
17034 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17035 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17038 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17039 LIBS=`echo $LIBS | sed 's/-lm//'`
17040 LIBS=`echo $LIBS | sed 's/-ldl//'`
17041 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17042 LIBS=`echo $LIBS | sed 's/ //'`
17043 LIBS="$ALSA_LIBS $LIBS"
17044 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17045 echo "${ECHO_T}$ALSA_LIBS" >&6
17047 min_alsa_version=0.1.1
17048 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17049 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17051 alsa_min_major_version=`echo $min_alsa_version | \
17052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17053 alsa_min_minor_version=`echo $min_alsa_version | \
17054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17055 alsa_min_micro_version=`echo $min_alsa_version | \
17056 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17062 ac_cpp='$CPP $CPPFLAGS'
17063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17067 cat >conftest.$ac_ext <<_ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 #include <alsa/asoundlib.h>
17080 /* ensure backward compatibility */
17081 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17082 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17084 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17085 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17087 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17088 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17091 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17094 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17095 # error not present
17098 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17101 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17102 # error not present
17105 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17106 # error not present
17116 rm -f conftest.$ac_objext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118 (eval $ac_compile) 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 echo "$as_me:$LINENO: result: found." >&5
17139 echo "${ECHO_T}found." >&6
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 cat >conftest.$ac_ext <<_ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17151 #include <sys/asoundlib.h>
17157 /* ensure backward compatibility */
17158 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17159 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17161 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17162 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17164 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17165 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17168 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17171 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17172 # error not present
17175 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17178 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17179 # error not present
17182 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17183 # error not present
17193 rm -f conftest.$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195 (eval $ac_compile) 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -z "$ac_c_werror_flag"
17203 || test ! -s conftest.err'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 echo "$as_me:$LINENO: result: found." >&5
17216 echo "${ECHO_T}found." >&6
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 echo "$as_me:$LINENO: result: not present." >&5
17222 echo "${ECHO_T}not present." >&6
17223 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17224 echo "${ECHO_T}libasound was not found anywhere." >&6
17227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17228 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17229 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17234 ac_cpp='$CPP $CPPFLAGS'
17235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17241 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17242 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17243 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 ac_check_lib_save_LIBS=$LIBS
17247 LIBS="-lasound $LIBS"
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17255 /* Override any gcc2 internal prototype to avoid an error. */
17259 /* We use char because int might match the return type of a gcc2
17260 builtin and then its argument prototype would still apply. */
17261 char snd_ctl_open ();
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17272 (eval $ac_link) 2>conftest.er1
17274 grep -v '^ *+' conftest.er1 >conftest.err
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag"
17280 || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest$ac_exeext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_cv_lib_asound_snd_ctl_open=yes
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_cv_lib_asound_snd_ctl_open=no
17299 rm -f conftest.err conftest.$ac_objext \
17300 conftest$ac_exeext conftest.$ac_ext
17301 LIBS=$ac_check_lib_save_LIBS
17303 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17304 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17305 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17306 cat >>confdefs.h <<_ACEOF
17307 #define HAVE_LIBASOUND 1
17310 LIBS="-lasound $LIBS"
17313 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17314 echo "${ECHO_T}No linkable libasound was found." >&6
17320 if test "x$alsa_found" = "xyes" ; then
17322 LIBS=`echo $LIBS | sed 's/-lasound//g'`
17323 LIBS=`echo $LIBS | sed 's/ //'`
17324 LIBS="-lasound $LIBS"
17327 CFLAGS="$alsa_save_CFLAGS"
17328 LDFLAGS="$alsa_save_LDFLAGS"
17329 LIBS="$alsa_save_LIBS"
17340 dynamic_targets="$dynamic_targets interface_A.\$(so)"
17353 ENABLE_WINSYN_TRUE=
17354 ENABLE_WINSYN_FALSE='#'
17356 ENABLE_WINSYN_TRUE='#'
17357 ENABLE_WINSYN_FALSE=
17360 # Check whether --enable-winsyn or --disable-winsyn was given.
17361 if test "${enable_winsyn+set}" = set; then
17362 enableval="$enable_winsyn"
17363 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
17365 case "x$enable_winsyn" in
17367 cat >> confdefs.h <<EOF
17368 #define IA_WINSYN 1
17374 ENABLE_WINSYN_TRUE=
17375 ENABLE_WINSYN_FALSE='#'
17377 ENABLE_WINSYN_TRUE='#'
17378 ENABLE_WINSYN_FALSE=
17381 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17384 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17397 ENABLE_PORTMIDISYN_TRUE=
17398 ENABLE_PORTMIDISYN_FALSE='#'
17400 ENABLE_PORTMIDISYN_TRUE='#'
17401 ENABLE_PORTMIDISYN_FALSE=
17404 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17405 if test "${enable_portmidisyn+set}" = set; then
17406 enableval="$enable_portmidisyn"
17407 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
17409 case "x$enable_portmidisyn" in
17411 cat >> confdefs.h <<EOF
17412 #define IA_PORTMIDISYN 1
17418 ENABLE_PORTMIDISYN_TRUE=
17419 ENABLE_PORTMIDISYN_FALSE='#'
17421 ENABLE_PORTMIDISYN_TRUE='#'
17422 ENABLE_PORTMIDISYN_FALSE=
17425 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17428 dynamic_targets="$dynamic_targets interface_P.\$(so)"
17441 ENABLE_W32G_SYN_TRUE=
17442 ENABLE_W32G_SYN_FALSE='#'
17444 ENABLE_W32G_SYN_TRUE='#'
17445 ENABLE_W32G_SYN_FALSE=
17448 # Check whether --enable-winsyng or --disable-winsyng was given.
17449 if test "${enable_winsyng+set}" = set; then
17450 enableval="$enable_winsyng"
17451 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
17453 case "x$enable_winsyng" in
17455 cat >> confdefs.h <<EOF
17456 #define IA_W32G_SYN 1
17462 ENABLE_W32G_SYN_TRUE=
17463 ENABLE_W32G_SYN_FALSE='#'
17465 ENABLE_W32G_SYN_TRUE='#'
17466 ENABLE_W32G_SYN_FALSE=
17469 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17470 lib_user32_opt='-luser32'
17471 LDFLAGS="-mwindows $LDFLAGS"
17472 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"
17476 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17490 ENABLE_W32GUI_TRUE=
17491 ENABLE_W32GUI_FALSE='#'
17493 ENABLE_W32GUI_TRUE='#'
17494 ENABLE_W32GUI_FALSE=
17497 # Check whether --enable-w32gui or --disable-w32gui was given.
17498 if test "${enable_w32gui+set}" = set; then
17499 enableval="$enable_w32gui"
17500 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
17502 case "x$enable_w32gui" in
17504 cat >> confdefs.h <<EOF
17505 #define IA_W32GUI 1
17511 ENABLE_W32GUI_TRUE=
17512 ENABLE_W32GUI_FALSE='#'
17514 ENABLE_W32GUI_TRUE='#'
17515 ENABLE_W32GUI_FALSE=
17518 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17519 lib_user32_opt='-luser32'
17520 LDFLAGS="-mwindows $LDFLAGS"
17521 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"
17525 dynamic_targets="$dynamic_targets interface_w.\$(so)"
17538 ENABLE_PLUGIN_TRUE=
17539 ENABLE_PLUGIN_FALSE='#'
17541 ENABLE_PLUGIN_TRUE='#'
17542 ENABLE_PLUGIN_FALSE=
17545 # Check whether --enable-ump or --disable-ump was given.
17546 if test "${enable_ump+set}" = set; then
17547 enableval="$enable_ump"
17548 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
17549 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
17550 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
17551 { (exit 1); exit 1; }; }
17553 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17554 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17555 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17556 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17560 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17562 # Is the header compilable?
17563 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17564 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 $ac_includes_default
17572 #include <X11/xpm.h>
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576 (eval $ac_compile) 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_c_werror_flag"
17584 || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_header_compiler=yes
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_header_compiler=no
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17605 echo "${ECHO_T}$ac_header_compiler" >&6
17607 # Is the header present?
17608 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17609 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17610 cat >conftest.$ac_ext <<_ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 #include <X11/xpm.h>
17618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } >/dev/null; then
17626 if test -s conftest.err; then
17627 ac_cpp_err=$ac_c_preproc_warn_flag
17628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17635 if test -z "$ac_cpp_err"; then
17636 ac_header_preproc=yes
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_header_preproc=no
17643 rm -f conftest.err conftest.$ac_ext
17644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17645 echo "${ECHO_T}$ac_header_preproc" >&6
17647 # So? What about this header?
17648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17650 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17651 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17652 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
17653 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
17654 ac_header_preproc=yes
17657 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
17658 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
17659 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
17660 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
17661 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
17662 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
17663 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
17664 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17665 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
17666 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
17667 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
17668 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
17671 ## ------------------------------- ##
17672 ## Report this to root@mput.dip.jp ##
17673 ## ------------------------------- ##
17676 sed "s/^/$as_me: WARNING: /" >&2
17679 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17680 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17681 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 ac_cv_header_X11_xpm_h=$ac_header_preproc
17686 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17687 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17690 if test $ac_cv_header_X11_xpm_h = yes; then
17693 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
17694 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
17695 { (exit 1); exit 1; }; }
17699 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17700 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
17701 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 ac_check_lib_save_LIBS=$LIBS
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17713 /* Override any gcc2 internal prototype to avoid an error. */
17717 /* We use char because int might match the return type of a gcc2
17718 builtin and then its argument prototype would still apply. */
17719 char XpmCreatePixmapFromData ();
17723 XpmCreatePixmapFromData ();
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17757 rm -f conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17759 LIBS=$ac_check_lib_save_LIBS
17761 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17762 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
17763 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17766 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
17767 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
17768 { (exit 1); exit 1; }; }
17771 if test "x$have_xext" = xyes; then
17772 lib_xext_opt=-lXext
17774 if test "x$have_xprelibs" = xyes; then
17775 lib_xprelibs_opt='-lSM -lICE'
17781 case "x$enable_ump" in
17783 cat >> confdefs.h <<EOF
17784 #define IA_PLUGIN 1
17790 ENABLE_PLUGIN_TRUE=
17791 ENABLE_PLUGIN_FALSE='#'
17793 ENABLE_PLUGIN_TRUE='#'
17794 ENABLE_PLUGIN_FALSE=
17800 dynamic_targets="$dynamic_targets interface_p.\$(so)"
17811 # Check whether --enable-offix or --disable-offix was given.
17812 if test "${enable_offix+set}" = set; then
17813 enableval="$enable_offix"
17814 if test "$enableval" = "yes"; then
17815 KEEPCPPFLAGS=$CPPFLAGS
17817 KEEPLDFLAGS=$LDFLAGS
17818 CPPFLAGS="$CPPFLAGS $offix_include_dir"
17819 LDFLAGS="$LDFLAGS $offix_lib_dir"
17820 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
17821 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
17822 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
17823 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17826 ac_check_lib_save_LIBS=$LIBS
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17835 /* Override any gcc2 internal prototype to avoid an error. */
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841 char DndInitialize ();
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_c_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 ac_cv_lib_Dnd_DndInitialize=yes
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_cv_lib_Dnd_DndInitialize=no
17879 rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17883 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
17884 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
17885 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
17888 lib_offix_opt="-lDnd"
17890 cat >>confdefs.h <<\_ACEOF
17896 LDFLAGS=$KEEPLDFLAGS
17897 CPPFLAGS=$KEEPCPPFLAGS
17906 # Check whether --enable-network or --disable-network was given.
17907 if test "${enable_network+set}" = set; then
17908 enableval="$enable_network"
17909 if test "$enableval" = "yes"; then
17911 cat >>confdefs.h <<\_ACEOF
17912 #define SUPPORT_SOCKET 1
17919 if test "x$enable_network" = "xyes"; then
17920 ENABLE_NETWORK_TRUE=
17921 ENABLE_NETWORK_FALSE='#'
17923 ENABLE_NETWORK_TRUE='#'
17924 ENABLE_NETWORK_FALSE=
17928 # Check whether --enable-spectrogram or --disable-spectrogram was given.
17929 if test "${enable_spectrogram+set}" = set; then
17930 enableval="$enable_spectrogram"
17931 if test "$enableval" = "yes"; then
17932 if test "x$with_x" != xyes; then
17933 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
17934 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
17935 { (exit 1); exit 1; }; }
17938 cat >>confdefs.h <<\_ACEOF
17939 #define SUPPORT_SOUNDSPEC 1
17946 if test "x$enable_spectrogram" = "xyes"; then
17947 ENABLE_SOUND_SPEC_TRUE=
17948 ENABLE_SOUND_SPEC_FALSE='#'
17950 ENABLE_SOUND_SPEC_TRUE='#'
17951 ENABLE_SOUND_SPEC_FALSE=
17955 # Check whether --enable-spline or --disable-spline was given.
17956 if test "${enable_spline+set}" = set; then
17957 enableval="$enable_spline"
17958 case "x$enableval" in
17961 cat >>confdefs.h <<\_ACEOF
17962 #define LINEAR_INTERPOLATION 1
17968 cat >>confdefs.h <<\_ACEOF
17969 #define CSPLINE_INTERPOLATION 1
17975 cat >>confdefs.h <<\_ACEOF
17976 #define LAGRANGE_INTERPOLATION 1
17982 cat >>confdefs.h <<\_ACEOF
17983 #define NEWTON_INTERPOLATION 1
17989 cat >>confdefs.h <<\_ACEOF
17990 #define GAUSS_INTERPOLATION 1
17996 cat >>confdefs.h <<\_ACEOF
17997 #define NO_INTERPOLATION 1
18002 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18003 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18004 { (exit 1); exit 1; }; }
18009 # Check whether --enable-wrd or --disable-wrd was given.
18010 if test "${enable_wrd+set}" = set; then
18011 enableval="$enable_wrd"
18012 if test "$enableval" = "yes"; then
18013 if test "x$with_x" != xyes; then
18014 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18015 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18016 { (exit 1); exit 1; }; }
18019 cat >>confdefs.h <<\_ACEOF
18023 enable_sherry_wrd=yes
18024 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18025 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18026 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 ac_check_lib_save_LIBS=$LIBS
18031 cat >conftest.$ac_ext <<_ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18038 /* Override any gcc2 internal prototype to avoid an error. */
18042 /* We use char because int might match the return type of a gcc2
18043 builtin and then its argument prototype would still apply. */
18044 char zlibVersion ();
18053 rm -f conftest.$ac_objext conftest$ac_exeext
18054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055 (eval $ac_link) 2>conftest.er1
18057 grep -v '^ *+' conftest.er1 >conftest.err
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try='test -z "$ac_c_werror_flag"
18063 || test ! -s conftest.err'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 ac_cv_lib_z_zlibVersion=yes
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18080 ac_cv_lib_z_zlibVersion=no
18082 rm -f conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18084 LIBS=$ac_check_lib_save_LIBS
18086 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18087 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18088 if test $ac_cv_lib_z_zlibVersion = yes; then
18091 enable_sherry_wrd=no
18094 if test "${ac_cv_header_png_h+set}" = set; then
18095 echo "$as_me:$LINENO: checking for png.h" >&5
18096 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18097 if test "${ac_cv_header_png_h+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18101 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18103 # Is the header compilable?
18104 echo "$as_me:$LINENO: checking png.h usability" >&5
18105 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 $ac_includes_default
18115 rm -f conftest.$ac_objext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117 (eval $ac_compile) 2>conftest.er1
18119 grep -v '^ *+' conftest.er1 >conftest.err
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try='test -z "$ac_c_werror_flag"
18125 || test ! -s conftest.err'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest.$ac_objext'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 ac_header_compiler=yes
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18142 ac_header_compiler=no
18144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18146 echo "${ECHO_T}$ac_header_compiler" >&6
18148 # Is the header present?
18149 echo "$as_me:$LINENO: checking png.h presence" >&5
18150 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18151 cat >conftest.$ac_ext <<_ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } >/dev/null; then
18167 if test -s conftest.err; then
18168 ac_cpp_err=$ac_c_preproc_warn_flag
18169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18176 if test -z "$ac_cpp_err"; then
18177 ac_header_preproc=yes
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_header_preproc=no
18184 rm -f conftest.err conftest.$ac_ext
18185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18186 echo "${ECHO_T}$ac_header_preproc" >&6
18188 # So? What about this header?
18189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18191 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18192 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18193 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18194 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18195 ac_header_preproc=yes
18198 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18199 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18200 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18201 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18202 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18203 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18204 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
18205 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18207 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18209 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18212 ## ------------------------------- ##
18213 ## Report this to root@mput.dip.jp ##
18214 ## ------------------------------- ##
18217 sed "s/^/$as_me: WARNING: /" >&2
18220 echo "$as_me:$LINENO: checking for png.h" >&5
18221 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18222 if test "${ac_cv_header_png_h+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 ac_cv_header_png_h=$ac_header_preproc
18227 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18228 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18231 if test $ac_cv_header_png_h = yes; then
18234 enable_sherry_wrd=no
18238 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18239 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18240 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-lpng -lz $LIBS"
18245 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18252 /* Override any gcc2 internal prototype to avoid an error. */
18256 /* We use char because int might match the return type of a gcc2
18257 builtin and then its argument prototype would still apply. */
18258 char png_init_io ();
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269 (eval $ac_link) 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_lib_png_png_init_io=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_cv_lib_png_png_init_io=no
18296 rm -f conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18300 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18301 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18302 if test $ac_cv_lib_png_png_init_io = yes; then
18305 enable_sherry_wrd=no
18308 if test "$enable_sherry_wrd" = yes; then
18310 cat >>confdefs.h <<\_ACEOF
18311 #define ENABLE_SHERRY 1
18317 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18318 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18320 if test "x$have_xext" = xyes; then
18321 lib_xext_opt=-lXext
18334 if test "x$enable_wrd" = "xyes"; then
18336 ENABLE_WRD_FALSE='#'
18338 ENABLE_WRD_TRUE='#'
18345 if test "x$CYGNUS" = xyes; then
18355 if test "x$MINGW" = xyes; then
18365 if test "x$W32READDIR" = "xyes"; then
18367 W32READDIR_FALSE='#'
18369 W32READDIR_TRUE='#'
18374 rm -f wordtmp >/dev/null 2>&1
18376 for f in $LDFLAGS; do
18377 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18380 echo $f >>wordtmp; val="$val $f"
18385 rm -f wordtmp >/dev/null 2>&1
18387 rm -f wordtmp >/dev/null 2>&1
18389 for f in $SHLDFLAGS; do
18390 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18393 echo $f >>wordtmp; val="$val $f"
18398 rm -f wordtmp >/dev/null 2>&1
18400 rm -f wordtmp >/dev/null 2>&1
18402 for f in $EXTRACFLAGS $CFLAGS; do
18403 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18406 echo $f >>wordtmp; val="$val $f"
18411 rm -f wordtmp >/dev/null 2>&1
18413 rm -f wordtmp >/dev/null 2>&1
18415 for f in $CPPFLAGS $EXTRADEFS; do
18416 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18419 echo $f >>wordtmp; val="$val $f"
18424 rm -f wordtmp >/dev/null 2>&1
18427 if test "x$oss_device" != x; then
18429 cat >>confdefs.h <<_ACEOF
18430 #define OSS_DEVICE "$oss_device"
18435 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18437 cat >>confdefs.h <<_ACEOF
18438 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18443 if test "x$with_x" = xyes; then
18444 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/"`
18446 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18447 SHLD="$SHLD $SHLDFLAGS"
18467 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"
18469 cat >confcache <<\_ACEOF
18470 # This file is a shell script that caches the results of configure
18471 # tests run on this system so they can be shared between configure
18472 # scripts and configure runs, see configure's option --config-cache.
18473 # It is not useful on other systems. If it contains results you don't
18474 # want to keep, you may remove or edit it.
18476 # config.status only pays attention to the cache file if you give it
18477 # the --recheck option to rerun configure.
18479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18481 # following values.
18485 # The following way of writing the cache mishandles newlines in values,
18486 # but we know of no workaround that is simple, portable, and efficient.
18487 # So, don't put newlines in cache variables' values.
18488 # Ultrix sh set writes to stderr and can't be redirected directly,
18489 # and sets the high bit in the cache file unless we assign to the vars.
18492 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18494 # `set' does not quote correctly, so add quotes (double-quote
18495 # substitution turns \\\\ into \\, and sed turns \\ into \).
18498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18501 # `set' quotes correctly as required by POSIX, so do not add quotes.
18503 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18512 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18514 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18515 if test -w $cache_file; then
18516 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18517 cat confcache >$cache_file
18519 echo "not updating unwritable cache $cache_file"
18524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18525 # Let make expand exec_prefix.
18526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18528 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18530 # trailing colons and then remove the whole line if VPATH becomes empty
18531 # (actually we leave an empty line to preserve line numbers).
18532 if test "x$srcdir" = x.; then
18533 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18534 s/:*\$(srcdir):*/:/;
18535 s/:*\${srcdir}:*/:/;
18537 s/^\([^=]*=[ ]*\):*/\1/;
18543 DEFS=-DHAVE_CONFIG_H
18547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18548 # 1. Remove the extension, and $U if already installed.
18549 ac_i=`echo "$ac_i" |
18550 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18552 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18553 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18555 LIBOBJS=$ac_libobjs
18557 LTLIBOBJS=$ac_ltlibobjs
18560 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18561 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18562 Usually this means the macro was only invoked conditionally." >&5
18563 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18564 Usually this means the macro was only invoked conditionally." >&2;}
18565 { (exit 1); exit 1; }; }
18567 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18568 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18569 Usually this means the macro was only invoked conditionally." >&5
18570 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18571 Usually this means the macro was only invoked conditionally." >&2;}
18572 { (exit 1); exit 1; }; }
18574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18575 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18576 Usually this means the macro was only invoked conditionally." >&5
18577 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18578 Usually this means the macro was only invoked conditionally." >&2;}
18579 { (exit 1); exit 1; }; }
18581 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18582 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18583 Usually this means the macro was only invoked conditionally." >&5
18584 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18585 Usually this means the macro was only invoked conditionally." >&2;}
18586 { (exit 1); exit 1; }; }
18588 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18589 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18590 Usually this means the macro was only invoked conditionally." >&5
18591 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18592 Usually this means the macro was only invoked conditionally." >&2;}
18593 { (exit 1); exit 1; }; }
18595 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18596 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18597 Usually this means the macro was only invoked conditionally." >&5
18598 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18599 Usually this means the macro was only invoked conditionally." >&2;}
18600 { (exit 1); exit 1; }; }
18602 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18603 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18604 Usually this means the macro was only invoked conditionally." >&5
18605 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18606 Usually this means the macro was only invoked conditionally." >&2;}
18607 { (exit 1); exit 1; }; }
18609 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18610 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18611 Usually this means the macro was only invoked conditionally." >&5
18612 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18613 Usually this means the macro was only invoked conditionally." >&2;}
18614 { (exit 1); exit 1; }; }
18616 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18617 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18618 Usually this means the macro was only invoked conditionally." >&5
18619 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18620 Usually this means the macro was only invoked conditionally." >&2;}
18621 { (exit 1); exit 1; }; }
18623 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18624 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18625 Usually this means the macro was only invoked conditionally." >&5
18626 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18627 Usually this means the macro was only invoked conditionally." >&2;}
18628 { (exit 1); exit 1; }; }
18630 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18631 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18632 Usually this means the macro was only invoked conditionally." >&5
18633 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18634 Usually this means the macro was only invoked conditionally." >&2;}
18635 { (exit 1); exit 1; }; }
18637 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18638 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18639 Usually this means the macro was only invoked conditionally." >&5
18640 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18641 Usually this means the macro was only invoked conditionally." >&2;}
18642 { (exit 1); exit 1; }; }
18644 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18645 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18646 Usually this means the macro was only invoked conditionally." >&5
18647 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18648 Usually this means the macro was only invoked conditionally." >&2;}
18649 { (exit 1); exit 1; }; }
18651 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
18652 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18653 Usually this means the macro was only invoked conditionally." >&5
18654 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18655 Usually this means the macro was only invoked conditionally." >&2;}
18656 { (exit 1); exit 1; }; }
18658 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18659 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18660 Usually this means the macro was only invoked conditionally." >&5
18661 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18662 Usually this means the macro was only invoked conditionally." >&2;}
18663 { (exit 1); exit 1; }; }
18665 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18666 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18667 Usually this means the macro was only invoked conditionally." >&5
18668 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18669 Usually this means the macro was only invoked conditionally." >&2;}
18670 { (exit 1); exit 1; }; }
18672 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18673 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18674 Usually this means the macro was only invoked conditionally." >&5
18675 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18676 Usually this means the macro was only invoked conditionally." >&2;}
18677 { (exit 1); exit 1; }; }
18679 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18680 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18681 Usually this means the macro was only invoked conditionally." >&5
18682 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18683 Usually this means the macro was only invoked conditionally." >&2;}
18684 { (exit 1); exit 1; }; }
18686 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18687 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18688 Usually this means the macro was only invoked conditionally." >&5
18689 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18690 Usually this means the macro was only invoked conditionally." >&2;}
18691 { (exit 1); exit 1; }; }
18693 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18694 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18695 Usually this means the macro was only invoked conditionally." >&5
18696 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18697 Usually this means the macro was only invoked conditionally." >&2;}
18698 { (exit 1); exit 1; }; }
18700 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
18701 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18702 Usually this means the macro was only invoked conditionally." >&5
18703 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18704 Usually this means the macro was only invoked conditionally." >&2;}
18705 { (exit 1); exit 1; }; }
18707 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18708 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18709 Usually this means the macro was only invoked conditionally." >&5
18710 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18711 Usually this means the macro was only invoked conditionally." >&2;}
18712 { (exit 1); exit 1; }; }
18714 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18715 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18716 Usually this means the macro was only invoked conditionally." >&5
18717 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18718 Usually this means the macro was only invoked conditionally." >&2;}
18719 { (exit 1); exit 1; }; }
18721 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18722 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18723 Usually this means the macro was only invoked conditionally." >&5
18724 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18725 Usually this means the macro was only invoked conditionally." >&2;}
18726 { (exit 1); exit 1; }; }
18728 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18729 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18730 Usually this means the macro was only invoked conditionally." >&5
18731 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18732 Usually this means the macro was only invoked conditionally." >&2;}
18733 { (exit 1); exit 1; }; }
18735 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18736 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18737 Usually this means the macro was only invoked conditionally." >&5
18738 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18739 Usually this means the macro was only invoked conditionally." >&2;}
18740 { (exit 1); exit 1; }; }
18742 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18743 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18744 Usually this means the macro was only invoked conditionally." >&5
18745 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18746 Usually this means the macro was only invoked conditionally." >&2;}
18747 { (exit 1); exit 1; }; }
18749 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18750 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18751 Usually this means the macro was only invoked conditionally." >&5
18752 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18753 Usually this means the macro was only invoked conditionally." >&2;}
18754 { (exit 1); exit 1; }; }
18756 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18757 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18758 Usually this means the macro was only invoked conditionally." >&5
18759 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18760 Usually this means the macro was only invoked conditionally." >&2;}
18761 { (exit 1); exit 1; }; }
18763 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18764 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18765 Usually this means the macro was only invoked conditionally." >&5
18766 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18767 Usually this means the macro was only invoked conditionally." >&2;}
18768 { (exit 1); exit 1; }; }
18770 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18771 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18772 Usually this means the macro was only invoked conditionally." >&5
18773 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18774 Usually this means the macro was only invoked conditionally." >&2;}
18775 { (exit 1); exit 1; }; }
18777 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18778 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18779 Usually this means the macro was only invoked conditionally." >&5
18780 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18781 Usually this means the macro was only invoked conditionally." >&2;}
18782 { (exit 1); exit 1; }; }
18784 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18785 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18786 Usually this means the macro was only invoked conditionally." >&5
18787 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18788 Usually this means the macro was only invoked conditionally." >&2;}
18789 { (exit 1); exit 1; }; }
18791 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18792 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18793 Usually this means the macro was only invoked conditionally." >&5
18794 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18795 Usually this means the macro was only invoked conditionally." >&2;}
18796 { (exit 1); exit 1; }; }
18798 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18799 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18800 Usually this means the macro was only invoked conditionally." >&5
18801 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18802 Usually this means the macro was only invoked conditionally." >&2;}
18803 { (exit 1); exit 1; }; }
18805 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18806 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18807 Usually this means the macro was only invoked conditionally." >&5
18808 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18809 Usually this means the macro was only invoked conditionally." >&2;}
18810 { (exit 1); exit 1; }; }
18812 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18813 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18814 Usually this means the macro was only invoked conditionally." >&5
18815 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18816 Usually this means the macro was only invoked conditionally." >&2;}
18817 { (exit 1); exit 1; }; }
18819 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18820 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18821 Usually this means the macro was only invoked conditionally." >&5
18822 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18823 Usually this means the macro was only invoked conditionally." >&2;}
18824 { (exit 1); exit 1; }; }
18826 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18827 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18828 Usually this means the macro was only invoked conditionally." >&5
18829 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18830 Usually this means the macro was only invoked conditionally." >&2;}
18831 { (exit 1); exit 1; }; }
18833 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
18834 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
18835 Usually this means the macro was only invoked conditionally." >&5
18836 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
18837 Usually this means the macro was only invoked conditionally." >&2;}
18838 { (exit 1); exit 1; }; }
18840 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
18841 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18842 Usually this means the macro was only invoked conditionally." >&5
18843 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18844 Usually this means the macro was only invoked conditionally." >&2;}
18845 { (exit 1); exit 1; }; }
18847 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
18848 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
18849 Usually this means the macro was only invoked conditionally." >&5
18850 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
18851 Usually this means the macro was only invoked conditionally." >&2;}
18852 { (exit 1); exit 1; }; }
18854 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
18855 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
18856 Usually this means the macro was only invoked conditionally." >&5
18857 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
18858 Usually this means the macro was only invoked conditionally." >&2;}
18859 { (exit 1); exit 1; }; }
18861 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18862 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
18863 Usually this means the macro was only invoked conditionally." >&5
18864 echo "$as_me: error: conditional \"MINGW\" was never defined.
18865 Usually this means the macro was only invoked conditionally." >&2;}
18866 { (exit 1); exit 1; }; }
18868 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
18869 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
18870 Usually this means the macro was only invoked conditionally." >&5
18871 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
18872 Usually this means the macro was only invoked conditionally." >&2;}
18873 { (exit 1); exit 1; }; }
18876 : ${CONFIG_STATUS=./config.status}
18877 ac_clean_files_save=$ac_clean_files
18878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18879 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18880 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18881 cat >$CONFIG_STATUS <<_ACEOF
18883 # Generated by $as_me.
18884 # Run this file to recreate the current configuration.
18885 # Compiler output produced by configure, useful for debugging
18886 # configure, is in config.log if it exists.
18889 ac_cs_recheck=false
18891 SHELL=\${CONFIG_SHELL-$SHELL}
18894 cat >>$CONFIG_STATUS <<\_ACEOF
18895 ## --------------------- ##
18896 ## M4sh Initialization. ##
18897 ## --------------------- ##
18899 # Be Bourne compatible
18900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18903 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18904 # is contrary to our usage. Disable this feature.
18905 alias -g '${1+"$@"}'='"$@"'
18906 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18909 DUALCASE=1; export DUALCASE # for MKS sh
18911 # Support unset when possible.
18912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18919 # Work around bugs in pre-3.0 UWIN ksh.
18920 $as_unset ENV MAIL MAILPATH
18927 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18928 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18929 LC_TELEPHONE LC_TIME
18931 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18932 eval $as_var=C; export $as_var
18938 # Required to use basename.
18939 if expr a : '\(a\)' >/dev/null 2>&1; then
18945 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18946 as_basename=basename
18952 # Name of the executable.
18953 as_me=`$as_basename "$0" ||
18954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18955 X"$0" : 'X\(//\)$' \| \
18956 X"$0" : 'X\(/\)$' \| \
18957 . : '\(.\)' 2>/dev/null ||
18959 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18960 /^X\/\(\/\/\)$/{ s//\1/; q; }
18961 /^X\/\(\/\).*/{ s//\1/; q; }
18965 # PATH needs CR, and LINENO needs CR and PATH.
18966 # Avoid depending upon Character Ranges.
18967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18970 as_cr_digits='0123456789'
18971 as_cr_alnum=$as_cr_Letters$as_cr_digits
18973 # The user is always right.
18974 if test "${PATH_SEPARATOR+set}" != set; then
18975 echo "#! /bin/sh" >conf$$.sh
18976 echo "exit 0" >>conf$$.sh
18978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18987 as_lineno_1=$LINENO
18988 as_lineno_2=$LINENO
18989 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18990 test "x$as_lineno_1" != "x$as_lineno_2" &&
18991 test "x$as_lineno_3" = "x$as_lineno_2" || {
18992 # Find who we are. Look in the path if we contain no path at all
18995 *[\\/]* ) as_myself=$0 ;;
18996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18997 for as_dir in $PATH
19000 test -z "$as_dir" && as_dir=.
19001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19006 # We did not find ourselves, most probably we were run as `sh COMMAND'
19007 # in which case we are not to be found in the path.
19008 if test "x$as_myself" = x; then
19011 if test ! -f "$as_myself"; then
19012 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19013 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19014 { (exit 1); exit 1; }; }
19016 case $CONFIG_SHELL in
19018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19019 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19022 test -z "$as_dir" && as_dir=.
19023 for as_base in sh bash ksh sh5; do
19026 if ("$as_dir/$as_base" -c '
19027 as_lineno_1=$LINENO
19028 as_lineno_2=$LINENO
19029 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19030 test "x$as_lineno_1" != "x$as_lineno_2" &&
19031 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19032 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19033 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19034 CONFIG_SHELL=$as_dir/$as_base
19035 export CONFIG_SHELL
19036 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19044 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19045 # uniformly replaced by the line number. The first 'sed' inserts a
19046 # line-number line before each line; the second 'sed' does the real
19047 # work. The second script uses 'N' to pair each line-number line
19048 # with the numbered line, and appends trailing '-' during
19049 # substitution so that $LINENO is not a special case at line end.
19050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19051 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19052 sed '=' <$as_myself |
19057 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19060 s,^['$as_cr_digits']*\n,,
19061 ' >$as_me.lineno &&
19062 chmod +x $as_me.lineno ||
19063 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19064 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19065 { (exit 1); exit 1; }; }
19067 # Don't try to exec as it changes $[0], causing all sort of problems
19068 # (the dirname of $[0] is not the place where we might find the
19069 # original and so on. Autoconf is especially sensible to this).
19071 # Exit status is that of the last command.
19076 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19077 *c*,-n*) ECHO_N= ECHO_C='
19079 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19080 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19083 if expr a : '\(a\)' >/dev/null 2>&1; then
19089 rm -f conf$$ conf$$.exe conf$$.file
19091 if ln -s conf$$.file conf$$ 2>/dev/null; then
19092 # We could just check for DJGPP; but this test a) works b) is more generic
19093 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19094 if test -f conf$$.exe; then
19095 # Don't use ln at all; we don't have any links
19100 elif ln conf$$.file conf$$ 2>/dev/null; then
19105 rm -f conf$$ conf$$.exe conf$$.file
19107 if mkdir -p . 2>/dev/null; then
19110 test -d ./-p && rmdir ./-p
19114 as_executable_p="test -f"
19116 # Sed expression to map a string onto a valid CPP name.
19117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19119 # Sed expression to map a string onto a valid variable name.
19120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19124 # We need space, tab and new line, in precisely that order.
19134 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19135 # report actual input values of CONFIG_FILES etc. instead of their
19136 # values after options handling. Logging --version etc. is OK.
19140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19141 ## Running $as_me. ##
19146 This file was extended by TiMidity++ $as_me current, which was
19147 generated by GNU Autoconf 2.59. Invocation command line was
19149 CONFIG_FILES = $CONFIG_FILES
19150 CONFIG_HEADERS = $CONFIG_HEADERS
19151 CONFIG_LINKS = $CONFIG_LINKS
19152 CONFIG_COMMANDS = $CONFIG_COMMANDS
19156 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19160 # Files that config.status was made for.
19161 if test -n "$ac_config_files"; then
19162 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19165 if test -n "$ac_config_headers"; then
19166 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19169 if test -n "$ac_config_links"; then
19170 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19173 if test -n "$ac_config_commands"; then
19174 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19177 cat >>$CONFIG_STATUS <<\_ACEOF
19180 \`$as_me' instantiates files from templates according to the
19181 current configuration.
19183 Usage: $0 [OPTIONS] [FILE]...
19185 -h, --help print this help, then exit
19186 -V, --version print version number, then exit
19187 -q, --quiet do not print progress messages
19188 -d, --debug don't remove temporary files
19189 --recheck update $as_me by reconfiguring in the same conditions
19190 --file=FILE[:TEMPLATE]
19191 instantiate the configuration file FILE
19192 --header=FILE[:TEMPLATE]
19193 instantiate the configuration header FILE
19195 Configuration files:
19198 Configuration headers:
19201 Configuration commands:
19204 Report bugs to <bug-autoconf@gnu.org>."
19207 cat >>$CONFIG_STATUS <<_ACEOF
19209 TiMidity++ config.status current
19210 configured by $0, generated by GNU Autoconf 2.59,
19211 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19213 Copyright (C) 2003 Free Software Foundation, Inc.
19214 This config.status script is free software; the Free Software Foundation
19215 gives unlimited permission to copy, distribute and modify it."
19220 cat >>$CONFIG_STATUS <<\_ACEOF
19221 # If no file are specified by the user, then we need to provide default
19222 # value. By we need to know if files were specified by the user.
19228 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19229 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19237 *) # This is not an option, so the user has probably given explicit
19240 ac_need_defaults=false;;
19244 # Handling of the options.
19246 cat >>$CONFIG_STATUS <<\_ACEOF
19247 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19249 --version | --vers* | -V )
19250 echo "$ac_cs_version"; exit 0 ;;
19252 # Conflict between --help and --header
19253 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19254 Try \`$0 --help' for more information." >&5
19255 echo "$as_me: error: ambiguous option: $1
19256 Try \`$0 --help' for more information." >&2;}
19257 { (exit 1); exit 1; }; };;
19258 --help | --hel | -h )
19259 echo "$ac_cs_usage"; exit 0 ;;
19260 --debug | --d* | -d )
19262 --file | --fil | --fi | --f )
19264 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19265 ac_need_defaults=false;;
19266 --header | --heade | --head | --hea )
19268 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19269 ac_need_defaults=false;;
19270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19274 # This is an error.
19275 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19276 Try \`$0 --help' for more information." >&5
19277 echo "$as_me: error: unrecognized option: $1
19278 Try \`$0 --help' for more information." >&2;}
19279 { (exit 1); exit 1; }; } ;;
19281 *) ac_config_targets="$ac_config_targets $1" ;;
19287 ac_configure_extra_args=
19289 if $ac_cs_silent; then
19291 ac_configure_extra_args="$ac_configure_extra_args --silent"
19295 cat >>$CONFIG_STATUS <<_ACEOF
19296 if \$ac_cs_recheck; then
19297 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19298 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19303 cat >>$CONFIG_STATUS <<_ACEOF
19305 # INIT-COMMANDS section.
19308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19314 cat >>$CONFIG_STATUS <<\_ACEOF
19315 for ac_config_target in $ac_config_targets
19317 case "$ac_config_target" in
19318 # Handling of arguments.
19319 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19320 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19321 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19322 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19323 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19324 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19325 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19326 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19327 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19328 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19329 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19330 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19331 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19332 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19333 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19334 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19335 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19336 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19337 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19338 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19339 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19340 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19341 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19342 { (exit 1); exit 1; }; };;
19346 # If the user did not use the arguments to specify the items to instantiate,
19347 # then the envvar interface is used. Set only those that are not.
19348 # We use the long form for the default assignment because of an extremely
19349 # bizarre bug on SunOS 4.1.3.
19350 if $ac_need_defaults; then
19351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19352 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19353 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19356 # Have a temporary directory for convenience. Make it in the build tree
19357 # simply because there is no reason to put it here, and in addition,
19358 # creating and moving files from /tmp can sometimes cause problems.
19359 # Create a temporary directory, and hook for its removal unless debugging.
19362 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19363 trap '{ (exit 1); exit 1; }' 1 2 13 15
19366 # Create a (secure) tmp directory for tmp files.
19369 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19370 test -n "$tmp" && test -d "$tmp"
19373 tmp=./confstat$$-$RANDOM
19374 (umask 077 && mkdir $tmp)
19377 echo "$me: cannot create a temporary directory in ." >&2
19378 { (exit 1); exit 1; }
19383 cat >>$CONFIG_STATUS <<_ACEOF
19386 # CONFIG_FILES section.
19389 # No need to generate the scripts if there are no CONFIG_FILES.
19390 # This happens for instance when ./config.status config.h
19391 if test -n "\$CONFIG_FILES"; then
19392 # Protect against being on the right side of a sed subst in config.status.
19393 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19394 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19395 s,@SHELL@,$SHELL,;t t
19396 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19397 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19398 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19399 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19400 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19401 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19402 s,@exec_prefix@,$exec_prefix,;t t
19403 s,@prefix@,$prefix,;t t
19404 s,@program_transform_name@,$program_transform_name,;t t
19405 s,@bindir@,$bindir,;t t
19406 s,@sbindir@,$sbindir,;t t
19407 s,@libexecdir@,$libexecdir,;t t
19408 s,@datadir@,$datadir,;t t
19409 s,@sysconfdir@,$sysconfdir,;t t
19410 s,@sharedstatedir@,$sharedstatedir,;t t
19411 s,@localstatedir@,$localstatedir,;t t
19412 s,@libdir@,$libdir,;t t
19413 s,@includedir@,$includedir,;t t
19414 s,@oldincludedir@,$oldincludedir,;t t
19415 s,@infodir@,$infodir,;t t
19416 s,@mandir@,$mandir,;t t
19417 s,@build_alias@,$build_alias,;t t
19418 s,@host_alias@,$host_alias,;t t
19419 s,@target_alias@,$target_alias,;t t
19420 s,@DEFS@,$DEFS,;t t
19421 s,@ECHO_C@,$ECHO_C,;t t
19422 s,@ECHO_N@,$ECHO_N,;t t
19423 s,@ECHO_T@,$ECHO_T,;t t
19424 s,@LIBS@,$LIBS,;t t
19425 s,@build@,$build,;t t
19426 s,@build_cpu@,$build_cpu,;t t
19427 s,@build_vendor@,$build_vendor,;t t
19428 s,@build_os@,$build_os,;t t
19429 s,@host@,$host,;t t
19430 s,@host_cpu@,$host_cpu,;t t
19431 s,@host_vendor@,$host_vendor,;t t
19432 s,@host_os@,$host_os,;t t
19433 s,@target@,$target,;t t
19434 s,@target_cpu@,$target_cpu,;t t
19435 s,@target_vendor@,$target_vendor,;t t
19436 s,@target_os@,$target_os,;t t
19437 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19438 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19439 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19440 s,@CYGPATH_W@,$CYGPATH_W,;t t
19441 s,@PACKAGE@,$PACKAGE,;t t
19442 s,@VERSION@,$VERSION,;t t
19443 s,@ACLOCAL@,$ACLOCAL,;t t
19444 s,@AUTOCONF@,$AUTOCONF,;t t
19445 s,@AUTOMAKE@,$AUTOMAKE,;t t
19446 s,@AUTOHEADER@,$AUTOHEADER,;t t
19447 s,@MAKEINFO@,$MAKEINFO,;t t
19448 s,@AMTAR@,$AMTAR,;t t
19449 s,@install_sh@,$install_sh,;t t
19450 s,@STRIP@,$STRIP,;t t
19451 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19452 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19454 s,@SET_MAKE@,$SET_MAKE,;t t
19455 s,@am__leading_dot@,$am__leading_dot,;t t
19456 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19457 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19458 s,@MAINT@,$MAINT,;t t
19459 s,@EMACS@,$EMACS,;t t
19460 s,@lispdir@,$lispdir,;t t
19462 s,@CFLAGS@,$CFLAGS,;t t
19463 s,@LDFLAGS@,$LDFLAGS,;t t
19464 s,@CPPFLAGS@,$CPPFLAGS,;t t
19465 s,@ac_ct_CC@,$ac_ct_CC,;t t
19466 s,@EXEEXT@,$EXEEXT,;t t
19467 s,@OBJEXT@,$OBJEXT,;t t
19468 s,@DEPDIR@,$DEPDIR,;t t
19469 s,@am__include@,$am__include,;t t
19470 s,@am__quote@,$am__quote,;t t
19471 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19472 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19473 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19474 s,@CCDEPMODE@,$CCDEPMODE,;t t
19475 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19476 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19478 s,@EGREP@,$EGREP,;t t
19479 s,@RANLIB@,$RANLIB,;t t
19480 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19481 s,@LN_S@,$LN_S,;t t
19482 s,@X_CFLAGS@,$X_CFLAGS,;t t
19483 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19484 s,@X_LIBS@,$X_LIBS,;t t
19485 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19486 s,@LIBOBJS@,$LIBOBJS,;t t
19487 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19488 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19489 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19490 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19491 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19492 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19493 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19494 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19495 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19496 s,@ESD_LIBS@,$ESD_LIBS,;t t
19497 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19498 s,@AO_LIBS@,$AO_LIBS,;t t
19499 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19500 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19501 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19502 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19503 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19504 s,@OGG_LIBS@,$OGG_LIBS,;t t
19505 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19506 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19507 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19508 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19509 s,@n_so_libs@,$n_so_libs,;t t
19510 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19511 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19512 s,@s_so_libs@,$s_so_libs,;t t
19513 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19514 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19515 s,@m_so_libs@,$m_so_libs,;t t
19516 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19517 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19518 s,@k_so_libs@,$k_so_libs,;t t
19519 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19520 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19521 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19522 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19523 s,@e_so_libs@,$e_so_libs,;t t
19524 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19525 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19526 s,@T_so_libs@,$T_so_libs,;t t
19527 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19528 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19529 s,@a_so_libs@,$a_so_libs,;t t
19530 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19531 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19532 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19533 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19534 s,@i_so_libs@,$i_so_libs,;t t
19535 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19536 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19537 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19538 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19539 s,@GTK_LIBS@,$GTK_LIBS,;t t
19540 s,@g_so_libs@,$g_so_libs,;t t
19541 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19542 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19543 s,@r_so_libs@,$r_so_libs,;t t
19544 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19545 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19546 s,@A_so_libs@,$A_so_libs,;t t
19547 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19548 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19549 s,@W_so_libs@,$W_so_libs,;t t
19550 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19551 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19552 s,@P_so_libs@,$P_so_libs,;t t
19553 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19554 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19555 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19556 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19557 s,@w_so_libs@,$w_so_libs,;t t
19558 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19559 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19560 s,@p_so_libs@,$p_so_libs,;t t
19561 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19562 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19563 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19564 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19565 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19566 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19567 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19568 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19569 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19570 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19571 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19572 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19573 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19574 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19575 s,@EXTRALIBS@,$EXTRALIBS,;t t
19576 s,@NETSRCS@,$NETSRCS,;t t
19577 s,@ELFILES@,$ELFILES,;t t
19578 s,@SHLD@,$SHLD,;t t
19579 s,@SHCFLAGS@,$SHCFLAGS,;t t
19580 s,@dynamic_targets@,$dynamic_targets,;t t
19582 s,@WISH@,$WISH,;t t
19583 s,@tcltk_dep@,$tcltk_dep,;t t
19584 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19585 s,@pkgdatadir@,$pkgdatadir,;t t
19586 s,@pkglibdir@,$pkglibdir,;t t
19587 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19592 cat >>$CONFIG_STATUS <<\_ACEOF
19593 # Split the substitutions into bite-sized pieces for seds with
19594 # small command number limits, like on Digital OSF/1 and HP-UX.
19595 ac_max_sed_lines=48
19596 ac_sed_frag=1 # Number of current file.
19597 ac_beg=1 # First line for current file.
19598 ac_end=$ac_max_sed_lines # Line after last line for current file.
19601 while $ac_more_lines; do
19602 if test $ac_beg -gt 1; then
19603 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19605 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19607 if test ! -s $tmp/subs.frag; then
19608 ac_more_lines=false
19610 # The purpose of the label and of the branching condition is to
19611 # speed up the sed processing (if there are no `@' at all, there
19612 # is no need to browse any of the substitutions).
19613 # These are the two extra sed commands mentioned above.
19615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19616 if test -z "$ac_sed_cmds"; then
19617 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19619 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19621 ac_sed_frag=`expr $ac_sed_frag + 1`
19623 ac_end=`expr $ac_end + $ac_max_sed_lines`
19626 if test -z "$ac_sed_cmds"; then
19629 fi # test -n "$CONFIG_FILES"
19632 cat >>$CONFIG_STATUS <<\_ACEOF
19633 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19636 - | *:- | *:-:* ) # input from stdin
19638 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19639 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19640 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19642 * ) ac_file_in=$ac_file.in ;;
19645 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19646 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19648 X"$ac_file" : 'X\(//\)[^/]' \| \
19649 X"$ac_file" : 'X\(//\)$' \| \
19650 X"$ac_file" : 'X\(/\)' \| \
19651 . : '\(.\)' 2>/dev/null ||
19653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19655 /^X\(\/\/\)$/{ s//\1/; q; }
19656 /^X\(\/\).*/{ s//\1/; q; }
19658 { if $as_mkdir_p; then
19663 while test ! -d "$as_dir"; do
19664 as_dirs="$as_dir $as_dirs"
19665 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19667 X"$as_dir" : 'X\(//\)[^/]' \| \
19668 X"$as_dir" : 'X\(//\)$' \| \
19669 X"$as_dir" : 'X\(/\)' \| \
19670 . : '\(.\)' 2>/dev/null ||
19672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19674 /^X\(\/\/\)$/{ s//\1/; q; }
19675 /^X\(\/\).*/{ s//\1/; q; }
19678 test ! -n "$as_dirs" || mkdir $as_dirs
19679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19681 { (exit 1); exit 1; }; }; }
19685 if test "$ac_dir" != .; then
19686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19687 # A "../" for each directory in $ac_dir_suffix.
19688 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19690 ac_dir_suffix= ac_top_builddir=
19694 .) # No --srcdir option. We are building in place.
19696 if test -z "$ac_top_builddir"; then
19699 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19701 [\\/]* | ?:[\\/]* ) # Absolute path.
19702 ac_srcdir=$srcdir$ac_dir_suffix;
19703 ac_top_srcdir=$srcdir ;;
19704 *) # Relative path.
19705 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19706 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19709 # Do not use `cd foo && pwd` to compute absolute paths, because
19710 # the directories may not exist.
19712 .) ac_abs_builddir="$ac_dir";;
19715 .) ac_abs_builddir=`pwd`;;
19716 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19717 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19720 case $ac_abs_builddir in
19721 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19723 case ${ac_top_builddir}. in
19724 .) ac_abs_top_builddir=$ac_abs_builddir;;
19725 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19726 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19729 case $ac_abs_builddir in
19730 .) ac_abs_srcdir=$ac_srcdir;;
19733 .) ac_abs_srcdir=$ac_abs_builddir;;
19734 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19735 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19738 case $ac_abs_builddir in
19739 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19741 case $ac_top_srcdir in
19742 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19743 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19744 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19751 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19754 if test x"$ac_file" != x-; then
19755 { echo "$as_me:$LINENO: creating $ac_file" >&5
19756 echo "$as_me: creating $ac_file" >&6;}
19759 # Let's still pretend it is `configure' which instantiates (i.e., don't
19760 # use $as_me), people would be surprised to read:
19761 # /* config.h. Generated by config.status. */
19762 if test x"$ac_file" = x-; then
19765 configure_input="$ac_file. "
19767 configure_input=$configure_input"Generated from `echo $ac_file_in |
19768 sed 's,.*/,,'` by configure."
19770 # First look for the input files in the build tree, otherwise in the
19772 ac_file_inputs=`IFS=:
19773 for f in $ac_file_in; do
19775 -) echo $tmp/stdin ;;
19777 # Absolute (can't be DOS-style, as IFS=:)
19778 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19779 echo "$as_me: error: cannot find input file: $f" >&2;}
19780 { (exit 1); exit 1; }; }
19783 if test -f "$f"; then
19786 elif test -f "$srcdir/$f"; then
19791 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19792 echo "$as_me: error: cannot find input file: $f" >&2;}
19793 { (exit 1); exit 1; }; }
19796 done` || { (exit 1); exit 1; }
19798 cat >>$CONFIG_STATUS <<_ACEOF
19802 cat >>$CONFIG_STATUS <<\_ACEOF
19804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19805 s,@configure_input@,$configure_input,;t t
19806 s,@srcdir@,$ac_srcdir,;t t
19807 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19808 s,@top_srcdir@,$ac_top_srcdir,;t t
19809 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19810 s,@builddir@,$ac_builddir,;t t
19811 s,@abs_builddir@,$ac_abs_builddir,;t t
19812 s,@top_builddir@,$ac_top_builddir,;t t
19813 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19814 s,@INSTALL@,$ac_INSTALL,;t t
19815 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19817 if test x"$ac_file" != x-; then
19818 mv $tmp/out $ac_file
19826 cat >>$CONFIG_STATUS <<\_ACEOF
19829 # CONFIG_HEADER section.
19832 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19833 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19835 # ac_d sets the value in "#define NAME VALUE" lines.
19836 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19837 ac_dB='[ ].*$,\1#\2'
19840 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19841 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19842 ac_uB='$,\1#\2define\3'
19846 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19849 - | *:- | *:-:* ) # input from stdin
19851 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19853 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19855 * ) ac_file_in=$ac_file.in ;;
19858 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19859 echo "$as_me: creating $ac_file" >&6;}
19861 # First look for the input files in the build tree, otherwise in the
19863 ac_file_inputs=`IFS=:
19864 for f in $ac_file_in; do
19866 -) echo $tmp/stdin ;;
19868 # Absolute (can't be DOS-style, as IFS=:)
19869 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19870 echo "$as_me: error: cannot find input file: $f" >&2;}
19871 { (exit 1); exit 1; }; }
19872 # Do quote $f, to prevent DOS paths from being IFS'd.
19875 if test -f "$f"; then
19878 elif test -f "$srcdir/$f"; then
19883 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19884 echo "$as_me: error: cannot find input file: $f" >&2;}
19885 { (exit 1); exit 1; }; }
19888 done` || { (exit 1); exit 1; }
19889 # Remove the trailing spaces.
19890 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19894 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19895 # `conftest.undefs', that substitutes the proper values into
19896 # config.h.in to produce config.h. The first handles `#define'
19897 # templates, and the second `#undef' templates.
19898 # And first: Protect against being on the right side of a sed subst in
19899 # config.status. Protect against being in an unquoted here document
19900 # in config.status.
19901 rm -f conftest.defines conftest.undefs
19902 # Using a here document instead of a string reduces the quoting nightmare.
19903 # Putting comments in sed scripts is not portable.
19905 # `end' is used to avoid that the second main sed command (meant for
19906 # 0-ary CPP macros) applies to n-ary macro definitions.
19907 # See the Autoconf documentation for `clear'.
19908 cat >confdef2sed.sed <<\_ACEOF
19913 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19915 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19918 # If some macros were called several times there might be several times
19919 # the same #defines, which is useless. Nevertheless, we may not want to
19920 # sort them, since we want the *last* AC-DEFINE to be honored.
19921 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19922 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19923 rm -f confdef2sed.sed
19925 # This sed command replaces #undef with comments. This is necessary, for
19926 # example, in the case of _POSIX_SOURCE, which is predefined and required
19927 # on some systems where configure will not decide to define it.
19928 cat >>conftest.undefs <<\_ACEOF
19929 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19932 # Break up conftest.defines because some shells have a limit on the size
19933 # of here documents, and old seds have small limits too (100 cmds).
19934 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19935 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19936 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19937 echo ' :' >>$CONFIG_STATUS
19938 rm -f conftest.tail
19939 while grep . conftest.defines >/dev/null
19941 # Write a limited-size here document to $tmp/defines.sed.
19942 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19943 # Speed up: don't consider the non `#define' lines.
19944 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19945 # Work around the forget-to-reset-the-flag bug.
19946 echo 't clr' >>$CONFIG_STATUS
19947 echo ': clr' >>$CONFIG_STATUS
19948 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19950 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19952 mv $tmp/out $tmp/in
19954 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19955 rm -f conftest.defines
19956 mv conftest.tail conftest.defines
19958 rm -f conftest.defines
19959 echo ' fi # grep' >>$CONFIG_STATUS
19960 echo >>$CONFIG_STATUS
19962 # Break up conftest.undefs because some shells have a limit on the size
19963 # of here documents, and old seds have small limits too (100 cmds).
19964 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19965 rm -f conftest.tail
19966 while grep . conftest.undefs >/dev/null
19968 # Write a limited-size here document to $tmp/undefs.sed.
19969 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19970 # Speed up: don't consider the non `#undef'
19971 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19972 # Work around the forget-to-reset-the-flag bug.
19973 echo 't clr' >>$CONFIG_STATUS
19974 echo ': clr' >>$CONFIG_STATUS
19975 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19977 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19979 mv $tmp/out $tmp/in
19981 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19982 rm -f conftest.undefs
19983 mv conftest.tail conftest.undefs
19985 rm -f conftest.undefs
19987 cat >>$CONFIG_STATUS <<\_ACEOF
19988 # Let's still pretend it is `configure' which instantiates (i.e., don't
19989 # use $as_me), people would be surprised to read:
19990 # /* config.h. Generated by config.status. */
19991 if test x"$ac_file" = x-; then
19992 echo "/* Generated by configure. */" >$tmp/config.h
19994 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19996 cat $tmp/in >>$tmp/config.h
19998 if test x"$ac_file" != x-; then
19999 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20000 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20001 echo "$as_me: $ac_file is unchanged" >&6;}
20003 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20005 X"$ac_file" : 'X\(//\)[^/]' \| \
20006 X"$ac_file" : 'X\(//\)$' \| \
20007 X"$ac_file" : 'X\(/\)' \| \
20008 . : '\(.\)' 2>/dev/null ||
20010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20012 /^X\(\/\/\)$/{ s//\1/; q; }
20013 /^X\(\/\).*/{ s//\1/; q; }
20015 { if $as_mkdir_p; then
20020 while test ! -d "$as_dir"; do
20021 as_dirs="$as_dir $as_dirs"
20022 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20024 X"$as_dir" : 'X\(//\)[^/]' \| \
20025 X"$as_dir" : 'X\(//\)$' \| \
20026 X"$as_dir" : 'X\(/\)' \| \
20027 . : '\(.\)' 2>/dev/null ||
20029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20031 /^X\(\/\/\)$/{ s//\1/; q; }
20032 /^X\(\/\).*/{ s//\1/; q; }
20035 test ! -n "$as_dirs" || mkdir $as_dirs
20036 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20037 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20038 { (exit 1); exit 1; }; }; }
20041 mv $tmp/config.h $ac_file
20045 rm -f $tmp/config.h
20047 # Compute $ac_file's index in $config_headers.
20049 for _am_header in $config_headers :; do
20050 case $_am_header in
20051 $ac_file | $ac_file:* )
20054 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20057 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20058 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20059 X$ac_file : 'X\(//\)[^/]' \| \
20060 X$ac_file : 'X\(//\)$' \| \
20061 X$ac_file : 'X\(/\)' \| \
20062 . : '\(.\)' 2>/dev/null ||
20064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20066 /^X\(\/\/\)$/{ s//\1/; q; }
20067 /^X\(\/\).*/{ s//\1/; q; }
20068 s/.*/./; q'`/stamp-h$_am_stamp_count
20071 cat >>$CONFIG_STATUS <<\_ACEOF
20074 # CONFIG_COMMANDS section.
20076 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20077 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20078 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20079 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20080 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20081 X"$ac_dest" : 'X\(//\)[^/]' \| \
20082 X"$ac_dest" : 'X\(//\)$' \| \
20083 X"$ac_dest" : 'X\(/\)' \| \
20084 . : '\(.\)' 2>/dev/null ||
20086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20088 /^X\(\/\/\)$/{ s//\1/; q; }
20089 /^X\(\/\).*/{ s//\1/; q; }
20091 { if $as_mkdir_p; then
20096 while test ! -d "$as_dir"; do
20097 as_dirs="$as_dir $as_dirs"
20098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20100 X"$as_dir" : 'X\(//\)[^/]' \| \
20101 X"$as_dir" : 'X\(//\)$' \| \
20102 X"$as_dir" : 'X\(/\)' \| \
20103 . : '\(.\)' 2>/dev/null ||
20105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20107 /^X\(\/\/\)$/{ s//\1/; q; }
20108 /^X\(\/\).*/{ s//\1/; q; }
20111 test ! -n "$as_dirs" || mkdir $as_dirs
20112 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20113 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20114 { (exit 1); exit 1; }; }; }
20118 if test "$ac_dir" != .; then
20119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20120 # A "../" for each directory in $ac_dir_suffix.
20121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20123 ac_dir_suffix= ac_top_builddir=
20127 .) # No --srcdir option. We are building in place.
20129 if test -z "$ac_top_builddir"; then
20132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20134 [\\/]* | ?:[\\/]* ) # Absolute path.
20135 ac_srcdir=$srcdir$ac_dir_suffix;
20136 ac_top_srcdir=$srcdir ;;
20137 *) # Relative path.
20138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20142 # Do not use `cd foo && pwd` to compute absolute paths, because
20143 # the directories may not exist.
20145 .) ac_abs_builddir="$ac_dir";;
20148 .) ac_abs_builddir=`pwd`;;
20149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20153 case $ac_abs_builddir in
20154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20156 case ${ac_top_builddir}. in
20157 .) ac_abs_top_builddir=$ac_abs_builddir;;
20158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20162 case $ac_abs_builddir in
20163 .) ac_abs_srcdir=$ac_srcdir;;
20166 .) ac_abs_srcdir=$ac_abs_builddir;;
20167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20171 case $ac_abs_builddir in
20172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20174 case $ac_top_srcdir in
20175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20182 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20183 echo "$as_me: executing $ac_dest commands" >&6;}
20185 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20186 # Strip MF so we end up with the name of the file.
20187 mf=`echo "$mf" | sed -e 's/:.*$//'`
20188 # Check whether this is an Automake generated Makefile or not.
20189 # We used to match only the files named `Makefile.in', but
20190 # some people rename them; so instead we look at the file content.
20191 # Grep'ing the first line is not enough: some people post-process
20192 # each Makefile.in and add a new line on top of each file to say so.
20193 # So let's grep whole file.
20194 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20195 dirpart=`(dirname "$mf") 2>/dev/null ||
20196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20197 X"$mf" : 'X\(//\)[^/]' \| \
20198 X"$mf" : 'X\(//\)$' \| \
20199 X"$mf" : 'X\(/\)' \| \
20200 . : '\(.\)' 2>/dev/null ||
20202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20204 /^X\(\/\/\)$/{ s//\1/; q; }
20205 /^X\(\/\).*/{ s//\1/; q; }
20210 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20211 # Extract the definition of DEP_FILES from the Makefile without
20213 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20214 test -z "$DEPDIR" && continue
20215 # When using ansi2knr, U may be empty or an underscore; expand it
20216 U=`sed -n -e '/^U = / s///p' < "$mf"`
20217 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20218 # We invoke sed twice because it is the simplest approach to
20219 # changing $(DEPDIR) to its actual value in the expansion.
20220 for file in `sed -n -e '
20221 /^DEP_FILES = .*\\\\$/ {
20230 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20231 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20232 # Make sure the directory exists.
20233 test -f "$dirpart/$file" && continue
20234 fdir=`(dirname "$file") 2>/dev/null ||
20235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20236 X"$file" : 'X\(//\)[^/]' \| \
20237 X"$file" : 'X\(//\)$' \| \
20238 X"$file" : 'X\(/\)' \| \
20239 . : '\(.\)' 2>/dev/null ||
20241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20243 /^X\(\/\/\)$/{ s//\1/; q; }
20244 /^X\(\/\).*/{ s//\1/; q; }
20246 { if $as_mkdir_p; then
20247 mkdir -p $dirpart/$fdir
20249 as_dir=$dirpart/$fdir
20251 while test ! -d "$as_dir"; do
20252 as_dirs="$as_dir $as_dirs"
20253 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20255 X"$as_dir" : 'X\(//\)[^/]' \| \
20256 X"$as_dir" : 'X\(//\)$' \| \
20257 X"$as_dir" : 'X\(/\)' \| \
20258 . : '\(.\)' 2>/dev/null ||
20260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20262 /^X\(\/\/\)$/{ s//\1/; q; }
20263 /^X\(\/\).*/{ s//\1/; q; }
20266 test ! -n "$as_dirs" || mkdir $as_dirs
20267 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20268 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20269 { (exit 1); exit 1; }; }; }
20271 # echo "creating $dirpart/$file"
20272 echo '# dummy' > "$dirpart/$file"
20280 cat >>$CONFIG_STATUS <<\_ACEOF
20282 { (exit 0); exit 0; }
20284 chmod +x $CONFIG_STATUS
20285 ac_clean_files=$ac_clean_files_save
20288 # configure is writing to config.log, and then calls config.status.
20289 # config.status does its own redirection, appending to config.log.
20290 # Unfortunately, on DOS this fails, as config.log is still kept open
20291 # by configure, so config.status won't be able to write to it; its
20292 # output is simply discarded. So we exec the FD to /dev/null,
20293 # effectively closing config.log, so it can be properly (re)opened and
20294 # appended to by config.status. When coming back to configure, we
20295 # need to make the FD available again.
20296 if test "$no_create" != yes; then
20298 ac_config_status_args=
20299 test "$silent" = yes &&
20300 ac_config_status_args="$ac_config_status_args --quiet"
20302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20305 # would make configure fail if this is the last instruction.
20306 $ac_cs_success || { (exit 1); exit 1; }