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
886 gogo: MP3 GOGO (Only Windows is supported)
887 --disable-alsatest Do not try to compile and run a test Alsa program
888 --disable-artstest Do not try to compile and run a test ARTS program
889 --disable-esdtest Do not try to compile and run a test ESD program
890 --disable-aotest Do not try to compile and run a test ao program
891 --disable-oggtest Do not try to compile and run a test Ogg program
892 --disable-vorbistest Do not try to compile and run a test Vorbis program
893 --enable-interface=interface_list
894 Comma separated interface list
895 --enable-dynamic Enable dynamic link interface (default is no)
896 --enable-dynamic=dynamic_list
897 Comma separated dynamic interface list
898 --enable-ncurses Enable ncurses interface (default is no)
899 --enable-slang Enable slang interface (default is no)
900 --enable-motif Enable motif interface (default is no)
901 --enable-tcltk Enable tcltk interface (default is no)
902 --enable-emacs Enable emacs interface (default is no)
903 --enable-vt100 Enable VT100 interface (default is no)
904 --enable-xaw Enable athena interface (default is no)
905 --enable-xskin Enable X skin interface (default is no)
906 --enable-gtk Enable GTK+ interface (default is no)
907 --disable-gtktest Do not try to compile and run a test GTK program
908 --enable-server Enable server interface (default is no)
909 --enable-alsaseq Enable ALSA sequencer server interface
911 --enable-winsyn Enable Windows Synthesizer interface
913 --enable-portmidisyn Enable PortMIDI Synthesizer interface
915 --enable-winsyng Enable Windows GUI Synthesizer interface
917 --enable-w32gui Enable Windows GUI interface (default is no)
918 --enable-ump UMP configuration (default is no)
919 --enable-offix Enable offix support (default is no)
920 --enable-network Enable network support (default is no)
921 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
922 --enable-spline=method Specify spline method.
923 one of no,linear,cubic,lagrange,newton,gauss
925 --enable-wrd Enable WRD interface for X (default is no)
928 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
929 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
930 --with-includes=DIR Specify include directories (colon separated)
931 --with-libraries=DIR Specify library directories (colon separated)
932 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
933 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
934 --with-lispdir Override the default lisp directory
935 --with-elf create ELF shared object instead of AOUT
936 --with-x use the X Window System
937 --with-tcl-includes=DIR Tcl include file path
938 --with-tcl-libs=DIR Tcl library file path
939 --with-tk-includes=DIR Tk include file path
940 --with-tk-libs=DIR Tk library file path
941 --with-offix-includes=DIR Offix include file path
942 --with-offix-libs=DIR Offix include file path
943 --with-nas-library=library NAS absolute library path(Don't use -laudio)
944 --with-nas-includes=DIR NAS include files are in dir
945 --with-default-output=<mode> Specify default output mode (optional):
946 (default|alsa|alib|arts|nas|
947 esd|wav|au|aiff|list|vorbis|flac|
948 gogo|portaudio|jack|ao)
949 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
950 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
951 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
952 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
953 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
954 --with-ao=PFX Prefix where libao is installed (optional)
955 --with-ao-libraries=DIR Directory where libao library is installed (optional)
956 --with-ao-includes=DIR Directory where libao header files are installed (optional)
957 --with-ogg=PFX Prefix where libogg is installed (optional)
958 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
959 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
960 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
961 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
962 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
963 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
964 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
966 Some influential environment variables:
967 CC C compiler command
968 CFLAGS C compiler flags
969 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
970 nonstandard directory <lib dir>
971 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
972 headers in a nonstandard directory <include dir>
975 Use these variables to override the choices made by `configure' or to help
976 it to find libraries and programs with nonstandard names/locations.
978 Report bugs to <root@mput.dip.jp>.
982 if test "$ac_init_help" = "recursive"; then
983 # If there are subdirs, report their specific --help.
985 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
986 test -d $ac_dir || continue
989 if test "$ac_dir" != .; then
990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
991 # A "../" for each directory in $ac_dir_suffix.
992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
994 ac_dir_suffix= ac_top_builddir=
998 .) # No --srcdir option. We are building in place.
1000 if test -z "$ac_top_builddir"; then
1003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1005 [\\/]* | ?:[\\/]* ) # Absolute path.
1006 ac_srcdir=$srcdir$ac_dir_suffix;
1007 ac_top_srcdir=$srcdir ;;
1009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1013 # Do not use `cd foo && pwd` to compute absolute paths, because
1014 # the directories may not exist.
1016 .) ac_abs_builddir="$ac_dir";;
1019 .) ac_abs_builddir=`pwd`;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1027 case ${ac_top_builddir}. in
1028 .) ac_abs_top_builddir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1033 case $ac_abs_builddir in
1034 .) ac_abs_srcdir=$ac_srcdir;;
1037 .) ac_abs_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1042 case $ac_abs_builddir in
1043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1045 case $ac_top_srcdir in
1046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1053 # Check for guested configure; otherwise get Cygnus style configure.
1054 if test -f $ac_srcdir/configure.gnu; then
1056 $SHELL $ac_srcdir/configure.gnu --help=recursive
1057 elif test -f $ac_srcdir/configure; then
1059 $SHELL $ac_srcdir/configure --help=recursive
1060 elif test -f $ac_srcdir/configure.ac ||
1061 test -f $ac_srcdir/configure.in; then
1063 $ac_configure --help
1065 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1071 test -n "$ac_init_help" && exit 0
1072 if $ac_init_version; then
1074 TiMidity++ configure current
1075 generated by GNU Autoconf 2.59
1077 Copyright (C) 2003 Free Software Foundation, Inc.
1078 This configure script is free software; the Free Software Foundation
1079 gives unlimited permission to copy, distribute and modify it.
1085 This file contains any messages produced by compilers while
1086 running configure, to aid debugging if configure makes a mistake.
1088 It was created by TiMidity++ $as_me current, which was
1089 generated by GNU Autoconf 2.59. Invocation command line was
1100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1112 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1123 test -z "$as_dir" && as_dir=.
1124 echo "PATH: $as_dir"
1139 # Keep a trace of the command line.
1140 # Strip out --no-create and --no-recursion so they do not pile up.
1141 # Strip out --silent because we don't want to record it for future runs.
1142 # Also quote any args containing shell meta-characters.
1143 # Make two passes to allow for proper duplicate-argument suppression.
1148 ac_must_keep_next=false
1154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1158 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1159 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1162 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1164 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1165 if test $ac_must_keep_next = true; then
1166 ac_must_keep_next=false # Got value, back to normal.
1169 *=* | --config-cache | -C | -disable-* | --disable-* \
1170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1172 | -with-* | --with-* | -without-* | --without-* | --x)
1173 case "$ac_configure_args0 " in
1174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1177 -* ) ac_must_keep_next=true ;;
1180 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1181 # Get rid of the leading space.
1187 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1188 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1190 # When interrupted or exit'd, cleanup temporary files, and complete
1191 # config.log. We remove comments because anyway the quotes in there
1192 # would cause problems or look ugly.
1193 # WARNING: Be sure not to use single quotes in there, as some shells,
1194 # such as our DU 5.0 friend, will then `close' the trap.
1195 trap 'exit_status=$?
1196 # Save into config.log some information that might help in debugging.
1201 ## ---------------- ##
1202 ## Cache variables. ##
1203 ## ---------------- ##
1206 # The following way of writing the cache mishandles newlines in values,
1209 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1212 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1217 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1224 ## ----------------- ##
1225 ## Output variables. ##
1226 ## ----------------- ##
1229 for ac_var in $ac_subst_vars
1231 eval ac_val=$`echo $ac_var`
1232 echo "$ac_var='"'"'$ac_val'"'"'"
1236 if test -n "$ac_subst_files"; then
1243 for ac_var in $ac_subst_files
1245 eval ac_val=$`echo $ac_var`
1246 echo "$ac_var='"'"'$ac_val'"'"'"
1251 if test -s confdefs.h; then
1258 sed "/^$/d" confdefs.h | sort
1261 test "$ac_signal" != 0 &&
1262 echo "$as_me: caught signal $ac_signal"
1263 echo "$as_me: exit $exit_status"
1265 rm -f core *.core &&
1266 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1269 for ac_signal in 1 2 13 15; do
1270 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1275 rm -rf conftest* confdefs.h
1276 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1279 # Predefined preprocessor variables.
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_NAME "$PACKAGE_NAME"
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_STRING "$PACKAGE_STRING"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1306 # Let the site file select an alternate cache file if it wants to.
1307 # Prefer explicitly selected file to automatically selected ones.
1308 if test -z "$CONFIG_SITE"; then
1309 if test "x$prefix" != xNONE; then
1310 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1312 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1315 for ac_site_file in $CONFIG_SITE; do
1316 if test -r "$ac_site_file"; then
1317 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1318 echo "$as_me: loading site script $ac_site_file" >&6;}
1319 sed 's/^/| /' "$ac_site_file" >&5
1324 if test -r "$cache_file"; then
1325 # Some versions of bash will fail to source /dev/null (special
1326 # files actually), so we avoid doing that.
1327 if test -f "$cache_file"; then
1328 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1329 echo "$as_me: loading cache $cache_file" >&6;}
1331 [\\/]* | ?:[\\/]* ) . $cache_file;;
1332 *) . ./$cache_file;;
1336 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1337 echo "$as_me: creating cache $cache_file" >&6;}
1341 # Check that the precious variables saved in the cache have kept the same
1343 ac_cache_corrupted=false
1344 for ac_var in `(set) 2>&1 |
1345 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1347 eval ac_new_set=\$ac_env_${ac_var}_set
1348 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1349 eval ac_new_val="\$ac_env_${ac_var}_value"
1350 case $ac_old_set,$ac_new_set in
1352 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1353 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1354 ac_cache_corrupted=: ;;
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1358 ac_cache_corrupted=: ;;
1361 if test "x$ac_old_val" != "x$ac_new_val"; then
1362 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1363 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1364 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1365 echo "$as_me: former value: $ac_old_val" >&2;}
1366 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1367 echo "$as_me: current value: $ac_new_val" >&2;}
1368 ac_cache_corrupted=:
1371 # Pass precious variables to config.status.
1372 if test "$ac_new_set" = set; then
1374 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1375 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1376 *) ac_arg=$ac_var=$ac_new_val ;;
1378 case " $ac_configure_args " in
1379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1380 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1384 if $ac_cache_corrupted; then
1385 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1386 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1387 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1388 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1389 { (exit 1); exit 1; }; }
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1425 for ac_dir in autoconf $srcdir/autoconf; do
1426 if test -f $ac_dir/install-sh; then
1428 ac_install_sh="$ac_aux_dir/install-sh -c"
1430 elif test -f $ac_dir/install.sh; then
1432 ac_install_sh="$ac_aux_dir/install.sh -c"
1434 elif test -f $ac_dir/shtool; then
1436 ac_install_sh="$ac_aux_dir/shtool install -c"
1440 if test -z "$ac_aux_dir"; then
1441 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1442 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1443 { (exit 1); exit 1; }; }
1445 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1446 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1447 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1449 # Make sure we can run config.sub.
1450 $ac_config_sub sun4 >/dev/null 2>&1 ||
1451 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1452 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1453 { (exit 1); exit 1; }; }
1455 echo "$as_me:$LINENO: checking build system type" >&5
1456 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1457 if test "${ac_cv_build+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 ac_cv_build_alias=$build_alias
1461 test -z "$ac_cv_build_alias" &&
1462 ac_cv_build_alias=`$ac_config_guess`
1463 test -z "$ac_cv_build_alias" &&
1464 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1465 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1466 { (exit 1); exit 1; }; }
1467 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1474 echo "${ECHO_T}$ac_cv_build" >&6
1476 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510 ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528 test "$program_prefix$program_suffix$program_transform_name" = \
1530 program_prefix=${target_alias}-
1531 am__api_version="1.7"
1532 # Find a good install program. We prefer a C program (faster),
1533 # so one script is as good as another. But avoid the broken or
1534 # incompatible versions:
1535 # SysV /etc/install, /usr/sbin/install
1536 # SunOS /usr/etc/install
1537 # IRIX /sbin/install
1539 # AmigaOS /C/install, which installs bootblocks on floppy discs
1540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1543 # OS/2's system install, which has a completely different semantic
1544 # ./install, which can be erroneously created by make from ./install.sh.
1545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1547 if test -z "$INSTALL"; then
1548 if test "${ac_cv_path_install+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 test -z "$as_dir" && as_dir=.
1556 # Account for people who put trailing slashes in PATH elements.
1558 ./ | .// | /cC/* | \
1559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1560 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1563 # OSF1 and SCO ODT 3.0 have their own names for install.
1564 # Don't use installbsd from OSF since it installs stuff as root
1566 for ac_prog in ginstall scoinst install; do
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1569 if test $ac_prog = install &&
1570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571 # AIX install. It has an incompatible calling convention.
1573 elif test $ac_prog = install &&
1574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575 # program-specific install script used by HP pwplus--don't use.
1578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1590 if test "${ac_cv_path_install+set}" = set; then
1591 INSTALL=$ac_cv_path_install
1593 # As a last resort, use the slow shell script. We don't cache a
1594 # path for INSTALL within a source directory, because that will
1595 # break other packages using the cache if that directory is
1596 # removed, or if the path is relative.
1597 INSTALL=$ac_install_sh
1600 echo "$as_me:$LINENO: result: $INSTALL" >&5
1601 echo "${ECHO_T}$INSTALL" >&6
1603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1604 # It thinks the first close brace ends the variable substitution.
1605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1611 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1612 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1615 echo timestamp > conftest.file
1616 # Do `set' in a subshell so we don't clobber the current shell's
1617 # arguments. Must try -L first in case configure is actually a
1618 # symlink; some systems play weird games with the mod time of symlinks
1619 # (eg FreeBSD returns the mod time of the symlink's containing
1622 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1623 if test "$*" = "X"; then
1625 set X `ls -t $srcdir/configure conftest.file`
1628 if test "$*" != "X $srcdir/configure conftest.file" \
1629 && test "$*" != "X conftest.file $srcdir/configure"; then
1631 # If neither matched, then we have a broken ls. This can happen
1632 # if, for instance, CONFIG_SHELL is bash and it inherits a
1633 # broken ls alias from the environment. This has actually
1634 # happened. Such a system could not be considered "sane".
1635 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1636 alias in your environment" >&5
1637 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1638 alias in your environment" >&2;}
1639 { (exit 1); exit 1; }; }
1642 test "$2" = conftest.file
1648 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1649 Check your system clock" >&5
1650 echo "$as_me: error: newly created file is older than distributed files!
1651 Check your system clock" >&2;}
1652 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: yes" >&5
1655 echo "${ECHO_T}yes" >&6
1656 test "$program_prefix" != NONE &&
1657 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1658 # Use a double $ so make ignores it.
1659 test "$program_suffix" != NONE &&
1660 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1661 # Double any \ or $. echo might interpret backslashes.
1662 # By default was `s,x,x', remove it if useless.
1663 cat <<\_ACEOF >conftest.sed
1664 s/[\\$]/&&/g;s/;s,x,x,$//
1666 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1670 # expand $ac_aux_dir to an absolute path
1671 am_aux_dir=`cd $ac_aux_dir && pwd`
1673 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1674 # Use eval to expand $SHELL
1675 if eval "$MISSING --run true"; then
1676 am_missing_run="$MISSING --run "
1679 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1680 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1683 for ac_prog in gawk mawk nawk awk
1685 # Extract the first word of "$ac_prog", so it can be a program name with args.
1686 set dummy $ac_prog; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_AWK+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$AWK"; then
1693 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_AWK="$ac_prog"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 if test -n "$AWK"; then
1713 echo "$as_me:$LINENO: result: $AWK" >&5
1714 echo "${ECHO_T}$AWK" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1720 test -n "$AWK" && break
1723 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1724 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1725 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1726 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 cat >conftest.make <<\_ACEOF
1731 @echo 'ac_maketemp="$(MAKE)"'
1733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1734 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1735 if test -n "$ac_maketemp"; then
1736 eval ac_cv_prog_make_${ac_make}_set=yes
1738 eval ac_cv_prog_make_${ac_make}_set=no
1742 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1743 echo "$as_me:$LINENO: result: yes" >&5
1744 echo "${ECHO_T}yes" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 SET_MAKE="MAKE=${MAKE-make}"
1752 rm -rf .tst 2>/dev/null
1753 mkdir .tst 2>/dev/null
1754 if test -d .tst; then
1759 rmdir .tst 2>/dev/null
1761 # test to see if srcdir already configured
1762 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1763 test -f $srcdir/config.status; then
1764 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1765 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1766 { (exit 1); exit 1; }; }
1769 # test whether we have cygpath
1770 if test -z "$CYGPATH_W"; then
1771 if (cygpath --version) >/dev/null 2>/dev/null; then
1772 CYGPATH_W='cygpath -w'
1779 # Define the identity of the package.
1780 PACKAGE='TiMidity++'
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE "$PACKAGE"
1789 cat >>confdefs.h <<_ACEOF
1790 #define VERSION "$VERSION"
1793 # Some tools Automake needs.
1795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1810 AMTAR=${AMTAR-"${am_missing_run}tar"}
1812 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1814 # Installed binaries are usually stripped using `strip' when the user
1815 # run `make install-strip'. However `strip' might not be the right
1816 # tool to use in cross-compilation environments, therefore Automake
1817 # will honor the `STRIP' environment variable to overrule this program.
1818 if test "$cross_compiling" != no; then
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}strip; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_STRIP+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$STRIP"; then
1828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 STRIP=$ac_cv_prog_STRIP
1847 if test -n "$STRIP"; then
1848 echo "$as_me:$LINENO: result: $STRIP" >&5
1849 echo "${ECHO_T}$STRIP" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_STRIP"; then
1858 # Extract the first word of "strip", so it can be a program name with args.
1859 set dummy strip; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_STRIP"; then
1866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_STRIP="strip"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1886 if test -n "$ac_ct_STRIP"; then
1887 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1888 echo "${ECHO_T}$ac_ct_STRIP" >&6
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1896 STRIP="$ac_cv_prog_STRIP"
1900 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1902 # We need awk for the "check" target. The system "awk" is bad on
1908 ac_config_headers="$ac_config_headers config.h interface.h"
1910 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1911 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1912 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1913 if test "${enable_maintainer_mode+set}" = set; then
1914 enableval="$enable_maintainer_mode"
1915 USE_MAINTAINER_MODE=$enableval
1917 USE_MAINTAINER_MODE=no
1919 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1920 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1923 if test $USE_MAINTAINER_MODE = yes; then
1924 MAINTAINER_MODE_TRUE=
1925 MAINTAINER_MODE_FALSE='#'
1927 MAINTAINER_MODE_TRUE='#'
1928 MAINTAINER_MODE_FALSE=
1931 MAINT=$MAINTAINER_MODE_TRUE
1935 SHELL=${CONFIG_SHELL-"/bin/sh"}
1938 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1939 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1940 echo "grimblepritz" >grimble
1941 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1942 contains="./contains"
1943 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1946 contains="./contains"
1950 grep) echo "$as_me:$LINENO: result: yes" >&5
1951 echo "${ECHO_T}yes" >&6
1954 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1955 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1956 cat >./contains <<'EOSS'
1957 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1959 chmod +x "./contains"
1964 # Check for compiler options -- such as debug flags.
1966 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1967 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1968 # Check whether --enable-debug or --disable-debug was given.
1969 if test "${enable_debug+set}" = set; then
1970 enableval="$enable_debug"
1971 timidity_cv_debug="yes"
1973 timidity_cv_debug="no"
1975 if test "x$timidity_cv_debug" = "xyes"; then
1977 cat >>confdefs.h <<\_ACEOF
1981 CFLAGS=${CFLAGS-"-g"}
1983 if test "x$timidity_cv_debug" = "xno"; then
1985 cat >>confdefs.h <<\_ACEOF
1990 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1991 echo "${ECHO_T}$timidity_cv_debug" >&6
1993 CFLAGS=${CFLAGS-"-O2"}
1995 if test "x$with_x" = x; then
2001 # Checking gcc environment
2002 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2003 LDFLAGS="$LDFLAGS -L${i}"
2005 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2006 CPPFLAGS="$CPPFLAGS -I${i}"
2009 # add $prefix if specified.
2010 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2011 LDFLAGS="-L$prefix/lib $LDFLAGS"
2012 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2013 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2017 # Check whether --with-includes or --without-includes was given.
2018 if test "${with_includes+set}" = set; then
2019 withval="$with_includes"
2021 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2024 CPPFLAGS="$j$CPPFLAGS"
2029 # Check whether --with-libraries or --without-libraries was given.
2030 if test "${with_libraries+set}" = set; then
2031 withval="$with_libraries"
2033 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2036 LDFLAGS="$j$LDFLAGS"
2042 # Check whether --with-default-path or --without-default-path was given.
2043 if test "${with_default_path+set}" = set; then
2044 withval="$with_default_path"
2048 if test "x$prefix" != "xNONE"; then
2049 pkgdatadir='${prefix}/share/timidity'
2051 pkgdatadir='/usr/local/share/timidity'
2055 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2057 cat >>confdefs.h <<_ACEOF
2058 #define DEFAULT_PATH "$tmpdefpath"
2062 cat >>confdefs.h <<\_ACEOF
2063 #define PKGDATADIR DEFAULT_PATH
2068 # Check whether --with-module-dir or --without-module-dir was given.
2069 if test "${with_module_dir+set}" = set; then
2070 withval="$with_module_dir"
2074 if test "x$prefix" != "xNONE"; then
2075 pkglibdir='${prefix}/lib/timidity'
2077 pkglibdir='/usr/local/lib/timidity'
2081 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2083 cat >>confdefs.h <<_ACEOF
2084 #define PKGLIBDIR "$tmplibdir"
2089 # Checks for programs.
2091 # Check whether --with-lispdir or --without-lispdir was given.
2092 if test "${with_lispdir+set}" = set; then
2093 withval="$with_lispdir"
2095 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2096 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2097 echo "$as_me:$LINENO: result: $lispdir" >&5
2098 echo "${ECHO_T}$lispdir" >&6
2101 # If set to t, that means we are running in a shell under Emacs.
2102 # If you have an Emacs named "t", then use the full path.
2103 test x"$EMACS" = xt && EMACS=
2104 for ac_prog in emacs xemacs
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_EMACS+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$EMACS"; then
2114 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_EMACS="$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 EMACS=$ac_cv_prog_EMACS
2133 if test -n "$EMACS"; then
2134 echo "$as_me:$LINENO: result: $EMACS" >&5
2135 echo "${ECHO_T}$EMACS" >&6
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2141 test -n "$EMACS" && break
2143 test -n "$EMACS" || EMACS="no"
2145 if test $EMACS != "no"; then
2146 if test x${lispdir+set} != xset; then
2147 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2148 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2149 if test "${am_cv_lispdir+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2153 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2154 # which is non-obvious for non-emacs users.
2155 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2156 # emacsen earlier and avoid running this altogether.
2157 { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
2158 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }
2162 am_cv_lispdir=`sed -n \
2164 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2165 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2168 if test -z "$am_cv_lispdir"; then
2169 am_cv_lispdir='${datadir}/emacs/site-lisp'
2173 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2174 echo "${ECHO_T}$am_cv_lispdir" >&6
2175 lispdir="$am_cv_lispdir"
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187 if test -n "$ac_tool_prefix"; then
2188 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2189 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_CC+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test -n "$CC"; then
2196 ac_cv_prog_CC="$CC" # Let the user override the test.
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2205 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 if test -n "$CC"; then
2216 echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6
2219 echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2224 if test -z "$ac_cv_prog_CC"; then
2226 # Extract the first word of "gcc", so it can be a program name with args.
2227 set dummy gcc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$ac_ct_CC"; then
2234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_ac_ct_CC="gcc"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253 if test -n "$ac_ct_CC"; then
2254 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2255 echo "${ECHO_T}$ac_ct_CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2266 if test -z "$CC"; then
2267 if test -n "$ac_tool_prefix"; then
2268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}cc; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 if test -n "$CC"; then
2276 ac_cv_prog_CC="$CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_CC="${ac_tool_prefix}cc"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CC"; then
2296 echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2304 if test -z "$ac_cv_prog_CC"; then
2306 # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 if test -n "$ac_ct_CC"; then
2314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323 ac_cv_prog_ac_ct_CC="cc"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2333 if test -n "$ac_ct_CC"; then
2334 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2335 echo "${ECHO_T}$ac_ct_CC" >&6
2337 echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6
2347 if test -z "$CC"; then
2348 # Extract the first word of "cc", so it can be a program name with args.
2349 set dummy cc; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2367 ac_prog_rejected=yes
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 if test $ac_prog_rejected = yes; then
2378 # We found a bogon in the path, so make sure we never use it.
2379 set dummy $ac_cv_prog_CC
2381 if test $# != 0; then
2382 # We chose a different compiler from the bogus one.
2383 # However, it has the same basename, so the bogon will be chosen
2384 # first if we set CC to just the basename; use the full file name.
2386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2392 if test -n "$CC"; then
2393 echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2401 if test -z "$CC"; then
2402 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test -n "$CC"; then
2433 echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6
2436 echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2440 test -n "$CC" && break
2443 if test -z "$CC"; then
2447 # Extract the first word of "$ac_prog", so it can be a program name with args.
2448 set dummy $ac_prog; ac_word=$2
2449 echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 if test -n "$ac_ct_CC"; then
2455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 ac_cv_prog_ac_ct_CC="$ac_prog"
2465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2474 if test -n "$ac_ct_CC"; then
2475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2476 echo "${ECHO_T}$ac_ct_CC" >&6
2478 echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2482 test -n "$ac_ct_CC" && break
2491 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: no acceptable C compiler found in \$PATH
2494 See \`config.log' for more details." >&2;}
2495 { (exit 1); exit 1; }; }
2497 # Provide some information about the compiler.
2498 echo "$as_me:$LINENO:" \
2499 "checking for C compiler version" >&5
2500 ac_compiler=`set X $ac_compile; echo $2`
2501 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2502 (eval $ac_compiler --version </dev/null >&5) 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }
2506 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2507 (eval $ac_compiler -v </dev/null >&5) 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2512 (eval $ac_compiler -V </dev/null >&5) 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2532 ac_clean_files_save=$ac_clean_files
2533 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2534 # Try to create an executable without -o first, disregard a.out.
2535 # It will help us diagnose broken compilers, and finding out an intuition
2537 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2538 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2539 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2540 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2541 (eval $ac_link_default) 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 # Find the output, starting from the most likely. This scheme is
2546 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2549 # Be careful to initialize this variable, since it used to be cached.
2550 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2552 # b.out is created by i960 compilers.
2553 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2555 test -f "$ac_file" || continue
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2560 # This is the source file.
2563 # We found the default executable, but exeext='' is most
2567 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2568 # FIXME: I believe we export ac_cv_exeext for Libtool,
2569 # but it would be cool to find out if it's true. Does anybody
2570 # maintain Libtool? --akim.
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: C compiler cannot create executables
2584 See \`config.log' for more details." >&2;}
2585 { (exit 77); exit 77; }; }
2588 ac_exeext=$ac_cv_exeext
2589 echo "$as_me:$LINENO: result: $ac_file" >&5
2590 echo "${ECHO_T}$ac_file" >&6
2592 # Check the compiler produces executables we can run. If not, either
2593 # the compiler is broken, or we cross compile.
2594 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2595 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2596 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2597 # If not cross compiling, check that we can run a simple program.
2598 if test "$cross_compiling" != yes; then
2599 if { ac_try='./$ac_file'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2607 if test "$cross_compiling" = maybe; then
2610 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2611 If you meant to cross compile, use \`--host'.
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&2;}
2616 { (exit 1); exit 1; }; }
2620 echo "$as_me:$LINENO: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6
2623 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2624 ac_clean_files=$ac_clean_files_save
2625 # Check the compiler produces executables we can run. If not, either
2626 # the compiler is broken, or we cross compile.
2627 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2628 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2629 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2630 echo "${ECHO_T}$cross_compiling" >&6
2632 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2633 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2654 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2661 rm -f conftest$ac_cv_exeext
2662 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2668 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2670 if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.o conftest.obj
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2706 See \`config.log' for more details." >&5
2707 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }
2712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2714 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2715 echo "${ECHO_T}$ac_cv_objext" >&6
2716 OBJEXT=$ac_cv_objext
2718 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -z "$ac_c_werror_flag"
2751 || test ! -s conftest.err'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2774 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2775 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2776 GCC=`test $ac_compiler_gnu = yes && echo yes`
2777 ac_test_CFLAGS=${CFLAGS+set}
2778 ac_save_CFLAGS=$CFLAGS
2780 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 cat >conftest.$ac_ext <<_ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -z "$ac_c_werror_flag"
2810 || test ! -s conftest.err'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; } &&
2816 { ac_try='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2832 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2833 if test "$ac_test_CFLAGS" = set; then
2834 CFLAGS=$ac_save_CFLAGS
2835 elif test $ac_cv_prog_cc_g = yes; then
2836 if test "$GCC" = yes; then
2842 if test "$GCC" = yes; then
2848 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2849 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2850 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 ac_cv_prog_cc_stdc=no
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2863 #include <sys/types.h>
2864 #include <sys/stat.h>
2865 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2866 struct buf { int x; };
2867 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2868 static char *e (p, i)
2874 static char *f (char * (*g) (char **, int), char **p, ...)
2879 s = g (p, va_arg (v,int));
2884 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2885 function prototypes and stuff, but not '\xHH' hex character constants.
2886 These don't provoke an error unfortunately, instead are silently treated
2887 as 'x'. The following induces an error, until -std1 is added to get
2888 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2889 array size at least. It's necessary to write '\x00'==0 to get something
2890 that's true only with -std1. */
2891 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2893 int test (int i, double x);
2894 struct s1 {int (*f) (int a);};
2895 struct s2 {int (*f) (double a);};
2896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2907 # Don't try gcc -ansi; that turns off useful extensions and
2908 # breaks some systems' header files.
2909 # AIX -qlanglvl=ansi
2910 # Ultrix and OSF/1 -std1
2911 # HP-UX 10.20 and later -Ae
2912 # HP-UX older versions -Aa -D_HPUX_SOURCE
2913 # SVR4 -Xc -D__EXTENSIONS__
2914 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2916 CC="$ac_save_CC $ac_arg"
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2921 grep -v '^ *+' conftest.er1 >conftest.err
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_prog_cc_stdc=$ac_arg
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2946 rm -f conftest.err conftest.$ac_objext
2948 rm -f conftest.$ac_ext conftest.$ac_objext
2953 case "x$ac_cv_prog_cc_stdc" in
2955 echo "$as_me:$LINENO: result: none needed" >&5
2956 echo "${ECHO_T}none needed" >&6 ;;
2958 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2959 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2960 CC="$CC $ac_cv_prog_cc_stdc" ;;
2963 # Some people use a C++ compiler to compile C. Since we use `exit',
2964 # in C++ we need to declare it. In case someone uses the same compiler
2965 # for both compiling C and C++ we need to have the C++ compiler decide
2966 # the declaration of exit, since it's the most demanding environment.
2967 cat >conftest.$ac_ext <<_ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_c_werror_flag"
2982 || test ! -s conftest.err'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 for ac_declaration in \
2996 'extern "C" void std::exit (int) throw (); using std::exit;' \
2997 'extern "C" void std::exit (int); using std::exit;' \
2998 'extern "C" void exit (int) throw ();' \
2999 'extern "C" void exit (int);' \
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag"
3028 || test ! -s conftest.err'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -z "$ac_c_werror_flag"
3073 || test ! -s conftest.err'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094 if test -n "$ac_declaration"; then
3095 echo '#ifdef __cplusplus' >>confdefs.h
3096 echo $ac_declaration >>confdefs.h
3097 echo '#endif' >>confdefs.h
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 DEPDIR="${am__leading_dot}deps"
3113 ac_config_commands="$ac_config_commands depfiles"
3116 am_make=${MAKE-make}
3117 cat > confinc << 'END'
3122 # If we don't find an include directive, just comment out the code.
3123 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3124 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3128 # First try GNU make style include.
3129 echo "include confinc" > confmf
3130 # We grep out `Entering directory' and `Leaving directory'
3131 # messages which can occur if `w' ends up in MAKEFLAGS.
3132 # In particular we don't look at `^make:' because GNU make might
3133 # be invoked under some other name (usually "gmake"), in which
3134 # case it prints its new name instead of `make'.
3135 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3140 # Now try BSD make style include.
3141 if test "$am__include" = "#"; then
3142 echo '.include "confinc"' > confmf
3143 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3144 am__include=.include
3151 echo "$as_me:$LINENO: result: $_am_result" >&5
3152 echo "${ECHO_T}$_am_result" >&6
3153 rm -f confinc confmf
3155 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3156 if test "${enable_dependency_tracking+set}" = set; then
3157 enableval="$enable_dependency_tracking"
3160 if test "x$enable_dependency_tracking" != xno; then
3161 am_depcomp="$ac_aux_dir/depcomp"
3166 if test "x$enable_dependency_tracking" != xno; then
3177 depcc="$CC" am_compiler_list=
3179 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3180 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3181 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3185 # We make a subdir and do the tests there. Otherwise we can end up
3186 # making bogus files that we don't know about and never remove. For
3187 # instance it was reported that on HP-UX the gcc test will end up
3188 # making a dummy file named `D' -- because `-MD' means `put the output
3191 # Copy depcomp to subdir because otherwise we won't find it if we're
3192 # using a relative directory.
3193 cp "$am_depcomp" conftest.dir
3195 # We will build objects and dependencies in a subdirectory because
3196 # it helps to detect inapplicable dependency modes. For instance
3197 # both Tru64's cc and ICC support -MD to output dependencies as a
3198 # side effect of compilation, but ICC will put the dependencies in
3199 # the current directory while Tru64 will put them in the object
3203 am_cv_CC_dependencies_compiler_type=none
3204 if test "$am_compiler_list" = ""; then
3205 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3207 for depmode in $am_compiler_list; do
3208 # Setup a source with many dependencies, because some compilers
3209 # like to wrap large dependency lists on column 80 (with \), and
3210 # we should not choose a depcomp mode which is confused by this.
3212 # We need to recreate these files for each test, as the compiler may
3213 # overwrite some of them when testing with obscure command lines.
3214 # This happens at least with the AIX C compiler.
3216 for i in 1 2 3 4 5 6; do
3217 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3224 # after this tag, mechanisms are not by side-effect, so they'll
3225 # only be used when explicitly requested
3226 if test "x$enable_dependency_tracking" = xyes; then
3234 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3235 # mode. It turns out that the SunPro C++ compiler does not properly
3236 # handle `-M -o', and we need to detect this.
3237 if depmode=$depmode \
3238 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3240 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3241 >/dev/null 2>conftest.err &&
3242 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3243 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3244 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3245 # icc doesn't choke on unknown options, it will just issue warnings
3246 # (even with -Werror). So we grep stderr for any message
3247 # that says an option was ignored.
3248 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3249 am_cv_CC_dependencies_compiler_type=$depmode
3258 am_cv_CC_dependencies_compiler_type=none
3262 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3269 test "x$enable_dependency_tracking" != xno \
3270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3272 am__fastdepCC_FALSE='#'
3274 am__fastdepCC_TRUE='#'
3275 am__fastdepCC_FALSE=
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3291 if test -z "$CPP"; then
3292 if test "${ac_cv_prog_CPP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 # Double quotes because CPP needs to be expanded
3296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3299 for ac_c_preproc_warn_flag in '' yes
3301 # Use a header file that comes with gcc, so configuring glibc
3302 # with a fresh cross-compiler works.
3303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 # <limits.h> exists even on freestanding compilers.
3305 # On the NeXT, cc -E runs the code through the compiler's parser,
3306 # not just through cpp. "Syntax error" is here to catch this case.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 # include <limits.h>
3316 # include <assert.h>
3320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337 if test -z "$ac_cpp_err"; then
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 # Broken: fails on valid input.
3346 rm -f conftest.err conftest.$ac_ext
3348 # OK, works on sane cases. Now check whether non-existent headers
3349 # can be detected and how.
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3356 #include <ac_nonexistent.h>
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375 if test -z "$ac_cpp_err"; then
3376 # Broken: success on invalid input.
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Passes both tests.
3386 rm -f conftest.err conftest.$ac_ext
3389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390 rm -f conftest.err conftest.$ac_ext
3391 if $ac_preproc_ok; then
3403 echo "$as_me:$LINENO: result: $CPP" >&5
3404 echo "${ECHO_T}$CPP" >&6
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 # include <limits.h>
3423 # include <assert.h>
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 if test -z "$ac_cpp_err"; then
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Broken: fails on valid input.
3453 rm -f conftest.err conftest.$ac_ext
3455 # OK, works on sane cases. Now check whether non-existent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482 if test -z "$ac_cpp_err"; then
3483 # Broken: success on invalid input.
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Passes both tests.
3493 rm -f conftest.err conftest.$ac_ext
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3501 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3502 See \`config.log' for more details." >&5
3503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3504 See \`config.log' for more details." >&2;}
3505 { (exit 1); exit 1; }; }
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 echo "$as_me:$LINENO: checking for egrep" >&5
3516 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3517 if test "${ac_cv_prog_egrep+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3521 then ac_cv_prog_egrep='grep -E'
3522 else ac_cv_prog_egrep='egrep'
3525 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3526 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3527 EGREP=$ac_cv_prog_egrep
3530 if test $ac_cv_c_compiler_gnu = yes; then
3531 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3532 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3533 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 ac_pattern="Autoconf.*'x'"
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3547 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3548 ac_cv_prog_gcc_traditional=yes
3550 ac_cv_prog_gcc_traditional=no
3555 if test $ac_cv_prog_gcc_traditional = no; then
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3566 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3567 ac_cv_prog_gcc_traditional=yes
3573 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3574 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3575 if test $ac_cv_prog_gcc_traditional = yes; then
3576 CC="$CC -traditional"
3580 # Find a good install program. We prefer a C program (faster),
3581 # so one script is as good as another. But avoid the broken or
3582 # incompatible versions:
3583 # SysV /etc/install, /usr/sbin/install
3584 # SunOS /usr/etc/install
3585 # IRIX /sbin/install
3587 # AmigaOS /C/install, which installs bootblocks on floppy discs
3588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3591 # OS/2's system install, which has a completely different semantic
3592 # ./install, which can be erroneously created by make from ./install.sh.
3593 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3594 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3595 if test -z "$INSTALL"; then
3596 if test "${ac_cv_path_install+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 # Account for people who put trailing slashes in PATH elements.
3606 ./ | .// | /cC/* | \
3607 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3608 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3611 # OSF1 and SCO ODT 3.0 have their own names for install.
3612 # Don't use installbsd from OSF since it installs stuff as root
3614 for ac_prog in ginstall scoinst install; do
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3617 if test $ac_prog = install &&
3618 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3619 # AIX install. It has an incompatible calling convention.
3621 elif test $ac_prog = install &&
3622 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3623 # program-specific install script used by HP pwplus--don't use.
3626 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3638 if test "${ac_cv_path_install+set}" = set; then
3639 INSTALL=$ac_cv_path_install
3641 # As a last resort, use the slow shell script. We don't cache a
3642 # path for INSTALL within a source directory, because that will
3643 # break other packages using the cache if that directory is
3644 # removed, or if the path is relative.
3645 INSTALL=$ac_install_sh
3648 echo "$as_me:$LINENO: result: $INSTALL" >&5
3649 echo "${ECHO_T}$INSTALL" >&6
3651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3652 # It thinks the first close brace ends the variable substitution.
3653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3659 for ac_prog in gawk mawk nawk awk
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 echo "$as_me:$LINENO: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665 if test "${ac_cv_prog_AWK+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 if test -n "$AWK"; then
3669 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_prog_AWK="$ac_prog"
3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 if test -n "$AWK"; then
3689 echo "$as_me:$LINENO: result: $AWK" >&5
3690 echo "${ECHO_T}$AWK" >&6
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3696 test -n "$AWK" && break
3699 if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_RANLIB+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if test -n "$RANLIB"; then
3708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 RANLIB=$ac_cv_prog_RANLIB
3727 if test -n "$RANLIB"; then
3728 echo "$as_me:$LINENO: result: $RANLIB" >&5
3729 echo "${ECHO_T}$RANLIB" >&6
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3736 if test -z "$ac_cv_prog_RANLIB"; then
3737 ac_ct_RANLIB=$RANLIB
3738 # Extract the first word of "ranlib", so it can be a program name with args.
3739 set dummy ranlib; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 if test -n "$ac_ct_RANLIB"; then
3746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_ac_ct_RANLIB="ranlib"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3765 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3766 if test -n "$ac_ct_RANLIB"; then
3767 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3768 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 RANLIB=$ac_ct_RANLIB
3776 RANLIB="$ac_cv_prog_RANLIB"
3779 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3780 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3782 if test "$LN_S" = "ln -s"; then
3783 echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6
3786 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3787 echo "${ECHO_T}no, using $LN_S" >&6
3790 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3791 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3792 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3793 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 cat > conftest.$ac_ext <<EOF
3797 int main() {return 0;}
3799 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3800 if test -s conftest.out; then
3801 eval "timidity_cv_ccoption_$ac_ccoption=no"
3803 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3806 eval "timidity_cv_ccoption_$ac_ccoption=no"
3811 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3812 echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3822 # Checks for target dependencies
3825 # Check whether --with-elf or --without-elf was given.
3826 if test "${with_elf+set}" = set; then
3834 # [ --with-simd create SIMD friendly binary (default is no) ],
3835 # [ SIMD=$withval ], [ SIMD="no" ])
3840 test -n "$SHLD" || SHLD="ld -b"
3844 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3845 test -n "$SHLD" || SHLD="cc -shared -all"
3849 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3854 test -n "$SHLD" || SHLD="ld -Bshareable"
3858 if test "$ELFFORMAT" = yes; then
3859 test -n "$SHLD" || SHLD="ld -Bshareable"
3862 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3863 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3869 # EXTRALIBS="$EXTRALIBS -lxpg4"
3870 # test -n "$SHLD" || SHLD="ld -Bshareable"
3875 EXTRADEFS="-D__W32__"
3878 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3879 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3880 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3881 *) test -n "$SHLD" || SHLD="unknown" ;;
3885 lib_user32_test=-luser32
3888 EXTRADEFS="-D__W32__"
3891 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3892 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3893 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3894 *) test -n "$SHLD" || SHLD="unknown" ;;
3898 lib_user32_test=-luser32
3902 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3906 EXTRADEFS="-DSOLARIS"
3907 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3911 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3915 if test "x$SIMD" = "xyes"; then
3917 cat >>confdefs.h <<\_ACEOF
3918 #define USE_ALTIVEC 1
3921 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3922 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3925 cat >>confdefs.h <<\_ACEOF
3926 #define USE_ALTIVEC 0
3930 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3931 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3932 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3936 test -n "$SHLD" || \
3937 if test "x$GCC" = xyes; then
3940 SHLD="ld -Bdynamic -G"
3947 # Checks for libraries.
3949 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3950 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3951 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 ac_check_lib_save_LIBS=$LIBS
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest$ac_exeext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_cv_lib_m_sqrt=yes
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4007 rm -f conftest.err conftest.$ac_objext \
4008 conftest$ac_exeext conftest.$ac_ext
4009 LIBS=$ac_check_lib_save_LIBS
4011 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4012 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4013 if test $ac_cv_lib_m_sqrt = yes; then
4014 cat >>confdefs.h <<_ACEOF
4023 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4024 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4025 if test "${ac_cv_lib_socket_socket+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_check_lib_save_LIBS=$LIBS
4029 LIBS="-lsocket $LIBS"
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4037 /* Override any gcc2 internal prototype to avoid an error. */
4041 /* We use char because int might match the return type of a gcc2
4042 builtin and then its argument prototype would still apply. */
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest$ac_exeext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_lib_socket_socket=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_lib_socket_socket=no
4081 rm -f conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
4083 LIBS=$ac_check_lib_save_LIBS
4085 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4086 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4087 if test $ac_cv_lib_socket_socket = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089 #define HAVE_LIBSOCKET 1
4092 LIBS="-lsocket $LIBS"
4096 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 ac_check_lib_save_LIBS=$LIBS
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4110 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -z "$ac_c_werror_flag"
4135 || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest$ac_exeext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_lib_dl_dlopen=yes
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_cv_lib_dl_dlopen=no
4154 rm -f conftest.err conftest.$ac_objext \
4155 conftest$ac_exeext conftest.$ac_ext
4156 LIBS=$ac_check_lib_save_LIBS
4158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4160 if test $ac_cv_lib_dl_dlopen = yes; then
4164 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4165 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4166 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 ac_check_lib_save_LIBS=$LIBS
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4178 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4184 char NSLinkModule ();
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195 (eval $ac_link) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1 >conftest.err
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -z "$ac_c_werror_flag"
4203 || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_lib_objc_NSLinkModule=yes
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ac_cv_lib_objc_NSLinkModule=no
4222 rm -f conftest.err conftest.$ac_objext \
4223 conftest$ac_exeext conftest.$ac_ext
4224 LIBS=$ac_check_lib_save_LIBS
4226 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4227 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4228 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4231 # Mac OS X need this.
4233 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4234 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4235 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 ac_check_lib_save_LIBS=$LIBS
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4247 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_lib_xpg4_setlocale=yes
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ac_cv_lib_xpg4_setlocale=no
4291 rm -f conftest.err conftest.$ac_objext \
4292 conftest$ac_exeext conftest.$ac_ext
4293 LIBS=$ac_check_lib_save_LIBS
4295 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4296 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4297 if test $ac_cv_lib_xpg4_setlocale = yes; then
4298 cat >>confdefs.h <<_ACEOF
4299 #define HAVE_LIBXPG4 1
4305 # Mac OS X (and maybe NetBSD) need this.
4307 for ac_func in gethostbyname
4309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4310 echo "$as_me:$LINENO: checking for $ac_func" >&5
4311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4312 if eval "test \"\${$as_ac_var+set}\" = set"; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 cat >conftest.$ac_ext <<_ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4323 #define $ac_func innocuous_$ac_func
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func (); below.
4327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 <limits.h> exists even on freestanding compilers. */
4331 # include <limits.h>
4333 # include <assert.h>
4338 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4346 /* The GNU C library defines this for functions which it implements
4347 to always fail with ENOSYS. Some functions are actually named
4348 something starting with __ and the normal name is an alias. */
4349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4352 char (*f) () = $ac_func;
4361 return f != $ac_func;
4366 rm -f conftest.$ac_objext conftest$ac_exeext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4368 (eval $ac_link) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest$ac_exeext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 eval "$as_ac_var=yes"
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 eval "$as_ac_var=no"
4395 rm -f conftest.err conftest.$ac_objext \
4396 conftest$ac_exeext conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4400 if test `eval echo '${'$as_ac_var'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4407 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4408 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4409 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_check_lib_save_LIBS=$LIBS
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4421 /* Override any gcc2 internal prototype to avoid an error. */
4425 /* We use char because int might match the return type of a gcc2
4426 builtin and then its argument prototype would still apply. */
4427 char gethostbyname ();
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438 (eval $ac_link) 2>conftest.er1
4440 grep -v '^ *+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -z "$ac_c_werror_flag"
4446 || test ! -s conftest.err'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest$ac_exeext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_lib_nsl_gethostbyname=yes
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_cv_lib_nsl_gethostbyname=no
4465 rm -f conftest.err conftest.$ac_objext \
4466 conftest$ac_exeext conftest.$ac_ext
4467 LIBS=$ac_check_lib_save_LIBS
4469 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4470 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4471 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4472 cat >>confdefs.h <<_ACEOF
4473 #define HAVE_LIBNSL 1
4483 echo "$as_me:$LINENO: checking for X" >&5
4484 echo $ECHO_N "checking for X... $ECHO_C" >&6
4487 # Check whether --with-x or --without-x was given.
4488 if test "${with_x+set}" = set; then
4492 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4493 if test "x$with_x" = xno; then
4494 # The user explicitly disabled X.
4497 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4498 # Both variables are already set.
4501 if test "${ac_cv_have_x+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 # One or both of the vars are not set, and there is no cached value.
4505 ac_x_includes=no ac_x_libraries=no
4507 if mkdir conftest.dir; then
4509 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4510 cat >Imakefile <<'_ACEOF'
4512 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4514 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4515 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4516 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4517 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4518 for ac_extension in a so sl; do
4519 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4520 test -f $ac_im_libdir/libX11.$ac_extension; then
4521 ac_im_usrlibdir=$ac_im_libdir; break
4524 # Screen out bogus values from the imake configuration. They are
4525 # bogus both because they are the default anyway, and because
4526 # using them would break gcc on systems where it needs fixed includes.
4527 case $ac_im_incroot in
4529 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4531 case $ac_im_usrlibdir in
4533 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4540 # Standard set of common directories for X headers.
4541 # Check X11 before X11Rn because it is often a symlink to the current release.
4553 /usr/local/X11/include
4554 /usr/local/X11R6/include
4555 /usr/local/X11R5/include
4556 /usr/local/X11R4/include
4558 /usr/local/include/X11
4559 /usr/local/include/X11R6
4560 /usr/local/include/X11R5
4561 /usr/local/include/X11R4
4565 /usr/XFree86/include/X11
4569 /usr/unsupported/include
4571 /usr/local/x11r5/include
4572 /usr/lpp/Xamples/include
4574 /usr/openwin/include
4575 /usr/openwin/share/include'
4577 if test "$ac_x_includes" = no; then
4578 # Guess where to find include files, by looking for Intrinsic.h.
4579 # First, try using that file with no special directory specified.
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <X11/Intrinsic.h>
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev/null; then
4596 if test -s conftest.err; then
4597 ac_cpp_err=$ac_c_preproc_warn_flag
4598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4605 if test -z "$ac_cpp_err"; then
4606 # We can compile using X headers with no special include directory.
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 for ac_dir in $ac_x_header_dirs; do
4613 if test -r "$ac_dir/X11/Intrinsic.h"; then
4614 ac_x_includes=$ac_dir
4619 rm -f conftest.err conftest.$ac_ext
4620 fi # $ac_x_includes = no
4622 if test "$ac_x_libraries" = no; then
4623 # Check for the libraries.
4624 # See if we find them without any special options.
4625 # Don't add to $LIBS permanently.
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <X11/Intrinsic.h>
4643 rm -f conftest.$ac_objext conftest$ac_exeext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645 (eval $ac_link) 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_c_werror_flag"
4653 || test ! -s conftest.err'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; } &&
4659 { ac_try='test -s conftest$ac_exeext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4666 # We can link X programs with no special library path.
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4673 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4675 # Don't even attempt the hair of trying to link an X program!
4676 for ac_extension in a so sl; do
4677 if test -r $ac_dir/libXt.$ac_extension; then
4678 ac_x_libraries=$ac_dir
4684 rm -f conftest.err conftest.$ac_objext \
4685 conftest$ac_exeext conftest.$ac_ext
4686 fi # $ac_x_libraries = no
4688 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4689 # Didn't find X anywhere. Cache the known absence of X.
4690 ac_cv_have_x="have_x=no"
4692 # Record where we found X for the cache.
4693 ac_cv_have_x="have_x=yes \
4694 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4699 eval "$ac_cv_have_x"
4702 if test "$have_x" != yes; then
4703 echo "$as_me:$LINENO: result: $have_x" >&5
4704 echo "${ECHO_T}$have_x" >&6
4707 # If each of the values was on the command line, it overrides each guess.
4708 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4709 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4710 # Update the cache value to reflect the command line values.
4711 ac_cv_have_x="have_x=yes \
4712 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4713 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4714 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4717 if test "$no_x" = yes; then
4718 # Not all programs may use this symbol, but it does not hurt to define it.
4720 cat >>confdefs.h <<\_ACEOF
4721 #define X_DISPLAY_MISSING 1
4724 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4726 if test -n "$x_includes"; then
4727 X_CFLAGS="$X_CFLAGS -I$x_includes"
4730 # It would also be nice to do this for all -L options, not just this one.
4731 if test -n "$x_libraries"; then
4732 X_LIBS="$X_LIBS -L$x_libraries"
4733 # For Solaris; some versions of Sun CC require a space after -R and
4734 # others require no space. Words are not sufficient . . . .
4735 case `(uname -sr) 2>/dev/null` in
4737 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4738 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4739 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4784 rm -f conftest.err conftest.$ac_objext \
4785 conftest$ac_exeext conftest.$ac_ext
4786 if test $ac_R_nospace = yes; then
4787 echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4789 X_LIBS="$X_LIBS -R$x_libraries"
4791 LIBS="$ac_xsave_LIBS -R $x_libraries"
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4836 rm -f conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838 if test $ac_R_space = yes; then
4839 echo "$as_me:$LINENO: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6
4841 X_LIBS="$X_LIBS -R $x_libraries"
4843 echo "$as_me:$LINENO: result: neither works" >&5
4844 echo "${ECHO_T}neither works" >&6
4851 # Check for system-dependent libraries X programs must link with.
4852 # Do this before checking for the system-independent R6 libraries
4853 # (-lICE), since we may need -lsocket or whatever for X linking.
4855 if test "$ISC" = yes; then
4856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4858 # Martyn Johnson says this is needed for Ultrix, if the X
4859 # libraries were built with DECnet support. And Karl Berry says
4860 # the Alpha needs dnet_stub (dnet does not exist).
4861 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4869 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4875 char XOpenDisplay ();
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4912 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4913 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_check_lib_save_LIBS=$LIBS
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_lib_dnet_dnet_ntoa=yes
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 ac_cv_lib_dnet_dnet_ntoa=no
4969 rm -f conftest.err conftest.$ac_objext \
4970 conftest$ac_exeext conftest.$ac_ext
4971 LIBS=$ac_check_lib_save_LIBS
4973 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4974 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4975 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4976 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4979 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4980 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4981 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4982 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_check_lib_save_LIBS=$LIBS
4986 LIBS="-ldnet_stub $LIBS"
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4994 /* Override any gcc2 internal prototype to avoid an error. */
4998 /* We use char because int might match the return type of a gcc2
4999 builtin and then its argument prototype would still apply. */
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_lib_dnet_stub_dnet_ntoa=no
5038 rm -f conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5043 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5044 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5045 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5050 rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052 LIBS="$ac_xsave_LIBS"
5054 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5055 # to get the SysV transport functions.
5056 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5058 # The nsl library prevents programs from opening the X display
5059 # on Irix 5.2, according to T.E. Dickey.
5060 # The functions gethostbyname, getservbyname, and inet_addr are
5061 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5062 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5063 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5064 if test "${ac_cv_func_gethostbyname+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5075 #define gethostbyname innocuous_gethostbyname
5077 /* System header to define __stub macros and hopefully few prototypes,
5078 which can conflict with char gethostbyname (); below.
5079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 <limits.h> exists even on freestanding compilers. */
5083 # include <limits.h>
5085 # include <assert.h>
5088 #undef gethostbyname
5090 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5097 char gethostbyname ();
5098 /* The GNU C library defines this for functions which it implements
5099 to always fail with ENOSYS. Some functions are actually named
5100 something starting with __ and the normal name is an alias. */
5101 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5104 char (*f) () = gethostbyname;
5113 return f != gethostbyname;
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120 (eval $ac_link) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try='test -s conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_func_gethostbyname=yes
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_cv_func_gethostbyname=no
5147 rm -f conftest.err conftest.$ac_objext \
5148 conftest$ac_exeext conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5151 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5153 if test $ac_cv_func_gethostbyname = no; then
5154 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5155 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5156 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 ac_check_lib_save_LIBS=$LIBS
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char gethostbyname ();
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_lib_nsl_gethostbyname=yes
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_lib_nsl_gethostbyname=no
5212 rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5217 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5218 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5219 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5222 if test $ac_cv_lib_nsl_gethostbyname = no; then
5223 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5224 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5225 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_check_lib_save_LIBS=$LIBS
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5237 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5243 char gethostbyname ();
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag"
5262 || test ! -s conftest.err'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 ac_cv_lib_bsd_gethostbyname=yes
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_cv_lib_bsd_gethostbyname=no
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5285 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5286 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5287 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5294 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5295 # socket/setsockopt and other routines are undefined under SCO ODT
5296 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5297 # on later versions), says Simon Leinen: it contains gethostby*
5298 # variants that don't use the name server (or something). -lsocket
5299 # must be given before -lnsl if both are needed. We assume that
5300 # if connect needs -lnsl, so does gethostbyname.
5301 echo "$as_me:$LINENO: checking for connect" >&5
5302 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5303 if test "${ac_cv_func_connect+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 cat >conftest.$ac_ext <<_ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5314 #define connect innocuous_connect
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char connect (); below.
5318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319 <limits.h> exists even on freestanding compilers. */
5322 # include <limits.h>
5324 # include <assert.h>
5329 /* Override any gcc2 internal prototype to avoid an error. */
5334 /* We use char because int might match the return type of a gcc2
5335 builtin and then its argument prototype would still apply. */
5337 /* The GNU C library defines this for functions which it implements
5338 to always fail with ENOSYS. Some functions are actually named
5339 something starting with __ and the normal name is an alias. */
5340 #if defined (__stub_connect) || defined (__stub___connect)
5343 char (*f) () = connect;
5352 return f != connect;
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag"
5367 || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_func_connect=yes
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_cv_func_connect=no
5386 rm -f conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5390 echo "${ECHO_T}$ac_cv_func_connect" >&6
5392 if test $ac_cv_func_connect = no; then
5393 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5395 if test "${ac_cv_lib_socket_connect+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5407 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424 (eval $ac_link) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_lib_socket_connect=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 ac_cv_lib_socket_connect=no
5451 rm -f conftest.err conftest.$ac_objext \
5452 conftest$ac_exeext conftest.$ac_ext
5453 LIBS=$ac_check_lib_save_LIBS
5455 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5456 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5457 if test $ac_cv_lib_socket_connect = yes; then
5458 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5463 # Guillermo Gomez says -lposix is necessary on A/UX.
5464 echo "$as_me:$LINENO: checking for remove" >&5
5465 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5466 if test "${ac_cv_func_remove+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5477 #define remove innocuous_remove
5479 /* System header to define __stub macros and hopefully few prototypes,
5480 which can conflict with char remove (); below.
5481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482 <limits.h> exists even on freestanding compilers. */
5485 # include <limits.h>
5487 # include <assert.h>
5492 /* Override any gcc2 internal prototype to avoid an error. */
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined (__stub_remove) || defined (__stub___remove)
5506 char (*f) () = remove;
5520 rm -f conftest.$ac_objext conftest$ac_exeext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522 (eval $ac_link) 2>conftest.er1
5524 grep -v '^ *+' conftest.er1 >conftest.err
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } &&
5529 { ac_try='test -z "$ac_c_werror_flag"
5530 || test ! -s conftest.err'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; } &&
5536 { ac_try='test -s conftest$ac_exeext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_func_remove=yes
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 ac_cv_func_remove=no
5549 rm -f conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5553 echo "${ECHO_T}$ac_cv_func_remove" >&6
5555 if test $ac_cv_func_remove = no; then
5556 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5557 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5558 if test "${ac_cv_lib_posix_remove+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lposix $LIBS"
5563 cat >conftest.$ac_ext <<_ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5570 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag"
5595 || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_lib_posix_remove=yes
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ac_cv_lib_posix_remove=no
5614 rm -f conftest.err conftest.$ac_objext \
5615 conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5619 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5620 if test $ac_cv_lib_posix_remove = yes; then
5621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5626 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5627 echo "$as_me:$LINENO: checking for shmat" >&5
5628 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5629 if test "${ac_cv_func_shmat+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5640 #define shmat innocuous_shmat
5642 /* System header to define __stub macros and hopefully few prototypes,
5643 which can conflict with char shmat (); below.
5644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 <limits.h> exists even on freestanding compilers. */
5648 # include <limits.h>
5650 # include <assert.h>
5655 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_shmat) || defined (__stub___shmat)
5669 char (*f) () = shmat;
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_func_shmat=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5712 rm -f conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5716 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5718 if test $ac_cv_func_shmat = no; then
5719 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5720 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5721 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 ac_check_lib_save_LIBS=$LIBS
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5733 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750 (eval $ac_link) 2>conftest.er1
5752 grep -v '^ *+' conftest.er1 >conftest.err
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -z "$ac_c_werror_flag"
5758 || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest$ac_exeext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_lib_ipc_shmat=yes
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ac_cv_lib_ipc_shmat=no
5777 rm -f conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779 LIBS=$ac_check_lib_save_LIBS
5781 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5782 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5783 if test $ac_cv_lib_ipc_shmat = yes; then
5784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5790 # Check for libraries that X11R6 Xt/Xaw programs need.
5791 ac_save_LDFLAGS=$LDFLAGS
5792 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5793 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5794 # check for ICE first), but we must link in the order -lSM -lICE or
5795 # we get undefined symbols. So assume we have SM if we have ICE.
5796 # These have to be linked with before -lX11, unlike the other
5797 # libraries we check for below, so use a different variable.
5798 # John Interrante, Karl Berry
5799 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5800 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5801 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_check_lib_save_LIBS=$LIBS
5805 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5813 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5819 char IceConnectionNumber ();
5823 IceConnectionNumber ();
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830 (eval $ac_link) 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest$ac_exeext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_lib_ICE_IceConnectionNumber=yes
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_cv_lib_ICE_IceConnectionNumber=no
5857 rm -f conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5862 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5863 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5864 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5867 LDFLAGS=$ac_save_LDFLAGS
5873 if test "x$with_x" = xyes; then
5874 if test "x$have_x" = xno; then
5875 if test "x$x_config_flag" = xyes; then
5876 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5877 echo "$as_me: error: Could not configure X" >&2;}
5878 { (exit 1); exit 1; }; }
5880 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5881 echo "$as_me: WARNING: Could not configure X" >&2;}
5885 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5886 if test "x$x_libraries" != x; then
5887 ldflags_x_opt="-L$x_libraries"
5888 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5889 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5893 if test "x$x_includes" != x; then
5894 CPPFLAGS="$CPPFLAGS -I$x_includes"
5898 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5899 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5900 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 ac_check_lib_save_LIBS=$LIBS
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5912 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5918 char XOpenDisplay ();
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>conftest.er1
5931 grep -v '^ *+' conftest.er1 >conftest.err
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest$ac_exeext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_cv_lib_X11_XOpenDisplay=yes
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_cv_lib_X11_XOpenDisplay=no
5956 rm -f conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5960 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5961 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5962 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5963 cat >>confdefs.h <<_ACEOF
5964 #define HAVE_LIBX11 1
5971 echo "$as_me:$LINENO: checking X11 version 6" >&5
5972 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5973 if test "${timidity_cv_x11_version_6+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <X11/Xlib.h>
5987 #if XlibSpecificationRelease < 6
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997 (eval $ac_link) 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag"
6005 || test ! -s conftest.err'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest$ac_exeext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 timidity_cv_x11_version_6=yes
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 timidity_cv_x11_version_6=no
6024 rm -f conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6028 if test "$timidity_cv_x11_version_6" = "yes"; then
6029 echo "$as_me:$LINENO: result: 6 or newer" >&5
6030 echo "${ECHO_T}6 or newer" >&6
6032 echo "$as_me:$LINENO: result: before 6" >&5
6033 echo "${ECHO_T}before 6" >&6
6037 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6038 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6039 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_check_lib_save_LIBS=$LIBS
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6051 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6057 char XShapeCombineMask ();
6061 XShapeCombineMask ();
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_c_werror_flag"
6076 || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest$ac_exeext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_lib_Xext_XShapeCombineMask=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_lib_Xext_XShapeCombineMask=no
6095 rm -f conftest.err conftest.$ac_objext \
6096 conftest$ac_exeext conftest.$ac_ext
6097 LIBS=$ac_check_lib_save_LIBS
6099 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6100 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6101 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6102 have_xext=yes; LIBS="-lXext $LIBS"
6108 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6109 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6110 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_check_lib_save_LIBS=$LIBS
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6122 /* Override any gcc2 internal prototype to avoid an error. */
6126 /* We use char because int might match the return type of a gcc2
6127 builtin and then its argument prototype would still apply. */
6128 char IceConnectionNumber ();
6132 IceConnectionNumber ();
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6139 (eval $ac_link) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest$ac_exeext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_cv_lib_ICE_IceConnectionNumber=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_cv_lib_ICE_IceConnectionNumber=no
6166 rm -f conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6168 LIBS=$ac_check_lib_save_LIBS
6170 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6171 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6172 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6173 cat >>confdefs.h <<_ACEOF
6174 #define HAVE_LIBICE 1
6181 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6182 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6183 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_check_lib_save_LIBS=$LIBS
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6195 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201 char SmcOpenConnection ();
6205 SmcOpenConnection ();
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212 (eval $ac_link) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag"
6220 || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest$ac_exeext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_lib_SM_SmcOpenConnection=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_cv_lib_SM_SmcOpenConnection=no
6239 rm -f conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6243 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6244 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6245 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6246 have_xprelibs=yes; LIBS="-lSM $LIBS"
6251 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6252 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6253 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 ac_check_lib_save_LIBS=$LIBS
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6265 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char XtVaAppInitialize ();
6275 XtVaAppInitialize ();
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_lib_Xt_XtVaAppInitialize=yes
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_cv_lib_Xt_XtVaAppInitialize=no
6309 rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 LIBS=$ac_check_lib_save_LIBS
6313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6314 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6315 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6316 have_xt=yes; LIBS="-lXt $LIBS"
6321 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6322 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6323 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 ac_check_lib_save_LIBS=$LIBS
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6335 /* Override any gcc2 internal prototype to avoid an error. */
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char XmuInternAtom ();
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352 (eval $ac_link) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag"
6360 || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest$ac_exeext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 ac_cv_lib_Xmu_XmuInternAtom=yes
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6377 ac_cv_lib_Xmu_XmuInternAtom=no
6379 rm -f conftest.err conftest.$ac_objext \
6380 conftest$ac_exeext conftest.$ac_ext
6381 LIBS=$ac_check_lib_save_LIBS
6383 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6384 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6385 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6390 for ac_func in XmuRegisterExternalAgent
6392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6393 echo "$as_me:$LINENO: checking for $ac_func" >&5
6394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_var+set}\" = set"; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6406 #define $ac_func innocuous_$ac_func
6408 /* System header to define __stub macros and hopefully few prototypes,
6409 which can conflict with char $ac_func (); below.
6410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6411 <limits.h> exists even on freestanding compilers. */
6414 # include <limits.h>
6416 # include <assert.h>
6421 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6429 /* The GNU C library defines this for functions which it implements
6430 to always fail with ENOSYS. Some functions are actually named
6431 something starting with __ and the normal name is an alias. */
6432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6435 char (*f) () = $ac_func;
6444 return f != $ac_func;
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 eval "$as_ac_var=yes"
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 eval "$as_ac_var=no"
6478 rm -f conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6483 if test `eval echo '${'$as_ac_var'}'` = yes; then
6484 cat >>confdefs.h <<_ACEOF
6485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6491 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6492 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6493 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lXaw3d $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511 char XawInitializeWidgetSet ();
6515 XawInitializeWidgetSet ();
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_check_lib_save_LIBS
6553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6554 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6555 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6558 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6559 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6560 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 ac_check_lib_save_LIBS=$LIBS
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6572 /* Override any gcc2 internal prototype to avoid an error. */
6576 /* We use char because int might match the return type of a gcc2
6577 builtin and then its argument prototype would still apply. */
6578 char XawInitializeWidgetSet ();
6582 XawInitializeWidgetSet ();
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6616 rm -f conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6618 LIBS=$ac_check_lib_save_LIBS
6620 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6621 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6622 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6630 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6631 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6632 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_check_lib_save_LIBS=$LIBS
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6644 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char XmCreateForm ();
6659 rm -f conftest.$ac_objext conftest$ac_exeext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661 (eval $ac_link) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest$ac_exeext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_lib_Xm_XmCreateForm=yes
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_cv_lib_Xm_XmCreateForm=no
6688 rm -f conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_check_lib_save_LIBS
6692 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6693 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6694 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6701 for ac_func in XShmCreatePixmap
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.$ac_ext <<_ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6717 #define $ac_func innocuous_$ac_func
6719 /* System header to define __stub macros and hopefully few prototypes,
6720 which can conflict with char $ac_func (); below.
6721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722 <limits.h> exists even on freestanding compilers. */
6725 # include <limits.h>
6727 # include <assert.h>
6732 /* Override any gcc2 internal prototype to avoid an error. */
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6740 /* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6746 char (*f) () = $ac_func;
6755 return f != $ac_func;
6760 rm -f conftest.$ac_objext conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag"
6770 || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 eval "$as_ac_var=yes"
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 eval "$as_ac_var=no"
6789 rm -f conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6794 if test `eval echo '${'$as_ac_var'}'` = yes; then
6795 cat >>confdefs.h <<_ACEOF
6796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6805 # Checks for header files.
6806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6808 if test "${ac_cv_header_stdc+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag"
6840 || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_header_stdc=yes
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_cv_header_stdc=no
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861 if test $ac_cv_header_stdc = yes; then
6862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 $EGREP "memchr" >/dev/null 2>&1; then
6876 ac_cv_header_stdc=no
6882 if test $ac_cv_header_stdc = yes; then
6883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "free" >/dev/null 2>&1; then
6897 ac_cv_header_stdc=no
6903 if test $ac_cv_header_stdc = yes; then
6904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6905 if test "$cross_compiling" = yes; then
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6919 # define ISLOWER(c) \
6920 (('a' <= (c) && (c) <= 'i') \
6921 || ('j' <= (c) && (c) <= 'r') \
6922 || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6931 for (i = 0; i < 256; i++)
6932 if (XOR (islower (i), ISLOWER (i))
6933 || toupper (i) != TOUPPER (i))
6938 rm -f conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6951 echo "$as_me: program exited with status $ac_status" >&5
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_header_stdc=no
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6964 if test $ac_cv_header_stdc = yes; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define STDC_HEADERS 1
6972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6983 inttypes.h stdint.h unistd.h
6985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 $ac_includes_default
6999 #include <$ac_header>
7001 rm -f conftest.$ac_objext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003 (eval $ac_compile) 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -z "$ac_c_werror_flag"
7011 || test ! -s conftest.err'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try='test -s conftest.$ac_objext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 eval "$as_ac_Header=yes"
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 eval "$as_ac_Header=no"
7030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7035 cat >>confdefs.h <<_ACEOF
7036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7044 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7045 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7046 if test "${ac_cv_header_stdbool_h+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7056 #include <stdbool.h>
7058 # error bool is not defined
7061 # error false is not defined
7064 # error false is not 0
7067 # error true is not defined
7070 # error true is not 1
7072 #ifndef __bool_true_false_are_defined
7073 # error __bool_true_false_are_defined is not defined
7076 struct s { _Bool s: 1; _Bool t; } s;
7078 char a[true == 1 ? 1 : -1];
7079 char b[false == 0 ? 1 : -1];
7080 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7081 char d[(bool) -0.5 == true ? 1 : -1];
7083 char f[(_Bool) -0.0 == false ? 1 : -1];
7085 char h[sizeof (_Bool)];
7091 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>conftest.er1
7100 grep -v '^ *+' conftest.er1 >conftest.err
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -z "$ac_c_werror_flag"
7106 || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest.$ac_objext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_header_stdbool_h=yes
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_header_stdbool_h=no
7125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7128 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7129 echo "$as_me:$LINENO: checking for _Bool" >&5
7130 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7131 if test "${ac_cv_type__Bool+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 $ac_includes_default
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>conftest.er1
7156 grep -v '^ *+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } &&
7161 { ac_try='test -z "$ac_c_werror_flag"
7162 || test ! -s conftest.err'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; } &&
7168 { ac_try='test -s conftest.$ac_objext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_type__Bool=yes
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7184 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7185 if test $ac_cv_type__Bool = yes; then
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE__BOOL 1
7194 if test $ac_cv_header_stdbool_h = yes; then
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_STDBOOL_H 1
7202 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7203 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7204 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #include <sys/types.h>
7214 #include <sys/wait.h>
7216 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7219 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7227 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>conftest.er1
7236 grep -v '^ *+' conftest.er1 >conftest.err
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -z "$ac_c_werror_flag"
7242 || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_header_sys_wait_h=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_cv_header_sys_wait_h=no
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7264 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7265 if test $ac_cv_header_sys_wait_h = yes; then
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_SYS_WAIT_H 1
7273 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7274 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7275 if test "${ac_cv_header_time+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <sys/types.h>
7285 #include <sys/time.h>
7291 if ((struct tm *) 0)
7297 rm -f conftest.$ac_objext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7299 (eval $ac_compile) 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -z "$ac_c_werror_flag"
7307 || test ! -s conftest.err'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; } &&
7313 { ac_try='test -s conftest.$ac_objext'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; }; then
7319 ac_cv_header_time=yes
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 ac_cv_header_time=no
7326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7329 echo "${ECHO_T}$ac_cv_header_time" >&6
7330 if test $ac_cv_header_time = yes; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define TIME_WITH_SYS_TIME 1
7344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7345 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7346 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7347 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #include <sys/types.h>
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest.$ac_objext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 eval "$as_ac_Header=yes"
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 eval "$as_ac_Header=no"
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7407 ac_header_dirent=$ac_hdr; break
7411 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7412 if test $ac_header_dirent = dirent.h; then
7413 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7415 if test "${ac_cv_search_opendir+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_func_search_save_LIBS=$LIBS
7419 ac_cv_search_opendir=no
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any gcc2 internal prototype to avoid an error. */
7431 /* We use char because int might match the return type of a gcc2
7432 builtin and then its argument prototype would still apply. */
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1 >conftest.err
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest$ac_exeext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_search_opendir="none required"
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472 if test "$ac_cv_search_opendir" = no; then
7473 for ac_lib in dir; do
7474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7482 /* Override any gcc2 internal prototype to avoid an error. */
7486 /* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499 (eval $ac_link) 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -z "$ac_c_werror_flag"
7507 || test ! -s conftest.err'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try='test -s conftest$ac_exeext'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_search_opendir="-l$ac_lib"
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7526 rm -f conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7530 LIBS=$ac_func_search_save_LIBS
7532 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7533 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7534 if test "$ac_cv_search_opendir" != no; then
7535 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7540 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7542 if test "${ac_cv_search_opendir+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_func_search_save_LIBS=$LIBS
7546 ac_cv_search_opendir=no
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7554 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571 (eval $ac_link) 2>conftest.er1
7573 grep -v '^ *+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -z "$ac_c_werror_flag"
7579 || test ! -s conftest.err'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 ac_cv_search_opendir="none required"
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7597 rm -f conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 if test "$ac_cv_search_opendir" = no; then
7601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7609 /* Override any gcc2 internal prototype to avoid an error. */
7613 /* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_search_opendir="-l$ac_lib"
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7653 rm -f conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7657 LIBS=$ac_func_search_save_LIBS
7659 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7660 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7661 if test "$ac_cv_search_opendir" != no; then
7662 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748 echo "$as_me:$LINENO: checking for $ac_header" >&5
7749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7756 # Is the header compilable?
7757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7759 cat >conftest.$ac_ext <<_ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765 $ac_includes_default
7766 #include <$ac_header>
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7772 grep -v '^ *+' conftest.er1 >conftest.err
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_header_compiler=yes
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_header_compiler=no
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 #include <$ac_header>
7812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } >/dev/null; then
7820 if test -s conftest.err; then
7821 ac_cpp_err=$ac_c_preproc_warn_flag
7822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7829 if test -z "$ac_cpp_err"; then
7830 ac_header_preproc=yes
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ac_header_preproc=no
7837 rm -f conftest.err conftest.$ac_ext
7838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839 echo "${ECHO_T}$ac_header_preproc" >&6
7841 # So? What about this header?
7842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848 ac_header_preproc=yes
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7865 ## ------------------------------- ##
7866 ## Report this to root@mput.dip.jp ##
7867 ## ------------------------------- ##
7870 sed "s/^/$as_me: WARNING: /" >&2
7873 echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 eval "$as_ac_Header=\$ac_header_preproc"
7880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885 cat >>confdefs.h <<_ACEOF
7886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899 echo "$as_me:$LINENO: checking for $ac_header" >&5
7900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7911 #ifdef HAVE_X11_XLIB_H
7912 #include <X11/Xlib.h>
7916 #include <$ac_header>
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 eval "$as_ac_Header=yes"
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7945 eval "$as_ac_Header=no"
7947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7952 cat >>confdefs.h <<_ACEOF
7953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7960 if test "${ac_cv_header_string_h+set}" = set; then
7961 echo "$as_me:$LINENO: checking for string.h" >&5
7962 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7963 if test "${ac_cv_header_string_h+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7967 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7969 # Is the header compilable?
7970 echo "$as_me:$LINENO: checking string.h usability" >&5
7971 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 $ac_includes_default
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 ac_header_compiler=yes
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_header_compiler=no
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 echo "${ECHO_T}$ac_header_compiler" >&6
8014 # Is the header present?
8015 echo "$as_me:$LINENO: checking string.h presence" >&5
8016 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } >/dev/null; then
8033 if test -s conftest.err; then
8034 ac_cpp_err=$ac_c_preproc_warn_flag
8035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8042 if test -z "$ac_cpp_err"; then
8043 ac_header_preproc=yes
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_header_preproc=no
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8054 # So? What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8057 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8061 ac_header_preproc=yes
8064 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8078 ## ------------------------------- ##
8079 ## Report this to root@mput.dip.jp ##
8080 ## ------------------------------- ##
8083 sed "s/^/$as_me: WARNING: /" >&2
8086 echo "$as_me:$LINENO: checking for string.h" >&5
8087 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8088 if test "${ac_cv_header_string_h+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 ac_cv_header_string_h=$ac_header_preproc
8093 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8094 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8097 if test $ac_cv_header_string_h = yes; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define NO_STRING_H 1
8109 # Checks for typedefs, structures, and compiler characteristics.
8110 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8112 if test "${ac_cv_c_bigendian+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 # See if sys/param.h defines the BYTE_ORDER macro.
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 #include <sys/types.h>
8123 #include <sys/param.h>
8128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 # It does; now see whether it defined to BIG_ENDIAN or not.
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <sys/types.h>
8166 #include <sys/param.h>
8171 #if BYTE_ORDER != BIG_ENDIAN
8179 rm -f conftest.$ac_objext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181 (eval $ac_compile) 2>conftest.er1
8183 grep -v '^ *+' conftest.er1 >conftest.err
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag"
8189 || test ! -s conftest.err'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest.$ac_objext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_c_bigendian=yes
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 ac_cv_c_bigendian=no
8208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 # It does not; compile a test program.
8214 if test "$cross_compiling" = yes; then
8215 # try to guess the endianness by grepping values into an object file
8216 ac_cv_c_bigendian=unknown
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8224 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8226 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8227 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8232 _ascii (); _ebcdic ();
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_c_werror_flag"
8247 || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8260 ac_cv_c_bigendian=yes
8262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8263 if test "$ac_cv_c_bigendian" = unknown; then
8264 ac_cv_c_bigendian=no
8266 # finding both strings is unlikely to happen, but who knows?
8267 ac_cv_c_bigendian=unknown
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8286 /* Are we little or big endian? From Harbison&Steele. */
8290 char c[sizeof (long)];
8293 exit (u.c[sizeof (long) - 1] == 1);
8296 rm -f conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298 (eval $ac_link) 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_c_bigendian=no
8309 echo "$as_me: program exited with status $ac_status" >&5
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_cv_c_bigendian=yes
8316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8323 case $ac_cv_c_bigendian in
8326 cat >>confdefs.h <<\_ACEOF
8327 #define WORDS_BIGENDIAN 1
8333 { { echo "$as_me:$LINENO: error: unknown endianness
8334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8335 echo "$as_me: error: unknown endianness
8336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8337 { (exit 1); exit 1; }; } ;;
8341 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8342 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8343 if test "${ac_cv_c_char_unsigned+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8356 static int test_array [1 - 2 * !(((char) -1) < 0)];
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -z "$ac_c_werror_flag"
8373 || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_c_char_unsigned=no
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 ac_cv_c_char_unsigned=yes
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8394 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8395 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8396 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8397 cat >>confdefs.h <<\_ACEOF
8398 #define __CHAR_UNSIGNED__ 1
8403 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8405 if test "${ac_cv_c_const+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8418 /* FIXME: Include the comments suggested by Paul. */
8420 /* Ultrix mips cc rejects this. */
8421 typedef int charset[2];
8423 /* SunOS 4.1.1 cc rejects this. */
8424 char const *const *ccp;
8426 /* NEC SVR4.0.2 mips cc rejects this. */
8427 struct point {int x, y;};
8428 static struct point const zero = {0,0};
8429 /* AIX XL C 1.02.0.0 rejects this.
8430 It does not let you subtract one const X* pointer from another in
8431 an arm of an if-expression whose if-part is not a constant
8433 const char *g = "string";
8434 ccp = &g + (g ? g-g : 0);
8435 /* HPUX 7.0 cc rejects these. */
8438 ccp = (char const *const *) p;
8439 { /* SCO 3.2v4 cc rejects this. */
8441 char const *s = 0 ? (char *) 0 : (char const *) 0;
8445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8447 const int *foo = &x[0];
8450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8451 typedef const int *iptr;
8455 { /* AIX XL C 1.02.0.0 rejects this saying
8456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8457 struct s { int j; const int *ap[3]; };
8458 struct s *b; b->j = 5;
8460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471 (eval $ac_compile) 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag"
8479 || test ! -s conftest.err'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8501 echo "${ECHO_T}$ac_cv_c_const" >&6
8502 if test $ac_cv_c_const = no; then
8504 cat >>confdefs.h <<\_ACEOF
8510 echo "$as_me:$LINENO: checking for inline" >&5
8511 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8512 if test "${ac_cv_c_inline+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 for ac_kw in inline __inline__ __inline; do
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8525 static $ac_kw foo_t static_foo () {return 0; }
8526 $ac_kw foo_t foo () {return 0; }
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_c_inline=$ac_kw; break
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8563 echo "${ECHO_T}$ac_cv_c_inline" >&6
8566 case $ac_cv_c_inline in
8569 case $ac_cv_c_inline in
8571 *) ac_val=$ac_cv_c_inline;;
8573 cat >>confdefs.h <<_ACEOF
8575 #define inline $ac_val
8581 echo "$as_me:$LINENO: checking for working volatile" >&5
8582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8583 if test "${ac_cv_c_volatile+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_c_volatile=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8635 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8636 if test $ac_cv_c_volatile = no; then
8638 cat >>confdefs.h <<\_ACEOF
8644 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8645 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8646 if test "${ac_cv_c_stringize+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8657 char *s = x(teststring);
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660 $EGREP "#teststring" >/dev/null 2>&1; then
8661 ac_cv_c_stringize=no
8663 ac_cv_c_stringize=yes
8668 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8669 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8670 if test $ac_cv_c_stringize = yes; then
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_STRINGIZE 1
8678 echo "$as_me:$LINENO: checking for function prototypes" >&5
8679 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8680 if test "$ac_cv_prog_cc_stdc" != no; then
8681 echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6
8684 cat >>confdefs.h <<\_ACEOF
8685 #define PROTOTYPES 1
8689 cat >>confdefs.h <<\_ACEOF
8690 #define __PROTOTYPES 1
8694 echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6
8698 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8699 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8700 if test "${ac_cv_struct_tm+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 #include <sys/types.h>
8715 struct tm *tp; tp->tm_sec;
8720 rm -f conftest.$ac_objext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8722 (eval $ac_compile) 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest.$ac_objext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_struct_tm=time.h
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_struct_tm=sys/time.h
8749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8752 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8753 if test $ac_cv_struct_tm = sys/time.h; then
8755 cat >>confdefs.h <<\_ACEOF
8756 #define TM_IN_SYS_TIME 1
8761 echo "$as_me:$LINENO: checking for size_t" >&5
8762 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8763 if test "${ac_cv_type_size_t+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 cat >conftest.$ac_ext <<_ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8778 if (sizeof (size_t))
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786 (eval $ac_compile) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest.$ac_objext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_type_size_t=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_type_size_t=no
8813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8817 if test $ac_cv_type_size_t = yes; then
8821 cat >>confdefs.h <<_ACEOF
8822 #define size_t unsigned
8827 echo "$as_me:$LINENO: checking for off_t" >&5
8828 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8829 if test "${ac_cv_type_off_t+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 cat >conftest.$ac_ext <<_ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8838 $ac_includes_default
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_type_off_t=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8882 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8883 if test $ac_cv_type_off_t = yes; then
8887 cat >>confdefs.h <<_ACEOF
8893 echo "$as_me:$LINENO: checking for pid_t" >&5
8894 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8895 if test "${ac_cv_type_pid_t+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_type_pid_t=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8947 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8948 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8949 if test $ac_cv_type_pid_t = yes; then
8953 cat >>confdefs.h <<_ACEOF
8960 echo "$as_me:$LINENO: checking volatile declaration" >&5
8961 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8962 if test "${timidity_cv_type_volatile+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 timidity_cv_type_volatile=yes
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 timidity_cv_type_volatile=no
9009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9011 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9012 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9013 if test $timidity_cv_type_volatile = no; then
9015 cat >>confdefs.h <<\_ACEOF
9016 #define NO_VOLATILE 1
9021 echo "$as_me:$LINENO: checking union semun declaration" >&5
9022 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9023 if test "${timidity_cv_type_union_semun+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 #include <sys/types.h>
9034 #include <sys/ipc.h>
9035 #include <sys/sem.h>
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest.$ac_objext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 timidity_cv_type_union_semun=yes
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 timidity_cv_type_union_semun=no
9074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9076 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9077 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9078 if test $timidity_cv_type_union_semun = yes; then
9080 cat >>confdefs.h <<\_ACEOF
9081 #define HAVE_UNION_SEMUN 1
9086 if test "x$CYGNUS" = xyes; then
9087 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9088 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9089 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9099 #include <windows.h>
9100 #include <mmsystem.h>
9105 return WOM_OPEN != 0x3BB
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112 (eval $ac_compile) 2>conftest.er1
9114 grep -v '^ *+' conftest.er1 >conftest.err
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -z "$ac_c_werror_flag"
9120 || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 timidity_cv_header_new_mmsystem=yes
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 timidity_cv_header_new_mmsystem=no
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9142 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9143 if test $timidity_cv_header_new_mmsystem = yes; then
9145 cat >>confdefs.h <<\_ACEOF
9146 #define HAVE_NEW_MMSYSTEM 1
9152 if test "x$MINGW" = xyes; then
9153 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9154 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9155 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9165 #include <windows.h>
9166 #include <mmsystem.h>
9171 return WOM_OPEN != 0x3BB
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>conftest.er1
9180 grep -v '^ *+' conftest.er1 >conftest.err
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 timidity_cv_header_new_mmsystem=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 timidity_cv_header_new_mmsystem=no
9205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9208 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9209 if test $timidity_cv_header_new_mmsystem = yes; then
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_NEW_MMSYSTEM 1
9218 # Checks for library functions.
9219 echo "$as_me:$LINENO: checking for error_at_line" >&5
9220 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9221 if test "${ac_cv_lib_error_at_line+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 $ac_includes_default
9234 error_at_line (0, 0, "", 0, "");
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_error_at_line=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_error_at_line=no
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9271 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9272 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9273 if test $ac_cv_lib_error_at_line = no; then
9275 "error.$ac_objext" | \
9276 *" error.$ac_objext" | \
9277 "error.$ac_objext "* | \
9278 *" error.$ac_objext "* ) ;;
9279 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9286 for ac_header in unistd.h vfork.h
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9298 # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 $ac_includes_default
9308 #include <$ac_header>
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try='test -s conftest.$ac_objext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_header_compiler=yes
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 ac_header_compiler=no
9339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9341 echo "${ECHO_T}$ac_header_compiler" >&6
9343 # Is the header present?
9344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 #include <$ac_header>
9354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } >/dev/null; then
9362 if test -s conftest.err; then
9363 ac_cpp_err=$ac_c_preproc_warn_flag
9364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371 if test -z "$ac_cpp_err"; then
9372 ac_header_preproc=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_header_preproc=no
9379 rm -f conftest.err conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9381 echo "${ECHO_T}$ac_header_preproc" >&6
9383 # So? What about this header?
9384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9390 ac_header_preproc=yes
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9407 ## ------------------------------- ##
9408 ## Report this to root@mput.dip.jp ##
9409 ## ------------------------------- ##
9412 sed "s/^/$as_me: WARNING: /" >&2
9415 echo "$as_me:$LINENO: checking for $ac_header" >&5
9416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 eval "$as_ac_Header=\$ac_header_preproc"
9422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9437 for ac_func in fork vfork
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453 #define $ac_func innocuous_$ac_func
9455 /* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char $ac_func (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9461 # include <limits.h>
9463 # include <assert.h>
9468 /* Override any gcc2 internal prototype to avoid an error. */
9473 /* We use char because int might match the return type of a gcc2
9474 builtin and then its argument prototype would still apply. */
9476 /* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9482 char (*f) () = $ac_func;
9491 return f != $ac_func;
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 eval "$as_ac_var=yes"
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 eval "$as_ac_var=no"
9525 rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538 if test "x$ac_cv_func_fork" = xyes; then
9539 echo "$as_me:$LINENO: checking for working fork" >&5
9540 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9541 if test "${ac_cv_func_fork_works+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 if test "$cross_compiling" = yes; then
9545 ac_cv_func_fork_works=cross
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* By Ruediger Kuhlmann. */
9549 #include <sys/types.h>
9551 # include <unistd.h>
9553 /* Some systems only have a dummy stub for fork() */
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_func_fork_works=yes
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_cv_func_fork_works=no
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9585 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9588 ac_cv_func_fork_works=$ac_cv_func_fork
9590 if test "x$ac_cv_func_fork_works" = xcross; then
9592 *-*-amigaos* | *-*-msdosdjgpp*)
9593 # Override, as these systems have only a dummy fork() stub
9594 ac_cv_func_fork_works=no
9597 ac_cv_func_fork_works=yes
9600 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9601 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9603 ac_cv_func_vfork_works=$ac_cv_func_vfork
9604 if test "x$ac_cv_func_vfork" = xyes; then
9605 echo "$as_me:$LINENO: checking for working vfork" >&5
9606 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9607 if test "${ac_cv_func_vfork_works+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 if test "$cross_compiling" = yes; then
9611 ac_cv_func_vfork_works=cross
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* Thanks to Paul Eggert for this test. */
9622 #include <sys/types.h>
9623 #include <sys/stat.h>
9624 #include <sys/wait.h>
9626 # include <unistd.h>
9631 /* On some sparc systems, changes by the child to local and incoming
9632 argument registers are propagated back to the parent. The compiler
9633 is told about this with #include <vfork.h>, but some compilers
9634 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9635 static variable whose address is put into a register that is
9636 clobbered by the vfork. */
9639 sparc_address_test (int arg)
9641 sparc_address_test (arg) int arg;
9662 pid_t parent = getpid ();
9665 sparc_address_test (0);
9670 /* Here is another test for sparc vfork register problems. This
9671 test uses lots of local variables, at least as many local
9672 variables as main has allocated so far including compiler
9673 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9674 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9675 reuse the register of parent for one of the local variables,
9676 since it will think that parent can't possibly be used any more
9677 in this routine. Assigning to the local variable will thus
9678 munge parent in the parent process. */
9680 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9681 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9682 /* Convince the compiler that p..p7 are live; otherwise, it might
9683 use the same hardware register for all 8 local variables. */
9684 if (p != p1 || p != p2 || p != p3 || p != p4
9685 || p != p5 || p != p6 || p != p7)
9688 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9689 from child file descriptors. If the child closes a descriptor
9690 before it execs or exits, this munges the parent's descriptor
9691 as well. Test for this by closing stdout in the child. */
9692 _exit(close(fileno(stdout)) != 0);
9697 while (wait(&status) != child)
9700 /* Was there some problem with vforking? */
9703 /* Did the child fail? (This shouldn't happen.) */
9706 /* Did the vfork/compiler bug occur? */
9707 || parent != getpid()
9709 /* Did the file descriptor bug occur? */
9710 || fstat(fileno(stdout), &st) != 0
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_func_vfork_works=yes
9728 echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_cv_func_vfork_works=no
9735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9739 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9742 if test "x$ac_cv_func_fork_works" = xcross; then
9743 ac_cv_func_vfork_works=$ac_cv_func_vfork
9744 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9745 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9748 if test "x$ac_cv_func_vfork_works" = xyes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_WORKING_VFORK 1
9756 cat >>confdefs.h <<\_ACEOF
9761 if test "x$ac_cv_func_fork_works" = xyes; then
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_WORKING_FORK 1
9769 echo "$as_me:$LINENO: checking for working memcmp" >&5
9770 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9771 if test "${ac_cv_func_memcmp_working+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 if test "$cross_compiling" = yes; then
9775 ac_cv_func_memcmp_working=no
9777 cat >conftest.$ac_ext <<_ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9788 /* Some versions of memcmp are not 8-bit clean. */
9789 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9790 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9793 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9794 or more and with at least one buffer not starting on a 4-byte boundary.
9795 William Lewis provided this test program. */
9800 for (i = 0; i < 4; i++)
9804 strcpy (a, "--------01111111");
9805 strcpy (b, "--------10000000");
9806 if (memcmp (a, b, 16) >= 0)
9816 rm -f conftest$ac_exeext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 ac_cv_func_memcmp_working=yes
9829 echo "$as_me: program exited with status $ac_status" >&5
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_func_memcmp_working=no
9836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9839 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9840 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9841 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9842 "memcmp.$ac_objext" | \
9843 *" memcmp.$ac_objext" | \
9844 "memcmp.$ac_objext "* | \
9845 *" memcmp.$ac_objext "* ) ;;
9846 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9852 for ac_header in stdlib.h unistd.h
9854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856 echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9864 # Is the header compilable?
9865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 $ac_includes_default
9874 #include <$ac_header>
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>conftest.er1
9880 grep -v '^ *+' conftest.er1 >conftest.err
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest.$ac_objext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_header_compiler=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_header_compiler=no
9905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9907 echo "${ECHO_T}$ac_header_compiler" >&6
9909 # Is the header present?
9910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 #include <$ac_header>
9920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } >/dev/null; then
9928 if test -s conftest.err; then
9929 ac_cpp_err=$ac_c_preproc_warn_flag
9930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937 if test -z "$ac_cpp_err"; then
9938 ac_header_preproc=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_header_preproc=no
9945 rm -f conftest.err conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9947 echo "${ECHO_T}$ac_header_preproc" >&6
9949 # So? What about this header?
9950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9956 ac_header_preproc=yes
9959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9973 ## ------------------------------- ##
9974 ## Report this to root@mput.dip.jp ##
9975 ## ------------------------------- ##
9978 sed "s/^/$as_me: WARNING: /" >&2
9981 echo "$as_me:$LINENO: checking for $ac_header" >&5
9982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 eval "$as_ac_Header=\$ac_header_preproc"
9988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002 for ac_func in getpagesize
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define $ac_func innocuous_$ac_func
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char $ac_func (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10026 # include <limits.h>
10028 # include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10047 char (*f) () = $ac_func;
10056 return f != $ac_func;
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 eval "$as_ac_var=yes"
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 eval "$as_ac_var=no"
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095 if test `eval echo '${'$as_ac_var'}'` = yes; then
10096 cat >>confdefs.h <<_ACEOF
10097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10103 echo "$as_me:$LINENO: checking for working mmap" >&5
10104 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10105 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 if test "$cross_compiling" = yes; then
10109 ac_cv_func_mmap_fixed_mapped=no
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 $ac_includes_default
10118 /* malloc might have been renamed as rpl_malloc. */
10121 /* Thanks to Mike Haertel and Jim Avera for this test.
10122 Here is a matrix of mmap possibilities:
10123 mmap private not fixed
10124 mmap private fixed at somewhere currently unmapped
10125 mmap private fixed at somewhere already mapped
10126 mmap shared not fixed
10127 mmap shared fixed at somewhere currently unmapped
10128 mmap shared fixed at somewhere already mapped
10129 For private mappings, we should verify that changes cannot be read()
10130 back from the file, nor mmap's back from the file at a different
10131 address. (There have been systems where private was not correctly
10132 implemented like the infamous i386 svr4.0, and systems where the
10133 VM page cache was not coherent with the file system buffer cache
10134 like early versions of FreeBSD and possibly contemporary NetBSD.)
10135 For shared mappings, we should conversely verify that changes get
10136 propagated back to all the places they're supposed to be.
10138 Grep wants private fixed already mapped.
10139 The main things grep needs to know about mmap are:
10140 * does it exist and is it safe to write into the mmap'd area
10141 * how to use it (BSD variants) */
10144 #include <sys/mman.h>
10146 #if !STDC_HEADERS && !HAVE_STDLIB_H
10150 /* This mess was copied from the GNU getpagesize.h. */
10151 #if !HAVE_GETPAGESIZE
10152 /* Assume that all systems that can run configure have sys/param.h. */
10153 # if !HAVE_SYS_PARAM_H
10154 # define HAVE_SYS_PARAM_H 1
10157 # ifdef _SC_PAGESIZE
10158 # define getpagesize() sysconf(_SC_PAGESIZE)
10159 # else /* no _SC_PAGESIZE */
10160 # if HAVE_SYS_PARAM_H
10161 # include <sys/param.h>
10162 # ifdef EXEC_PAGESIZE
10163 # define getpagesize() EXEC_PAGESIZE
10164 # else /* no EXEC_PAGESIZE */
10166 # define getpagesize() NBPG * CLSIZE
10169 # endif /* no CLSIZE */
10170 # else /* no NBPG */
10172 # define getpagesize() NBPC
10173 # else /* no NBPC */
10175 # define getpagesize() PAGESIZE
10176 # endif /* PAGESIZE */
10177 # endif /* no NBPC */
10178 # endif /* no NBPG */
10179 # endif /* no EXEC_PAGESIZE */
10180 # else /* no HAVE_SYS_PARAM_H */
10181 # define getpagesize() 8192 /* punt totally */
10182 # endif /* no HAVE_SYS_PARAM_H */
10183 # endif /* no _SC_PAGESIZE */
10185 #endif /* no HAVE_GETPAGESIZE */
10190 char *data, *data2, *data3;
10194 pagesize = getpagesize ();
10196 /* First, make a file with some known garbage in it. */
10197 data = (char *) malloc (pagesize);
10200 for (i = 0; i < pagesize; ++i)
10201 *(data + i) = rand ();
10203 fd = creat ("conftest.mmap", 0600);
10206 if (write (fd, data, pagesize) != pagesize)
10210 /* Next, try to mmap the file at a fixed address which already has
10211 something else allocated at it. If we can, also make sure that
10212 we see the same garbage. */
10213 fd = open ("conftest.mmap", O_RDWR);
10216 data2 = (char *) malloc (2 * pagesize);
10219 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10220 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10221 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10223 for (i = 0; i < pagesize; ++i)
10224 if (*(data + i) != *(data2 + i))
10227 /* Finally, make sure that changes to the mapped area do not
10228 percolate back to the file as seen by read(). (This is a bug on
10229 some variants of i386 svr4.0.) */
10230 for (i = 0; i < pagesize; ++i)
10231 *(data2 + i) = *(data2 + i) + 1;
10232 data3 = (char *) malloc (pagesize);
10235 if (read (fd, data3, pagesize) != pagesize)
10237 for (i = 0; i < pagesize; ++i)
10238 if (*(data + i) != *(data3 + i))
10244 rm -f conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246 (eval $ac_link) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_func_mmap_fixed_mapped=yes
10257 echo "$as_me: program exited with status $ac_status" >&5
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ( exit $ac_status )
10262 ac_cv_func_mmap_fixed_mapped=no
10264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10267 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10268 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10269 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10271 cat >>confdefs.h <<\_ACEOF
10272 #define HAVE_MMAP 1
10276 rm -f conftest.mmap
10278 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10279 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10280 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_cv_func_setvbuf_reversed=no
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10292 int (setvbuf) (FILE *, int, char *, size_t);
10297 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag"
10312 || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10332 int (setvbuf) (FILE *, int, char *, size_t);
10337 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 # It compiles and links either way, so it must not be declared
10365 # with a prototype and most likely this is a K&R C compiler.
10367 if test "$cross_compiling" = yes; then
10368 : # Assume setvbuf is not reversed when cross-compiling.
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10380 /* This call has the arguments reversed.
10381 A reversed system may check and see that the address of buf
10382 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10384 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10387 exit (0); /* Non-reversed systems SEGV here. */
10392 rm -f conftest$ac_exeext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394 (eval $ac_link) 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 ac_cv_func_setvbuf_reversed=yes
10405 echo "$as_me: program exited with status $ac_status" >&5
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ( exit $ac_status )
10412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10414 ac_cv_func_setvbuf_reversed=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10420 rm -f conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10427 rm -f conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10430 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10431 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10432 if test $ac_cv_func_setvbuf_reversed = yes; then
10434 cat >>confdefs.h <<\_ACEOF
10435 #define SETVBUF_REVERSED 1
10440 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10442 if test "${ac_cv_type_signal+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <sys/types.h>
10452 #include <signal.h>
10457 extern "C" void (*signal (int, void (*)(int)))(int);
10459 void (*signal ()) ();
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472 (eval $ac_compile) 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag"
10480 || test ! -s conftest.err'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_type_signal=void
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 ac_cv_type_signal=int
10499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10501 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10502 echo "${ECHO_T}$ac_cv_type_signal" >&6
10504 cat >>confdefs.h <<_ACEOF
10505 #define RETSIGTYPE $ac_cv_type_signal
10510 for ac_func in vprintf
10512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10513 echo "$as_me:$LINENO: checking for $ac_func" >&5
10514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_var+set}\" = set"; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10526 #define $ac_func innocuous_$ac_func
10528 /* System header to define __stub macros and hopefully few prototypes,
10529 which can conflict with char $ac_func (); below.
10530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 <limits.h> exists even on freestanding compilers. */
10534 # include <limits.h>
10536 # include <assert.h>
10541 /* Override any gcc2 internal prototype to avoid an error. */
10546 /* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10549 /* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10555 char (*f) () = $ac_func;
10564 return f != $ac_func;
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 eval "$as_ac_var=yes"
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 eval "$as_ac_var=no"
10598 rm -f conftest.err conftest.$ac_objext \
10599 conftest$ac_exeext conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10603 if test `eval echo '${'$as_ac_var'}'` = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10608 echo "$as_me:$LINENO: checking for _doprnt" >&5
10609 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10610 if test "${ac_cv_func__doprnt+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10621 #define _doprnt innocuous__doprnt
10623 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char _doprnt (); below.
10625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626 <limits.h> exists even on freestanding compilers. */
10629 # include <limits.h>
10631 # include <assert.h>
10636 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10644 /* The GNU C library defines this for functions which it implements
10645 to always fail with ENOSYS. Some functions are actually named
10646 something starting with __ and the normal name is an alias. */
10647 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10650 char (*f) () = _doprnt;
10659 return f != _doprnt;
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_cv_func__doprnt=yes
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ac_cv_func__doprnt=no
10693 rm -f conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10696 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10697 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10698 if test $ac_cv_func__doprnt = yes; then
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_DOPRNT 1
10778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10779 echo "$as_me:$LINENO: checking for $ac_func" >&5
10780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10781 if eval "test \"\${$as_ac_var+set}\" = set"; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10792 #define $ac_func innocuous_$ac_func
10794 /* System header to define __stub macros and hopefully few prototypes,
10795 which can conflict with char $ac_func (); below.
10796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10797 <limits.h> exists even on freestanding compilers. */
10800 # include <limits.h>
10802 # include <assert.h>
10807 /* Override any gcc2 internal prototype to avoid an error. */
10812 /* We use char because int might match the return type of a gcc2
10813 builtin and then its argument prototype would still apply. */
10815 /* The GNU C library defines this for functions which it implements
10816 to always fail with ENOSYS. Some functions are actually named
10817 something starting with __ and the normal name is an alias. */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821 char (*f) () = $ac_func;
10830 return f != $ac_func;
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 eval "$as_ac_var=yes"
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 eval "$as_ac_var=no"
10864 rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10869 if test `eval echo '${'$as_ac_var'}'` = yes; then
10870 cat >>confdefs.h <<_ACEOF
10871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10877 echo "$as_me:$LINENO: checking for getopt_long" >&5
10878 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10879 if test "${ac_cv_func_getopt_long+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10890 #define getopt_long innocuous_getopt_long
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char getopt_long (); below.
10894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895 <limits.h> exists even on freestanding compilers. */
10898 # include <limits.h>
10900 # include <assert.h>
10905 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char getopt_long ();
10913 /* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10919 char (*f) () = getopt_long;
10928 return f != getopt_long;
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10955 ac_cv_func_getopt_long=yes
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10960 ac_cv_func_getopt_long=no
10962 rm -f conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10966 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10967 if test $ac_cv_func_getopt_long = yes; then
10969 cat >>confdefs.h <<\_ACEOF
10970 #define HAVE_GETOPT_LONG 1
10973 tm_cv_needgetopt="no"
10975 tm_cv_needgetopt="yes"
10980 if test "x$tm_cv_needgetopt" = "xyes"; then
10982 NEEDGETOPT_FALSE='#'
10984 NEEDGETOPT_TRUE='#'
10990 if test "x$CYGNUS" = xyes; then
10991 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
10993 echo "$as_me:$LINENO: checking for opendir" >&5
10994 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10995 if test "${ac_cv_func_opendir+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11006 #define opendir innocuous_opendir
11008 /* System header to define __stub macros and hopefully few prototypes,
11009 which can conflict with char opendir (); below.
11010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11011 <limits.h> exists even on freestanding compilers. */
11014 # include <limits.h>
11016 # include <assert.h>
11021 /* Override any gcc2 internal prototype to avoid an error. */
11026 /* We use char because int might match the return type of a gcc2
11027 builtin and then its argument prototype would still apply. */
11029 /* The GNU C library defines this for functions which it implements
11030 to always fail with ENOSYS. Some functions are actually named
11031 something starting with __ and the normal name is an alias. */
11032 #if defined (__stub_opendir) || defined (__stub___opendir)
11035 char (*f) () = opendir;
11044 return f != opendir;
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051 (eval $ac_link) 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_c_werror_flag"
11059 || test ! -s conftest.err'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; } &&
11065 { ac_try='test -s conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_func_opendir=yes
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_cv_func_opendir=no
11078 rm -f conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11081 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11082 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11083 if test $ac_cv_func_opendir = yes; then
11086 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11091 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11095 if test "x$enable_network" = "xyes"; then
11096 echo "$as_me:$LINENO: checking for socket" >&5
11097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11098 if test "${ac_cv_func_socket+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109 #define socket innocuous_socket
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char socket (); below.
11113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114 <limits.h> exists even on freestanding compilers. */
11117 # include <limits.h>
11119 # include <assert.h>
11124 /* Override any gcc2 internal prototype to avoid an error. */
11129 /* We use char because int might match the return type of a gcc2
11130 builtin and then its argument prototype would still apply. */
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined (__stub_socket) || defined (__stub___socket)
11138 char (*f) () = socket;
11147 return f != socket;
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154 (eval $ac_link) 2>conftest.er1
11156 grep -v '^ *+' conftest.er1 >conftest.err
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest$ac_exeext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_cv_func_socket=yes
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_cv_func_socket=no
11181 rm -f conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11184 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11185 echo "${ECHO_T}$ac_cv_func_socket" >&6
11186 if test $ac_cv_func_socket = yes; then
11189 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11190 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11191 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11192 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 ac_save_LIBS="$LIBS"
11196 LIBS="-lwsock32 $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 #include <windows.h>
11204 #include <winsock.h>
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -z "$ac_c_werror_flag"
11224 || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 eval "wapi_cv_lib_$ac_lib_var=yes"
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 eval "wapi_cv_lib_$ac_lib_var=no"
11243 rm -f conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LIBS="$ac_save_LIBS"
11248 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11249 echo "$as_me:$LINENO: result: yes" >&5
11250 echo "${ECHO_T}yes" >&6
11251 EXTRALIBS="$EXTRALIBS -lwsock32"
11252 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11254 echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11264 if test "x$CYGWIN" = xyes; then
11265 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
11267 echo "$as_me:$LINENO: checking for opendir" >&5
11268 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11269 if test "${ac_cv_func_opendir+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11280 #define opendir innocuous_opendir
11282 /* System header to define __stub macros and hopefully few prototypes,
11283 which can conflict with char opendir (); below.
11284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285 <limits.h> exists even on freestanding compilers. */
11288 # include <limits.h>
11290 # include <assert.h>
11295 /* Override any gcc2 internal prototype to avoid an error. */
11300 /* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11303 /* The GNU C library defines this for functions which it implements
11304 to always fail with ENOSYS. Some functions are actually named
11305 something starting with __ and the normal name is an alias. */
11306 #if defined (__stub_opendir) || defined (__stub___opendir)
11309 char (*f) () = opendir;
11318 return f != opendir;
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11325 (eval $ac_link) 2>conftest.er1
11327 grep -v '^ *+' conftest.er1 >conftest.err
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -z "$ac_c_werror_flag"
11333 || test ! -s conftest.err'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_func_opendir=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_cv_func_opendir=no
11352 rm -f conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11355 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11356 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11357 if test $ac_cv_func_opendir = yes; then
11360 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11365 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11369 if test "x$enable_network" = "xyes"; then
11370 echo "$as_me:$LINENO: checking for socket" >&5
11371 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11372 if test "${ac_cv_func_socket+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11383 #define socket innocuous_socket
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char socket (); below.
11387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388 <limits.h> exists even on freestanding compilers. */
11391 # include <limits.h>
11393 # include <assert.h>
11398 /* Override any gcc2 internal prototype to avoid an error. */
11403 /* We use char because int might match the return type of a gcc2
11404 builtin and then its argument prototype would still apply. */
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined (__stub_socket) || defined (__stub___socket)
11412 char (*f) () = socket;
11421 return f != socket;
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428 (eval $ac_link) 2>conftest.er1
11430 grep -v '^ *+' conftest.er1 >conftest.err
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_cv_func_socket=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_cv_func_socket=no
11455 rm -f conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11459 echo "${ECHO_T}$ac_cv_func_socket" >&6
11460 if test $ac_cv_func_socket = yes; then
11463 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11464 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11465 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11466 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 ac_save_LIBS="$LIBS"
11470 LIBS="-lwsock32 $LIBS"
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 #include <windows.h>
11478 #include <winsock.h>
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "wapi_cv_lib_$ac_lib_var=yes"
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 eval "wapi_cv_lib_$ac_lib_var=no"
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS="$ac_save_LIBS"
11522 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11523 echo "$as_me:$LINENO: result: yes" >&5
11524 echo "${ECHO_T}yes" >&6
11525 EXTRALIBS="$EXTRALIBS -lwsock32"
11526 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11528 echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6
11537 # Checks on extra paths
11540 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11541 if test "${with_tcl_includes+set}" = set; then
11542 withval="$with_tcl_includes"
11543 if test ! -d $withval; then
11544 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11545 echo "$as_me: WARNING: $withval is not found." >&2;}
11547 tcl_include_dir="-I$withval"
11551 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11552 if test "${with_tcl_libs+set}" = set; then
11553 withval="$with_tcl_libs"
11554 if test ! -d $withval; then
11555 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11556 echo "$as_me: WARNING: $withval is not found." >&2;}
11558 tcl_libdir="-L$withval"
11561 # Check whether --with-tk-includes or --without-tk-includes was given.
11562 if test "${with_tk_includes+set}" = set; then
11563 withval="$with_tk_includes"
11564 if test ! -d $withval; then
11565 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11566 echo "$as_me: WARNING: $withval is not found." >&2;}
11568 tk_includes="-I$withval"
11571 # Check whether --with-tk-libs or --without-tk-libs was given.
11572 if test "${with_tk_libs+set}" = set; then
11573 withval="$with_tk_libs"
11574 if test ! -d $withval; then
11575 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11576 echo "$as_me: WARNING: $withval is not found." >&2;}
11578 tk_libdir="-L$withval"
11582 # Check whether --with-offix-includes or --without-offix-includes was given.
11583 if test "${with_offix_includes+set}" = set; then
11584 withval="$with_offix_includes"
11585 if test ! -d $withval; then
11586 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11587 echo "$as_me: WARNING: $withval is not found." >&2;}
11589 offix_include_dir="-I$withval"
11592 # Check whether --with-offix-libs or --without-offix-libs was given.
11593 if test "${with_offix_libs+set}" = set; then
11594 withval="$with_offix_libs"
11595 if test ! -d $withval; then
11596 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11597 echo "$as_me: WARNING: $withval is not found." >&2;}
11599 offix_lib_dir="-L$withval"
11607 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11610 # Check whether --with-nas-library or --without-nas-library was given.
11611 if test "${with_nas_library+set}" = set; then
11612 withval="$with_nas_library"
11616 # Check whether --with-nas-includes or --without-nas-includes was given.
11617 if test "${with_nas_includes+set}" = set; then
11618 withval="$with_nas_includes"
11623 # Check whether --enable-audio or --disable-audio was given.
11624 if test "${enable_audio+set}" = set; then
11625 enableval="$enable_audio"
11626 enable_audio=$enableval
11633 test "x$enable_audio" = xyes && enable_audio=default
11635 if test "x$enable_audio" != xno; then
11636 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11637 eval "au_enable_$i=yes"
11643 # Check whether --with-default-output or --without-default-output was given.
11644 if test "${with_default_output+set}" = set; then
11645 withval="$with_default_output"
11646 if test "$enable_audio" != no; then
11647 DEFAULT_PLAYMODE=$withval
11648 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11650 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11651 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11656 if test "x$au_enable_default" = xyes; then
11658 *-*-linux*|*-*-freebsd*)
11662 au_enable_sb_dsp=yes
11664 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11692 au_enable_darwin=yes
11695 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11696 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11702 # Each audio mode's configurations
11703 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11704 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11705 if test "x$au_enable_oss" = xyes; then
11706 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11707 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11708 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11709 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11710 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11714 echo "$as_me:$LINENO: result: yes" >&5
11715 echo "${ECHO_T}yes" >&6
11718 if test "x$ac_cv_header_soundcard_h" = xyes; then
11719 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11720 echo "${ECHO_T}yes - <soundcard.h>" >&6
11722 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11723 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11729 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11730 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11731 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 ac_check_lib_save_LIBS=$LIBS
11735 LIBS="-lossaudio $LIBS"
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11743 /* Override any gcc2 internal prototype to avoid an error. */
11747 /* We use char because int might match the return type of a gcc2
11748 builtin and then its argument prototype would still apply. */
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760 (eval $ac_link) 2>conftest.er1
11762 grep -v '^ *+' conftest.er1 >conftest.err
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -z "$ac_c_werror_flag"
11768 || test ! -s conftest.err'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; } &&
11774 { ac_try='test -s conftest$ac_exeext'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 ac_cv_lib_ossaudio_open=yes
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 ac_cv_lib_ossaudio_open=no
11787 rm -f conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11791 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11792 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11793 if test $ac_cv_lib_ossaudio_open = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_LIBOSSAUDIO 1
11798 LIBS="-lossaudio $LIBS"
11805 if test ! -e "/dev/dsp"; then
11806 oss_device=/dev/audio
11811 echo "$as_me:$LINENO: result: no" >&5
11812 echo "${ECHO_T}no" >&6
11815 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11816 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11817 if test "x$au_enable_sun" = xyes; then
11820 if test -f /usr/demo/SOUND/libaudio.a; then
11821 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11822 echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6
11825 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11826 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11830 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11831 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11832 echo "$as_me:$LINENO: result: yes" >&5
11833 echo "${ECHO_T}yes" >&6
11835 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11836 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11839 *) echo "$as_me:$LINENO: result: yes" >&5
11840 echo "${ECHO_T}yes" >&6
11843 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11844 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11846 echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11850 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11851 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11852 if test "x$au_enable_hpux" = xyes; then
11854 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6 ;;
11856 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11857 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11859 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11860 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11862 echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11866 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11867 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11868 if test "x$au_enable_irix" = xyes; then
11870 *-sgi-irix5*|*-sgi-irix6.2)
11871 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11872 echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6
11876 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11877 echo "$as_me:$LINENO: result: yes" >&5
11878 echo "${ECHO_T}yes" >&6
11880 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11881 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11883 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11884 EXTRALIBS="$EXTRASLIBS -laudio"
11886 echo "$as_me:$LINENO: result: no" >&5
11887 echo "${ECHO_T}no" >&6
11890 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11891 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11892 if test "x$au_enable_mme" = xyes; then
11894 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11895 echo "${ECHO_T}yes" >&6 ;;
11896 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11897 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11899 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11900 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11901 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11902 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11904 echo "$as_me:$LINENO: result: no" >&5
11905 echo "${ECHO_T}no" >&6
11908 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11909 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11910 if test "x$au_enable_sb_dsp" = xyes; then
11912 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6 ;;
11914 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11915 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11917 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11918 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11920 echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11924 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11925 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11926 if test "x$au_enable_w32" = xyes; then
11929 echo "$as_me:$LINENO: result: yes" >&5
11930 echo "${ECHO_T}yes" >&6
11933 echo "$as_me:$LINENO: result: yes" >&5
11934 echo "${ECHO_T}yes" >&6
11937 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11938 echo "$as_me: WARNING: may not work on $target" >&2;}
11941 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11942 EXTRALIBS="$EXTRALIBS -lwinmm"
11943 EXTRADEFS="$EXTRADEFS -DAU_W32"
11945 echo "$as_me:$LINENO: result: no" >&5
11946 echo "${ECHO_T}no" >&6
11949 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11950 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11951 if test "x$au_enable_darwin" = xyes; then
11952 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11953 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11954 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11957 echo "$as_me:$LINENO: result: yes" >&5
11958 echo "${ECHO_T}yes" >&6;;
11960 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11961 echo "$as_me: WARNING: may not work on $target" >&2;}
11965 echo "$as_me:$LINENO: result: no" >&5
11966 echo "${ECHO_T}no" >&6
11970 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11971 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11972 if test "x$au_enable_alsa" = xyes; then
11973 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11974 echo "${ECHO_T}yes, configuring alsa" >&6
11977 KEEPLDFLAGS=$LDFLAGS
11978 alsa_save_CFLAGS="$CFLAGS"
11979 alsa_save_LDFLAGS="$LDFLAGS"
11980 alsa_save_LIBS="$LIBS"
11984 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11985 if test "${with_alsa_prefix+set}" = set; then
11986 withval="$with_alsa_prefix"
11987 alsa_prefix="$withval"
11993 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11994 if test "${with_alsa_inc_prefix+set}" = set; then
11995 withval="$with_alsa_inc_prefix"
11996 alsa_inc_prefix="$withval"
12001 # Check whether --enable-alsatest or --disable-alsatest was given.
12002 if test "${enable_alsatest+set}" = set; then
12003 enableval="$enable_alsatest"
12006 enable_alsatest=yes
12009 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12010 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12011 if test "$alsa_inc_prefix" != "" ; then
12012 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12013 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12015 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12016 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12018 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12019 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12020 if test "$alsa_prefix" != "" ; then
12021 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12022 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12025 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12026 LIBS=`echo $LIBS | sed 's/-lm//'`
12027 LIBS=`echo $LIBS | sed 's/-ldl//'`
12028 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12029 LIBS=`echo $LIBS | sed 's/ //'`
12030 LIBS="$ALSA_LIBS $LIBS"
12031 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12032 echo "${ECHO_T}$ALSA_LIBS" >&6
12034 min_alsa_version=0.1.1
12035 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12036 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12038 alsa_min_major_version=`echo $min_alsa_version | \
12039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12040 alsa_min_minor_version=`echo $min_alsa_version | \
12041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12042 alsa_min_micro_version=`echo $min_alsa_version | \
12043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 #include <alsa/asoundlib.h>
12067 /* ensure backward compatibility */
12068 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12069 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12071 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12072 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12074 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12075 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12078 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12081 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12082 # error not present
12085 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12088 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12089 # error not present
12092 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12093 # error not present
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest.$ac_objext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 echo "$as_me:$LINENO: result: found." >&5
12126 echo "${ECHO_T}found." >&6
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12138 #include <sys/asoundlib.h>
12144 /* ensure backward compatibility */
12145 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12146 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12148 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12149 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12151 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12152 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12155 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12158 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12159 # error not present
12162 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12165 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12166 # error not present
12169 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12170 # error not present
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 echo "$as_me:$LINENO: result: found." >&5
12203 echo "${ECHO_T}found." >&6
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 echo "$as_me:$LINENO: result: not present." >&5
12209 echo "${ECHO_T}not present." >&6
12210 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12211 echo "${ECHO_T}libasound was not found anywhere." >&6
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12216 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12221 ac_cpp='$CPP $CPPFLAGS'
12222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12229 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12230 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lasound $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12242 /* Override any gcc2 internal prototype to avoid an error. */
12246 /* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12248 char snd_ctl_open ();
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_cv_lib_asound_snd_ctl_open=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 ac_cv_lib_asound_snd_ctl_open=no
12286 rm -f conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12290 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12291 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12292 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294 #define HAVE_LIBASOUND 1
12297 LIBS="-lasound $LIBS"
12300 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12301 echo "${ECHO_T}No linkable libasound was found." >&6
12307 if test "x$alsa_found" = "xyes" ; then
12309 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12310 LIBS=`echo $LIBS | sed 's/ //'`
12311 LIBS="-lasound $LIBS"
12314 CFLAGS="$alsa_save_CFLAGS"
12315 LDFLAGS="$alsa_save_LDFLAGS"
12316 LIBS="$alsa_save_LIBS"
12324 if test "x$alsa_found" = "xyes" ; then
12325 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12326 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12327 for f in $ALSA_CFLAGS; do
12329 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12330 *) CFLAGS="$CPPFLAGS $f" ;;
12334 LIBS="$KEEPLIBS $ALSA_LIBS"
12336 for ac_func in snd_seq_port_info_set_timestamping
12338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12339 echo "$as_me:$LINENO: checking for $ac_func" >&5
12340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12341 if eval "test \"\${$as_ac_var+set}\" = set"; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12352 #define $ac_func innocuous_$ac_func
12354 /* System header to define __stub macros and hopefully few prototypes,
12355 which can conflict with char $ac_func (); below.
12356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12357 <limits.h> exists even on freestanding compilers. */
12360 # include <limits.h>
12362 # include <assert.h>
12367 /* Override any gcc2 internal prototype to avoid an error. */
12372 /* We use char because int might match the return type of a gcc2
12373 builtin and then its argument prototype would still apply. */
12375 /* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12381 char (*f) () = $ac_func;
12390 return f != $ac_func;
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397 (eval $ac_link) 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest$ac_exeext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 eval "$as_ac_var=yes"
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 eval "$as_ac_var=no"
12424 rm -f conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12429 if test `eval echo '${'$as_ac_var'}'` = yes; then
12430 cat >>confdefs.h <<_ACEOF
12431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12438 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12439 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12442 LDFLAGS=$KEEPLDFLAGS
12445 echo "$as_me:$LINENO: result: no" >&5
12446 echo "${ECHO_T}no" >&6
12449 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12450 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12451 if test "x$au_enable_alib" = xyes; then
12453 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12454 echo "${ECHO_T}yes" >&6 ;;
12455 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12456 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12458 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12459 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12460 if test -d /opt/audio/include; then
12461 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12463 if test -d /opt/audio/lib; then
12464 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12466 EXTRALIBS="$EXTRALIBS -lAlib"
12468 echo "$as_me:$LINENO: result: no" >&5
12469 echo "${ECHO_T}no" >&6
12472 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12473 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12474 if test "x$au_enable_nas" = xyes; then
12475 if test "x$with_x" != xyes; then
12476 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12477 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12478 { (exit 1); exit 1; }; }
12480 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12481 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12484 if test "x$with_nas_library" != x; then
12485 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12486 echo "${ECHO_T}$with_nas_library" >&6;
12487 EXTRALIBS="$EXTRALIBS $with_nas_library"
12489 echo "$as_me:$LINENO: result: " >&5
12490 echo "${ECHO_T}" >&6
12491 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12492 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12493 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 ac_func_search_save_LIBS="$LIBS"
12497 timidity_cv_search_AuOpenServer="no"
12498 for i in $x_libraries/libaudio.a \
12499 /usr/lib/libaudio.so \
12500 /usr/lib/libaudio.a ; do
12501 LIBS="$i $ac_func_search_save_LIBS"
12502 cat >conftest.$ac_ext <<_ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12509 /* Override any gcc2 internal prototype to avoid an error. */
12513 /* We use char because int might match the return type of a gcc2
12514 builtin and then its argument prototype would still apply. */
12515 char AuOpenServer ();
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag"
12534 || test ! -s conftest.err'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 timidity_cv_search_AuOpenServer="$i"; break
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 LIBS="$ac_func_search_save_LIBS"
12557 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12558 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12559 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12560 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12561 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12562 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12564 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12565 echo "$as_me: WARNING: NAS library is not found." >&2;}
12568 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12570 if test "x$have_xext" = xyes; then
12571 lib_xext_opt=-lXext
12573 if test "x$have_xprelibs" = xyes; then
12574 lib_xprelibs_opt='-lSM -lICE'
12577 echo "$as_me:$LINENO: result: no" >&5
12578 echo "${ECHO_T}no" >&6
12581 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12582 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12583 if test "x$au_enable_arts" = xyes; then
12584 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12585 echo "${ECHO_T}yes, configuring aRts" >&6
12588 KEEPLDFLAGS=$LDFLAGS
12590 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12591 if test "${with_arts_prefix+set}" = set; then
12592 withval="$with_arts_prefix"
12593 arts_prefix="$withval"
12597 # Check whether --enable-artstest or --disable-artstest was given.
12598 if test "${enable_artstest+set}" = set; then
12599 enableval="$enable_artstest"
12602 enable_artstest=yes
12605 if test x$arts_prefix != x ; then
12606 arts_args="$arts_args --prefix=$arts_prefix"
12607 if test x${ARTS_CONFIG+set} != xset ; then
12608 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12612 # Extract the first word of "artsc-config", so it can be a program name with args.
12613 set dummy artsc-config; ac_word=$2
12614 echo "$as_me:$LINENO: checking for $ac_word" >&5
12615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12616 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 case $ARTS_CONFIG in
12621 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12642 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12644 if test -n "$ARTS_CONFIG"; then
12645 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12646 echo "${ECHO_T}$ARTS_CONFIG" >&6
12648 echo "$as_me:$LINENO: result: no" >&5
12649 echo "${ECHO_T}no" >&6
12652 min_arts_version=0.9.5
12653 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12654 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12656 if test "$ARTS_CONFIG" = "no" ; then
12659 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12660 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12662 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12663 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12664 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12666 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12667 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12668 if test "x$enable_artstest" = "xyes" ; then
12669 ac_save_CFLAGS="$CFLAGS"
12670 ac_save_LIBS="$LIBS"
12671 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12672 LIBS="$LIBS $ARTS_LIBS"
12673 rm -f conf.artstest
12674 if test "$cross_compiling" = yes; then
12675 echo $ac_n "cross compiling; assumed OK... $ac_c"
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12685 #include <stdlib.h>
12686 #include <string.h>
12690 my_strdup (char *str)
12696 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12697 strcpy (new_str, str);
12707 int major, minor, micro;
12710 system ("touch conf.artstest");
12712 /* HP/UX 9 (%@#!) writes to sscanf strings */
12713 tmp_version = my_strdup("$min_arts_version");
12714 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12715 printf("%s, bad version string\n", "$min_arts_version");
12719 if (($arts_major_version > major) ||
12720 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12721 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12727 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12728 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12729 printf("*** best to upgrade to the required version.\n");
12730 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12731 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12732 printf("*** config.cache before re-running configure\n");
12739 rm -f conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741 (eval $ac_link) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12752 echo "$as_me: program exited with status $ac_status" >&5
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ( exit $ac_status )
12759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12761 CFLAGS="$ac_save_CFLAGS"
12762 LIBS="$ac_save_LIBS"
12765 if test "x$no_arts" = x ; then
12766 echo "$as_me:$LINENO: result: yes" >&5
12767 echo "${ECHO_T}yes" >&6
12770 echo "$as_me:$LINENO: result: no" >&5
12771 echo "${ECHO_T}no" >&6
12772 if test "$ARTS_CONFIG" = "no" ; then
12773 echo "*** The artsc-config script installed by ARTS could not be found"
12774 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12775 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12776 echo "*** full path to artsc-config."
12778 if test -f conf.artstest ; then
12781 echo "*** Could not run ARTS test program, checking why..."
12782 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12783 LIBS="$LIBS $ARTS_LIBS"
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest$ac_exeext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 echo "*** The test program compiled, but did not run. This usually means"
12825 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12826 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12827 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12828 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12829 echo "*** is required on your system"
12831 echo "*** If you have an old version installed, it is best to remove it, although"
12832 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 echo "*** The test program failed to compile or link. See the file config.log for the"
12838 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12839 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12840 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12842 rm -f conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 CFLAGS="$ac_save_CFLAGS"
12845 LIBS="$ac_save_LIBS"
12854 rm -f conf.artstest
12858 LDFLAGS=$KEEPLDFLAGS
12859 if test "x$no_arts" = x; then
12860 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12861 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12862 for f in $ARTS_CFLAGS; do
12864 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12865 *) CFLAGS="$CPPFLAGS $f" ;;
12869 LIBS="$LIBS $ARTS_LIBS"
12871 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12872 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12875 echo "$as_me:$LINENO: result: no" >&5
12876 echo "${ECHO_T}no" >&6
12879 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12880 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12881 if test "x$au_enable_esd" = xyes; then
12882 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12883 echo "${ECHO_T}yes, configuring esd" >&6
12886 KEEPLDFLAGS=$LDFLAGS
12888 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12889 if test "${with_esd_prefix+set}" = set; then
12890 withval="$with_esd_prefix"
12891 esd_prefix="$withval"
12896 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12897 if test "${with_esd_exec_prefix+set}" = set; then
12898 withval="$with_esd_exec_prefix"
12899 esd_exec_prefix="$withval"
12903 # Check whether --enable-esdtest or --disable-esdtest was given.
12904 if test "${enable_esdtest+set}" = set; then
12905 enableval="$enable_esdtest"
12911 if test x$esd_exec_prefix != x ; then
12912 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12913 if test x${ESD_CONFIG+set} != xset ; then
12914 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12917 if test x$esd_prefix != x ; then
12918 esd_args="$esd_args --prefix=$esd_prefix"
12919 if test x${ESD_CONFIG+set} != xset ; then
12920 ESD_CONFIG=$esd_prefix/bin/esd-config
12924 # Extract the first word of "esd-config", so it can be a program name with args.
12925 set dummy esd-config; ac_word=$2
12926 echo "$as_me:$LINENO: checking for $ac_word" >&5
12927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12928 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 case $ESD_CONFIG in
12933 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12954 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12956 if test -n "$ESD_CONFIG"; then
12957 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12958 echo "${ECHO_T}$ESD_CONFIG" >&6
12960 echo "$as_me:$LINENO: result: no" >&5
12961 echo "${ECHO_T}no" >&6
12964 min_esd_version=0.2.7
12965 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12966 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12968 if test "$ESD_CONFIG" = "no" ; then
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12979 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12980 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12982 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12984 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12986 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12988 if test "x$enable_esdtest" = "xyes" ; then
12989 ac_save_CFLAGS="$CFLAGS"
12990 ac_save_LIBS="$LIBS"
12991 CFLAGS="$CFLAGS $ESD_CFLAGS"
12992 LIBS="$LIBS $ESD_LIBS"
12994 if test "$cross_compiling" = yes; then
12995 echo $ac_n "cross compiling; assumed OK... $ac_c"
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13005 #include <stdlib.h>
13006 #include <string.h>
13010 my_strdup (char *str)
13016 new_str = malloc ((strlen (str) + 1) * sizeof(char));
13017 strcpy (new_str, str);
13027 int major, minor, micro;
13030 system ("touch conf.esdtest");
13032 /* HP/UX 9 (%@#!) writes to sscanf strings */
13033 tmp_version = my_strdup("$min_esd_version");
13034 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13035 printf("%s, bad version string\n", "$min_esd_version");
13039 if (($esd_major_version > major) ||
13040 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13041 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13047 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13048 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13049 printf("*** best to upgrade to the required version.\n");
13050 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13051 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13052 printf("*** config.cache before re-running configure\n");
13059 rm -f conftest$ac_exeext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061 (eval $ac_link) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13072 echo "$as_me: program exited with status $ac_status" >&5
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ( exit $ac_status )
13079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13081 CFLAGS="$ac_save_CFLAGS"
13082 LIBS="$ac_save_LIBS"
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13091 if test "x$no_esd" = x ; then
13092 echo "$as_me:$LINENO: result: yes" >&5
13093 echo "${ECHO_T}yes" >&6
13096 echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6
13098 if test "$ESD_CONFIG" = "no" ; then
13099 echo "*** The esd-config script installed by ESD could not be found"
13100 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13101 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13102 echo "*** full path to esd-config."
13104 if test -f conf.esdtest ; then
13107 echo "*** Could not run ESD test program, checking why..."
13108 CFLAGS="$CFLAGS $ESD_CFLAGS"
13109 LIBS="$LIBS $ESD_LIBS"
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_c_werror_flag"
13146 || test ! -s conftest.err'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 echo "*** The test program compiled, but did not run. This usually means"
13159 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13160 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13161 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13162 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13163 echo "*** is required on your system"
13165 echo "*** If you have an old version installed, it is best to remove it, although"
13166 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13171 echo "*** The test program failed to compile or link. See the file config.log for the"
13172 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13173 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13174 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13176 rm -f conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 CFLAGS="$ac_save_CFLAGS"
13179 LIBS="$ac_save_LIBS"
13181 ac_cpp='$CPP $CPPFLAGS'
13182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198 LDFLAGS=$KEEPLDFLAGS
13199 if test "x$no_esd" = x; then
13200 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13201 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13202 for f in $ESD_CFLAGS; do
13204 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13205 *) CFLAGS="$CPPFLAGS $f" ;;
13209 LIBS="$LIBS $ESD_LIBS"
13211 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13212 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13215 echo "$as_me:$LINENO: result: no" >&5
13216 echo "${ECHO_T}no" >&6
13219 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13220 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13221 if test "x$au_enable_portaudio" = xyes; then
13222 echo "$as_me:$LINENO: result: yes" >&5
13223 echo "${ECHO_T}yes" >&6
13224 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13225 EXTRALIBS="$EXTRALIBS -lportaudio"
13226 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13228 echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6
13232 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13233 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13234 if test "x$au_enable_jack" = xyes; then
13235 echo "$as_me:$LINENO: result: yes" >&5
13236 echo "${ECHO_T}yes" >&6
13237 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13238 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13239 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13241 echo "$as_me:$LINENO: result: no" >&5
13242 echo "${ECHO_T}no" >&6
13245 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13246 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13247 if test "x$au_enable_ao" = xyes; then
13248 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
13249 echo "${ECHO_T}yes, configuring alsa" >&6
13252 KEEPLDFLAGS=$LDFLAGS
13254 # Check whether --with-ao or --without-ao was given.
13255 if test "${with_ao+set}" = set; then
13257 ao_prefix="$withval"
13262 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13263 if test "${with_ao_libraries+set}" = set; then
13264 withval="$with_ao_libraries"
13265 ao_libraries="$withval"
13270 # Check whether --with-ao-includes or --without-ao-includes was given.
13271 if test "${with_ao_includes+set}" = set; then
13272 withval="$with_ao_includes"
13273 ao_includes="$withval"
13277 # Check whether --enable-aotest or --disable-aotest was given.
13278 if test "${enable_aotest+set}" = set; then
13279 enableval="$enable_aotest"
13286 if test "x$ao_libraries" != "x" ; then
13287 AO_LIBS="-L$ao_libraries"
13288 elif test "x$ao_prefix" != "x"; then
13289 AO_LIBS="-L$ao_prefix/lib"
13290 elif test "x$prefix" != "xNONE"; then
13291 AO_LIBS="-L$prefix/lib"
13294 if test "x$ao_includes" != "x" ; then
13295 AO_CFLAGS="-I$ao_includes"
13296 elif test "x$ao_prefix" != "x"; then
13297 AO_CFLAGS="-I$ao_prefix/include"
13298 elif test "x$prefix" != "xNONE"; then
13299 AO_CFLAGS="-I$prefix/include"
13302 # see where dl* and friends live
13304 for ac_func in dlopen
13306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13307 echo "$as_me:$LINENO: checking for $ac_func" >&5
13308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13309 if eval "test \"\${$as_ac_var+set}\" = set"; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13320 #define $ac_func innocuous_$ac_func
13322 /* System header to define __stub macros and hopefully few prototypes,
13323 which can conflict with char $ac_func (); below.
13324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13325 <limits.h> exists even on freestanding compilers. */
13328 # include <limits.h>
13330 # include <assert.h>
13335 /* Override any gcc2 internal prototype to avoid an error. */
13340 /* We use char because int might match the return type of a gcc2
13341 builtin and then its argument prototype would still apply. */
13343 /* The GNU C library defines this for functions which it implements
13344 to always fail with ENOSYS. Some functions are actually named
13345 something starting with __ and the normal name is an alias. */
13346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13349 char (*f) () = $ac_func;
13358 return f != $ac_func;
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag"
13373 || test ! -s conftest.err'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } &&
13379 { ac_try='test -s conftest$ac_exeext'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13385 eval "$as_ac_var=yes"
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13390 eval "$as_ac_var=no"
13392 rm -f conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13397 if test `eval echo '${'$as_ac_var'}'` = yes; then
13398 cat >>confdefs.h <<_ACEOF
13399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13404 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13405 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 ac_check_lib_save_LIBS=$LIBS
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13418 /* Override any gcc2 internal prototype to avoid an error. */
13422 /* We use char because int might match the return type of a gcc2
13423 builtin and then its argument prototype would still apply. */
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag"
13443 || test ! -s conftest.err'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try='test -s conftest$ac_exeext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 ac_cv_lib_dl_dlopen=yes
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 ac_cv_lib_dl_dlopen=no
13462 rm -f conftest.err conftest.$ac_objext \
13463 conftest$ac_exeext conftest.$ac_ext
13464 LIBS=$ac_check_lib_save_LIBS
13466 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13467 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13468 if test $ac_cv_lib_dl_dlopen = yes; then
13472 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13473 your system may not be supported." >&5
13474 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13475 your system may not be supported." >&2;}
13484 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13486 echo "$as_me:$LINENO: checking for ao" >&5
13487 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13491 if test "x$enable_aotest" = "xyes" ; then
13492 ac_save_CFLAGS="$CFLAGS"
13493 ac_save_LIBS="$LIBS"
13494 CFLAGS="$CFLAGS $AO_CFLAGS"
13495 LIBS="$LIBS $AO_LIBS"
13497 if test "$cross_compiling" = yes; then
13498 echo $ac_n "cross compiling; assumed OK... $ac_c"
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13508 #include <stdlib.h>
13509 #include <string.h>
13514 system("touch conf.aotest");
13520 rm -f conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13533 echo "$as_me: program exited with status $ac_status" >&5
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ( exit $ac_status )
13540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13542 CFLAGS="$ac_save_CFLAGS"
13543 LIBS="$ac_save_LIBS"
13546 if test "x$no_ao" = "x" ; then
13547 echo "$as_me:$LINENO: result: yes" >&5
13548 echo "${ECHO_T}yes" >&6
13551 echo "$as_me:$LINENO: result: no" >&5
13552 echo "${ECHO_T}no" >&6
13553 if test -f conf.aotest ; then
13556 echo "*** Could not run ao test program, checking why..."
13557 CFLAGS="$CFLAGS $AO_CFLAGS"
13558 LIBS="$LIBS $AO_LIBS"
13559 cat >conftest.$ac_ext <<_ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest$ac_exeext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 echo "*** The test program compiled, but did not run. This usually means"
13600 echo "*** that the run-time linker is not finding ao or finding the wrong"
13601 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13602 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13603 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13604 echo "*** is required on your system"
13606 echo "*** If you have an old version installed, it is best to remove it, although"
13607 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13612 echo "*** The test program failed to compile or link. See the file config.log for the"
13613 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13614 echo "*** or that you have moved ao since it was installed."
13616 rm -f conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 CFLAGS="$ac_save_CFLAGS"
13619 LIBS="$ac_save_LIBS"
13629 if test "x$no_ao" = "x" ; then
13630 EXTRADEFS="$EXTRADEFS -DAU_AO"
13631 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13632 for f in $AO_CFLAGS; do
13634 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13635 *) CFLAGS="$CPPFLAGS $f" ;;
13639 LIBS="$KEEPLIBS $AO_LIBS"
13641 for ac_func in snd_seq_port_info_set_timestamping
13643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13644 echo "$as_me:$LINENO: checking for $ac_func" >&5
13645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13646 if eval "test \"\${$as_ac_var+set}\" = set"; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 cat >conftest.$ac_ext <<_ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13657 #define $ac_func innocuous_$ac_func
13659 /* System header to define __stub macros and hopefully few prototypes,
13660 which can conflict with char $ac_func (); below.
13661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13662 <limits.h> exists even on freestanding compilers. */
13665 # include <limits.h>
13667 # include <assert.h>
13672 /* Override any gcc2 internal prototype to avoid an error. */
13677 /* We use char because int might match the return type of a gcc2
13678 builtin and then its argument prototype would still apply. */
13680 /* The GNU C library defines this for functions which it implements
13681 to always fail with ENOSYS. Some functions are actually named
13682 something starting with __ and the normal name is an alias. */
13683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13686 char (*f) () = $ac_func;
13695 return f != $ac_func;
13700 rm -f conftest.$ac_objext conftest$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702 (eval $ac_link) 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest$ac_exeext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 eval "$as_ac_var=yes"
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 eval "$as_ac_var=no"
13729 rm -f conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13734 if test `eval echo '${'$as_ac_var'}'` = yes; then
13735 cat >>confdefs.h <<_ACEOF
13736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13743 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13744 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13747 LDFLAGS=$KEEPLDFLAGS
13750 echo "$as_me:$LINENO: result: no" >&5
13751 echo "${ECHO_T}no" >&6
13754 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13755 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13756 if test "x$au_enable_vorbis" = xyes; then
13757 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13758 echo "${ECHO_T}yes, configuring vorbis" >&6
13760 # Check whether --with-ogg or --without-ogg was given.
13761 if test "${with_ogg+set}" = set; then
13762 withval="$with_ogg"
13763 ogg_prefix="$withval"
13768 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13769 if test "${with_ogg_libraries+set}" = set; then
13770 withval="$with_ogg_libraries"
13771 ogg_libraries="$withval"
13776 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13777 if test "${with_ogg_includes+set}" = set; then
13778 withval="$with_ogg_includes"
13779 ogg_includes="$withval"
13783 # Check whether --enable-oggtest or --disable-oggtest was given.
13784 if test "${enable_oggtest+set}" = set; then
13785 enableval="$enable_oggtest"
13791 if test "x$ogg_libraries" != "x" ; then
13792 OGG_LIBS="-L$ogg_libraries"
13793 elif test "x$ogg_prefix" != "x" ; then
13794 OGG_LIBS="-L$ogg_prefix/lib"
13795 elif test "x$prefix" != "xNONE" ; then
13796 OGG_LIBS="-L$prefix/lib"
13799 OGG_LIBS="$OGG_LIBS -logg"
13801 if test "x$ogg_includes" != "x" ; then
13802 OGG_CFLAGS="-I$ogg_includes"
13803 elif test "x$ogg_prefix" != "x" ; then
13804 OGG_CFLAGS="-I$ogg_prefix/include"
13805 elif test "x$prefix" != "xNONE"; then
13806 OGG_CFLAGS="-I$prefix/include"
13809 echo "$as_me:$LINENO: checking for Ogg" >&5
13810 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13814 if test "x$enable_oggtest" = "xyes" ; then
13815 ac_save_CFLAGS="$CFLAGS"
13816 ac_save_LIBS="$LIBS"
13817 CFLAGS="$CFLAGS $OGG_CFLAGS"
13818 LIBS="$LIBS $OGG_LIBS"
13820 if test "$cross_compiling" = yes; then
13821 echo $ac_n "cross compiling; assumed OK... $ac_c"
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13831 #include <stdlib.h>
13832 #include <string.h>
13833 #include <ogg/ogg.h>
13837 system("touch conf.oggtest");
13843 rm -f conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13856 echo "$as_me: program exited with status $ac_status" >&5
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 ( exit $ac_status )
13863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13865 CFLAGS="$ac_save_CFLAGS"
13866 LIBS="$ac_save_LIBS"
13869 if test "x$no_ogg" = "x" ; then
13870 echo "$as_me:$LINENO: result: yes" >&5
13871 echo "${ECHO_T}yes" >&6
13874 # Check whether --with-vorbis or --without-vorbis was given.
13875 if test "${with_vorbis+set}" = set; then
13876 withval="$with_vorbis"
13877 vorbis_prefix="$withval"
13882 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13883 if test "${with_vorbis_libraries+set}" = set; then
13884 withval="$with_vorbis_libraries"
13885 vorbis_libraries="$withval"
13887 vorbis_libraries=""
13890 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13891 if test "${with_vorbis_includes+set}" = set; then
13892 withval="$with_vorbis_includes"
13893 vorbis_includes="$withval"
13897 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13898 if test "${enable_vorbistest+set}" = set; then
13899 enableval="$enable_vorbistest"
13902 enable_vorbistest=yes
13905 if test "x$vorbis_libraries" != "x" ; then
13906 VORBIS_LIBS="-L$vorbis_libraries"
13907 elif test "x$vorbis_prefix" != "x" ; then
13908 VORBIS_LIBS="-L$vorbis_prefix/lib"
13909 elif test "x$prefix" != "xNONE"; then
13910 VORBIS_LIBS="-L$prefix/lib"
13913 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13914 VORBISFILE_LIBS="-lvorbisfile"
13915 VORBISENC_LIBS="-lvorbisenc"
13917 if test "x$vorbis_includes" != "x" ; then
13918 VORBIS_CFLAGS="-I$vorbis_includes"
13919 elif test "x$vorbis_prefix" != "x" ; then
13920 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13921 elif test "x$prefix" != "xNONE"; then
13922 VORBIS_CFLAGS="-I$prefix/include"
13926 echo "$as_me:$LINENO: checking for Vorbis" >&5
13927 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13931 if test "x$enable_vorbistest" = "xyes" ; then
13932 ac_save_CFLAGS="$CFLAGS"
13933 ac_save_LIBS="$LIBS"
13934 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13935 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13936 rm -f conf.vorbistest
13937 if test "$cross_compiling" = yes; then
13938 echo $ac_n "cross compiling; assumed OK... $ac_c"
13940 cat >conftest.$ac_ext <<_ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13948 #include <stdlib.h>
13949 #include <string.h>
13950 #include <vorbis/codec.h>
13954 system("touch conf.vorbistest");
13960 rm -f conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962 (eval $ac_link) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13973 echo "$as_me: program exited with status $ac_status" >&5
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 ( exit $ac_status )
13980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13982 CFLAGS="$ac_save_CFLAGS"
13983 LIBS="$ac_save_LIBS"
13986 if test "x$no_vorbis" = "x" ; then
13987 echo "$as_me:$LINENO: result: yes" >&5
13988 echo "${ECHO_T}yes" >&6
13991 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13992 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13993 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13994 if test "x$CYGNUS" = "xyes"; then
13995 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13996 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13998 if test "x$MINGW" = "xyes"; then
13999 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
14000 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14004 echo "$as_me:$LINENO: result: no" >&5
14005 echo "${ECHO_T}no" >&6
14006 if test -f conf.vorbistest ; then
14009 echo "*** Could not run Vorbis test program, checking why..."
14010 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14011 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14012 cat >conftest.$ac_ext <<_ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14020 #include <vorbis/codec.h>
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 echo "*** The test program compiled, but did not run. This usually means"
14053 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14054 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14055 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14056 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14057 echo "*** is required on your system"
14059 echo "*** If you have an old version installed, it is best to remove it, although"
14060 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 echo "*** The test program failed to compile or link. See the file config.log for the"
14066 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14067 echo "*** or that you have moved Vorbis since it was installed."
14069 rm -f conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 CFLAGS="$ac_save_CFLAGS"
14072 LIBS="$ac_save_LIBS"
14079 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14080 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14087 rm -f conf.vorbistest
14091 echo "$as_me:$LINENO: result: no" >&5
14092 echo "${ECHO_T}no" >&6
14093 if test -f conf.oggtest ; then
14096 echo "*** Could not run Ogg test program, checking why..."
14097 CFLAGS="$CFLAGS $OGG_CFLAGS"
14098 LIBS="$LIBS $OGG_LIBS"
14099 cat >conftest.$ac_ext <<_ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14107 #include <ogg/ogg.h>
14117 rm -f conftest.$ac_objext conftest$ac_exeext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14119 (eval $ac_link) 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag"
14127 || test ! -s conftest.err'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; } &&
14133 { ac_try='test -s conftest$ac_exeext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 echo "*** The test program compiled, but did not run. This usually means"
14140 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14141 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14142 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14143 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14144 echo "*** is required on your system"
14146 echo "*** If you have an old version installed, it is best to remove it, although"
14147 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 echo "*** The test program failed to compile or link. See the file config.log for the"
14153 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14154 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14155 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14157 rm -f conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 CFLAGS="$ac_save_CFLAGS"
14160 LIBS="$ac_save_LIBS"
14165 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14166 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14175 echo "$as_me:$LINENO: result: no" >&5
14176 echo "${ECHO_T}no" >&6
14179 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14180 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14181 if test "x$au_enable_flac" = xyes; then
14182 echo "$as_me:$LINENO: result: yes" >&5
14183 echo "${ECHO_T}yes" >&6
14184 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14185 EXTRALIBS="$EXTRALIBS -lOggFLAC -lFLAC -logg"
14186 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_OGGFLAC"
14188 echo "$as_me:$LINENO: result: no" >&5
14189 echo "${ECHO_T}no" >&6
14192 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14193 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14194 if test "x$au_enable_gogo" = xyes; then
14195 if test "x$CYGNUS" = "xyes"; then
14196 echo "$as_me:$LINENO: result: yes" >&5
14197 echo "${ECHO_T}yes" >&6
14199 if test "x$MINGW" = "xyes"; then
14200 echo "$as_me:$LINENO: result: yes" >&5
14201 echo "${ECHO_T}yes" >&6
14203 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
14204 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
14208 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14209 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14210 EXTRALIBS="$EXTRALIBS -lgogo"
14212 echo "$as_me:$LINENO: result: no" >&5
14213 echo "${ECHO_T}no" >&6
14216 if test "x$au_enable_none" = xyes; then
14217 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14218 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14220 echo "$as_me:$LINENO: checking default output mode" >&5
14221 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14222 if test "x$DEFAULT_PLAYMODE" = x; then
14223 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14225 case ".$DEFAULT_PLAYMODE" in
14226 .default) TIMIDITY_OUTPUT_ID=d ;;
14227 .oss) TIMIDITY_OUTPUT_ID=d ;;
14228 .alsa) TIMIDITY_OUTPUT_ID=s ;;
14229 .sun) TIMIDITY_OUTPUT_ID=d ;;
14230 .hpux) TIMIDITY_OUTPUT_ID=d ;;
14231 .irix) TIMIDITY_OUTPUT_ID=d ;;
14232 .mme) TIMIDITY_OUTPUT_ID=d ;;
14233 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
14234 .darwin) TIMIDITY_OUTPUT_ID=d ;;
14235 .w32) TIMIDITY_OUTPUT_ID=d ;;
14236 .alib) TIMIDITY_OUTPUT_ID=A ;;
14237 .nas) TIMIDITY_OUTPUT_ID=n ;;
14238 .arts) TIMIDITY_OUTPUT_ID=R ;;
14239 .esd) TIMIDITY_OUTPUT_ID=e ;;
14240 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
14241 .wav) TIMIDITY_OUTPUT_ID=w ;;
14242 .au) TIMIDITY_OUTPUT_ID=u ;;
14243 .aiff) TIMIDITY_OUTPUT_ID=a ;;
14244 .list) TIMIDITY_OUTPUT_ID=l ;;
14245 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
14246 .flac) TIMIDITY_OUTPUT_ID=F ;;
14247 .gogo) TIMIDITY_OUTPUT_ID=g ;;
14248 .jack) TIMIDITY_OUTPUT_ID=j ;;
14249 *) TIMIDITY_OUTPUT_ID= ;;
14251 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14252 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14255 # Interface Section
14258 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14260 # Check whether --enable-interface or --disable-interface was given.
14261 if test "${enable_interface+set}" = set; then
14262 enableval="$enable_interface"
14263 for i in `echo $enableval | sed 's/,/ /g'`; do
14264 eval "enable_$i=yes"
14268 # Dynamic link configuration
14269 # Check whether --enable-dynamic or --disable-dynamic was given.
14270 if test "${enable_dynamic+set}" = set; then
14271 enableval="$enable_dynamic"
14272 if test "x$enable_dynamic" = xyes; then
14273 enable_dynamic=dynamic
14274 elif test "x$enable_dynamic" != xno; then
14275 for i in `echo $enableval | sed 's/,/ /g'`; do
14276 eval "enable_$i=dynamic"
14282 for i in $interface_targets; do
14283 eval "join_targets=$join_targets\$enable_$i"
14286 case ".$join_targets" in
14287 .*dynamic*) NEEDDLOPEN=yes;;
14291 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14292 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14294 if test "$NEEDDLOPEN" = "yes"; then
14297 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14298 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14299 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 cat >conftest.$ac_ext <<_ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 #include <windows.h>
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest$ac_exeext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 wapi_cv_func_LoadLibrary=yes
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 wapi_cv_func_LoadLibrary=no
14348 rm -f conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14352 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14353 echo "$as_me:$LINENO: result: yes" >&5
14354 echo "${ECHO_T}yes" >&6
14357 echo "$as_me:$LINENO: result: no" >&5
14358 echo "${ECHO_T}no" >&6
14361 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14363 if test "$have_dl" = "no"; then
14364 echo "$as_me:$LINENO: checking for shl_load" >&5
14365 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14366 if test "${ac_cv_func_shl_load+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 cat >conftest.$ac_ext <<_ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14375 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14377 #define shl_load innocuous_shl_load
14379 /* System header to define __stub macros and hopefully few prototypes,
14380 which can conflict with char shl_load (); below.
14381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14382 <limits.h> exists even on freestanding compilers. */
14385 # include <limits.h>
14387 # include <assert.h>
14392 /* Override any gcc2 internal prototype to avoid an error. */
14397 /* We use char because int might match the return type of a gcc2
14398 builtin and then its argument prototype would still apply. */
14400 /* The GNU C library defines this for functions which it implements
14401 to always fail with ENOSYS. Some functions are actually named
14402 something starting with __ and the normal name is an alias. */
14403 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14406 char (*f) () = shl_load;
14415 return f != shl_load;
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14422 (eval $ac_link) 2>conftest.er1
14424 grep -v '^ *+' conftest.er1 >conftest.err
14426 cat conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -z "$ac_c_werror_flag"
14430 || test ! -s conftest.err'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest$ac_exeext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_cv_func_shl_load=yes
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 ac_cv_func_shl_load=no
14449 rm -f conftest.err conftest.$ac_objext \
14450 conftest$ac_exeext conftest.$ac_ext
14452 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14453 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14454 if test $ac_cv_func_shl_load = yes; then
14459 if test "$have_dl" = "no"; then
14460 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14461 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14462 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 cat >conftest.$ac_ext <<_ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14473 #define NSLinkModule innocuous_NSLinkModule
14475 /* System header to define __stub macros and hopefully few prototypes,
14476 which can conflict with char NSLinkModule (); below.
14477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14478 <limits.h> exists even on freestanding compilers. */
14481 # include <limits.h>
14483 # include <assert.h>
14486 #undef NSLinkModule
14488 /* Override any gcc2 internal prototype to avoid an error. */
14493 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */
14495 char NSLinkModule ();
14496 /* The GNU C library defines this for functions which it implements
14497 to always fail with ENOSYS. Some functions are actually named
14498 something starting with __ and the normal name is an alias. */
14499 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14502 char (*f) () = NSLinkModule;
14511 return f != NSLinkModule;
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518 (eval $ac_link) 2>conftest.er1
14520 grep -v '^ *+' conftest.er1 >conftest.err
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_cv_func_NSLinkModule=yes
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_cv_func_NSLinkModule=no
14545 rm -f conftest.err conftest.$ac_objext \
14546 conftest$ac_exeext conftest.$ac_ext
14548 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14549 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14550 if test $ac_cv_func_NSLinkModule = yes; then
14555 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14558 if test "$have_dl" = "no"; then
14559 echo "$as_me:$LINENO: checking for dlopen" >&5
14560 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14561 if test "${ac_cv_func_dlopen+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 cat >conftest.$ac_ext <<_ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14570 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14572 #define dlopen innocuous_dlopen
14574 /* System header to define __stub macros and hopefully few prototypes,
14575 which can conflict with char dlopen (); below.
14576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14577 <limits.h> exists even on freestanding compilers. */
14580 # include <limits.h>
14582 # include <assert.h>
14587 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14595 /* The GNU C library defines this for functions which it implements
14596 to always fail with ENOSYS. Some functions are actually named
14597 something starting with __ and the normal name is an alias. */
14598 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14601 char (*f) () = dlopen;
14610 return f != dlopen;
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14617 (eval $ac_link) 2>conftest.er1
14619 grep -v '^ *+' conftest.er1 >conftest.err
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag"
14625 || test ! -s conftest.err'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest$ac_exeext'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_cv_func_dlopen=yes
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ac_cv_func_dlopen=no
14644 rm -f conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14647 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14648 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14649 if test $ac_cv_func_dlopen = yes; then
14654 if test "$have_dl" = "no"; then
14655 echo "$as_me:$LINENO: checking for dld_init" >&5
14656 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
14657 if test "${ac_cv_func_dld_init+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 cat >conftest.$ac_ext <<_ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
14667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14668 #define dld_init innocuous_dld_init
14670 /* System header to define __stub macros and hopefully few prototypes,
14671 which can conflict with char dld_init (); below.
14672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14673 <limits.h> exists even on freestanding compilers. */
14676 # include <limits.h>
14678 # include <assert.h>
14683 /* Override any gcc2 internal prototype to avoid an error. */
14688 /* We use char because int might match the return type of a gcc2
14689 builtin and then its argument prototype would still apply. */
14691 /* The GNU C library defines this for functions which it implements
14692 to always fail with ENOSYS. Some functions are actually named
14693 something starting with __ and the normal name is an alias. */
14694 #if defined (__stub_dld_init) || defined (__stub___dld_init)
14697 char (*f) () = dld_init;
14706 return f != dld_init;
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713 (eval $ac_link) 2>conftest.er1
14715 grep -v '^ *+' conftest.er1 >conftest.err
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -z "$ac_c_werror_flag"
14721 || test ! -s conftest.err'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; } &&
14727 { ac_try='test -s conftest$ac_exeext'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14733 ac_cv_func_dld_init=yes
14735 echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14738 ac_cv_func_dld_init=no
14740 rm -f conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14743 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
14744 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
14745 if test $ac_cv_func_dld_init = yes; then
14750 if test "$have_dl" = "no"; then
14751 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
14752 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
14753 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 ac_check_lib_save_LIBS=$LIBS
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14765 /* Override any gcc2 internal prototype to avoid an error. */
14769 /* We use char because int might match the return type of a gcc2
14770 builtin and then its argument prototype would still apply. */
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782 (eval $ac_link) 2>conftest.er1
14784 grep -v '^ *+' conftest.er1 >conftest.err
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
14789 { ac_try='test -z "$ac_c_werror_flag"
14790 || test ! -s conftest.err'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; } &&
14796 { ac_try='test -s conftest$ac_exeext'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
14802 ac_cv_lib_dld_dld_init=yes
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_cv_lib_dld_dld_init=no
14809 rm -f conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_check_lib_save_LIBS
14813 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
14814 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
14815 if test $ac_cv_lib_dld_dld_init = yes; then
14816 have_dl=dld;lib_dl_opt=-ldld
14821 echo "$as_me:$LINENO: checking dynamic link method" >&5
14822 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
14825 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
14826 echo "${ECHO_T}use dl_dlopen.c" >&6
14827 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
14828 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
14829 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
14830 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 case "$ac_cv_header_dlfcn_h" in
14834 yes) i_dlfcn=define;;
14845 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
14847 #include <sys/types.h>
14852 extern int fred() ;
14861 int mode = RTLD_LAZY ;
14863 handle = dlopen("./dyna.$so", mode) ;
14864 if (handle == NULL) {
14869 symbol = dlsym(handle, "fred") ;
14870 if (symbol == NULL) {
14871 /* try putting a leading underscore */
14872 symbol = dlsym(handle, "_fred") ;
14873 if (symbol == NULL) {
14886 : Call the object file tmp-dyna.o in case dlext=o.
14887 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
14888 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
14889 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
14890 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
14893 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
14894 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
14896 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
14897 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
14899 3) timidity_cv_func_dlsym_underscore=yes
14901 4) timidity_cv_func_dlsym_underscore=no
14905 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
14906 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
14908 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
14912 case "x$timidity_cv_func_dlsym_underscore" in
14914 cat >>confdefs.h <<\_ACEOF
14915 #define DLSYM_NEEDS_UNDERSCORE 1
14918 echo "$as_me:$LINENO: result: yes" >&5
14919 echo "${ECHO_T}yes" >&6
14922 echo "$as_me:$LINENO: result: no" >&5
14923 echo "${ECHO_T}no" >&6
14929 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
14930 echo "${ECHO_T}use dl_dld.c" >&6
14931 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
14934 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
14935 echo "${ECHO_T}use dl_hpux.c" >&6
14936 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
14937 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
14940 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
14941 echo "${ECHO_T}use dl_w32.c" >&6
14942 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
14945 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
14946 echo "${ECHO_T}use dl_dyld.c" >&6
14947 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
14951 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
14952 echo "$as_me: WARNING: no method to open a shared object" >&2;}
14957 if test "$NEEDDLOPEN" = "yes"; then
14958 cat >> confdefs.h <<EOF
14959 #define IA_DYNAMIC 1
14963 cat >>confdefs.h <<_ACEOF
14964 #define SHARED_LIB_EXT ".$so"
14967 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
14972 if test "$NEEDDLOPEN" = "yes"; then
14974 NEEDDLOPEN_FALSE='#'
14976 NEEDDLOPEN_TRUE='#'
14985 ENABLE_NCURSES_TRUE=
14986 ENABLE_NCURSES_FALSE='#'
14988 ENABLE_NCURSES_TRUE='#'
14989 ENABLE_NCURSES_FALSE=
14992 # Check whether --enable-ncurses or --disable-ncurses was given.
14993 if test "${enable_ncurses+set}" = set; then
14994 enableval="$enable_ncurses"
14995 case "x$enable_ncurses" in xyes|xdynamic)
14998 for ac_header in ncurses.h ncurses/curses.h curses.h
15000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15002 echo "$as_me:$LINENO: checking for $ac_header" >&5
15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15010 # Is the header compilable?
15011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15013 cat >conftest.$ac_ext <<_ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 $ac_includes_default
15020 #include <$ac_header>
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_header_compiler=yes
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 ac_header_compiler=no
15051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15053 echo "${ECHO_T}$ac_header_compiler" >&6
15055 # Is the header present?
15056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #include <$ac_header>
15066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15069 grep -v '^ *+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } >/dev/null; then
15074 if test -s conftest.err; then
15075 ac_cpp_err=$ac_c_preproc_warn_flag
15076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15083 if test -z "$ac_cpp_err"; then
15084 ac_header_preproc=yes
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ac_header_preproc=no
15091 rm -f conftest.err conftest.$ac_ext
15092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15093 echo "${ECHO_T}$ac_header_preproc" >&6
15095 # So? What about this header?
15096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15102 ac_header_preproc=yes
15105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15119 ## ------------------------------- ##
15120 ## Report this to root@mput.dip.jp ##
15121 ## ------------------------------- ##
15124 sed "s/^/$as_me: WARNING: /" >&2
15127 echo "$as_me:$LINENO: checking for $ac_header" >&5
15128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 eval "$as_ac_Header=\$ac_header_preproc"
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15139 cat >>confdefs.h <<_ACEOF
15140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15149 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15151 *) for i in /usr/include /usr/local/include; do
15152 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15153 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
15154 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
15155 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15162 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15163 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15164 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 ac_check_lib_save_LIBS=$LIBS
15168 LIBS="-lncurses $LIBS"
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15176 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag"
15201 || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_lib_ncurses_initscr=yes
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 ac_cv_lib_ncurses_initscr=no
15220 rm -f conftest.err conftest.$ac_objext \
15221 conftest$ac_exeext conftest.$ac_ext
15222 LIBS=$ac_check_lib_save_LIBS
15224 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15225 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15226 if test $ac_cv_lib_ncurses_initscr = yes; then
15227 lib_curses_opt=-lncurses
15229 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15230 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15231 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 ac_check_lib_save_LIBS=$LIBS
15235 LIBS="-lcurses $lib_user32_test $LIBS"
15236 cat >conftest.$ac_ext <<_ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15243 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15249 char PDC_set_ctrl_break ();
15253 PDC_set_ctrl_break ();
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260 (eval $ac_link) 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag"
15268 || test ! -s conftest.err'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; } &&
15274 { ac_try='test -s conftest$ac_exeext'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_cv_lib_curses_PDC_set_ctrl_break=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_cv_lib_curses_PDC_set_ctrl_break=no
15287 rm -f conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext conftest.$ac_ext
15289 LIBS=$ac_check_lib_save_LIBS
15291 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15292 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15293 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15294 lib_curses_opt=-lcurses
15296 cat >>confdefs.h <<\_ACEOF
15297 #define USE_PDCURSES 1
15300 lib_user32_opt="$lib_user32_test"
15303 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15304 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15305 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 ac_check_lib_save_LIBS=$LIBS
15309 LIBS="-lpdcurses $LIBS"
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15323 char PDC_set_ctrl_break ();
15327 PDC_set_ctrl_break ();
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>conftest.er1
15336 grep -v '^ *+' conftest.er1 >conftest.err
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag"
15342 || test ! -s conftest.err'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest$ac_exeext'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15361 rm -f conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 LIBS=$ac_check_lib_save_LIBS
15365 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15366 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15367 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15368 lib_curses_opt=-lpdcurses
15370 cat >>confdefs.h <<\_ACEOF
15371 #define USE_PDCURSES 1
15374 lib_user32_opt="$lib_user32_test"
15379 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15380 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15381 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 ac_check_lib_save_LIBS=$LIBS
15385 LIBS="-lcurses $LIBS"
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 /* Override any gcc2 internal prototype to avoid an error. */
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>conftest.er1
15412 grep -v '^ *+' conftest.er1 >conftest.err
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -z "$ac_c_werror_flag"
15418 || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest$ac_exeext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_cv_lib_curses_initscr=yes
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_cv_lib_curses_initscr=no
15437 rm -f conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15439 LIBS=$ac_check_lib_save_LIBS
15441 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15442 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15443 if test $ac_cv_lib_curses_initscr = yes; then
15444 lib_curses_opt=-lcurses
15446 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15447 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15454 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15469 case "x$enable_ncurses" in
15471 cat >> confdefs.h <<EOF
15472 #define IA_NCURSES 1
15478 ENABLE_NCURSES_TRUE=
15479 ENABLE_NCURSES_FALSE='#'
15481 ENABLE_NCURSES_TRUE='#'
15482 ENABLE_NCURSES_FALSE=
15485 LIBS="$LIBS $lib_curses_opt"
15488 EXTRALIBS="$EXTRALIBS -lmytinfo"
15491 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15495 dynamic_targets="$dynamic_targets interface_n.\$(so)"
15496 n_so_libs="$lib_curses_opt"
15499 EXTRALIBS="$EXTRALIBS -lmytinfo"
15514 ENABLE_SLANG_FALSE='#'
15516 ENABLE_SLANG_TRUE='#'
15517 ENABLE_SLANG_FALSE=
15520 # Check whether --enable-slang or --disable-slang was given.
15521 if test "${enable_slang+set}" = set; then
15522 enableval="$enable_slang"
15523 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15524 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15525 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 ac_check_lib_save_LIBS=$LIBS
15529 LIBS="-lslang $LIBS"
15530 cat >conftest.$ac_ext <<_ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15537 /* Override any gcc2 internal prototype to avoid an error. */
15541 /* We use char because int might match the return type of a gcc2
15542 builtin and then its argument prototype would still apply. */
15543 char SLang_init_tty ();
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554 (eval $ac_link) 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag"
15562 || test ! -s conftest.err'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest$ac_exeext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_cv_lib_slang_SLang_init_tty=yes
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_cv_lib_slang_SLang_init_tty=no
15581 rm -f conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15583 LIBS=$ac_check_lib_save_LIBS
15585 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15586 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15587 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15591 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15592 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15598 for ac_header in slang/slang.h slang.h
15600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602 echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15610 # Is the header compilable?
15611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 $ac_includes_default
15620 #include <$ac_header>
15622 rm -f conftest.$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>conftest.er1
15626 grep -v '^ *+' conftest.er1 >conftest.err
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag"
15632 || test ! -s conftest.err'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest.$ac_objext'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_header_compiler=yes
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_header_compiler=no
15651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15653 echo "${ECHO_T}$ac_header_compiler" >&6
15655 # Is the header present?
15656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 #include <$ac_header>
15666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15669 grep -v '^ *+' conftest.er1 >conftest.err
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } >/dev/null; then
15674 if test -s conftest.err; then
15675 ac_cpp_err=$ac_c_preproc_warn_flag
15676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15683 if test -z "$ac_cpp_err"; then
15684 ac_header_preproc=yes
15686 echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15689 ac_header_preproc=no
15691 rm -f conftest.err conftest.$ac_ext
15692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15693 echo "${ECHO_T}$ac_header_preproc" >&6
15695 # So? What about this header?
15696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15702 ac_header_preproc=yes
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15719 ## ------------------------------- ##
15720 ## Report this to root@mput.dip.jp ##
15721 ## ------------------------------- ##
15724 sed "s/^/$as_me: WARNING: /" >&2
15727 echo "$as_me:$LINENO: checking for $ac_header" >&5
15728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 eval "$as_ac_Header=\$ac_header_preproc"
15734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15739 cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15749 case "x$enable_slang" in
15751 cat >> confdefs.h <<EOF
15759 ENABLE_SLANG_FALSE='#'
15761 ENABLE_SLANG_TRUE='#'
15762 ENABLE_SLANG_FALSE=
15765 LIBS="$LIBS -lslang"
15766 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
15770 dynamic_targets="$dynamic_targets interface_s.\$(so)"
15771 s_so_libs="-lslang"
15772 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
15773 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
15774 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-ltermcap $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15786 /* Override any gcc2 internal prototype to avoid an error. */
15790 /* We use char because int might match the return type of a gcc2
15791 builtin and then its argument prototype would still apply. */
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803 (eval $ac_link) 2>conftest.er1
15805 grep -v '^ *+' conftest.er1 >conftest.err
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -z "$ac_c_werror_flag"
15811 || test ! -s conftest.err'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; } &&
15817 { ac_try='test -s conftest$ac_exeext'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823 ac_cv_lib_termcap_initscr=yes
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 ac_cv_lib_termcap_initscr=no
15830 rm -f conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
15832 LIBS=$ac_check_lib_save_LIBS
15834 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
15835 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
15836 if test $ac_cv_lib_termcap_initscr = yes; then
15837 s_so_libs="$s_so_libs -ltermcap"
15853 ENABLE_MOTIF_FALSE='#'
15855 ENABLE_MOTIF_TRUE='#'
15856 ENABLE_MOTIF_FALSE=
15859 # Check whether --enable-motif or --disable-motif was given.
15860 if test "${enable_motif+set}" = set; then
15861 enableval="$enable_motif"
15862 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
15863 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
15864 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
15865 { (exit 1); exit 1; }; }
15867 if test "x$have_xm" != xyes; then
15868 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
15869 echo "$as_me: WARNING: Motif library is not found." >&2;}
15874 case "x$enable_motif" in
15876 cat >> confdefs.h <<EOF
15884 ENABLE_MOTIF_FALSE='#'
15886 ENABLE_MOTIF_TRUE='#'
15887 ENABLE_MOTIF_FALSE=
15892 lib_xext_opt=-lXext
15893 if test "x$have_xprelibs" = xyes; then
15894 lib_xprelibs_opt='-lSM -lICE'
15896 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
15900 dynamic_targets="$dynamic_targets interface_m.\$(so)"
15901 if test x$have_xprelibs = xyes; then
15902 m_so_libs="-lXext -lSM -lICE"
15904 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
15918 ENABLE_TCLTK_FALSE='#'
15920 ENABLE_TCLTK_TRUE='#'
15921 ENABLE_TCLTK_FALSE=
15924 # Check whether --enable-tcltk or --disable-tcltk was given.
15925 if test "${enable_tcltk+set}" = set; then
15926 enableval="$enable_tcltk"
15927 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
15928 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
15929 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
15930 { (exit 1); exit 1; }; }
15933 KEEPCPPFLAGS=$CPPFLAGS
15934 KEEPLDFLAGS=$LDFLAGS
15937 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
15938 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
15939 LIBS="$LIBS $lib_dl_opt"
15943 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
15944 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
15945 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
15946 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
15947 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 ac_check_lib_save_LIBS=$LIBS
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15959 /* Override any gcc2 internal prototype to avoid an error. */
15963 /* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15976 (eval $ac_link) 2>conftest.er1
15978 grep -v '^ *+' conftest.er1 >conftest.err
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -z "$ac_c_werror_flag"
15984 || test ! -s conftest.err'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; } &&
15990 { ac_try='test -s conftest$ac_exeext'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 eval "$as_ac_Lib=yes"
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 eval "$as_ac_Lib=no"
16003 rm -f conftest.err conftest.$ac_objext \
16004 conftest$ac_exeext conftest.$ac_ext
16005 LIBS=$ac_check_lib_save_LIBS
16007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16008 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16009 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16014 LIBS="$LIBS $tcl_lib"
16015 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16016 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16017 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16018 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16019 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 ac_check_lib_save_LIBS=$LIBS
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16031 /* Override any gcc2 internal prototype to avoid an error. */
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>conftest.er1
16050 grep -v '^ *+' conftest.er1 >conftest.err
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -z "$ac_c_werror_flag"
16056 || test ! -s conftest.err'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try='test -s conftest$ac_exeext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 eval "$as_ac_Lib=yes"
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 eval "$as_ac_Lib=no"
16075 rm -f conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16080 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16081 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16088 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16089 CPPFLAGS=$KEEPCPPFLAGS
16090 LDFLAGS=$KEEPLDFLAGS
16092 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16093 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16095 tcltk_dep='tclIndex'
16099 case "x$enable_tcltk" in
16101 cat >> confdefs.h <<EOF
16109 ENABLE_TCLTK_FALSE='#'
16111 ENABLE_TCLTK_TRUE='#'
16112 ENABLE_TCLTK_FALSE=
16115 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16118 EXTRALIBS="$EXTRALIBS -lipc"
16121 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16125 dynamic_targets="$dynamic_targets interface_k.\$(so)"
16126 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16129 k_so_libs="$k_so_libs -lipc"
16132 k_so_libs="$k_so_libs -lX11 -lm"
16143 if test "x$enable_tcltk" = "xdynamic"; then
16144 ENABLE_DYNAMIC_TCLTK_TRUE=
16145 ENABLE_DYNAMIC_TCLTK_FALSE='#'
16147 ENABLE_DYNAMIC_TCLTK_TRUE='#'
16148 ENABLE_DYNAMIC_TCLTK_FALSE=
16156 ENABLE_EMACS_FALSE='#'
16158 ENABLE_EMACS_TRUE='#'
16159 ENABLE_EMACS_FALSE=
16162 # Check whether --enable-emacs or --disable-emacs was given.
16163 if test "${enable_emacs+set}" = set; then
16164 enableval="$enable_emacs"
16165 case "x$enable_emacs" in xyes|xdynamic) ;; esac
16167 case "x$enable_emacs" in
16169 cat >> confdefs.h <<EOF
16177 ENABLE_EMACS_FALSE='#'
16179 ENABLE_EMACS_TRUE='#'
16180 ENABLE_EMACS_FALSE=
16183 ELFILES="$ELFILES timidity.el"
16184 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16188 dynamic_targets="$dynamic_targets interface_e.\$(so)"
16189 ELFILES="$ELFILES timidity.el"
16202 ENABLE_VT100_FALSE='#'
16204 ENABLE_VT100_TRUE='#'
16205 ENABLE_VT100_FALSE=
16208 # Check whether --enable-vt100 or --disable-vt100 was given.
16209 if test "${enable_vt100+set}" = set; then
16210 enableval="$enable_vt100"
16211 case "x$enable_vt100" in xyes|xdynamic) ;; esac
16213 case "x$enable_vt100" in
16215 cat >> confdefs.h <<EOF
16223 ENABLE_VT100_FALSE='#'
16225 ENABLE_VT100_TRUE='#'
16226 ENABLE_VT100_FALSE=
16229 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16232 dynamic_targets="$dynamic_targets interface_T.\$(so)"
16246 ENABLE_XAW_FALSE='#'
16248 ENABLE_XAW_TRUE='#'
16252 # Check whether --enable-xaw or --disable-xaw was given.
16253 if test "${enable_xaw+set}" = set; then
16254 enableval="$enable_xaw"
16255 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
16256 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16257 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16258 { (exit 1); exit 1; }; }
16260 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16261 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16262 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16266 case "x$enable_xaw" in
16268 cat >> confdefs.h <<EOF
16276 ENABLE_XAW_FALSE='#'
16278 ENABLE_XAW_TRUE='#'
16282 if test "x$have_xext" = xyes; then
16283 lib_xext_opt=-lXext
16285 if test "x$have_xprelibs" = xyes; then
16286 lib_xprelibs_opt='-lSM -lICE'
16290 if test "x$have_xaw" = x3d; then
16292 cat >>confdefs.h <<\_ACEOF
16296 lib_xaw_opt=-lXaw3d
16300 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16304 dynamic_targets="$dynamic_targets interface_a.\$(so)"
16305 if test "x$have_xext" = xyes; then
16306 a_so_libs="-lXext -lX11"
16312 a_so_libs="$a_so_libs -lcc_dynamic"
16315 if test "x$have_xprelibs" = xyes; then
16316 a_so_libs="-lSM -lICE $a_so_libs"
16318 if test "x$have_xaw" = xyes; then
16319 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16320 elif test "x$have_xaw" = x3d; then
16322 cat >>confdefs.h <<\_ACEOF
16326 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16328 a_so_libs="$ldflags_x_opt $a_so_libs"
16339 if test "x$enable_xaw" = "xdynamic"; then
16340 ENABLE_DYNAMIC_XAW_TRUE=
16341 ENABLE_DYNAMIC_XAW_FALSE='#'
16343 ENABLE_DYNAMIC_XAW_TRUE='#'
16344 ENABLE_DYNAMIC_XAW_FALSE=
16352 ENABLE_XSKIN_FALSE='#'
16354 ENABLE_XSKIN_TRUE='#'
16355 ENABLE_XSKIN_FALSE=
16358 # Check whether --enable-xskin or --disable-xskin was given.
16359 if test "${enable_xskin+set}" = set; then
16360 enableval="$enable_xskin"
16361 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
16362 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16363 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16364 { (exit 1); exit 1; }; }
16368 case "x$enable_xskin" in
16370 cat >> confdefs.h <<EOF
16378 ENABLE_XSKIN_FALSE='#'
16380 ENABLE_XSKIN_TRUE='#'
16381 ENABLE_XSKIN_FALSE=
16384 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16387 dynamic_targets="$dynamic_targets interface_i.\$(so)"
16388 i_so_libs="$ldflags_x_opt -lX11"
16401 ENABLE_GTK_FALSE='#'
16403 ENABLE_GTK_TRUE='#'
16407 # Check whether --enable-gtk or --disable-gtk was given.
16408 if test "${enable_gtk+set}" = set; then
16409 enableval="$enable_gtk"
16410 case "x$enable_gtk" in xyes|xdynamic)
16411 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16412 if test "${with_gtk_prefix+set}" = set; then
16413 withval="$with_gtk_prefix"
16414 gtk_config_prefix="$withval"
16416 gtk_config_prefix=""
16419 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16420 if test "${with_gtk_exec_prefix+set}" = set; then
16421 withval="$with_gtk_exec_prefix"
16422 gtk_config_exec_prefix="$withval"
16424 gtk_config_exec_prefix=""
16426 # Check whether --enable-gtktest or --disable-gtktest was given.
16427 if test "${enable_gtktest+set}" = set; then
16428 enableval="$enable_gtktest"
16438 gtk_config_args="$gtk_config_args gthread"
16443 if test x$gtk_config_exec_prefix != x ; then
16444 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16445 if test x${GTK_CONFIG+set} != xset ; then
16446 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16449 if test x$gtk_config_prefix != x ; then
16450 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16451 if test x${GTK_CONFIG+set} != xset ; then
16452 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16456 # Extract the first word of "gtk-config", so it can be a program name with args.
16457 set dummy gtk-config; ac_word=$2
16458 echo "$as_me:$LINENO: checking for $ac_word" >&5
16459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16460 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 case $GTK_CONFIG in
16465 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16469 for as_dir in $PATH
16472 test -z "$as_dir" && as_dir=.
16473 for ac_exec_ext in '' $ac_executable_extensions; do
16474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16475 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16482 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16486 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16488 if test -n "$GTK_CONFIG"; then
16489 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16490 echo "${ECHO_T}$GTK_CONFIG" >&6
16492 echo "$as_me:$LINENO: result: no" >&5
16493 echo "${ECHO_T}no" >&6
16496 min_gtk_version=1.1.3
16497 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16498 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16500 if test "$GTK_CONFIG" = "no" ; then
16503 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16504 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16505 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16507 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16509 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16510 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16511 if test "x$enable_gtktest" = "xyes" ; then
16512 ac_save_CFLAGS="$CFLAGS"
16513 ac_save_LIBS="$LIBS"
16514 CFLAGS="$CFLAGS $GTK_CFLAGS"
16515 LIBS="$GTK_LIBS $LIBS"
16517 if test "$cross_compiling" = yes; then
16518 echo $ac_n "cross compiling; assumed OK... $ac_c"
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16527 #include <gtk/gtk.h>
16529 #include <stdlib.h>
16534 int major, minor, micro;
16537 system ("touch conf.gtktest");
16539 /* HP/UX 9 (%@#!) writes to sscanf strings */
16540 tmp_version = g_strdup("$min_gtk_version");
16541 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
16542 printf("%s, bad version string\n", "$min_gtk_version");
16546 if ((gtk_major_version != $gtk_config_major_version) ||
16547 (gtk_minor_version != $gtk_config_minor_version) ||
16548 (gtk_micro_version != $gtk_config_micro_version))
16550 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16551 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16552 gtk_major_version, gtk_minor_version, gtk_micro_version);
16553 printf ("*** was found! If gtk-config was correct, then it is best\n");
16554 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16555 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16556 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16557 printf("*** required on your system.\n");
16558 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16559 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16560 printf("*** before re-running configure\n");
16562 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16563 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16564 (gtk_minor_version != GTK_MINOR_VERSION) ||
16565 (gtk_micro_version != GTK_MICRO_VERSION))
16567 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16568 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16569 printf("*** library (version %d.%d.%d)\n",
16570 gtk_major_version, gtk_minor_version, gtk_micro_version);
16572 #endif /* defined (GTK_MAJOR_VERSION) ... */
16575 if ((gtk_major_version > major) ||
16576 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16577 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16583 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16584 gtk_major_version, gtk_minor_version, gtk_micro_version);
16585 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16586 major, minor, micro);
16587 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16589 printf("*** If you have already installed a sufficiently new version, this error\n");
16590 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16591 printf("*** being found. The easiest way to fix this is to remove the old version\n");
16592 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16593 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16594 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16595 printf("*** so that the correct libraries are found at run-time))\n");
16602 rm -f conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16615 echo "$as_me: program exited with status $ac_status" >&5
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ( exit $ac_status )
16622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16624 CFLAGS="$ac_save_CFLAGS"
16625 LIBS="$ac_save_LIBS"
16628 if test "x$no_gtk" = x ; then
16629 echo "$as_me:$LINENO: result: yes" >&5
16630 echo "${ECHO_T}yes" >&6
16633 echo "$as_me:$LINENO: result: no" >&5
16634 echo "${ECHO_T}no" >&6
16635 if test "$GTK_CONFIG" = "no" ; then
16636 echo "*** The gtk-config script installed by GTK could not be found"
16637 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16638 echo "*** your path, or set the GTK_CONFIG environment variable to the"
16639 echo "*** full path to gtk-config."
16641 if test -f conf.gtktest ; then
16644 echo "*** Could not run GTK test program, checking why..."
16645 CFLAGS="$CFLAGS $GTK_CFLAGS"
16646 LIBS="$LIBS $GTK_LIBS"
16647 cat >conftest.$ac_ext <<_ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16654 #include <gtk/gtk.h>
16660 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
16665 rm -f conftest.$ac_objext conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667 (eval $ac_link) 2>conftest.er1
16669 grep -v '^ *+' conftest.er1 >conftest.err
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -z "$ac_c_werror_flag"
16675 || test ! -s conftest.err'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest$ac_exeext'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 echo "*** The test program compiled, but did not run. This usually means"
16688 echo "*** that the run-time linker is not finding GTK or finding the wrong"
16689 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
16690 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16691 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16692 echo "*** is required on your system"
16694 echo "*** If you have an old version installed, it is best to remove it, although"
16695 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16697 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
16698 echo "*** came with the system with the command"
16700 echo "*** rpm --erase --nodeps gtk gtk-devel"
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 echo "*** The test program failed to compile or link. See the file config.log for the"
16706 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
16707 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
16708 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
16710 rm -f conftest.err conftest.$ac_objext \
16711 conftest$ac_exeext conftest.$ac_ext
16712 CFLAGS="$ac_save_CFLAGS"
16713 LIBS="$ac_save_LIBS"
16725 case "x$enable_gtk" in
16727 cat >> confdefs.h <<EOF
16735 ENABLE_GTK_FALSE='#'
16737 ENABLE_GTK_TRUE='#'
16741 LIBS="$LIBS $GTK_LIBS"
16742 for f in $GTK_CFLAGS; do
16744 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
16745 *) CFLAGS="$CPPFLAGS $f" ;;
16749 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
16753 dynamic_targets="$dynamic_targets interface_g.\$(so)"
16754 if test "x$GCC" = xyes; then
16755 for i in $GTK_LIBS; do
16758 *) g_so_libs="$g_so_libs $i" ;;
16762 g_so_libs="$GTK_LIBS"
16764 for f in $GTK_CFLAGS; do
16766 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
16767 *) CFLAGS="$CPPFLAGS $f" ;;
16782 ENABLE_SERVER_TRUE=
16783 ENABLE_SERVER_FALSE='#'
16785 ENABLE_SERVER_TRUE='#'
16786 ENABLE_SERVER_FALSE=
16789 # Check whether --enable-server or --disable-server was given.
16790 if test "${enable_server+set}" = set; then
16791 enableval="$enable_server"
16792 case "x$enable_server" in xyes|xdynamic) ;; esac
16794 case "x$enable_server" in
16796 cat >> confdefs.h <<EOF
16797 #define IA_SERVER 1
16803 ENABLE_SERVER_TRUE=
16804 ENABLE_SERVER_FALSE='#'
16806 ENABLE_SERVER_TRUE='#'
16807 ENABLE_SERVER_FALSE=
16810 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
16812 for ac_header in sys/soundcard.h
16814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16816 echo "$as_me:$LINENO: checking for $ac_header" >&5
16817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16824 # Is the header compilable?
16825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16834 #include <$ac_header>
16836 rm -f conftest.$ac_objext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838 (eval $ac_compile) 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag"
16846 || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_header_compiler=yes
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16863 ac_header_compiler=no
16865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16867 echo "${ECHO_T}$ac_header_compiler" >&6
16869 # Is the header present?
16870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16872 cat >conftest.$ac_ext <<_ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 #include <$ac_header>
16880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16883 grep -v '^ *+' conftest.er1 >conftest.err
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } >/dev/null; then
16888 if test -s conftest.err; then
16889 ac_cpp_err=$ac_c_preproc_warn_flag
16890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16897 if test -z "$ac_cpp_err"; then
16898 ac_header_preproc=yes
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 ac_header_preproc=no
16905 rm -f conftest.err conftest.$ac_ext
16906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16907 echo "${ECHO_T}$ac_header_preproc" >&6
16909 # So? What about this header?
16910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16916 ac_header_preproc=yes
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16933 ## ------------------------------- ##
16934 ## Report this to root@mput.dip.jp ##
16935 ## ------------------------------- ##
16938 sed "s/^/$as_me: WARNING: /" >&2
16941 echo "$as_me:$LINENO: checking for $ac_header" >&5
16942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 eval "$as_ac_Header=\$ac_header_preproc"
16948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16953 cat >>confdefs.h <<_ACEOF
16954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16964 dynamic_targets="$dynamic_targets interface_r.\$(so)"
16977 ENABLE_ALSASEQ_TRUE=
16978 ENABLE_ALSASEQ_FALSE='#'
16980 ENABLE_ALSASEQ_TRUE='#'
16981 ENABLE_ALSASEQ_FALSE=
16984 # Check whether --enable-alsaseq or --disable-alsaseq was given.
16985 if test "${enable_alsaseq+set}" = set; then
16986 enableval="$enable_alsaseq"
16987 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
16989 case "x$enable_alsaseq" in
16991 cat >> confdefs.h <<EOF
16992 #define IA_ALSASEQ 1
16998 ENABLE_ALSASEQ_TRUE=
16999 ENABLE_ALSASEQ_FALSE='#'
17001 ENABLE_ALSASEQ_TRUE='#'
17002 ENABLE_ALSASEQ_FALSE=
17005 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17006 alsa_save_CFLAGS="$CFLAGS"
17007 alsa_save_LDFLAGS="$LDFLAGS"
17008 alsa_save_LIBS="$LIBS"
17012 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17013 if test "${with_alsa_prefix+set}" = set; then
17014 withval="$with_alsa_prefix"
17015 alsa_prefix="$withval"
17021 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17022 if test "${with_alsa_inc_prefix+set}" = set; then
17023 withval="$with_alsa_inc_prefix"
17024 alsa_inc_prefix="$withval"
17029 # Check whether --enable-alsatest or --disable-alsatest was given.
17030 if test "${enable_alsatest+set}" = set; then
17031 enableval="$enable_alsatest"
17034 enable_alsatest=yes
17037 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17038 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17039 if test "$alsa_inc_prefix" != "" ; then
17040 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17041 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17043 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17044 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17046 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17047 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17048 if test "$alsa_prefix" != "" ; then
17049 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17050 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17053 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17054 LIBS=`echo $LIBS | sed 's/-lm//'`
17055 LIBS=`echo $LIBS | sed 's/-ldl//'`
17056 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17057 LIBS=`echo $LIBS | sed 's/ //'`
17058 LIBS="$ALSA_LIBS $LIBS"
17059 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17060 echo "${ECHO_T}$ALSA_LIBS" >&6
17062 min_alsa_version=0.1.1
17063 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17064 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17066 alsa_min_major_version=`echo $min_alsa_version | \
17067 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17068 alsa_min_minor_version=`echo $min_alsa_version | \
17069 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17070 alsa_min_micro_version=`echo $min_alsa_version | \
17071 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17077 ac_cpp='$CPP $CPPFLAGS'
17078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 #include <alsa/asoundlib.h>
17095 /* ensure backward compatibility */
17096 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17097 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17099 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17100 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17102 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17103 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17106 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17109 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17110 # error not present
17113 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17116 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17117 # error not present
17120 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17121 # error not present
17131 rm -f conftest.$ac_objext
17132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17135 grep -v '^ *+' conftest.er1 >conftest.err
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 echo "$as_me:$LINENO: result: found." >&5
17154 echo "${ECHO_T}found." >&6
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17166 #include <sys/asoundlib.h>
17172 /* ensure backward compatibility */
17173 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17174 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17176 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17177 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17179 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17180 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17183 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17186 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17187 # error not present
17190 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17193 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17194 # error not present
17197 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17198 # error not present
17208 rm -f conftest.$ac_objext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210 (eval $ac_compile) 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag"
17218 || test ! -s conftest.err'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest.$ac_objext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 echo "$as_me:$LINENO: result: found." >&5
17231 echo "${ECHO_T}found." >&6
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 echo "$as_me:$LINENO: result: not present." >&5
17237 echo "${ECHO_T}not present." >&6
17238 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17239 echo "${ECHO_T}libasound was not found anywhere." >&6
17242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17243 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17244 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 ac_cpp='$CPP $CPPFLAGS'
17250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17256 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17257 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17258 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 ac_check_lib_save_LIBS=$LIBS
17262 LIBS="-lasound $LIBS"
17263 cat >conftest.$ac_ext <<_ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17270 /* Override any gcc2 internal prototype to avoid an error. */
17274 /* We use char because int might match the return type of a gcc2
17275 builtin and then its argument prototype would still apply. */
17276 char snd_ctl_open ();
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287 (eval $ac_link) 2>conftest.er1
17289 grep -v '^ *+' conftest.er1 >conftest.err
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_lib_asound_snd_ctl_open=yes
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ac_cv_lib_asound_snd_ctl_open=no
17314 rm -f conftest.err conftest.$ac_objext \
17315 conftest$ac_exeext conftest.$ac_ext
17316 LIBS=$ac_check_lib_save_LIBS
17318 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17319 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17320 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17321 cat >>confdefs.h <<_ACEOF
17322 #define HAVE_LIBASOUND 1
17325 LIBS="-lasound $LIBS"
17328 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17329 echo "${ECHO_T}No linkable libasound was found." >&6
17335 if test "x$alsa_found" = "xyes" ; then
17337 LIBS=`echo $LIBS | sed 's/-lasound//g'`
17338 LIBS=`echo $LIBS | sed 's/ //'`
17339 LIBS="-lasound $LIBS"
17342 CFLAGS="$alsa_save_CFLAGS"
17343 LDFLAGS="$alsa_save_LDFLAGS"
17344 LIBS="$alsa_save_LIBS"
17355 dynamic_targets="$dynamic_targets interface_A.\$(so)"
17368 ENABLE_WINSYN_TRUE=
17369 ENABLE_WINSYN_FALSE='#'
17371 ENABLE_WINSYN_TRUE='#'
17372 ENABLE_WINSYN_FALSE=
17375 # Check whether --enable-winsyn or --disable-winsyn was given.
17376 if test "${enable_winsyn+set}" = set; then
17377 enableval="$enable_winsyn"
17378 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
17380 case "x$enable_winsyn" in
17382 cat >> confdefs.h <<EOF
17383 #define IA_WINSYN 1
17389 ENABLE_WINSYN_TRUE=
17390 ENABLE_WINSYN_FALSE='#'
17392 ENABLE_WINSYN_TRUE='#'
17393 ENABLE_WINSYN_FALSE=
17396 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17399 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17412 ENABLE_PORTMIDISYN_TRUE=
17413 ENABLE_PORTMIDISYN_FALSE='#'
17415 ENABLE_PORTMIDISYN_TRUE='#'
17416 ENABLE_PORTMIDISYN_FALSE=
17419 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17420 if test "${enable_portmidisyn+set}" = set; then
17421 enableval="$enable_portmidisyn"
17422 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
17424 case "x$enable_portmidisyn" in
17426 cat >> confdefs.h <<EOF
17427 #define IA_PORTMIDISYN 1
17433 ENABLE_PORTMIDISYN_TRUE=
17434 ENABLE_PORTMIDISYN_FALSE='#'
17436 ENABLE_PORTMIDISYN_TRUE='#'
17437 ENABLE_PORTMIDISYN_FALSE=
17440 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17443 dynamic_targets="$dynamic_targets interface_P.\$(so)"
17456 ENABLE_W32G_SYN_TRUE=
17457 ENABLE_W32G_SYN_FALSE='#'
17459 ENABLE_W32G_SYN_TRUE='#'
17460 ENABLE_W32G_SYN_FALSE=
17463 # Check whether --enable-winsyng or --disable-winsyng was given.
17464 if test "${enable_winsyng+set}" = set; then
17465 enableval="$enable_winsyng"
17466 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
17468 case "x$enable_winsyng" in
17470 cat >> confdefs.h <<EOF
17471 #define IA_W32G_SYN 1
17477 ENABLE_W32G_SYN_TRUE=
17478 ENABLE_W32G_SYN_FALSE='#'
17480 ENABLE_W32G_SYN_TRUE='#'
17481 ENABLE_W32G_SYN_FALSE=
17484 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17485 lib_user32_opt='-luser32'
17486 LDFLAGS="-mwindows $LDFLAGS"
17487 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17491 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17505 ENABLE_W32GUI_TRUE=
17506 ENABLE_W32GUI_FALSE='#'
17508 ENABLE_W32GUI_TRUE='#'
17509 ENABLE_W32GUI_FALSE=
17512 # Check whether --enable-w32gui or --disable-w32gui was given.
17513 if test "${enable_w32gui+set}" = set; then
17514 enableval="$enable_w32gui"
17515 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
17517 case "x$enable_w32gui" in
17519 cat >> confdefs.h <<EOF
17520 #define IA_W32GUI 1
17526 ENABLE_W32GUI_TRUE=
17527 ENABLE_W32GUI_FALSE='#'
17529 ENABLE_W32GUI_TRUE='#'
17530 ENABLE_W32GUI_FALSE=
17533 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17534 lib_user32_opt='-luser32'
17535 LDFLAGS="-mwindows $LDFLAGS"
17536 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
17540 dynamic_targets="$dynamic_targets interface_w.\$(so)"
17553 ENABLE_PLUGIN_TRUE=
17554 ENABLE_PLUGIN_FALSE='#'
17556 ENABLE_PLUGIN_TRUE='#'
17557 ENABLE_PLUGIN_FALSE=
17560 # Check whether --enable-ump or --disable-ump was given.
17561 if test "${enable_ump+set}" = set; then
17562 enableval="$enable_ump"
17563 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
17564 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
17565 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
17566 { (exit 1); exit 1; }; }
17568 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17569 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17570 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17571 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17575 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17577 # Is the header compilable?
17578 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17579 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17580 cat >conftest.$ac_ext <<_ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 $ac_includes_default
17587 #include <X11/xpm.h>
17589 rm -f conftest.$ac_objext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17591 (eval $ac_compile) 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -z "$ac_c_werror_flag"
17599 || test ! -s conftest.err'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest.$ac_objext'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 ac_header_compiler=yes
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 ac_header_compiler=no
17618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17620 echo "${ECHO_T}$ac_header_compiler" >&6
17622 # Is the header present?
17623 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17624 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 #include <X11/xpm.h>
17633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17636 grep -v '^ *+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } >/dev/null; then
17641 if test -s conftest.err; then
17642 ac_cpp_err=$ac_c_preproc_warn_flag
17643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17650 if test -z "$ac_cpp_err"; then
17651 ac_header_preproc=yes
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_header_preproc=no
17658 rm -f conftest.err conftest.$ac_ext
17659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17660 echo "${ECHO_T}$ac_header_preproc" >&6
17662 # So? What about this header?
17663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17665 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17666 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17667 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
17668 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
17669 ac_header_preproc=yes
17672 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
17673 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
17674 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
17675 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
17676 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
17677 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
17678 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
17679 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17680 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
17681 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
17682 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
17683 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
17686 ## ------------------------------- ##
17687 ## Report this to root@mput.dip.jp ##
17688 ## ------------------------------- ##
17691 sed "s/^/$as_me: WARNING: /" >&2
17694 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17695 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17696 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 ac_cv_header_X11_xpm_h=$ac_header_preproc
17701 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17702 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17705 if test $ac_cv_header_X11_xpm_h = yes; then
17708 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
17709 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
17710 { (exit 1); exit 1; }; }
17714 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17715 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
17716 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 ac_check_lib_save_LIBS=$LIBS
17721 cat >conftest.$ac_ext <<_ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17728 /* Override any gcc2 internal prototype to avoid an error. */
17732 /* We use char because int might match the return type of a gcc2
17733 builtin and then its argument prototype would still apply. */
17734 char XpmCreatePixmapFromData ();
17738 XpmCreatePixmapFromData ();
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745 (eval $ac_link) 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_c_werror_flag"
17753 || test ! -s conftest.err'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; } &&
17759 { ac_try='test -s conftest$ac_exeext'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17772 rm -f conftest.err conftest.$ac_objext \
17773 conftest$ac_exeext conftest.$ac_ext
17774 LIBS=$ac_check_lib_save_LIBS
17776 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17777 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
17778 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17781 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
17782 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
17783 { (exit 1); exit 1; }; }
17786 if test "x$have_xext" = xyes; then
17787 lib_xext_opt=-lXext
17789 if test "x$have_xprelibs" = xyes; then
17790 lib_xprelibs_opt='-lSM -lICE'
17796 case "x$enable_ump" in
17798 cat >> confdefs.h <<EOF
17799 #define IA_PLUGIN 1
17805 ENABLE_PLUGIN_TRUE=
17806 ENABLE_PLUGIN_FALSE='#'
17808 ENABLE_PLUGIN_TRUE='#'
17809 ENABLE_PLUGIN_FALSE=
17815 dynamic_targets="$dynamic_targets interface_p.\$(so)"
17826 # Check whether --enable-offix or --disable-offix was given.
17827 if test "${enable_offix+set}" = set; then
17828 enableval="$enable_offix"
17829 if test "$enableval" = "yes"; then
17830 KEEPCPPFLAGS=$CPPFLAGS
17832 KEEPLDFLAGS=$LDFLAGS
17833 CPPFLAGS="$CPPFLAGS $offix_include_dir"
17834 LDFLAGS="$LDFLAGS $offix_lib_dir"
17835 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
17836 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
17837 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
17838 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 ac_check_lib_save_LIBS=$LIBS
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17850 /* Override any gcc2 internal prototype to avoid an error. */
17854 /* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17856 char DndInitialize ();
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_Dnd_DndInitialize=yes
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17892 ac_cv_lib_Dnd_DndInitialize=no
17894 rm -f conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
17899 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
17900 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
17903 lib_offix_opt="-lDnd"
17905 cat >>confdefs.h <<\_ACEOF
17911 LDFLAGS=$KEEPLDFLAGS
17912 CPPFLAGS=$KEEPCPPFLAGS
17921 # Check whether --enable-network or --disable-network was given.
17922 if test "${enable_network+set}" = set; then
17923 enableval="$enable_network"
17924 if test "$enableval" = "yes"; then
17926 cat >>confdefs.h <<\_ACEOF
17927 #define SUPPORT_SOCKET 1
17934 if test "x$enable_network" = "xyes"; then
17935 ENABLE_NETWORK_TRUE=
17936 ENABLE_NETWORK_FALSE='#'
17938 ENABLE_NETWORK_TRUE='#'
17939 ENABLE_NETWORK_FALSE=
17943 # Check whether --enable-spectrogram or --disable-spectrogram was given.
17944 if test "${enable_spectrogram+set}" = set; then
17945 enableval="$enable_spectrogram"
17946 if test "$enableval" = "yes"; then
17947 if test "x$with_x" != xyes; then
17948 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
17949 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
17950 { (exit 1); exit 1; }; }
17953 cat >>confdefs.h <<\_ACEOF
17954 #define SUPPORT_SOUNDSPEC 1
17961 if test "x$enable_spectrogram" = "xyes"; then
17962 ENABLE_SOUND_SPEC_TRUE=
17963 ENABLE_SOUND_SPEC_FALSE='#'
17965 ENABLE_SOUND_SPEC_TRUE='#'
17966 ENABLE_SOUND_SPEC_FALSE=
17970 # Check whether --enable-spline or --disable-spline was given.
17971 if test "${enable_spline+set}" = set; then
17972 enableval="$enable_spline"
17973 case "x$enableval" in
17976 cat >>confdefs.h <<\_ACEOF
17977 #define LINEAR_INTERPOLATION 1
17983 cat >>confdefs.h <<\_ACEOF
17984 #define CSPLINE_INTERPOLATION 1
17990 cat >>confdefs.h <<\_ACEOF
17991 #define LAGRANGE_INTERPOLATION 1
17997 cat >>confdefs.h <<\_ACEOF
17998 #define NEWTON_INTERPOLATION 1
18004 cat >>confdefs.h <<\_ACEOF
18005 #define GAUSS_INTERPOLATION 1
18011 cat >>confdefs.h <<\_ACEOF
18012 #define NO_INTERPOLATION 1
18017 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18018 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18019 { (exit 1); exit 1; }; }
18024 # Check whether --enable-wrd or --disable-wrd was given.
18025 if test "${enable_wrd+set}" = set; then
18026 enableval="$enable_wrd"
18027 if test "$enableval" = "yes"; then
18028 if test "x$with_x" != xyes; then
18029 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18030 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18031 { (exit 1); exit 1; }; }
18034 cat >>confdefs.h <<\_ACEOF
18038 enable_sherry_wrd=yes
18039 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18040 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18041 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 ac_check_lib_save_LIBS=$LIBS
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18053 /* Override any gcc2 internal prototype to avoid an error. */
18057 /* We use char because int might match the return type of a gcc2
18058 builtin and then its argument prototype would still apply. */
18059 char zlibVersion ();
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070 (eval $ac_link) 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag"
18078 || test ! -s conftest.err'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 ac_cv_lib_z_zlibVersion=yes
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 ac_cv_lib_z_zlibVersion=no
18097 rm -f conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
18099 LIBS=$ac_check_lib_save_LIBS
18101 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18102 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18103 if test $ac_cv_lib_z_zlibVersion = yes; then
18106 enable_sherry_wrd=no
18109 if test "${ac_cv_header_png_h+set}" = set; then
18110 echo "$as_me:$LINENO: checking for png.h" >&5
18111 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18112 if test "${ac_cv_header_png_h+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18116 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18118 # Is the header compilable?
18119 echo "$as_me:$LINENO: checking png.h usability" >&5
18120 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 $ac_includes_default
18130 rm -f conftest.$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132 (eval $ac_compile) 2>conftest.er1
18134 grep -v '^ *+' conftest.er1 >conftest.err
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -z "$ac_c_werror_flag"
18140 || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_header_compiler=yes
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 ac_header_compiler=no
18159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18161 echo "${ECHO_T}$ac_header_compiler" >&6
18163 # Is the header present?
18164 echo "$as_me:$LINENO: checking png.h presence" >&5
18165 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18166 cat >conftest.$ac_ext <<_ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18177 grep -v '^ *+' conftest.er1 >conftest.err
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } >/dev/null; then
18182 if test -s conftest.err; then
18183 ac_cpp_err=$ac_c_preproc_warn_flag
18184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18191 if test -z "$ac_cpp_err"; then
18192 ac_header_preproc=yes
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_header_preproc=no
18199 rm -f conftest.err conftest.$ac_ext
18200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18201 echo "${ECHO_T}$ac_header_preproc" >&6
18203 # So? What about this header?
18204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18206 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18207 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18209 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18210 ac_header_preproc=yes
18213 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18214 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18216 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18217 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18218 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18219 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
18220 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18222 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18224 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18227 ## ------------------------------- ##
18228 ## Report this to root@mput.dip.jp ##
18229 ## ------------------------------- ##
18232 sed "s/^/$as_me: WARNING: /" >&2
18235 echo "$as_me:$LINENO: checking for png.h" >&5
18236 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18237 if test "${ac_cv_header_png_h+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 ac_cv_header_png_h=$ac_header_preproc
18242 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18243 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18246 if test $ac_cv_header_png_h = yes; then
18249 enable_sherry_wrd=no
18253 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18254 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18255 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 ac_check_lib_save_LIBS=$LIBS
18259 LIBS="-lpng -lz $LIBS"
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18267 /* Override any gcc2 internal prototype to avoid an error. */
18271 /* We use char because int might match the return type of a gcc2
18272 builtin and then its argument prototype would still apply. */
18273 char png_init_io ();
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18284 (eval $ac_link) 2>conftest.er1
18286 grep -v '^ *+' conftest.er1 >conftest.err
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest$ac_exeext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_cv_lib_png_png_init_io=yes
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 ac_cv_lib_png_png_init_io=no
18311 rm -f conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18315 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18316 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18317 if test $ac_cv_lib_png_png_init_io = yes; then
18320 enable_sherry_wrd=no
18323 if test "$enable_sherry_wrd" = yes; then
18325 cat >>confdefs.h <<\_ACEOF
18326 #define ENABLE_SHERRY 1
18332 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18333 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18335 if test "x$have_xext" = xyes; then
18336 lib_xext_opt=-lXext
18349 if test "x$enable_wrd" = "xyes"; then
18351 ENABLE_WRD_FALSE='#'
18353 ENABLE_WRD_TRUE='#'
18360 if test "x$CYGNUS" = xyes; then
18370 if test "x$MINGW" = xyes; then
18380 if test "x$W32READDIR" = "xyes"; then
18382 W32READDIR_FALSE='#'
18384 W32READDIR_TRUE='#'
18389 rm -f wordtmp >/dev/null 2>&1
18391 for f in $LDFLAGS; do
18392 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18395 echo $f >>wordtmp; val="$val $f"
18400 rm -f wordtmp >/dev/null 2>&1
18402 rm -f wordtmp >/dev/null 2>&1
18404 for f in $SHLDFLAGS; do
18405 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18408 echo $f >>wordtmp; val="$val $f"
18413 rm -f wordtmp >/dev/null 2>&1
18415 rm -f wordtmp >/dev/null 2>&1
18417 for f in $EXTRACFLAGS $CFLAGS; do
18418 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18421 echo $f >>wordtmp; val="$val $f"
18426 rm -f wordtmp >/dev/null 2>&1
18428 rm -f wordtmp >/dev/null 2>&1
18430 for f in $CPPFLAGS $EXTRADEFS; do
18431 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18434 echo $f >>wordtmp; val="$val $f"
18439 rm -f wordtmp >/dev/null 2>&1
18442 if test "x$oss_device" != x; then
18444 cat >>confdefs.h <<_ACEOF
18445 #define OSS_DEVICE "$oss_device"
18450 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18452 cat >>confdefs.h <<_ACEOF
18453 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18458 if test "x$with_x" = xyes; then
18459 LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
18461 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18462 SHLD="$SHLD $SHLDFLAGS"
18482 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
18484 cat >confcache <<\_ACEOF
18485 # This file is a shell script that caches the results of configure
18486 # tests run on this system so they can be shared between configure
18487 # scripts and configure runs, see configure's option --config-cache.
18488 # It is not useful on other systems. If it contains results you don't
18489 # want to keep, you may remove or edit it.
18491 # config.status only pays attention to the cache file if you give it
18492 # the --recheck option to rerun configure.
18494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18496 # following values.
18500 # The following way of writing the cache mishandles newlines in values,
18501 # but we know of no workaround that is simple, portable, and efficient.
18502 # So, don't put newlines in cache variables' values.
18503 # Ultrix sh set writes to stderr and can't be redirected directly,
18504 # and sets the high bit in the cache file unless we assign to the vars.
18507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18509 # `set' does not quote correctly, so add quotes (double-quote
18510 # substitution turns \\\\ into \\, and sed turns \\ into \).
18513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18516 # `set' quotes correctly as required by POSIX, so do not add quotes.
18518 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18527 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18529 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18530 if test -w $cache_file; then
18531 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18532 cat confcache >$cache_file
18534 echo "not updating unwritable cache $cache_file"
18539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18540 # Let make expand exec_prefix.
18541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18545 # trailing colons and then remove the whole line if VPATH becomes empty
18546 # (actually we leave an empty line to preserve line numbers).
18547 if test "x$srcdir" = x.; then
18548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18549 s/:*\$(srcdir):*/:/;
18550 s/:*\${srcdir}:*/:/;
18552 s/^\([^=]*=[ ]*\):*/\1/;
18558 DEFS=-DHAVE_CONFIG_H
18562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18563 # 1. Remove the extension, and $U if already installed.
18564 ac_i=`echo "$ac_i" |
18565 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18567 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18568 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18570 LIBOBJS=$ac_libobjs
18572 LTLIBOBJS=$ac_ltlibobjs
18575 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18576 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18577 Usually this means the macro was only invoked conditionally." >&5
18578 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18579 Usually this means the macro was only invoked conditionally." >&2;}
18580 { (exit 1); exit 1; }; }
18582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18583 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18584 Usually this means the macro was only invoked conditionally." >&5
18585 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18586 Usually this means the macro was only invoked conditionally." >&2;}
18587 { (exit 1); exit 1; }; }
18589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18590 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18591 Usually this means the macro was only invoked conditionally." >&5
18592 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18593 Usually this means the macro was only invoked conditionally." >&2;}
18594 { (exit 1); exit 1; }; }
18596 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18597 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18598 Usually this means the macro was only invoked conditionally." >&5
18599 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18600 Usually this means the macro was only invoked conditionally." >&2;}
18601 { (exit 1); exit 1; }; }
18603 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18604 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18605 Usually this means the macro was only invoked conditionally." >&5
18606 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18607 Usually this means the macro was only invoked conditionally." >&2;}
18608 { (exit 1); exit 1; }; }
18610 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18611 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18612 Usually this means the macro was only invoked conditionally." >&5
18613 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18614 Usually this means the macro was only invoked conditionally." >&2;}
18615 { (exit 1); exit 1; }; }
18617 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18618 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18619 Usually this means the macro was only invoked conditionally." >&5
18620 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18621 Usually this means the macro was only invoked conditionally." >&2;}
18622 { (exit 1); exit 1; }; }
18624 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18625 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18626 Usually this means the macro was only invoked conditionally." >&5
18627 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18628 Usually this means the macro was only invoked conditionally." >&2;}
18629 { (exit 1); exit 1; }; }
18631 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18632 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18633 Usually this means the macro was only invoked conditionally." >&5
18634 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18635 Usually this means the macro was only invoked conditionally." >&2;}
18636 { (exit 1); exit 1; }; }
18638 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18639 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18640 Usually this means the macro was only invoked conditionally." >&5
18641 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18642 Usually this means the macro was only invoked conditionally." >&2;}
18643 { (exit 1); exit 1; }; }
18645 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18646 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18647 Usually this means the macro was only invoked conditionally." >&5
18648 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18649 Usually this means the macro was only invoked conditionally." >&2;}
18650 { (exit 1); exit 1; }; }
18652 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18653 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18654 Usually this means the macro was only invoked conditionally." >&5
18655 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18656 Usually this means the macro was only invoked conditionally." >&2;}
18657 { (exit 1); exit 1; }; }
18659 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18660 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18661 Usually this means the macro was only invoked conditionally." >&5
18662 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18663 Usually this means the macro was only invoked conditionally." >&2;}
18664 { (exit 1); exit 1; }; }
18666 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
18667 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18668 Usually this means the macro was only invoked conditionally." >&5
18669 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18670 Usually this means the macro was only invoked conditionally." >&2;}
18671 { (exit 1); exit 1; }; }
18673 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18674 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18675 Usually this means the macro was only invoked conditionally." >&5
18676 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18677 Usually this means the macro was only invoked conditionally." >&2;}
18678 { (exit 1); exit 1; }; }
18680 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18681 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18682 Usually this means the macro was only invoked conditionally." >&5
18683 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18684 Usually this means the macro was only invoked conditionally." >&2;}
18685 { (exit 1); exit 1; }; }
18687 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18688 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18689 Usually this means the macro was only invoked conditionally." >&5
18690 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18691 Usually this means the macro was only invoked conditionally." >&2;}
18692 { (exit 1); exit 1; }; }
18694 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18695 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18696 Usually this means the macro was only invoked conditionally." >&5
18697 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18698 Usually this means the macro was only invoked conditionally." >&2;}
18699 { (exit 1); exit 1; }; }
18701 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18702 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18703 Usually this means the macro was only invoked conditionally." >&5
18704 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18705 Usually this means the macro was only invoked conditionally." >&2;}
18706 { (exit 1); exit 1; }; }
18708 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18709 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18710 Usually this means the macro was only invoked conditionally." >&5
18711 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18712 Usually this means the macro was only invoked conditionally." >&2;}
18713 { (exit 1); exit 1; }; }
18715 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
18716 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18717 Usually this means the macro was only invoked conditionally." >&5
18718 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18719 Usually this means the macro was only invoked conditionally." >&2;}
18720 { (exit 1); exit 1; }; }
18722 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18723 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18724 Usually this means the macro was only invoked conditionally." >&5
18725 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18726 Usually this means the macro was only invoked conditionally." >&2;}
18727 { (exit 1); exit 1; }; }
18729 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18730 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18731 Usually this means the macro was only invoked conditionally." >&5
18732 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18733 Usually this means the macro was only invoked conditionally." >&2;}
18734 { (exit 1); exit 1; }; }
18736 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18737 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18738 Usually this means the macro was only invoked conditionally." >&5
18739 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18740 Usually this means the macro was only invoked conditionally." >&2;}
18741 { (exit 1); exit 1; }; }
18743 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18744 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18745 Usually this means the macro was only invoked conditionally." >&5
18746 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18747 Usually this means the macro was only invoked conditionally." >&2;}
18748 { (exit 1); exit 1; }; }
18750 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18751 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18752 Usually this means the macro was only invoked conditionally." >&5
18753 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18754 Usually this means the macro was only invoked conditionally." >&2;}
18755 { (exit 1); exit 1; }; }
18757 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18758 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18759 Usually this means the macro was only invoked conditionally." >&5
18760 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18761 Usually this means the macro was only invoked conditionally." >&2;}
18762 { (exit 1); exit 1; }; }
18764 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18765 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18766 Usually this means the macro was only invoked conditionally." >&5
18767 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18768 Usually this means the macro was only invoked conditionally." >&2;}
18769 { (exit 1); exit 1; }; }
18771 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18772 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18773 Usually this means the macro was only invoked conditionally." >&5
18774 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18775 Usually this means the macro was only invoked conditionally." >&2;}
18776 { (exit 1); exit 1; }; }
18778 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18779 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18780 Usually this means the macro was only invoked conditionally." >&5
18781 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18782 Usually this means the macro was only invoked conditionally." >&2;}
18783 { (exit 1); exit 1; }; }
18785 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18786 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18787 Usually this means the macro was only invoked conditionally." >&5
18788 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18789 Usually this means the macro was only invoked conditionally." >&2;}
18790 { (exit 1); exit 1; }; }
18792 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18793 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18794 Usually this means the macro was only invoked conditionally." >&5
18795 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18796 Usually this means the macro was only invoked conditionally." >&2;}
18797 { (exit 1); exit 1; }; }
18799 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18800 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18801 Usually this means the macro was only invoked conditionally." >&5
18802 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18803 Usually this means the macro was only invoked conditionally." >&2;}
18804 { (exit 1); exit 1; }; }
18806 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18807 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18808 Usually this means the macro was only invoked conditionally." >&5
18809 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18810 Usually this means the macro was only invoked conditionally." >&2;}
18811 { (exit 1); exit 1; }; }
18813 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18814 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18815 Usually this means the macro was only invoked conditionally." >&5
18816 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18817 Usually this means the macro was only invoked conditionally." >&2;}
18818 { (exit 1); exit 1; }; }
18820 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18821 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18822 Usually this means the macro was only invoked conditionally." >&5
18823 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18824 Usually this means the macro was only invoked conditionally." >&2;}
18825 { (exit 1); exit 1; }; }
18827 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18828 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18829 Usually this means the macro was only invoked conditionally." >&5
18830 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18831 Usually this means the macro was only invoked conditionally." >&2;}
18832 { (exit 1); exit 1; }; }
18834 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18835 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18836 Usually this means the macro was only invoked conditionally." >&5
18837 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18838 Usually this means the macro was only invoked conditionally." >&2;}
18839 { (exit 1); exit 1; }; }
18841 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18842 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18843 Usually this means the macro was only invoked conditionally." >&5
18844 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18845 Usually this means the macro was only invoked conditionally." >&2;}
18846 { (exit 1); exit 1; }; }
18848 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
18849 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
18850 Usually this means the macro was only invoked conditionally." >&5
18851 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
18852 Usually this means the macro was only invoked conditionally." >&2;}
18853 { (exit 1); exit 1; }; }
18855 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
18856 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18857 Usually this means the macro was only invoked conditionally." >&5
18858 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18859 Usually this means the macro was only invoked conditionally." >&2;}
18860 { (exit 1); exit 1; }; }
18862 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
18863 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
18864 Usually this means the macro was only invoked conditionally." >&5
18865 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
18866 Usually this means the macro was only invoked conditionally." >&2;}
18867 { (exit 1); exit 1; }; }
18869 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
18870 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
18871 Usually this means the macro was only invoked conditionally." >&5
18872 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
18873 Usually this means the macro was only invoked conditionally." >&2;}
18874 { (exit 1); exit 1; }; }
18876 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18877 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
18878 Usually this means the macro was only invoked conditionally." >&5
18879 echo "$as_me: error: conditional \"MINGW\" was never defined.
18880 Usually this means the macro was only invoked conditionally." >&2;}
18881 { (exit 1); exit 1; }; }
18883 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
18884 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
18885 Usually this means the macro was only invoked conditionally." >&5
18886 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
18887 Usually this means the macro was only invoked conditionally." >&2;}
18888 { (exit 1); exit 1; }; }
18891 : ${CONFIG_STATUS=./config.status}
18892 ac_clean_files_save=$ac_clean_files
18893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18894 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18895 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18896 cat >$CONFIG_STATUS <<_ACEOF
18898 # Generated by $as_me.
18899 # Run this file to recreate the current configuration.
18900 # Compiler output produced by configure, useful for debugging
18901 # configure, is in config.log if it exists.
18904 ac_cs_recheck=false
18906 SHELL=\${CONFIG_SHELL-$SHELL}
18909 cat >>$CONFIG_STATUS <<\_ACEOF
18910 ## --------------------- ##
18911 ## M4sh Initialization. ##
18912 ## --------------------- ##
18914 # Be Bourne compatible
18915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18919 # is contrary to our usage. Disable this feature.
18920 alias -g '${1+"$@"}'='"$@"'
18921 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18924 DUALCASE=1; export DUALCASE # for MKS sh
18926 # Support unset when possible.
18927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18934 # Work around bugs in pre-3.0 UWIN ksh.
18935 $as_unset ENV MAIL MAILPATH
18942 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18943 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18944 LC_TELEPHONE LC_TIME
18946 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18947 eval $as_var=C; export $as_var
18953 # Required to use basename.
18954 if expr a : '\(a\)' >/dev/null 2>&1; then
18960 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18961 as_basename=basename
18967 # Name of the executable.
18968 as_me=`$as_basename "$0" ||
18969 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18970 X"$0" : 'X\(//\)$' \| \
18971 X"$0" : 'X\(/\)$' \| \
18972 . : '\(.\)' 2>/dev/null ||
18974 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18975 /^X\/\(\/\/\)$/{ s//\1/; q; }
18976 /^X\/\(\/\).*/{ s//\1/; q; }
18980 # PATH needs CR, and LINENO needs CR and PATH.
18981 # Avoid depending upon Character Ranges.
18982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18985 as_cr_digits='0123456789'
18986 as_cr_alnum=$as_cr_Letters$as_cr_digits
18988 # The user is always right.
18989 if test "${PATH_SEPARATOR+set}" != set; then
18990 echo "#! /bin/sh" >conf$$.sh
18991 echo "exit 0" >>conf$$.sh
18993 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19002 as_lineno_1=$LINENO
19003 as_lineno_2=$LINENO
19004 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19005 test "x$as_lineno_1" != "x$as_lineno_2" &&
19006 test "x$as_lineno_3" = "x$as_lineno_2" || {
19007 # Find who we are. Look in the path if we contain no path at all
19010 *[\\/]* ) as_myself=$0 ;;
19011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19012 for as_dir in $PATH
19015 test -z "$as_dir" && as_dir=.
19016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19021 # We did not find ourselves, most probably we were run as `sh COMMAND'
19022 # in which case we are not to be found in the path.
19023 if test "x$as_myself" = x; then
19026 if test ! -f "$as_myself"; then
19027 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19028 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19029 { (exit 1); exit 1; }; }
19031 case $CONFIG_SHELL in
19033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19037 test -z "$as_dir" && as_dir=.
19038 for as_base in sh bash ksh sh5; do
19041 if ("$as_dir/$as_base" -c '
19042 as_lineno_1=$LINENO
19043 as_lineno_2=$LINENO
19044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19045 test "x$as_lineno_1" != "x$as_lineno_2" &&
19046 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19047 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19048 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19049 CONFIG_SHELL=$as_dir/$as_base
19050 export CONFIG_SHELL
19051 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19059 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19060 # uniformly replaced by the line number. The first 'sed' inserts a
19061 # line-number line before each line; the second 'sed' does the real
19062 # work. The second script uses 'N' to pair each line-number line
19063 # with the numbered line, and appends trailing '-' during
19064 # substitution so that $LINENO is not a special case at line end.
19065 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19066 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19067 sed '=' <$as_myself |
19072 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19075 s,^['$as_cr_digits']*\n,,
19076 ' >$as_me.lineno &&
19077 chmod +x $as_me.lineno ||
19078 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19079 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19080 { (exit 1); exit 1; }; }
19082 # Don't try to exec as it changes $[0], causing all sort of problems
19083 # (the dirname of $[0] is not the place where we might find the
19084 # original and so on. Autoconf is especially sensible to this).
19086 # Exit status is that of the last command.
19091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19092 *c*,-n*) ECHO_N= ECHO_C='
19094 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19095 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19098 if expr a : '\(a\)' >/dev/null 2>&1; then
19104 rm -f conf$$ conf$$.exe conf$$.file
19106 if ln -s conf$$.file conf$$ 2>/dev/null; then
19107 # We could just check for DJGPP; but this test a) works b) is more generic
19108 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19109 if test -f conf$$.exe; then
19110 # Don't use ln at all; we don't have any links
19115 elif ln conf$$.file conf$$ 2>/dev/null; then
19120 rm -f conf$$ conf$$.exe conf$$.file
19122 if mkdir -p . 2>/dev/null; then
19125 test -d ./-p && rmdir ./-p
19129 as_executable_p="test -f"
19131 # Sed expression to map a string onto a valid CPP name.
19132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19134 # Sed expression to map a string onto a valid variable name.
19135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19139 # We need space, tab and new line, in precisely that order.
19149 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19150 # report actual input values of CONFIG_FILES etc. instead of their
19151 # values after options handling. Logging --version etc. is OK.
19155 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19156 ## Running $as_me. ##
19161 This file was extended by TiMidity++ $as_me current, which was
19162 generated by GNU Autoconf 2.59. Invocation command line was
19164 CONFIG_FILES = $CONFIG_FILES
19165 CONFIG_HEADERS = $CONFIG_HEADERS
19166 CONFIG_LINKS = $CONFIG_LINKS
19167 CONFIG_COMMANDS = $CONFIG_COMMANDS
19171 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19175 # Files that config.status was made for.
19176 if test -n "$ac_config_files"; then
19177 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19180 if test -n "$ac_config_headers"; then
19181 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19184 if test -n "$ac_config_links"; then
19185 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19188 if test -n "$ac_config_commands"; then
19189 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19192 cat >>$CONFIG_STATUS <<\_ACEOF
19195 \`$as_me' instantiates files from templates according to the
19196 current configuration.
19198 Usage: $0 [OPTIONS] [FILE]...
19200 -h, --help print this help, then exit
19201 -V, --version print version number, then exit
19202 -q, --quiet do not print progress messages
19203 -d, --debug don't remove temporary files
19204 --recheck update $as_me by reconfiguring in the same conditions
19205 --file=FILE[:TEMPLATE]
19206 instantiate the configuration file FILE
19207 --header=FILE[:TEMPLATE]
19208 instantiate the configuration header FILE
19210 Configuration files:
19213 Configuration headers:
19216 Configuration commands:
19219 Report bugs to <bug-autoconf@gnu.org>."
19222 cat >>$CONFIG_STATUS <<_ACEOF
19224 TiMidity++ config.status current
19225 configured by $0, generated by GNU Autoconf 2.59,
19226 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19228 Copyright (C) 2003 Free Software Foundation, Inc.
19229 This config.status script is free software; the Free Software Foundation
19230 gives unlimited permission to copy, distribute and modify it."
19235 cat >>$CONFIG_STATUS <<\_ACEOF
19236 # If no file are specified by the user, then we need to provide default
19237 # value. By we need to know if files were specified by the user.
19243 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19244 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19252 *) # This is not an option, so the user has probably given explicit
19255 ac_need_defaults=false;;
19259 # Handling of the options.
19261 cat >>$CONFIG_STATUS <<\_ACEOF
19262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19264 --version | --vers* | -V )
19265 echo "$ac_cs_version"; exit 0 ;;
19267 # Conflict between --help and --header
19268 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19269 Try \`$0 --help' for more information." >&5
19270 echo "$as_me: error: ambiguous option: $1
19271 Try \`$0 --help' for more information." >&2;}
19272 { (exit 1); exit 1; }; };;
19273 --help | --hel | -h )
19274 echo "$ac_cs_usage"; exit 0 ;;
19275 --debug | --d* | -d )
19277 --file | --fil | --fi | --f )
19279 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19280 ac_need_defaults=false;;
19281 --header | --heade | --head | --hea )
19283 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19284 ac_need_defaults=false;;
19285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19286 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19289 # This is an error.
19290 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19291 Try \`$0 --help' for more information." >&5
19292 echo "$as_me: error: unrecognized option: $1
19293 Try \`$0 --help' for more information." >&2;}
19294 { (exit 1); exit 1; }; } ;;
19296 *) ac_config_targets="$ac_config_targets $1" ;;
19302 ac_configure_extra_args=
19304 if $ac_cs_silent; then
19306 ac_configure_extra_args="$ac_configure_extra_args --silent"
19310 cat >>$CONFIG_STATUS <<_ACEOF
19311 if \$ac_cs_recheck; then
19312 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19313 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19318 cat >>$CONFIG_STATUS <<_ACEOF
19320 # INIT-COMMANDS section.
19323 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19329 cat >>$CONFIG_STATUS <<\_ACEOF
19330 for ac_config_target in $ac_config_targets
19332 case "$ac_config_target" in
19333 # Handling of arguments.
19334 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19335 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19336 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19337 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19338 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19339 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19340 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19341 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19342 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19343 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19344 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19345 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19346 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19347 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19348 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19349 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19350 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19351 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19352 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19353 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19354 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19355 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19356 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19357 { (exit 1); exit 1; }; };;
19361 # If the user did not use the arguments to specify the items to instantiate,
19362 # then the envvar interface is used. Set only those that are not.
19363 # We use the long form for the default assignment because of an extremely
19364 # bizarre bug on SunOS 4.1.3.
19365 if $ac_need_defaults; then
19366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19368 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19371 # Have a temporary directory for convenience. Make it in the build tree
19372 # simply because there is no reason to put it here, and in addition,
19373 # creating and moving files from /tmp can sometimes cause problems.
19374 # Create a temporary directory, and hook for its removal unless debugging.
19377 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19378 trap '{ (exit 1); exit 1; }' 1 2 13 15
19381 # Create a (secure) tmp directory for tmp files.
19384 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19385 test -n "$tmp" && test -d "$tmp"
19388 tmp=./confstat$$-$RANDOM
19389 (umask 077 && mkdir $tmp)
19392 echo "$me: cannot create a temporary directory in ." >&2
19393 { (exit 1); exit 1; }
19398 cat >>$CONFIG_STATUS <<_ACEOF
19401 # CONFIG_FILES section.
19404 # No need to generate the scripts if there are no CONFIG_FILES.
19405 # This happens for instance when ./config.status config.h
19406 if test -n "\$CONFIG_FILES"; then
19407 # Protect against being on the right side of a sed subst in config.status.
19408 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19409 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19410 s,@SHELL@,$SHELL,;t t
19411 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19412 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19413 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19414 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19415 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19416 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19417 s,@exec_prefix@,$exec_prefix,;t t
19418 s,@prefix@,$prefix,;t t
19419 s,@program_transform_name@,$program_transform_name,;t t
19420 s,@bindir@,$bindir,;t t
19421 s,@sbindir@,$sbindir,;t t
19422 s,@libexecdir@,$libexecdir,;t t
19423 s,@datadir@,$datadir,;t t
19424 s,@sysconfdir@,$sysconfdir,;t t
19425 s,@sharedstatedir@,$sharedstatedir,;t t
19426 s,@localstatedir@,$localstatedir,;t t
19427 s,@libdir@,$libdir,;t t
19428 s,@includedir@,$includedir,;t t
19429 s,@oldincludedir@,$oldincludedir,;t t
19430 s,@infodir@,$infodir,;t t
19431 s,@mandir@,$mandir,;t t
19432 s,@build_alias@,$build_alias,;t t
19433 s,@host_alias@,$host_alias,;t t
19434 s,@target_alias@,$target_alias,;t t
19435 s,@DEFS@,$DEFS,;t t
19436 s,@ECHO_C@,$ECHO_C,;t t
19437 s,@ECHO_N@,$ECHO_N,;t t
19438 s,@ECHO_T@,$ECHO_T,;t t
19439 s,@LIBS@,$LIBS,;t t
19440 s,@build@,$build,;t t
19441 s,@build_cpu@,$build_cpu,;t t
19442 s,@build_vendor@,$build_vendor,;t t
19443 s,@build_os@,$build_os,;t t
19444 s,@host@,$host,;t t
19445 s,@host_cpu@,$host_cpu,;t t
19446 s,@host_vendor@,$host_vendor,;t t
19447 s,@host_os@,$host_os,;t t
19448 s,@target@,$target,;t t
19449 s,@target_cpu@,$target_cpu,;t t
19450 s,@target_vendor@,$target_vendor,;t t
19451 s,@target_os@,$target_os,;t t
19452 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19453 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19454 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19455 s,@CYGPATH_W@,$CYGPATH_W,;t t
19456 s,@PACKAGE@,$PACKAGE,;t t
19457 s,@VERSION@,$VERSION,;t t
19458 s,@ACLOCAL@,$ACLOCAL,;t t
19459 s,@AUTOCONF@,$AUTOCONF,;t t
19460 s,@AUTOMAKE@,$AUTOMAKE,;t t
19461 s,@AUTOHEADER@,$AUTOHEADER,;t t
19462 s,@MAKEINFO@,$MAKEINFO,;t t
19463 s,@AMTAR@,$AMTAR,;t t
19464 s,@install_sh@,$install_sh,;t t
19465 s,@STRIP@,$STRIP,;t t
19466 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19467 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19469 s,@SET_MAKE@,$SET_MAKE,;t t
19470 s,@am__leading_dot@,$am__leading_dot,;t t
19471 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19472 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19473 s,@MAINT@,$MAINT,;t t
19474 s,@EMACS@,$EMACS,;t t
19475 s,@lispdir@,$lispdir,;t t
19477 s,@CFLAGS@,$CFLAGS,;t t
19478 s,@LDFLAGS@,$LDFLAGS,;t t
19479 s,@CPPFLAGS@,$CPPFLAGS,;t t
19480 s,@ac_ct_CC@,$ac_ct_CC,;t t
19481 s,@EXEEXT@,$EXEEXT,;t t
19482 s,@OBJEXT@,$OBJEXT,;t t
19483 s,@DEPDIR@,$DEPDIR,;t t
19484 s,@am__include@,$am__include,;t t
19485 s,@am__quote@,$am__quote,;t t
19486 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19487 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19488 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19489 s,@CCDEPMODE@,$CCDEPMODE,;t t
19490 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19491 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19493 s,@EGREP@,$EGREP,;t t
19494 s,@RANLIB@,$RANLIB,;t t
19495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19496 s,@LN_S@,$LN_S,;t t
19497 s,@X_CFLAGS@,$X_CFLAGS,;t t
19498 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19499 s,@X_LIBS@,$X_LIBS,;t t
19500 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19501 s,@LIBOBJS@,$LIBOBJS,;t t
19502 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19503 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19504 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19505 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19506 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19507 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19508 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19509 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19510 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19511 s,@ESD_LIBS@,$ESD_LIBS,;t t
19512 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19513 s,@AO_LIBS@,$AO_LIBS,;t t
19514 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19515 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19516 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19517 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19518 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19519 s,@OGG_LIBS@,$OGG_LIBS,;t t
19520 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19521 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19522 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19523 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19524 s,@n_so_libs@,$n_so_libs,;t t
19525 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19526 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19527 s,@s_so_libs@,$s_so_libs,;t t
19528 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19529 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19530 s,@m_so_libs@,$m_so_libs,;t t
19531 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19532 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19533 s,@k_so_libs@,$k_so_libs,;t t
19534 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19535 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19536 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19537 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19538 s,@e_so_libs@,$e_so_libs,;t t
19539 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19540 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19541 s,@T_so_libs@,$T_so_libs,;t t
19542 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19543 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19544 s,@a_so_libs@,$a_so_libs,;t t
19545 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19546 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19547 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19548 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19549 s,@i_so_libs@,$i_so_libs,;t t
19550 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19551 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19552 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19553 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19554 s,@GTK_LIBS@,$GTK_LIBS,;t t
19555 s,@g_so_libs@,$g_so_libs,;t t
19556 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19557 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19558 s,@r_so_libs@,$r_so_libs,;t t
19559 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19560 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19561 s,@A_so_libs@,$A_so_libs,;t t
19562 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19563 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19564 s,@W_so_libs@,$W_so_libs,;t t
19565 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19566 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19567 s,@P_so_libs@,$P_so_libs,;t t
19568 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19569 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19570 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19571 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19572 s,@w_so_libs@,$w_so_libs,;t t
19573 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19574 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19575 s,@p_so_libs@,$p_so_libs,;t t
19576 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19577 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19578 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19579 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19580 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19581 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19582 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19583 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19584 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19585 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19586 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19587 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19588 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19589 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19590 s,@EXTRALIBS@,$EXTRALIBS,;t t
19591 s,@NETSRCS@,$NETSRCS,;t t
19592 s,@ELFILES@,$ELFILES,;t t
19593 s,@SHLD@,$SHLD,;t t
19594 s,@SHCFLAGS@,$SHCFLAGS,;t t
19595 s,@dynamic_targets@,$dynamic_targets,;t t
19597 s,@WISH@,$WISH,;t t
19598 s,@tcltk_dep@,$tcltk_dep,;t t
19599 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19600 s,@pkgdatadir@,$pkgdatadir,;t t
19601 s,@pkglibdir@,$pkglibdir,;t t
19602 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19607 cat >>$CONFIG_STATUS <<\_ACEOF
19608 # Split the substitutions into bite-sized pieces for seds with
19609 # small command number limits, like on Digital OSF/1 and HP-UX.
19610 ac_max_sed_lines=48
19611 ac_sed_frag=1 # Number of current file.
19612 ac_beg=1 # First line for current file.
19613 ac_end=$ac_max_sed_lines # Line after last line for current file.
19616 while $ac_more_lines; do
19617 if test $ac_beg -gt 1; then
19618 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19620 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19622 if test ! -s $tmp/subs.frag; then
19623 ac_more_lines=false
19625 # The purpose of the label and of the branching condition is to
19626 # speed up the sed processing (if there are no `@' at all, there
19627 # is no need to browse any of the substitutions).
19628 # These are the two extra sed commands mentioned above.
19630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19631 if test -z "$ac_sed_cmds"; then
19632 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19634 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19636 ac_sed_frag=`expr $ac_sed_frag + 1`
19638 ac_end=`expr $ac_end + $ac_max_sed_lines`
19641 if test -z "$ac_sed_cmds"; then
19644 fi # test -n "$CONFIG_FILES"
19647 cat >>$CONFIG_STATUS <<\_ACEOF
19648 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19649 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19651 - | *:- | *:-:* ) # input from stdin
19653 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19654 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19655 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19656 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19657 * ) ac_file_in=$ac_file.in ;;
19660 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19661 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19663 X"$ac_file" : 'X\(//\)[^/]' \| \
19664 X"$ac_file" : 'X\(//\)$' \| \
19665 X"$ac_file" : 'X\(/\)' \| \
19666 . : '\(.\)' 2>/dev/null ||
19668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19670 /^X\(\/\/\)$/{ s//\1/; q; }
19671 /^X\(\/\).*/{ s//\1/; q; }
19673 { if $as_mkdir_p; then
19678 while test ! -d "$as_dir"; do
19679 as_dirs="$as_dir $as_dirs"
19680 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19682 X"$as_dir" : 'X\(//\)[^/]' \| \
19683 X"$as_dir" : 'X\(//\)$' \| \
19684 X"$as_dir" : 'X\(/\)' \| \
19685 . : '\(.\)' 2>/dev/null ||
19687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19689 /^X\(\/\/\)$/{ s//\1/; q; }
19690 /^X\(\/\).*/{ s//\1/; q; }
19693 test ! -n "$as_dirs" || mkdir $as_dirs
19694 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19696 { (exit 1); exit 1; }; }; }
19700 if test "$ac_dir" != .; then
19701 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19702 # A "../" for each directory in $ac_dir_suffix.
19703 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19705 ac_dir_suffix= ac_top_builddir=
19709 .) # No --srcdir option. We are building in place.
19711 if test -z "$ac_top_builddir"; then
19714 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19716 [\\/]* | ?:[\\/]* ) # Absolute path.
19717 ac_srcdir=$srcdir$ac_dir_suffix;
19718 ac_top_srcdir=$srcdir ;;
19719 *) # Relative path.
19720 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19721 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19724 # Do not use `cd foo && pwd` to compute absolute paths, because
19725 # the directories may not exist.
19727 .) ac_abs_builddir="$ac_dir";;
19730 .) ac_abs_builddir=`pwd`;;
19731 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19732 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19735 case $ac_abs_builddir in
19736 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19738 case ${ac_top_builddir}. in
19739 .) ac_abs_top_builddir=$ac_abs_builddir;;
19740 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19741 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19744 case $ac_abs_builddir in
19745 .) ac_abs_srcdir=$ac_srcdir;;
19748 .) ac_abs_srcdir=$ac_abs_builddir;;
19749 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19750 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19753 case $ac_abs_builddir in
19754 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19756 case $ac_top_srcdir in
19757 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19758 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19759 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19766 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19769 if test x"$ac_file" != x-; then
19770 { echo "$as_me:$LINENO: creating $ac_file" >&5
19771 echo "$as_me: creating $ac_file" >&6;}
19774 # Let's still pretend it is `configure' which instantiates (i.e., don't
19775 # use $as_me), people would be surprised to read:
19776 # /* config.h. Generated by config.status. */
19777 if test x"$ac_file" = x-; then
19780 configure_input="$ac_file. "
19782 configure_input=$configure_input"Generated from `echo $ac_file_in |
19783 sed 's,.*/,,'` by configure."
19785 # First look for the input files in the build tree, otherwise in the
19787 ac_file_inputs=`IFS=:
19788 for f in $ac_file_in; do
19790 -) echo $tmp/stdin ;;
19792 # Absolute (can't be DOS-style, as IFS=:)
19793 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19794 echo "$as_me: error: cannot find input file: $f" >&2;}
19795 { (exit 1); exit 1; }; }
19798 if test -f "$f"; then
19801 elif test -f "$srcdir/$f"; then
19806 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19807 echo "$as_me: error: cannot find input file: $f" >&2;}
19808 { (exit 1); exit 1; }; }
19811 done` || { (exit 1); exit 1; }
19813 cat >>$CONFIG_STATUS <<_ACEOF
19817 cat >>$CONFIG_STATUS <<\_ACEOF
19819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19820 s,@configure_input@,$configure_input,;t t
19821 s,@srcdir@,$ac_srcdir,;t t
19822 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19823 s,@top_srcdir@,$ac_top_srcdir,;t t
19824 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19825 s,@builddir@,$ac_builddir,;t t
19826 s,@abs_builddir@,$ac_abs_builddir,;t t
19827 s,@top_builddir@,$ac_top_builddir,;t t
19828 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19829 s,@INSTALL@,$ac_INSTALL,;t t
19830 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19832 if test x"$ac_file" != x-; then
19833 mv $tmp/out $ac_file
19841 cat >>$CONFIG_STATUS <<\_ACEOF
19844 # CONFIG_HEADER section.
19847 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19848 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19850 # ac_d sets the value in "#define NAME VALUE" lines.
19851 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19852 ac_dB='[ ].*$,\1#\2'
19855 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19856 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19857 ac_uB='$,\1#\2define\3'
19861 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19862 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19864 - | *:- | *:-:* ) # input from stdin
19866 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19868 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19869 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19870 * ) ac_file_in=$ac_file.in ;;
19873 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19874 echo "$as_me: creating $ac_file" >&6;}
19876 # First look for the input files in the build tree, otherwise in the
19878 ac_file_inputs=`IFS=:
19879 for f in $ac_file_in; do
19881 -) echo $tmp/stdin ;;
19883 # Absolute (can't be DOS-style, as IFS=:)
19884 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19885 echo "$as_me: error: cannot find input file: $f" >&2;}
19886 { (exit 1); exit 1; }; }
19887 # Do quote $f, to prevent DOS paths from being IFS'd.
19890 if test -f "$f"; then
19893 elif test -f "$srcdir/$f"; then
19898 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19899 echo "$as_me: error: cannot find input file: $f" >&2;}
19900 { (exit 1); exit 1; }; }
19903 done` || { (exit 1); exit 1; }
19904 # Remove the trailing spaces.
19905 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19909 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19910 # `conftest.undefs', that substitutes the proper values into
19911 # config.h.in to produce config.h. The first handles `#define'
19912 # templates, and the second `#undef' templates.
19913 # And first: Protect against being on the right side of a sed subst in
19914 # config.status. Protect against being in an unquoted here document
19915 # in config.status.
19916 rm -f conftest.defines conftest.undefs
19917 # Using a here document instead of a string reduces the quoting nightmare.
19918 # Putting comments in sed scripts is not portable.
19920 # `end' is used to avoid that the second main sed command (meant for
19921 # 0-ary CPP macros) applies to n-ary macro definitions.
19922 # See the Autoconf documentation for `clear'.
19923 cat >confdef2sed.sed <<\_ACEOF
19928 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19930 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19933 # If some macros were called several times there might be several times
19934 # the same #defines, which is useless. Nevertheless, we may not want to
19935 # sort them, since we want the *last* AC-DEFINE to be honored.
19936 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19937 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19938 rm -f confdef2sed.sed
19940 # This sed command replaces #undef with comments. This is necessary, for
19941 # example, in the case of _POSIX_SOURCE, which is predefined and required
19942 # on some systems where configure will not decide to define it.
19943 cat >>conftest.undefs <<\_ACEOF
19944 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19947 # Break up conftest.defines because some shells have a limit on the size
19948 # of here documents, and old seds have small limits too (100 cmds).
19949 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19950 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19951 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19952 echo ' :' >>$CONFIG_STATUS
19953 rm -f conftest.tail
19954 while grep . conftest.defines >/dev/null
19956 # Write a limited-size here document to $tmp/defines.sed.
19957 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19958 # Speed up: don't consider the non `#define' lines.
19959 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19960 # Work around the forget-to-reset-the-flag bug.
19961 echo 't clr' >>$CONFIG_STATUS
19962 echo ': clr' >>$CONFIG_STATUS
19963 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19965 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19967 mv $tmp/out $tmp/in
19969 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19970 rm -f conftest.defines
19971 mv conftest.tail conftest.defines
19973 rm -f conftest.defines
19974 echo ' fi # grep' >>$CONFIG_STATUS
19975 echo >>$CONFIG_STATUS
19977 # Break up conftest.undefs because some shells have a limit on the size
19978 # of here documents, and old seds have small limits too (100 cmds).
19979 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19980 rm -f conftest.tail
19981 while grep . conftest.undefs >/dev/null
19983 # Write a limited-size here document to $tmp/undefs.sed.
19984 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19985 # Speed up: don't consider the non `#undef'
19986 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19987 # Work around the forget-to-reset-the-flag bug.
19988 echo 't clr' >>$CONFIG_STATUS
19989 echo ': clr' >>$CONFIG_STATUS
19990 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19992 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19994 mv $tmp/out $tmp/in
19996 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19997 rm -f conftest.undefs
19998 mv conftest.tail conftest.undefs
20000 rm -f conftest.undefs
20002 cat >>$CONFIG_STATUS <<\_ACEOF
20003 # Let's still pretend it is `configure' which instantiates (i.e., don't
20004 # use $as_me), people would be surprised to read:
20005 # /* config.h. Generated by config.status. */
20006 if test x"$ac_file" = x-; then
20007 echo "/* Generated by configure. */" >$tmp/config.h
20009 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20011 cat $tmp/in >>$tmp/config.h
20013 if test x"$ac_file" != x-; then
20014 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20015 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20016 echo "$as_me: $ac_file is unchanged" >&6;}
20018 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20020 X"$ac_file" : 'X\(//\)[^/]' \| \
20021 X"$ac_file" : 'X\(//\)$' \| \
20022 X"$ac_file" : 'X\(/\)' \| \
20023 . : '\(.\)' 2>/dev/null ||
20025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20027 /^X\(\/\/\)$/{ s//\1/; q; }
20028 /^X\(\/\).*/{ s//\1/; q; }
20030 { if $as_mkdir_p; then
20035 while test ! -d "$as_dir"; do
20036 as_dirs="$as_dir $as_dirs"
20037 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20039 X"$as_dir" : 'X\(//\)[^/]' \| \
20040 X"$as_dir" : 'X\(//\)$' \| \
20041 X"$as_dir" : 'X\(/\)' \| \
20042 . : '\(.\)' 2>/dev/null ||
20044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20046 /^X\(\/\/\)$/{ s//\1/; q; }
20047 /^X\(\/\).*/{ s//\1/; q; }
20050 test ! -n "$as_dirs" || mkdir $as_dirs
20051 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20053 { (exit 1); exit 1; }; }; }
20056 mv $tmp/config.h $ac_file
20060 rm -f $tmp/config.h
20062 # Compute $ac_file's index in $config_headers.
20064 for _am_header in $config_headers :; do
20065 case $_am_header in
20066 $ac_file | $ac_file:* )
20069 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20072 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20073 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20074 X$ac_file : 'X\(//\)[^/]' \| \
20075 X$ac_file : 'X\(//\)$' \| \
20076 X$ac_file : 'X\(/\)' \| \
20077 . : '\(.\)' 2>/dev/null ||
20079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20081 /^X\(\/\/\)$/{ s//\1/; q; }
20082 /^X\(\/\).*/{ s//\1/; q; }
20083 s/.*/./; q'`/stamp-h$_am_stamp_count
20086 cat >>$CONFIG_STATUS <<\_ACEOF
20089 # CONFIG_COMMANDS section.
20091 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20092 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20093 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20094 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20095 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20096 X"$ac_dest" : 'X\(//\)[^/]' \| \
20097 X"$ac_dest" : 'X\(//\)$' \| \
20098 X"$ac_dest" : 'X\(/\)' \| \
20099 . : '\(.\)' 2>/dev/null ||
20101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20103 /^X\(\/\/\)$/{ s//\1/; q; }
20104 /^X\(\/\).*/{ s//\1/; q; }
20106 { if $as_mkdir_p; then
20111 while test ! -d "$as_dir"; do
20112 as_dirs="$as_dir $as_dirs"
20113 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20115 X"$as_dir" : 'X\(//\)[^/]' \| \
20116 X"$as_dir" : 'X\(//\)$' \| \
20117 X"$as_dir" : 'X\(/\)' \| \
20118 . : '\(.\)' 2>/dev/null ||
20120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20122 /^X\(\/\/\)$/{ s//\1/; q; }
20123 /^X\(\/\).*/{ s//\1/; q; }
20126 test ! -n "$as_dirs" || mkdir $as_dirs
20127 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20129 { (exit 1); exit 1; }; }; }
20133 if test "$ac_dir" != .; then
20134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20135 # A "../" for each directory in $ac_dir_suffix.
20136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20138 ac_dir_suffix= ac_top_builddir=
20142 .) # No --srcdir option. We are building in place.
20144 if test -z "$ac_top_builddir"; then
20147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20149 [\\/]* | ?:[\\/]* ) # Absolute path.
20150 ac_srcdir=$srcdir$ac_dir_suffix;
20151 ac_top_srcdir=$srcdir ;;
20152 *) # Relative path.
20153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20157 # Do not use `cd foo && pwd` to compute absolute paths, because
20158 # the directories may not exist.
20160 .) ac_abs_builddir="$ac_dir";;
20163 .) ac_abs_builddir=`pwd`;;
20164 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20165 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20168 case $ac_abs_builddir in
20169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20171 case ${ac_top_builddir}. in
20172 .) ac_abs_top_builddir=$ac_abs_builddir;;
20173 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20174 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20177 case $ac_abs_builddir in
20178 .) ac_abs_srcdir=$ac_srcdir;;
20181 .) ac_abs_srcdir=$ac_abs_builddir;;
20182 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20183 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20186 case $ac_abs_builddir in
20187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20189 case $ac_top_srcdir in
20190 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20191 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20192 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20197 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20198 echo "$as_me: executing $ac_dest commands" >&6;}
20200 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20201 # Strip MF so we end up with the name of the file.
20202 mf=`echo "$mf" | sed -e 's/:.*$//'`
20203 # Check whether this is an Automake generated Makefile or not.
20204 # We used to match only the files named `Makefile.in', but
20205 # some people rename them; so instead we look at the file content.
20206 # Grep'ing the first line is not enough: some people post-process
20207 # each Makefile.in and add a new line on top of each file to say so.
20208 # So let's grep whole file.
20209 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20210 dirpart=`(dirname "$mf") 2>/dev/null ||
20211 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20212 X"$mf" : 'X\(//\)[^/]' \| \
20213 X"$mf" : 'X\(//\)$' \| \
20214 X"$mf" : 'X\(/\)' \| \
20215 . : '\(.\)' 2>/dev/null ||
20217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20219 /^X\(\/\/\)$/{ s//\1/; q; }
20220 /^X\(\/\).*/{ s//\1/; q; }
20225 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20226 # Extract the definition of DEP_FILES from the Makefile without
20228 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20229 test -z "$DEPDIR" && continue
20230 # When using ansi2knr, U may be empty or an underscore; expand it
20231 U=`sed -n -e '/^U = / s///p' < "$mf"`
20232 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20233 # We invoke sed twice because it is the simplest approach to
20234 # changing $(DEPDIR) to its actual value in the expansion.
20235 for file in `sed -n -e '
20236 /^DEP_FILES = .*\\\\$/ {
20245 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20246 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20247 # Make sure the directory exists.
20248 test -f "$dirpart/$file" && continue
20249 fdir=`(dirname "$file") 2>/dev/null ||
20250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20251 X"$file" : 'X\(//\)[^/]' \| \
20252 X"$file" : 'X\(//\)$' \| \
20253 X"$file" : 'X\(/\)' \| \
20254 . : '\(.\)' 2>/dev/null ||
20256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20258 /^X\(\/\/\)$/{ s//\1/; q; }
20259 /^X\(\/\).*/{ s//\1/; q; }
20261 { if $as_mkdir_p; then
20262 mkdir -p $dirpart/$fdir
20264 as_dir=$dirpart/$fdir
20266 while test ! -d "$as_dir"; do
20267 as_dirs="$as_dir $as_dirs"
20268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270 X"$as_dir" : 'X\(//\)[^/]' \| \
20271 X"$as_dir" : 'X\(//\)$' \| \
20272 X"$as_dir" : 'X\(/\)' \| \
20273 . : '\(.\)' 2>/dev/null ||
20275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20277 /^X\(\/\/\)$/{ s//\1/; q; }
20278 /^X\(\/\).*/{ s//\1/; q; }
20281 test ! -n "$as_dirs" || mkdir $as_dirs
20282 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20283 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20284 { (exit 1); exit 1; }; }; }
20286 # echo "creating $dirpart/$file"
20287 echo '# dummy' > "$dirpart/$file"
20295 cat >>$CONFIG_STATUS <<\_ACEOF
20297 { (exit 0); exit 0; }
20299 chmod +x $CONFIG_STATUS
20300 ac_clean_files=$ac_clean_files_save
20303 # configure is writing to config.log, and then calls config.status.
20304 # config.status does its own redirection, appending to config.log.
20305 # Unfortunately, on DOS this fails, as config.log is still kept open
20306 # by configure, so config.status won't be able to write to it; its
20307 # output is simply discarded. So we exec the FD to /dev/null,
20308 # effectively closing config.log, so it can be properly (re)opened and
20309 # appended to by config.status. When coming back to configure, we
20310 # need to make the FD available again.
20311 if test "$no_create" != yes; then
20313 ac_config_status_args=
20314 test "$silent" = yes &&
20315 ac_config_status_args="$ac_config_status_args --quiet"
20317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20320 # would make configure fail if this is the last instruction.
20321 $ac_cs_success || { (exit 1); exit 1; }