2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE PKG_CONFIG GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE WATCOM_TRUE WATCOM_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_LDFLAGS VCPP_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 --target=TARGET configure for building compilers for TARGET [HOST]
852 if test -n "$ac_init_help"; then
853 case $ac_init_help in
854 short | recursive ) echo "Configuration of TiMidity++ current:";;
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-debug Build a debugging version.
864 --disable-dependency-tracking Speeds up one-time builds
865 --enable-dependency-tracking Do not reject slow dependency extractors
866 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867 default: Automatically select audio device.
869 sun: SunOS /dev/audio
870 hpux: HPUX /dev/audio
871 irix: IRIX audio library
873 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
875 darwin: Darwin CoreAudio
876 alsa: ALSA pcm device
877 alib: HPUX network audio (Alib)
878 nas: NAS - Network Audio System
880 esd: EsounD - Enlightened Sound Daemon
887 gogo: MP3 GOGO (Only Windows is supported)
888 --disable-alsatest Do not try to compile and run a test Alsa program
889 --disable-artstest Do not try to compile and run a test ARTS program
890 --disable-esdtest Do not try to compile and run a test ESD program
891 --disable-aotest Do not try to compile and run a test ao program
892 --disable-oggtest Do not try to compile and run a test Ogg program
893 --disable-vorbistest Do not try to compile and run a test Vorbis program
894 --disable-libFLACtest Do not try to compile and run a test libFLAC program
895 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
896 --enable-interface=interface_list
897 Comma separated interface list
898 --enable-dynamic Enable dynamic link interface (default is no)
899 --enable-dynamic=dynamic_list
900 Comma separated dynamic interface list
901 --enable-ncurses Enable ncurses interface (default is no)
902 --enable-slang Enable slang interface (default is no)
903 --enable-motif Enable motif interface (default is no)
904 --enable-tcltk Enable tcltk interface (default is no)
905 --enable-emacs Enable emacs interface (default is no)
906 --enable-vt100 Enable VT100 interface (default is no)
907 --enable-xaw Enable athena interface (default is no)
908 --enable-xskin Enable X skin interface (default is no)
909 --enable-gtk Enable GTK+ interface (default is no)
910 --disable-gtktest do not try to compile and run a test GTK+ program
911 --disable-gtktest Do not try to compile and run a test GTK program
912 --enable-server Enable server interface (default is no)
913 --enable-alsaseq Enable ALSA sequencer server interface
915 --enable-winsyn Enable Windows Synthesizer interface
917 --enable-portmidisyn Enable PortMIDI Synthesizer interface
919 --enable-winsyng Enable Windows GUI Synthesizer interface
921 --enable-w32gui Enable Windows GUI interface (default is no)
922 --enable-ump UMP configuration (default is no)
923 --enable-offix Enable offix support (default is no)
924 --enable-network Enable network support (default is no)
925 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
926 --enable-spline=method Specify spline method.
927 one of no,linear,cubic,lagrange,newton,gauss
929 --enable-wrd Enable WRD interface for X (default is no)
932 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
933 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
934 --with-includes=DIR Specify include directories (colon separated)
935 --with-libraries=DIR Specify library directories (colon separated)
936 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
937 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
938 --with-lispdir Override the default lisp directory
939 --with-elf create ELF shared object instead of AOUT
940 --with-x use the X Window System
941 --with-tcl-includes=DIR Tcl include file path
942 --with-tcl-libs=DIR Tcl library file path
943 --with-tk-includes=DIR Tk include file path
944 --with-tk-libs=DIR Tk library file path
945 --with-offix-includes=DIR Offix include file path
946 --with-offix-libs=DIR Offix include file path
947 --with-nas-library=library NAS absolute library path(Don't use -laudio)
948 --with-nas-includes=DIR NAS include files are in dir
949 --with-default-output=<mode> Specify default output mode (optional):
950 (default|alsa|alib|arts|nas|
951 esd|wav|au|aiff|list|vorbis|flac|speex|
952 gogo|portaudio|jack|ao)
953 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
954 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
955 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
956 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
957 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
958 --with-ao=PFX Prefix where libao is installed (optional)
959 --with-ao-libraries=DIR Directory where libao library is installed (optional)
960 --with-ao-includes=DIR Directory where libao header files are installed (optional)
961 --with-ogg=PFX Prefix where libogg is installed (optional)
962 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
963 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
964 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
965 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
966 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
967 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
968 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
969 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
970 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
971 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
972 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
973 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
974 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
976 Some influential environment variables:
977 CC C compiler command
978 CFLAGS C compiler flags
979 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
980 nonstandard directory <lib dir>
981 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
982 headers in a nonstandard directory <include dir>
985 Use these variables to override the choices made by `configure' or to help
986 it to find libraries and programs with nonstandard names/locations.
988 Report bugs to <root@mput.dip.jp>.
992 if test "$ac_init_help" = "recursive"; then
993 # If there are subdirs, report their specific --help.
995 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
996 test -d $ac_dir || continue
999 if test "$ac_dir" != .; then
1000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1001 # A "../" for each directory in $ac_dir_suffix.
1002 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1004 ac_dir_suffix= ac_top_builddir=
1008 .) # No --srcdir option. We are building in place.
1010 if test -z "$ac_top_builddir"; then
1013 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1015 [\\/]* | ?:[\\/]* ) # Absolute path.
1016 ac_srcdir=$srcdir$ac_dir_suffix;
1017 ac_top_srcdir=$srcdir ;;
1019 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1020 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1023 # Do not use `cd foo && pwd` to compute absolute paths, because
1024 # the directories may not exist.
1026 .) ac_abs_builddir="$ac_dir";;
1029 .) ac_abs_builddir=`pwd`;;
1030 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1031 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1034 case $ac_abs_builddir in
1035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1037 case ${ac_top_builddir}. in
1038 .) ac_abs_top_builddir=$ac_abs_builddir;;
1039 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1040 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1043 case $ac_abs_builddir in
1044 .) ac_abs_srcdir=$ac_srcdir;;
1047 .) ac_abs_srcdir=$ac_abs_builddir;;
1048 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1049 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1052 case $ac_abs_builddir in
1053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1055 case $ac_top_srcdir in
1056 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1057 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1058 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1063 # Check for guested configure; otherwise get Cygnus style configure.
1064 if test -f $ac_srcdir/configure.gnu; then
1066 $SHELL $ac_srcdir/configure.gnu --help=recursive
1067 elif test -f $ac_srcdir/configure; then
1069 $SHELL $ac_srcdir/configure --help=recursive
1070 elif test -f $ac_srcdir/configure.ac ||
1071 test -f $ac_srcdir/configure.in; then
1073 $ac_configure --help
1075 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1081 test -n "$ac_init_help" && exit 0
1082 if $ac_init_version; then
1084 TiMidity++ configure current
1085 generated by GNU Autoconf 2.59
1087 Copyright (C) 2003 Free Software Foundation, Inc.
1088 This configure script is free software; the Free Software Foundation
1089 gives unlimited permission to copy, distribute and modify it.
1095 This file contains any messages produced by compilers while
1096 running configure, to aid debugging if configure makes a mistake.
1098 It was created by TiMidity++ $as_me current, which was
1099 generated by GNU Autoconf 2.59. Invocation command line was
1110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1122 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1133 test -z "$as_dir" && as_dir=.
1134 echo "PATH: $as_dir"
1149 # Keep a trace of the command line.
1150 # Strip out --no-create and --no-recursion so they do not pile up.
1151 # Strip out --silent because we don't want to record it for future runs.
1152 # Also quote any args containing shell meta-characters.
1153 # Make two passes to allow for proper duplicate-argument suppression.
1158 ac_must_keep_next=false
1164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1168 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1169 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1172 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1174 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1175 if test $ac_must_keep_next = true; then
1176 ac_must_keep_next=false # Got value, back to normal.
1179 *=* | --config-cache | -C | -disable-* | --disable-* \
1180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1182 | -with-* | --with-* | -without-* | --without-* | --x)
1183 case "$ac_configure_args0 " in
1184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1187 -* ) ac_must_keep_next=true ;;
1190 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1191 # Get rid of the leading space.
1197 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1198 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1200 # When interrupted or exit'd, cleanup temporary files, and complete
1201 # config.log. We remove comments because anyway the quotes in there
1202 # would cause problems or look ugly.
1203 # WARNING: Be sure not to use single quotes in there, as some shells,
1204 # such as our DU 5.0 friend, will then `close' the trap.
1205 trap 'exit_status=$?
1206 # Save into config.log some information that might help in debugging.
1211 ## ---------------- ##
1212 ## Cache variables. ##
1213 ## ---------------- ##
1216 # The following way of writing the cache mishandles newlines in values,
1219 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1222 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1227 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1234 ## ----------------- ##
1235 ## Output variables. ##
1236 ## ----------------- ##
1239 for ac_var in $ac_subst_vars
1241 eval ac_val=$`echo $ac_var`
1242 echo "$ac_var='"'"'$ac_val'"'"'"
1246 if test -n "$ac_subst_files"; then
1253 for ac_var in $ac_subst_files
1255 eval ac_val=$`echo $ac_var`
1256 echo "$ac_var='"'"'$ac_val'"'"'"
1261 if test -s confdefs.h; then
1268 sed "/^$/d" confdefs.h | sort
1271 test "$ac_signal" != 0 &&
1272 echo "$as_me: caught signal $ac_signal"
1273 echo "$as_me: exit $exit_status"
1275 rm -f core *.core &&
1276 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1279 for ac_signal in 1 2 13 15; do
1280 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1284 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1285 rm -rf conftest* confdefs.h
1286 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1289 # Predefined preprocessor variables.
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_NAME "$PACKAGE_NAME"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_STRING "$PACKAGE_STRING"
1311 cat >>confdefs.h <<_ACEOF
1312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1316 # Let the site file select an alternate cache file if it wants to.
1317 # Prefer explicitly selected file to automatically selected ones.
1318 if test -z "$CONFIG_SITE"; then
1319 if test "x$prefix" != xNONE; then
1320 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1322 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1325 for ac_site_file in $CONFIG_SITE; do
1326 if test -r "$ac_site_file"; then
1327 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1328 echo "$as_me: loading site script $ac_site_file" >&6;}
1329 sed 's/^/| /' "$ac_site_file" >&5
1334 if test -r "$cache_file"; then
1335 # Some versions of bash will fail to source /dev/null (special
1336 # files actually), so we avoid doing that.
1337 if test -f "$cache_file"; then
1338 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1339 echo "$as_me: loading cache $cache_file" >&6;}
1341 [\\/]* | ?:[\\/]* ) . $cache_file;;
1342 *) . ./$cache_file;;
1346 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1347 echo "$as_me: creating cache $cache_file" >&6;}
1351 # Check that the precious variables saved in the cache have kept the same
1353 ac_cache_corrupted=false
1354 for ac_var in `(set) 2>&1 |
1355 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1357 eval ac_new_set=\$ac_env_${ac_var}_set
1358 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1359 eval ac_new_val="\$ac_env_${ac_var}_value"
1360 case $ac_old_set,$ac_new_set in
1362 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1363 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1364 ac_cache_corrupted=: ;;
1366 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1367 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1368 ac_cache_corrupted=: ;;
1371 if test "x$ac_old_val" != "x$ac_new_val"; then
1372 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1373 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1374 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1375 echo "$as_me: former value: $ac_old_val" >&2;}
1376 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1377 echo "$as_me: current value: $ac_new_val" >&2;}
1378 ac_cache_corrupted=:
1381 # Pass precious variables to config.status.
1382 if test "$ac_new_set" = set; then
1384 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1385 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1386 *) ac_arg=$ac_var=$ac_new_val ;;
1388 case " $ac_configure_args " in
1389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1390 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1394 if $ac_cache_corrupted; then
1395 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1396 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1397 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1398 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1399 { (exit 1); exit 1; }; }
1403 ac_cpp='$CPP $CPPFLAGS'
1404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 for ac_dir in autoconf $srcdir/autoconf; do
1436 if test -f $ac_dir/install-sh; then
1438 ac_install_sh="$ac_aux_dir/install-sh -c"
1440 elif test -f $ac_dir/install.sh; then
1442 ac_install_sh="$ac_aux_dir/install.sh -c"
1444 elif test -f $ac_dir/shtool; then
1446 ac_install_sh="$ac_aux_dir/shtool install -c"
1450 if test -z "$ac_aux_dir"; then
1451 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1452 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1453 { (exit 1); exit 1; }; }
1455 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1456 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1457 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1459 # Make sure we can run config.sub.
1460 $ac_config_sub sun4 >/dev/null 2>&1 ||
1461 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1462 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1463 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: checking build system type" >&5
1466 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1467 if test "${ac_cv_build+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 ac_cv_build_alias=$build_alias
1471 test -z "$ac_cv_build_alias" &&
1472 ac_cv_build_alias=`$ac_config_guess`
1473 test -z "$ac_cv_build_alias" &&
1474 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1475 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1476 { (exit 1); exit 1; }; }
1477 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1484 echo "${ECHO_T}$ac_cv_build" >&6
1486 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1491 echo "$as_me:$LINENO: checking host system type" >&5
1492 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1493 if test "${ac_cv_host+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 ac_cv_host_alias=$host_alias
1497 test -z "$ac_cv_host_alias" &&
1498 ac_cv_host_alias=$ac_cv_build_alias
1499 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1500 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1501 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1502 { (exit 1); exit 1; }; }
1505 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1506 echo "${ECHO_T}$ac_cv_host" >&6
1508 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1509 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1510 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1513 echo "$as_me:$LINENO: checking target system type" >&5
1514 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1515 if test "${ac_cv_target+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 ac_cv_target_alias=$target_alias
1519 test "x$ac_cv_target_alias" = "x" &&
1520 ac_cv_target_alias=$ac_cv_host_alias
1521 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1522 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1524 { (exit 1); exit 1; }; }
1527 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1528 echo "${ECHO_T}$ac_cv_target" >&6
1529 target=$ac_cv_target
1530 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1535 # The aliases save the names the user supplied, while $host etc.
1536 # will get canonicalized.
1537 test -n "$target_alias" &&
1538 test "$program_prefix$program_suffix$program_transform_name" = \
1540 program_prefix=${target_alias}-
1541 am__api_version="1.7"
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 # Account for people who put trailing slashes in PATH elements.
1568 ./ | .// | /cC/* | \
1569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573 # OSF1 and SCO ODT 3.0 have their own names for install.
1574 # Don't use installbsd from OSF since it installs stuff as root
1576 for ac_prog in ginstall scoinst install; do
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579 if test $ac_prog = install &&
1580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581 # AIX install. It has an incompatible calling convention.
1583 elif test $ac_prog = install &&
1584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # program-specific install script used by HP pwplus--don't use.
1588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL=$ac_cv_path_install
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL=$ac_install_sh
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 echo timestamp > conftest.file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments. Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1632 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633 if test "$*" = "X"; then
1635 set X `ls -t $srcdir/configure conftest.file`
1638 if test "$*" != "X $srcdir/configure conftest.file" \
1639 && test "$*" != "X conftest.file $srcdir/configure"; then
1641 # If neither matched, then we have a broken ls. This can happen
1642 # if, for instance, CONFIG_SHELL is bash and it inherits a
1643 # broken ls alias from the environment. This has actually
1644 # happened. Such a system could not be considered "sane".
1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&2;}
1649 { (exit 1); exit 1; }; }
1652 test "$2" = conftest.file
1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE &&
1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE &&
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $. echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF >conftest.sed
1674 s/[\\$]/&&/g;s/;s,x,x,$//
1676 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680 # expand $ac_aux_dir to an absolute path
1681 am_aux_dir=`cd $ac_aux_dir && pwd`
1683 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684 # Use eval to expand $SHELL
1685 if eval "$MISSING --run true"; then
1686 am_missing_run="$MISSING --run "
1689 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693 for ac_prog in gawk mawk nawk awk
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_AWK+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$AWK"; then
1703 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_AWK="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$AWK"; then
1723 echo "$as_me:$LINENO: result: $AWK" >&5
1724 echo "${ECHO_T}$AWK" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$AWK" && break
1733 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1734 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1735 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1736 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 cat >conftest.make <<\_ACEOF
1741 @echo 'ac_maketemp="$(MAKE)"'
1743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1744 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1745 if test -n "$ac_maketemp"; then
1746 eval ac_cv_prog_make_${ac_make}_set=yes
1748 eval ac_cv_prog_make_${ac_make}_set=no
1752 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1753 echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 SET_MAKE="MAKE=${MAKE-make}"
1762 rm -rf .tst 2>/dev/null
1763 mkdir .tst 2>/dev/null
1764 if test -d .tst; then
1769 rmdir .tst 2>/dev/null
1771 # test to see if srcdir already configured
1772 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1773 test -f $srcdir/config.status; then
1774 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1775 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1776 { (exit 1); exit 1; }; }
1779 # test whether we have cygpath
1780 if test -z "$CYGPATH_W"; then
1781 if (cygpath --version) >/dev/null 2>/dev/null; then
1782 CYGPATH_W='cygpath -w'
1789 # Define the identity of the package.
1790 PACKAGE='TiMidity++'
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE "$PACKAGE"
1799 cat >>confdefs.h <<_ACEOF
1800 #define VERSION "$VERSION"
1803 # Some tools Automake needs.
1805 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1808 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1811 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1814 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1817 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1820 AMTAR=${AMTAR-"${am_missing_run}tar"}
1822 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1824 # Installed binaries are usually stripped using `strip' when the user
1825 # run `make install-strip'. However `strip' might not be the right
1826 # tool to use in cross-compilation environments, therefore Automake
1827 # will honor the `STRIP' environment variable to overrule this program.
1828 if test "$cross_compiling" != no; then
1829 if test -n "$ac_tool_prefix"; then
1830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}strip; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_STRIP+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$STRIP"; then
1838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 STRIP=$ac_cv_prog_STRIP
1857 if test -n "$STRIP"; then
1858 echo "$as_me:$LINENO: result: $STRIP" >&5
1859 echo "${ECHO_T}$STRIP" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1866 if test -z "$ac_cv_prog_STRIP"; then
1868 # Extract the first word of "strip", so it can be a program name with args.
1869 set dummy strip; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_STRIP"; then
1876 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_STRIP="strip"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1896 if test -n "$ac_ct_STRIP"; then
1897 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1898 echo "${ECHO_T}$ac_ct_STRIP" >&6
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1906 STRIP="$ac_cv_prog_STRIP"
1910 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1912 # We need awk for the "check" target. The system "awk" is bad on
1918 ac_config_headers="$ac_config_headers config.h interface.h"
1920 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1921 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1922 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1923 if test "${enable_maintainer_mode+set}" = set; then
1924 enableval="$enable_maintainer_mode"
1925 USE_MAINTAINER_MODE=$enableval
1927 USE_MAINTAINER_MODE=no
1929 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1930 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1933 if test $USE_MAINTAINER_MODE = yes; then
1934 MAINTAINER_MODE_TRUE=
1935 MAINTAINER_MODE_FALSE='#'
1937 MAINTAINER_MODE_TRUE='#'
1938 MAINTAINER_MODE_FALSE=
1941 MAINT=$MAINTAINER_MODE_TRUE
1945 SHELL=${CONFIG_SHELL-"/bin/sh"}
1948 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1949 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1950 echo "grimblepritz" >grimble
1951 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1952 contains="./contains"
1953 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1956 contains="./contains"
1960 grep) echo "$as_me:$LINENO: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6
1964 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1965 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1966 cat >./contains <<'EOSS'
1967 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1969 chmod +x "./contains"
1974 # Check for compiler options -- such as debug flags.
1976 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1977 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1978 # Check whether --enable-debug or --disable-debug was given.
1979 if test "${enable_debug+set}" = set; then
1980 enableval="$enable_debug"
1981 timidity_cv_debug="yes"
1983 timidity_cv_debug="no"
1985 if test "x$timidity_cv_debug" = "xyes"; then
1987 cat >>confdefs.h <<\_ACEOF
1991 CFLAGS=${CFLAGS-"-g"}
1993 if test "x$timidity_cv_debug" = "xno"; then
1995 cat >>confdefs.h <<\_ACEOF
2000 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2001 echo "${ECHO_T}$timidity_cv_debug" >&6
2003 CFLAGS=${CFLAGS-"-O2"}
2005 if test "x$with_x" = x; then
2011 # Checking gcc environment
2012 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2013 LDFLAGS="$LDFLAGS -L${i}"
2015 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2016 CPPFLAGS="$CPPFLAGS -I${i}"
2019 # add $prefix if specified.
2020 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2021 LDFLAGS="-L$prefix/lib $LDFLAGS"
2022 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2023 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2027 # Check whether --with-includes or --without-includes was given.
2028 if test "${with_includes+set}" = set; then
2029 withval="$with_includes"
2031 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2034 CPPFLAGS="$j$CPPFLAGS"
2039 # Check whether --with-libraries or --without-libraries was given.
2040 if test "${with_libraries+set}" = set; then
2041 withval="$with_libraries"
2043 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2046 LDFLAGS="$j$LDFLAGS"
2052 # Check whether --with-default-path or --without-default-path was given.
2053 if test "${with_default_path+set}" = set; then
2054 withval="$with_default_path"
2058 if test "x$prefix" != "xNONE"; then
2059 pkgdatadir='${prefix}/share/timidity'
2061 pkgdatadir='/usr/local/share/timidity'
2065 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2067 cat >>confdefs.h <<_ACEOF
2068 #define DEFAULT_PATH "$tmpdefpath"
2072 cat >>confdefs.h <<\_ACEOF
2073 #define PKGDATADIR DEFAULT_PATH
2078 # Check whether --with-module-dir or --without-module-dir was given.
2079 if test "${with_module_dir+set}" = set; then
2080 withval="$with_module_dir"
2084 if test "x$prefix" != "xNONE"; then
2085 pkglibdir='${prefix}/lib/timidity'
2087 pkglibdir='/usr/local/lib/timidity'
2091 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PKGLIBDIR "$tmplibdir"
2099 # Checks for programs.
2101 # Check whether --with-lispdir or --without-lispdir was given.
2102 if test "${with_lispdir+set}" = set; then
2103 withval="$with_lispdir"
2105 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2106 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $lispdir" >&5
2108 echo "${ECHO_T}$lispdir" >&6
2111 # If set to t, that means we are running in a shell under Emacs.
2112 # If you have an Emacs named "t", then use the full path.
2113 test x"$EMACS" = xt && EMACS=
2114 for ac_prog in emacs xemacs
2116 # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_EMACS+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$EMACS"; then
2124 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_EMACS="$ac_prog"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 EMACS=$ac_cv_prog_EMACS
2143 if test -n "$EMACS"; then
2144 echo "$as_me:$LINENO: result: $EMACS" >&5
2145 echo "${ECHO_T}$EMACS" >&6
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2151 test -n "$EMACS" && break
2153 test -n "$EMACS" || EMACS="no"
2155 if test $EMACS != "no"; then
2156 if test x${lispdir+set} != xset; then
2157 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2158 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2159 if test "${am_cv_lispdir+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2163 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2164 # which is non-obvious for non-emacs users.
2165 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2166 # emacsen earlier and avoid running this altogether.
2167 { (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
2168 ($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
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }
2172 am_cv_lispdir=`sed -n \
2174 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2175 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2178 if test -z "$am_cv_lispdir"; then
2179 am_cv_lispdir='${datadir}/emacs/site-lisp'
2183 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2184 echo "${ECHO_T}$am_cv_lispdir" >&6
2185 lispdir="$am_cv_lispdir"
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2234 if test -z "$ac_cv_prog_CC"; then
2236 # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253 ac_cv_prog_ac_ct_CC="gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2276 if test -z "$CC"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_CC="${ac_tool_prefix}cc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 if test -n "$CC"; then
2306 echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2314 if test -z "$ac_cv_prog_CC"; then
2316 # Extract the first word of "cc", so it can be a program name with args.
2317 set dummy cc; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$ac_ct_CC"; then
2324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333 ac_cv_prog_ac_ct_CC="cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2357 if test -z "$CC"; then
2358 # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected=yes
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test $ac_prog_rejected = yes; then
2388 # We found a bogon in the path, so make sure we never use it.
2389 set dummy $ac_cv_prog_CC
2391 if test $# != 0; then
2392 # We chose a different compiler from the bogus one.
2393 # However, it has the same basename, so the bogon will be chosen
2394 # first if we set CC to just the basename; use the full file name.
2396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2402 if test -n "$CC"; then
2403 echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2450 test -n "$CC" && break
2453 if test -z "$CC"; then
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_ac_ct_CC="$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test -n "$ac_ct_CC" && break
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO:" \
2509 "checking for C compiler version" >&5
2510 ac_compiler=`set X $ac_compile; echo $2`
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2512 (eval $ac_compiler --version </dev/null >&5) 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2517 (eval $ac_compiler -v </dev/null >&5) 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2522 (eval $ac_compiler -V </dev/null >&5) 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 ac_clean_files_save=$ac_clean_files
2543 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2544 # Try to create an executable without -o first, disregard a.out.
2545 # It will help us diagnose broken compilers, and finding out an intuition
2547 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2548 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2549 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2551 (eval $ac_link_default) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 # Find the output, starting from the most likely. This scheme is
2556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2559 # Be careful to initialize this variable, since it used to be cached.
2560 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2562 # b.out is created by i960 compilers.
2563 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2565 test -f "$ac_file" || continue
2567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2570 # This is the source file.
2573 # We found the default executable, but exeext='' is most
2577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 # FIXME: I believe we export ac_cv_exeext for Libtool,
2579 # but it would be cool to find out if it's true. Does anybody
2580 # maintain Libtool? --akim.
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595 { (exit 77); exit 77; }; }
2598 ac_exeext=$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2602 # Check the compiler produces executables we can run. If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609 if { ac_try='./$ac_file'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 if test "$cross_compiling" = maybe; then
2620 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'.
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2633 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2634 ac_clean_files=$ac_clean_files_save
2635 # Check the compiler produces executables we can run. If not, either
2636 # the compiler is broken, or we cross compile.
2637 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2639 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2640 echo "${ECHO_T}$cross_compiling" >&6
2642 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2643 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645 (eval $ac_link) 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2653 for ac_file in conftest.exe conftest conftest.*; do
2654 test -f "$ac_file" || continue
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2671 rm -f conftest$ac_cv_exeext
2672 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2673 echo "${ECHO_T}$ac_cv_exeext" >&6
2675 rm -f conftest.$ac_ext
2676 EXEEXT=$ac_cv_exeext
2678 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2679 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2680 if test "${ac_cv_objext+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718 See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2724 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725 echo "${ECHO_T}$ac_cv_objext" >&6
2726 OBJEXT=$ac_cv_objext
2728 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2730 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2784 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2785 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2786 GCC=`test $ac_compiler_gnu = yes && echo yes`
2787 ac_test_CFLAGS=${CFLAGS+set}
2788 ac_save_CFLAGS=$CFLAGS
2790 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 cat >conftest.$ac_ext <<_ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2843 if test "$ac_test_CFLAGS" = set; then
2844 CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846 if test "$GCC" = yes; then
2852 if test "$GCC" = yes; then
2858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 ac_cv_prog_cc_stdc=no
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2889 s = g (p, va_arg (v,int));
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std1 is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std1. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2917 # Don't try gcc -ansi; that turns off useful extensions and
2918 # breaks some systems' header files.
2919 # AIX -qlanglvl=ansi
2920 # Ultrix and OSF/1 -std1
2921 # HP-UX 10.20 and later -Ae
2922 # HP-UX older versions -Aa -D_HPUX_SOURCE
2923 # SVR4 -Xc -D__EXTENSIONS__
2924 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2926 CC="$ac_save_CC $ac_arg"
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1 >conftest.err
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_prog_cc_stdc=$ac_arg
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2956 rm -f conftest.err conftest.$ac_objext
2958 rm -f conftest.$ac_ext conftest.$ac_objext
2963 case "x$ac_cv_prog_cc_stdc" in
2965 echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6 ;;
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2970 CC="$CC $ac_cv_prog_cc_stdc" ;;
2973 # Some people use a C++ compiler to compile C. Since we use `exit',
2974 # in C++ we need to declare it. In case someone uses the same compiler
2975 # for both compiling C and C++ we need to have the C++ compiler decide
2976 # the declaration of exit, since it's the most demanding environment.
2977 cat >conftest.$ac_ext <<_ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -z "$ac_c_werror_flag"
2992 || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 for ac_declaration in \
3006 'extern "C" void std::exit (int) throw (); using std::exit;' \
3007 'extern "C" void std::exit (int); using std::exit;' \
3008 'extern "C" void exit (int) throw ();' \
3009 'extern "C" void exit (int);' \
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104 if test -n "$ac_declaration"; then
3105 echo '#ifdef __cplusplus' >>confdefs.h
3106 echo $ac_declaration >>confdefs.h
3107 echo '#endif' >>confdefs.h
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 DEPDIR="${am__leading_dot}deps"
3123 ac_config_commands="$ac_config_commands depfiles"
3126 am_make=${MAKE-make}
3127 cat > confinc << 'END'
3132 # If we don't find an include directive, just comment out the code.
3133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3138 # First try GNU make style include.
3139 echo "include confinc" > confmf
3140 # We grep out `Entering directory' and `Leaving directory'
3141 # messages which can occur if `w' ends up in MAKEFLAGS.
3142 # In particular we don't look at `^make:' because GNU make might
3143 # be invoked under some other name (usually "gmake"), in which
3144 # case it prints its new name instead of `make'.
3145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3150 # Now try BSD make style include.
3151 if test "$am__include" = "#"; then
3152 echo '.include "confinc"' > confmf
3153 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3154 am__include=.include
3161 echo "$as_me:$LINENO: result: $_am_result" >&5
3162 echo "${ECHO_T}$_am_result" >&6
3163 rm -f confinc confmf
3165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3166 if test "${enable_dependency_tracking+set}" = set; then
3167 enableval="$enable_dependency_tracking"
3170 if test "x$enable_dependency_tracking" != xno; then
3171 am_depcomp="$ac_aux_dir/depcomp"
3176 if test "x$enable_dependency_tracking" != xno; then
3187 depcc="$CC" am_compiler_list=
3189 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3190 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3191 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3195 # We make a subdir and do the tests there. Otherwise we can end up
3196 # making bogus files that we don't know about and never remove. For
3197 # instance it was reported that on HP-UX the gcc test will end up
3198 # making a dummy file named `D' -- because `-MD' means `put the output
3201 # Copy depcomp to subdir because otherwise we won't find it if we're
3202 # using a relative directory.
3203 cp "$am_depcomp" conftest.dir
3205 # We will build objects and dependencies in a subdirectory because
3206 # it helps to detect inapplicable dependency modes. For instance
3207 # both Tru64's cc and ICC support -MD to output dependencies as a
3208 # side effect of compilation, but ICC will put the dependencies in
3209 # the current directory while Tru64 will put them in the object
3213 am_cv_CC_dependencies_compiler_type=none
3214 if test "$am_compiler_list" = ""; then
3215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3217 for depmode in $am_compiler_list; do
3218 # Setup a source with many dependencies, because some compilers
3219 # like to wrap large dependency lists on column 80 (with \), and
3220 # we should not choose a depcomp mode which is confused by this.
3222 # We need to recreate these files for each test, as the compiler may
3223 # overwrite some of them when testing with obscure command lines.
3224 # This happens at least with the AIX C compiler.
3226 for i in 1 2 3 4 5 6; do
3227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3230 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3234 # after this tag, mechanisms are not by side-effect, so they'll
3235 # only be used when explicitly requested
3236 if test "x$enable_dependency_tracking" = xyes; then
3244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3245 # mode. It turns out that the SunPro C++ compiler does not properly
3246 # handle `-M -o', and we need to detect this.
3247 if depmode=$depmode \
3248 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3249 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3250 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3251 >/dev/null 2>conftest.err &&
3252 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3253 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3254 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3255 # icc doesn't choke on unknown options, it will just issue warnings
3256 # (even with -Werror). So we grep stderr for any message
3257 # that says an option was ignored.
3258 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3259 am_cv_CC_dependencies_compiler_type=$depmode
3268 am_cv_CC_dependencies_compiler_type=none
3272 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3273 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3279 test "x$enable_dependency_tracking" != xno \
3280 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3282 am__fastdepCC_FALSE='#'
3284 am__fastdepCC_TRUE='#'
3285 am__fastdepCC_FALSE=
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3296 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3297 # On Suns, sometimes $CPP names a directory.
3298 if test -n "$CPP" && test -d "$CPP"; then
3301 if test -z "$CPP"; then
3302 if test "${ac_cv_prog_CPP+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 # Double quotes because CPP needs to be expanded
3306 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3309 for ac_c_preproc_warn_flag in '' yes
3311 # Use a header file that comes with gcc, so configuring glibc
3312 # with a fresh cross-compiler works.
3313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314 # <limits.h> exists even on freestanding compilers.
3315 # On the NeXT, cc -E runs the code through the compiler's parser,
3316 # not just through cpp. "Syntax error" is here to catch this case.
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3324 # include <limits.h>
3326 # include <assert.h>
3330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3347 if test -z "$ac_cpp_err"; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 # Broken: fails on valid input.
3356 rm -f conftest.err conftest.$ac_ext
3358 # OK, works on sane cases. Now check whether non-existent headers
3359 # can be detected and how.
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #include <ac_nonexistent.h>
3368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_c_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 if test -z "$ac_cpp_err"; then
3386 # Broken: success on invalid input.
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 # Passes both tests.
3396 rm -f conftest.err conftest.$ac_ext
3399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3400 rm -f conftest.err conftest.$ac_ext
3401 if $ac_preproc_ok; then
3413 echo "$as_me:$LINENO: result: $CPP" >&5
3414 echo "${ECHO_T}$CPP" >&6
3416 for ac_c_preproc_warn_flag in '' yes
3418 # Use a header file that comes with gcc, so configuring glibc
3419 # with a fresh cross-compiler works.
3420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421 # <limits.h> exists even on freestanding compilers.
3422 # On the NeXT, cc -E runs the code through the compiler's parser,
3423 # not just through cpp. "Syntax error" is here to catch this case.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3431 # include <limits.h>
3433 # include <assert.h>
3437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 # Broken: fails on valid input.
3463 rm -f conftest.err conftest.$ac_ext
3465 # OK, works on sane cases. Now check whether non-existent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <ac_nonexistent.h>
3475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Passes both tests.
3503 rm -f conftest.err conftest.$ac_ext
3506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507 rm -f conftest.err conftest.$ac_ext
3508 if $ac_preproc_ok; then
3511 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3512 See \`config.log' for more details." >&5
3513 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 echo "$as_me:$LINENO: checking for egrep" >&5
3526 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3527 if test "${ac_cv_prog_egrep+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3531 then ac_cv_prog_egrep='grep -E'
3532 else ac_cv_prog_egrep='egrep'
3535 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3536 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3537 EGREP=$ac_cv_prog_egrep
3540 if test $ac_cv_c_compiler_gnu = yes; then
3541 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3542 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3543 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 ac_pattern="Autoconf.*'x'"
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3558 ac_cv_prog_gcc_traditional=yes
3560 ac_cv_prog_gcc_traditional=no
3565 if test $ac_cv_prog_gcc_traditional = no; then
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3577 ac_cv_prog_gcc_traditional=yes
3583 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3584 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3585 if test $ac_cv_prog_gcc_traditional = yes; then
3586 CC="$CC -traditional"
3590 # Find a good install program. We prefer a C program (faster),
3591 # so one script is as good as another. But avoid the broken or
3592 # incompatible versions:
3593 # SysV /etc/install, /usr/sbin/install
3594 # SunOS /usr/etc/install
3595 # IRIX /sbin/install
3597 # AmigaOS /C/install, which installs bootblocks on floppy discs
3598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3601 # OS/2's system install, which has a completely different semantic
3602 # ./install, which can be erroneously created by make from ./install.sh.
3603 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3604 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3605 if test -z "$INSTALL"; then
3606 if test "${ac_cv_path_install+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir=.
3614 # Account for people who put trailing slashes in PATH elements.
3616 ./ | .// | /cC/* | \
3617 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3618 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3621 # OSF1 and SCO ODT 3.0 have their own names for install.
3622 # Don't use installbsd from OSF since it installs stuff as root
3624 for ac_prog in ginstall scoinst install; do
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3627 if test $ac_prog = install &&
3628 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3629 # AIX install. It has an incompatible calling convention.
3631 elif test $ac_prog = install &&
3632 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3633 # program-specific install script used by HP pwplus--don't use.
3636 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3648 if test "${ac_cv_path_install+set}" = set; then
3649 INSTALL=$ac_cv_path_install
3651 # As a last resort, use the slow shell script. We don't cache a
3652 # path for INSTALL within a source directory, because that will
3653 # break other packages using the cache if that directory is
3654 # removed, or if the path is relative.
3655 INSTALL=$ac_install_sh
3658 echo "$as_me:$LINENO: result: $INSTALL" >&5
3659 echo "${ECHO_T}$INSTALL" >&6
3661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3662 # It thinks the first close brace ends the variable substitution.
3663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3669 for ac_prog in gawk mawk nawk awk
3671 # Extract the first word of "$ac_prog", so it can be a program name with args.
3672 set dummy $ac_prog; ac_word=$2
3673 echo "$as_me:$LINENO: checking for $ac_word" >&5
3674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3675 if test "${ac_cv_prog_AWK+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 if test -n "$AWK"; then
3679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688 ac_cv_prog_AWK="$ac_prog"
3689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 if test -n "$AWK"; then
3699 echo "$as_me:$LINENO: result: $AWK" >&5
3700 echo "${ECHO_T}$AWK" >&6
3702 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3706 test -n "$AWK" && break
3709 if test -n "$ac_tool_prefix"; then
3710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_prog_RANLIB+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 if test -n "$RANLIB"; then
3718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 RANLIB=$ac_cv_prog_RANLIB
3737 if test -n "$RANLIB"; then
3738 echo "$as_me:$LINENO: result: $RANLIB" >&5
3739 echo "${ECHO_T}$RANLIB" >&6
3741 echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3746 if test -z "$ac_cv_prog_RANLIB"; then
3747 ac_ct_RANLIB=$RANLIB
3748 # Extract the first word of "ranlib", so it can be a program name with args.
3749 set dummy ranlib; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 if test -n "$ac_ct_RANLIB"; then
3756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_ac_ct_RANLIB="ranlib"
3766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3776 if test -n "$ac_ct_RANLIB"; then
3777 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3778 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3780 echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3784 RANLIB=$ac_ct_RANLIB
3786 RANLIB="$ac_cv_prog_RANLIB"
3789 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3790 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3792 if test "$LN_S" = "ln -s"; then
3793 echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6
3796 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3797 echo "${ECHO_T}no, using $LN_S" >&6
3800 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3801 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3802 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3803 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 cat > conftest.$ac_ext <<EOF
3807 int main() {return 0;}
3809 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3810 if test -s conftest.out; then
3811 eval "timidity_cv_ccoption_$ac_ccoption=no"
3813 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3816 eval "timidity_cv_ccoption_$ac_ccoption=no"
3821 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3822 echo "$as_me:$LINENO: result: yes" >&5
3823 echo "${ECHO_T}yes" >&6
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3832 # Checks for target dependencies
3835 # Check whether --with-elf or --without-elf was given.
3836 if test "${with_elf+set}" = set; then
3844 # [ --with-simd create SIMD friendly binary (default is no) ],
3845 # [ SIMD=$withval ], [ SIMD="no" ])
3850 test -n "$SHLD" || SHLD="ld -b"
3854 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3855 test -n "$SHLD" || SHLD="cc -shared -all"
3859 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3864 test -n "$SHLD" || SHLD="ld -Bshareable"
3868 if test "$ELFFORMAT" = yes; then
3869 test -n "$SHLD" || SHLD="ld -Bshareable"
3872 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3873 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3879 # EXTRALIBS="$EXTRALIBS -lxpg4"
3880 # test -n "$SHLD" || SHLD="ld -Bshareable"
3885 EXTRADEFS="-D__W32__"
3889 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
3890 test -n "$SHLD" || SHLD="BCC32 -WD"
3892 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3893 BORLANDC_START='C0X32.OBJ'
3894 CFLAGS="$CFLAGS -tWM -VM"
3895 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3899 CFLAGS="$CFLAGS -br -5s -zk0 -bm -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
3901 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3904 test -n "$SHLD" || SHLD="link -dll"
3905 VCPP_LDFLAGS="-nologo -incremental:no -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3906 CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX -Ob2"
3907 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
3910 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3911 *) test -n "$SHLD" || SHLD="unknown" ;;
3915 lib_user32_test=-luser32
3918 EXTRADEFS="-D__W32__"
3922 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
3923 test -n "$SHLD" || SHLD="BCC32 -WD"
3925 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3926 BORLANDC_START='C0X32.OBJ'
3927 CFLAGS="$CFLAGS -tWM -VM"
3928 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3932 CFLAGS="$CFLAGS -br -5s -zk0 -bm -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
3934 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3937 test -n "$SHLD" || SHLD="link -dll"
3939 VCPP_LDFLAGS="-nologo -incremental:no -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3940 CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX -Ob2"
3941 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
3943 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3944 *) test -n "$SHLD" || SHLD="unknown" ;;
3948 lib_user32_test=-luser32
3952 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3956 EXTRADEFS="-DSOLARIS"
3957 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3961 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3965 if test "x$SIMD" = "xyes"; then
3967 cat >>confdefs.h <<\_ACEOF
3968 #define USE_ALTIVEC 1
3971 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3972 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3975 cat >>confdefs.h <<\_ACEOF
3976 #define USE_ALTIVEC 0
3980 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3981 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3982 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3986 test -n "$SHLD" || \
3987 if test "x$GCC" = xyes; then
3990 SHLD="ld -Bdynamic -G"
3997 # Checks for libraries.
3999 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4000 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4001 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 ac_check_lib_save_LIBS=$LIBS
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4013 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag"
4038 || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try='test -s conftest$ac_exeext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 ac_cv_lib_m_sqrt=yes
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4057 rm -f conftest.err conftest.$ac_objext \
4058 conftest$ac_exeext conftest.$ac_ext
4059 LIBS=$ac_check_lib_save_LIBS
4061 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4062 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4063 if test $ac_cv_lib_m_sqrt = yes; then
4064 cat >>confdefs.h <<_ACEOF
4073 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4074 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4075 if test "${ac_cv_lib_socket_socket+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 ac_check_lib_save_LIBS=$LIBS
4079 LIBS="-lsocket $LIBS"
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4087 /* Override any gcc2 internal prototype to avoid an error. */
4091 /* We use char because int might match the return type of a gcc2
4092 builtin and then its argument prototype would still apply. */
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_lib_socket_socket=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 ac_cv_lib_socket_socket=no
4131 rm -f conftest.err conftest.$ac_objext \
4132 conftest$ac_exeext conftest.$ac_ext
4133 LIBS=$ac_check_lib_save_LIBS
4135 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4136 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4137 if test $ac_cv_lib_socket_socket = yes; then
4138 cat >>confdefs.h <<_ACEOF
4139 #define HAVE_LIBSOCKET 1
4142 LIBS="-lsocket $LIBS"
4146 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 ac_check_lib_save_LIBS=$LIBS
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4160 /* Override any gcc2 internal prototype to avoid an error. */
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4175 rm -f conftest.$ac_objext conftest$ac_exeext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177 (eval $ac_link) 2>conftest.er1
4179 grep -v '^ *+' conftest.er1 >conftest.err
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -z "$ac_c_werror_flag"
4185 || test ! -s conftest.err'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_lib_dl_dlopen=yes
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 ac_cv_lib_dl_dlopen=no
4204 rm -f conftest.err conftest.$ac_objext \
4205 conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4210 if test $ac_cv_lib_dl_dlopen = yes; then
4214 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4215 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4216 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 ac_check_lib_save_LIBS=$LIBS
4221 cat >conftest.$ac_ext <<_ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4228 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char NSLinkModule ();
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag"
4253 || test ! -s conftest.err'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest$ac_exeext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 ac_cv_lib_objc_NSLinkModule=yes
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_cv_lib_objc_NSLinkModule=no
4272 rm -f conftest.err conftest.$ac_objext \
4273 conftest$ac_exeext conftest.$ac_ext
4274 LIBS=$ac_check_lib_save_LIBS
4276 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4277 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4278 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4281 # Mac OS X need this.
4282 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM" != "xyes"; then
4284 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4285 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4286 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 ac_check_lib_save_LIBS=$LIBS
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4298 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4313 rm -f conftest.$ac_objext conftest$ac_exeext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315 (eval $ac_link) 2>conftest.er1
4317 grep -v '^ *+' conftest.er1 >conftest.err
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -z "$ac_c_werror_flag"
4323 || test ! -s conftest.err'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest$ac_exeext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_lib_xpg4_setlocale=yes
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 ac_cv_lib_xpg4_setlocale=no
4342 rm -f conftest.err conftest.$ac_objext \
4343 conftest$ac_exeext conftest.$ac_ext
4344 LIBS=$ac_check_lib_save_LIBS
4346 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4347 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4348 if test $ac_cv_lib_xpg4_setlocale = yes; then
4349 cat >>confdefs.h <<_ACEOF
4350 #define HAVE_LIBXPG4 1
4356 # Mac OS X (and maybe NetBSD) need this.
4359 for ac_func in gethostbyname
4361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4362 echo "$as_me:$LINENO: checking for $ac_func" >&5
4363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4364 if eval "test \"\${$as_ac_var+set}\" = set"; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4375 #define $ac_func innocuous_$ac_func
4377 /* System header to define __stub macros and hopefully few prototypes,
4378 which can conflict with char $ac_func (); below.
4379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380 <limits.h> exists even on freestanding compilers. */
4383 # include <limits.h>
4385 # include <assert.h>
4390 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4398 /* The GNU C library defines this for functions which it implements
4399 to always fail with ENOSYS. Some functions are actually named
4400 something starting with __ and the normal name is an alias. */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4404 char (*f) () = $ac_func;
4413 return f != $ac_func;
4418 rm -f conftest.$ac_objext conftest$ac_exeext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420 (eval $ac_link) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest$ac_exeext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 eval "$as_ac_var=yes"
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 eval "$as_ac_var=no"
4447 rm -f conftest.err conftest.$ac_objext \
4448 conftest$ac_exeext conftest.$ac_ext
4450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4452 if test `eval echo '${'$as_ac_var'}'` = yes; then
4453 cat >>confdefs.h <<_ACEOF
4454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4459 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4460 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4461 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 ac_check_lib_save_LIBS=$LIBS
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4473 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4479 char gethostbyname ();
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest$ac_exeext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_cv_lib_nsl_gethostbyname=yes
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ac_cv_lib_nsl_gethostbyname=no
4517 rm -f conftest.err conftest.$ac_objext \
4518 conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4521 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4522 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4523 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4524 cat >>confdefs.h <<_ACEOF
4525 #define HAVE_LIBNSL 1
4535 echo "$as_me:$LINENO: checking for X" >&5
4536 echo $ECHO_N "checking for X... $ECHO_C" >&6
4539 # Check whether --with-x or --without-x was given.
4540 if test "${with_x+set}" = set; then
4544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4545 if test "x$with_x" = xno; then
4546 # The user explicitly disabled X.
4549 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4550 # Both variables are already set.
4553 if test "${ac_cv_have_x+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 # One or both of the vars are not set, and there is no cached value.
4557 ac_x_includes=no ac_x_libraries=no
4559 if mkdir conftest.dir; then
4561 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4562 cat >Imakefile <<'_ACEOF'
4564 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4566 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4568 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4569 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4570 for ac_extension in a so sl; do
4571 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4572 test -f $ac_im_libdir/libX11.$ac_extension; then
4573 ac_im_usrlibdir=$ac_im_libdir; break
4576 # Screen out bogus values from the imake configuration. They are
4577 # bogus both because they are the default anyway, and because
4578 # using them would break gcc on systems where it needs fixed includes.
4579 case $ac_im_incroot in
4581 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4583 case $ac_im_usrlibdir in
4585 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4592 # Standard set of common directories for X headers.
4593 # Check X11 before X11Rn because it is often a symlink to the current release.
4605 /usr/local/X11/include
4606 /usr/local/X11R6/include
4607 /usr/local/X11R5/include
4608 /usr/local/X11R4/include
4610 /usr/local/include/X11
4611 /usr/local/include/X11R6
4612 /usr/local/include/X11R5
4613 /usr/local/include/X11R4
4617 /usr/XFree86/include/X11
4621 /usr/unsupported/include
4623 /usr/local/x11r5/include
4624 /usr/lpp/Xamples/include
4626 /usr/openwin/include
4627 /usr/openwin/share/include'
4629 if test "$ac_x_includes" = no; then
4630 # Guess where to find include files, by looking for Intrinsic.h.
4631 # First, try using that file with no special directory specified.
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <X11/Intrinsic.h>
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } >/dev/null; then
4648 if test -s conftest.err; then
4649 ac_cpp_err=$ac_c_preproc_warn_flag
4650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4657 if test -z "$ac_cpp_err"; then
4658 # We can compile using X headers with no special include directory.
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 for ac_dir in $ac_x_header_dirs; do
4665 if test -r "$ac_dir/X11/Intrinsic.h"; then
4666 ac_x_includes=$ac_dir
4671 rm -f conftest.err conftest.$ac_ext
4672 fi # $ac_x_includes = no
4674 if test "$ac_x_libraries" = no; then
4675 # Check for the libraries.
4676 # See if we find them without any special options.
4677 # Don't add to $LIBS permanently.
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <X11/Intrinsic.h>
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4718 # We can link X programs with no special library path.
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4725 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4727 # Don't even attempt the hair of trying to link an X program!
4728 for ac_extension in a so sl; do
4729 if test -r $ac_dir/libXt.$ac_extension; then
4730 ac_x_libraries=$ac_dir
4736 rm -f conftest.err conftest.$ac_objext \
4737 conftest$ac_exeext conftest.$ac_ext
4738 fi # $ac_x_libraries = no
4740 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4741 # Didn't find X anywhere. Cache the known absence of X.
4742 ac_cv_have_x="have_x=no"
4744 # Record where we found X for the cache.
4745 ac_cv_have_x="have_x=yes \
4746 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4751 eval "$ac_cv_have_x"
4754 if test "$have_x" != yes; then
4755 echo "$as_me:$LINENO: result: $have_x" >&5
4756 echo "${ECHO_T}$have_x" >&6
4759 # If each of the values was on the command line, it overrides each guess.
4760 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4761 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4762 # Update the cache value to reflect the command line values.
4763 ac_cv_have_x="have_x=yes \
4764 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4765 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4766 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4769 if test "$no_x" = yes; then
4770 # Not all programs may use this symbol, but it does not hurt to define it.
4772 cat >>confdefs.h <<\_ACEOF
4773 #define X_DISPLAY_MISSING 1
4776 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4778 if test -n "$x_includes"; then
4779 X_CFLAGS="$X_CFLAGS -I$x_includes"
4782 # It would also be nice to do this for all -L options, not just this one.
4783 if test -n "$x_libraries"; then
4784 X_LIBS="$X_LIBS -L$x_libraries"
4785 # For Solaris; some versions of Sun CC require a space after -R and
4786 # others require no space. Words are not sufficient . . . .
4787 case `(uname -sr) 2>/dev/null` in
4789 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4790 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4791 ac_xsave_LIBS=$LIBS; LIBS="$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_nospace = yes; then
4839 echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841 X_LIBS="$X_LIBS -R$x_libraries"
4843 LIBS="$ac_xsave_LIBS -R $x_libraries"
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861 (eval $ac_link) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest$ac_exeext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4888 rm -f conftest.err conftest.$ac_objext \
4889 conftest$ac_exeext conftest.$ac_ext
4890 if test $ac_R_space = yes; then
4891 echo "$as_me:$LINENO: result: yes" >&5
4892 echo "${ECHO_T}yes" >&6
4893 X_LIBS="$X_LIBS -R $x_libraries"
4895 echo "$as_me:$LINENO: result: neither works" >&5
4896 echo "${ECHO_T}neither works" >&6
4903 # Check for system-dependent libraries X programs must link with.
4904 # Do this before checking for the system-independent R6 libraries
4905 # (-lICE), since we may need -lsocket or whatever for X linking.
4907 if test "$ISC" = yes; then
4908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4910 # Martyn Johnson says this is needed for Ultrix, if the X
4911 # libraries were built with DECnet support. And Karl Berry says
4912 # the Alpha needs dnet_stub (dnet does not exist).
4913 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 /* Override any gcc2 internal prototype to avoid an error. */
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4927 char XOpenDisplay ();
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1 >conftest.err
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4964 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4965 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_check_lib_save_LIBS=$LIBS
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4977 /* Override any gcc2 internal prototype to avoid an error. */
4981 /* We use char because int might match the return type of a gcc2
4982 builtin and then its argument prototype would still apply. */
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4994 (eval $ac_link) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest$ac_exeext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 ac_cv_lib_dnet_dnet_ntoa=yes
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 ac_cv_lib_dnet_dnet_ntoa=no
5021 rm -f conftest.err conftest.$ac_objext \
5022 conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5028 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5031 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 ac_check_lib_save_LIBS=$LIBS
5038 LIBS="-ldnet_stub $LIBS"
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5046 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5061 rm -f conftest.$ac_objext conftest$ac_exeext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063 (eval $ac_link) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_c_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest$ac_exeext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 ac_cv_lib_dnet_stub_dnet_ntoa=no
5090 rm -f conftest.err conftest.$ac_objext \
5091 conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5095 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5096 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5097 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5102 rm -f conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 LIBS="$ac_xsave_LIBS"
5106 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5107 # to get the SysV transport functions.
5108 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5110 # The nsl library prevents programs from opening the X display
5111 # on Irix 5.2, according to T.E. Dickey.
5112 # The functions gethostbyname, getservbyname, and inet_addr are
5113 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5114 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5116 if test "${ac_cv_func_gethostbyname+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5127 #define gethostbyname innocuous_gethostbyname
5129 /* System header to define __stub macros and hopefully few prototypes,
5130 which can conflict with char gethostbyname (); below.
5131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132 <limits.h> exists even on freestanding compilers. */
5135 # include <limits.h>
5137 # include <assert.h>
5140 #undef gethostbyname
5142 /* Override any gcc2 internal prototype to avoid an error. */
5147 /* We use char because int might match the return type of a gcc2
5148 builtin and then its argument prototype would still apply. */
5149 char gethostbyname ();
5150 /* The GNU C library defines this for functions which it implements
5151 to always fail with ENOSYS. Some functions are actually named
5152 something starting with __ and the normal name is an alias. */
5153 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5156 char (*f) () = gethostbyname;
5165 return f != gethostbyname;
5170 rm -f conftest.$ac_objext conftest$ac_exeext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5172 (eval $ac_link) 2>conftest.er1
5174 grep -v '^ *+' conftest.er1 >conftest.err
5176 cat conftest.err >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } &&
5179 { ac_try='test -z "$ac_c_werror_flag"
5180 || test ! -s conftest.err'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; } &&
5186 { ac_try='test -s conftest$ac_exeext'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 ac_cv_func_gethostbyname=yes
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 ac_cv_func_gethostbyname=no
5199 rm -f conftest.err conftest.$ac_objext \
5200 conftest$ac_exeext conftest.$ac_ext
5202 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5203 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5205 if test $ac_cv_func_gethostbyname = no; then
5206 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5207 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 ac_check_lib_save_LIBS=$LIBS
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5220 /* Override any gcc2 internal prototype to avoid an error. */
5224 /* We use char because int might match the return type of a gcc2
5225 builtin and then its argument prototype would still apply. */
5226 char gethostbyname ();
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1 >conftest.err
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_lib_nsl_gethostbyname=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_cv_lib_nsl_gethostbyname=no
5264 rm -f conftest.err conftest.$ac_objext \
5265 conftest$ac_exeext conftest.$ac_ext
5266 LIBS=$ac_check_lib_save_LIBS
5268 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5269 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5270 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5274 if test $ac_cv_lib_nsl_gethostbyname = no; then
5275 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5276 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5277 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_check_lib_save_LIBS=$LIBS
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5289 /* Override any gcc2 internal prototype to avoid an error. */
5293 /* We use char because int might match the return type of a gcc2
5294 builtin and then its argument prototype would still apply. */
5295 char gethostbyname ();
5304 rm -f conftest.$ac_objext conftest$ac_exeext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306 (eval $ac_link) 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag"
5314 || test ! -s conftest.err'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest$ac_exeext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 ac_cv_lib_bsd_gethostbyname=yes
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 ac_cv_lib_bsd_gethostbyname=no
5333 rm -f conftest.err conftest.$ac_objext \
5334 conftest$ac_exeext conftest.$ac_ext
5335 LIBS=$ac_check_lib_save_LIBS
5337 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5338 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5339 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5346 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5347 # socket/setsockopt and other routines are undefined under SCO ODT
5348 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5349 # on later versions), says Simon Leinen: it contains gethostby*
5350 # variants that don't use the name server (or something). -lsocket
5351 # must be given before -lnsl if both are needed. We assume that
5352 # if connect needs -lnsl, so does gethostbyname.
5353 echo "$as_me:$LINENO: checking for connect" >&5
5354 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5355 if test "${ac_cv_func_connect+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5366 #define connect innocuous_connect
5368 /* System header to define __stub macros and hopefully few prototypes,
5369 which can conflict with char connect (); below.
5370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 <limits.h> exists even on freestanding compilers. */
5374 # include <limits.h>
5376 # include <assert.h>
5381 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5389 /* The GNU C library defines this for functions which it implements
5390 to always fail with ENOSYS. Some functions are actually named
5391 something starting with __ and the normal name is an alias. */
5392 #if defined (__stub_connect) || defined (__stub___connect)
5395 char (*f) () = connect;
5404 return f != connect;
5409 rm -f conftest.$ac_objext conftest$ac_exeext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5411 (eval $ac_link) 2>conftest.er1
5413 grep -v '^ *+' conftest.er1 >conftest.err
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -z "$ac_c_werror_flag"
5419 || test ! -s conftest.err'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try='test -s conftest$ac_exeext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_func_connect=yes
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5436 ac_cv_func_connect=no
5438 rm -f conftest.err conftest.$ac_objext \
5439 conftest$ac_exeext conftest.$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5442 echo "${ECHO_T}$ac_cv_func_connect" >&6
5444 if test $ac_cv_func_connect = no; then
5445 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5446 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5447 if test "${ac_cv_lib_socket_connect+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 ac_check_lib_save_LIBS=$LIBS
5451 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5459 /* Override any gcc2 internal prototype to avoid an error. */
5463 /* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5474 rm -f conftest.$ac_objext conftest$ac_exeext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5476 (eval $ac_link) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag"
5484 || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest$ac_exeext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_lib_socket_connect=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_cv_lib_socket_connect=no
5503 rm -f conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5507 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5508 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5509 if test $ac_cv_lib_socket_connect = yes; then
5510 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5515 # Guillermo Gomez says -lposix is necessary on A/UX.
5516 echo "$as_me:$LINENO: checking for remove" >&5
5517 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5518 if test "${ac_cv_func_remove+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cat >conftest.$ac_ext <<_ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5529 #define remove innocuous_remove
5531 /* System header to define __stub macros and hopefully few prototypes,
5532 which can conflict with char remove (); below.
5533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5534 <limits.h> exists even on freestanding compilers. */
5537 # include <limits.h>
5539 # include <assert.h>
5544 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_remove) || defined (__stub___remove)
5558 char (*f) () = remove;
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag"
5582 || test ! -s conftest.err'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_cv_func_remove=yes
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 ac_cv_func_remove=no
5601 rm -f conftest.err conftest.$ac_objext \
5602 conftest$ac_exeext conftest.$ac_ext
5604 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5605 echo "${ECHO_T}$ac_cv_func_remove" >&6
5607 if test $ac_cv_func_remove = no; then
5608 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5609 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5610 if test "${ac_cv_lib_posix_remove+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 ac_check_lib_save_LIBS=$LIBS
5614 LIBS="-lposix $LIBS"
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5622 /* Override any gcc2 internal prototype to avoid an error. */
5626 /* We use char because int might match the return type of a gcc2
5627 builtin and then its argument prototype would still apply. */
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -z "$ac_c_werror_flag"
5647 || test ! -s conftest.err'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 ac_cv_lib_posix_remove=yes
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 ac_cv_lib_posix_remove=no
5666 rm -f conftest.err conftest.$ac_objext \
5667 conftest$ac_exeext conftest.$ac_ext
5668 LIBS=$ac_check_lib_save_LIBS
5670 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5671 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5672 if test $ac_cv_lib_posix_remove = yes; then
5673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5678 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5679 echo "$as_me:$LINENO: checking for shmat" >&5
5680 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5681 if test "${ac_cv_func_shmat+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5692 #define shmat innocuous_shmat
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char shmat (); below.
5696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 <limits.h> exists even on freestanding compilers. */
5700 # include <limits.h>
5702 # include <assert.h>
5707 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_shmat) || defined (__stub___shmat)
5721 char (*f) () = shmat;
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_func_shmat=yes
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5764 rm -f conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5767 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5768 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5770 if test $ac_cv_func_shmat = no; then
5771 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5772 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5773 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 ac_check_lib_save_LIBS=$LIBS
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5785 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802 (eval $ac_link) 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag"
5810 || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_lib_ipc_shmat=yes
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 ac_cv_lib_ipc_shmat=no
5829 rm -f conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5831 LIBS=$ac_check_lib_save_LIBS
5833 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5834 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5835 if test $ac_cv_lib_ipc_shmat = yes; then
5836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5842 # Check for libraries that X11R6 Xt/Xaw programs need.
5843 ac_save_LDFLAGS=$LDFLAGS
5844 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5845 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5846 # check for ICE first), but we must link in the order -lSM -lICE or
5847 # we get undefined symbols. So assume we have SM if we have ICE.
5848 # These have to be linked with before -lX11, unlike the other
5849 # libraries we check for below, so use a different variable.
5850 # John Interrante, Karl Berry
5851 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5852 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5853 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 ac_check_lib_save_LIBS=$LIBS
5857 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5865 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5871 char IceConnectionNumber ();
5875 IceConnectionNumber ();
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882 (eval $ac_link) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1 >conftest.err
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest$ac_exeext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_lib_ICE_IceConnectionNumber=yes
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 ac_cv_lib_ICE_IceConnectionNumber=no
5909 rm -f conftest.err conftest.$ac_objext \
5910 conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5914 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5915 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5916 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5919 LDFLAGS=$ac_save_LDFLAGS
5925 if test "x$with_x" = xyes; then
5926 if test "x$have_x" = xno; then
5927 if test "x$x_config_flag" = xyes; then
5928 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5929 echo "$as_me: error: Could not configure X" >&2;}
5930 { (exit 1); exit 1; }; }
5932 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5933 echo "$as_me: WARNING: Could not configure X" >&2;}
5937 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5938 if test "x$x_libraries" != x; then
5939 ldflags_x_opt="-L$x_libraries"
5940 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5941 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5945 if test "x$x_includes" != x; then
5946 CPPFLAGS="$CPPFLAGS -I$x_includes"
5950 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5951 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5952 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 ac_check_lib_save_LIBS=$LIBS
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5970 char XOpenDisplay ();
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_c_werror_flag"
5989 || test ! -s conftest.err'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_lib_X11_XOpenDisplay=yes
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 ac_cv_lib_X11_XOpenDisplay=no
6008 rm -f conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010 LIBS=$ac_check_lib_save_LIBS
6012 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6013 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6014 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6015 cat >>confdefs.h <<_ACEOF
6016 #define HAVE_LIBX11 1
6023 echo "$as_me:$LINENO: checking X11 version 6" >&5
6024 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6025 if test "${timidity_cv_x11_version_6+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #include <X11/Xlib.h>
6039 #if XlibSpecificationRelease < 6
6047 rm -f conftest.$ac_objext conftest$ac_exeext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049 (eval $ac_link) 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_c_werror_flag"
6057 || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 timidity_cv_x11_version_6=yes
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 timidity_cv_x11_version_6=no
6076 rm -f conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6080 if test "$timidity_cv_x11_version_6" = "yes"; then
6081 echo "$as_me:$LINENO: result: 6 or newer" >&5
6082 echo "${ECHO_T}6 or newer" >&6
6084 echo "$as_me:$LINENO: result: before 6" >&5
6085 echo "${ECHO_T}before 6" >&6
6089 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6090 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6091 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 ac_check_lib_save_LIBS=$LIBS
6096 cat >conftest.$ac_ext <<_ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6103 /* Override any gcc2 internal prototype to avoid an error. */
6107 /* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */
6109 char XShapeCombineMask ();
6113 XShapeCombineMask ();
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest$ac_exeext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_lib_Xext_XShapeCombineMask=yes
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 ac_cv_lib_Xext_XShapeCombineMask=no
6147 rm -f conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149 LIBS=$ac_check_lib_save_LIBS
6151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6152 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6153 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6154 have_xext=yes; LIBS="-lXext $LIBS"
6160 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6161 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6162 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 ac_check_lib_save_LIBS=$LIBS
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6174 /* Override any gcc2 internal prototype to avoid an error. */
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6180 char IceConnectionNumber ();
6184 IceConnectionNumber ();
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_lib_ICE_IceConnectionNumber=yes
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_cv_lib_ICE_IceConnectionNumber=no
6218 rm -f conftest.err conftest.$ac_objext \
6219 conftest$ac_exeext conftest.$ac_ext
6220 LIBS=$ac_check_lib_save_LIBS
6222 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6223 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6224 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_LIBICE 1
6233 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6234 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6235 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_check_lib_save_LIBS=$LIBS
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6247 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char SmcOpenConnection ();
6257 SmcOpenConnection ();
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_c_werror_flag"
6272 || test ! -s conftest.err'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; } &&
6278 { ac_try='test -s conftest$ac_exeext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_cv_lib_SM_SmcOpenConnection=yes
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_cv_lib_SM_SmcOpenConnection=no
6291 rm -f conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6293 LIBS=$ac_check_lib_save_LIBS
6295 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6296 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6297 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6298 have_xprelibs=yes; LIBS="-lSM $LIBS"
6303 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6304 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6305 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_check_lib_save_LIBS=$LIBS
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6323 char XtVaAppInitialize ();
6327 XtVaAppInitialize ();
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>conftest.er1
6336 grep -v '^ *+' conftest.er1 >conftest.err
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_lib_Xt_XtVaAppInitialize=yes
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_cv_lib_Xt_XtVaAppInitialize=no
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363 LIBS=$ac_check_lib_save_LIBS
6365 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6366 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6367 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6368 have_xt=yes; LIBS="-lXt $LIBS"
6373 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6374 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6375 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 ac_check_lib_save_LIBS=$LIBS
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6387 /* Override any gcc2 internal prototype to avoid an error. */
6391 /* We use char because int might match the return type of a gcc2
6392 builtin and then its argument prototype would still apply. */
6393 char XmuInternAtom ();
6402 rm -f conftest.$ac_objext conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404 (eval $ac_link) 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try='test -z "$ac_c_werror_flag"
6412 || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest$ac_exeext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_cv_lib_Xmu_XmuInternAtom=yes
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_cv_lib_Xmu_XmuInternAtom=no
6431 rm -f conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
6433 LIBS=$ac_check_lib_save_LIBS
6435 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6436 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6437 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6442 for ac_func in XmuRegisterExternalAgent
6444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_func" >&5
6446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_var+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6458 #define $ac_func innocuous_$ac_func
6460 /* System header to define __stub macros and hopefully few prototypes,
6461 which can conflict with char $ac_func (); below.
6462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6463 <limits.h> exists even on freestanding compilers. */
6466 # include <limits.h>
6468 # include <assert.h>
6473 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6481 /* The GNU C library defines this for functions which it implements
6482 to always fail with ENOSYS. Some functions are actually named
6483 something starting with __ and the normal name is an alias. */
6484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6487 char (*f) () = $ac_func;
6496 return f != $ac_func;
6501 rm -f conftest.$ac_objext conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_c_werror_flag"
6511 || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest$ac_exeext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 eval "$as_ac_var=yes"
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 eval "$as_ac_var=no"
6530 rm -f conftest.err conftest.$ac_objext \
6531 conftest$ac_exeext conftest.$ac_ext
6533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6535 if test `eval echo '${'$as_ac_var'}'` = yes; then
6536 cat >>confdefs.h <<_ACEOF
6537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6543 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6544 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6545 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_check_lib_save_LIBS=$LIBS
6549 LIBS="-lXaw3d $LIBS"
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563 char XawInitializeWidgetSet ();
6567 XawInitializeWidgetSet ();
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>conftest.er1
6576 grep -v '^ *+' conftest.er1 >conftest.err
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -z "$ac_c_werror_flag"
6582 || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6601 rm -f conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603 LIBS=$ac_check_lib_save_LIBS
6605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6606 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6607 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6610 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6611 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6612 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 ac_check_lib_save_LIBS=$LIBS
6617 cat >conftest.$ac_ext <<_ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6624 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6630 char XawInitializeWidgetSet ();
6634 XawInitializeWidgetSet ();
6639 rm -f conftest.$ac_objext conftest$ac_exeext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641 (eval $ac_link) 2>conftest.er1
6643 grep -v '^ *+' conftest.er1 >conftest.err
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -z "$ac_c_werror_flag"
6649 || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6668 rm -f conftest.err conftest.$ac_objext \
6669 conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6672 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6673 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6674 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6682 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6683 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6684 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_check_lib_save_LIBS=$LIBS
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6696 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6702 char XmCreateForm ();
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713 (eval $ac_link) 2>conftest.er1
6715 grep -v '^ *+' conftest.er1 >conftest.err
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_c_werror_flag"
6721 || test ! -s conftest.err'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest$ac_exeext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_lib_Xm_XmCreateForm=yes
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_cv_lib_Xm_XmCreateForm=no
6740 rm -f conftest.err conftest.$ac_objext \
6741 conftest$ac_exeext conftest.$ac_ext
6742 LIBS=$ac_check_lib_save_LIBS
6744 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6745 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6746 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6753 for ac_func in XShmCreatePixmap
6755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 echo "$as_me:$LINENO: checking for $ac_func" >&5
6757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758 if eval "test \"\${$as_ac_var+set}\" = set"; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.$ac_ext <<_ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6769 #define $ac_func innocuous_$ac_func
6771 /* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func (); below.
6773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6774 <limits.h> exists even on freestanding compilers. */
6777 # include <limits.h>
6779 # include <assert.h>
6784 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6792 /* The GNU C library defines this for functions which it implements
6793 to always fail with ENOSYS. Some functions are actually named
6794 something starting with __ and the normal name is an alias. */
6795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6798 char (*f) () = $ac_func;
6807 return f != $ac_func;
6812 rm -f conftest.$ac_objext conftest$ac_exeext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6814 (eval $ac_link) 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try='test -z "$ac_c_werror_flag"
6822 || test ! -s conftest.err'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; } &&
6828 { ac_try='test -s conftest$ac_exeext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 eval "$as_ac_var=yes"
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 eval "$as_ac_var=no"
6841 rm -f conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6846 if test `eval echo '${'$as_ac_var'}'` = yes; then
6847 cat >>confdefs.h <<_ACEOF
6848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6857 # Checks for header files.
6858 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6860 if test "${ac_cv_header_stdc+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6882 rm -f conftest.$ac_objext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884 (eval $ac_compile) 2>conftest.er1
6886 grep -v '^ *+' conftest.er1 >conftest.err
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -z "$ac_c_werror_flag"
6892 || test ! -s conftest.err'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; } &&
6898 { ac_try='test -s conftest.$ac_objext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_header_stdc=yes
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_header_stdc=no
6911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6913 if test $ac_cv_header_stdc = yes; then
6914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6915 cat >conftest.$ac_ext <<_ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6925 $EGREP "memchr" >/dev/null 2>&1; then
6928 ac_cv_header_stdc=no
6934 if test $ac_cv_header_stdc = yes; then
6935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946 $EGREP "free" >/dev/null 2>&1; then
6949 ac_cv_header_stdc=no
6955 if test $ac_cv_header_stdc = yes; then
6956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6957 if test "$cross_compiling" = yes; then
6960 cat >conftest.$ac_ext <<_ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6967 #if ((' ' & 0x0FF) == 0x020)
6968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6971 # define ISLOWER(c) \
6972 (('a' <= (c) && (c) <= 'i') \
6973 || ('j' <= (c) && (c) <= 'r') \
6974 || ('s' <= (c) && (c) <= 'z'))
6975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6983 for (i = 0; i < 256; i++)
6984 if (XOR (islower (i), ISLOWER (i))
6985 || toupper (i) != TOUPPER (i))
6990 rm -f conftest$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7003 echo "$as_me: program exited with status $ac_status" >&5
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_cv_header_stdc=no
7010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7014 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7015 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7016 if test $ac_cv_header_stdc = yes; then
7018 cat >>confdefs.h <<\_ACEOF
7019 #define STDC_HEADERS 1
7024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7035 inttypes.h stdint.h unistd.h
7037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7038 echo "$as_me:$LINENO: checking for $ac_header" >&5
7039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 cat >conftest.$ac_ext <<_ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7049 $ac_includes_default
7051 #include <$ac_header>
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 eval "$as_ac_Header=yes"
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 eval "$as_ac_Header=no"
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7087 cat >>confdefs.h <<_ACEOF
7088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7096 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7097 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7098 if test "${ac_cv_header_stdbool_h+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7108 #include <stdbool.h>
7110 # error bool is not defined
7113 # error false is not defined
7116 # error false is not 0
7119 # error true is not defined
7122 # error true is not 1
7124 #ifndef __bool_true_false_are_defined
7125 # error __bool_true_false_are_defined is not defined
7128 struct s { _Bool s: 1; _Bool t; } s;
7130 char a[true == 1 ? 1 : -1];
7131 char b[false == 0 ? 1 : -1];
7132 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7133 char d[(bool) -0.5 == true ? 1 : -1];
7135 char f[(_Bool) -0.0 == false ? 1 : -1];
7137 char h[sizeof (_Bool)];
7143 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7148 rm -f conftest.$ac_objext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7150 (eval $ac_compile) 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } &&
7157 { ac_try='test -z "$ac_c_werror_flag"
7158 || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_cv_header_stdbool_h=yes
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_cv_header_stdbool_h=no
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7179 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7180 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7181 echo "$as_me:$LINENO: checking for _Bool" >&5
7182 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7183 if test "${ac_cv_type__Bool+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_type__Bool=yes
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7236 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7237 if test $ac_cv_type__Bool = yes; then
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE__BOOL 1
7246 if test $ac_cv_header_stdbool_h = yes; then
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_STDBOOL_H 1
7254 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7255 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7256 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7266 #include <sys/wait.h>
7268 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7279 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>conftest.er1
7288 grep -v '^ *+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try='test -z "$ac_c_werror_flag"
7294 || test ! -s conftest.err'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; } &&
7300 { ac_try='test -s conftest.$ac_objext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 ac_cv_header_sys_wait_h=yes
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 ac_cv_header_sys_wait_h=no
7313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7315 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7316 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7317 if test $ac_cv_header_sys_wait_h = yes; then
7319 cat >>confdefs.h <<\_ACEOF
7320 #define HAVE_SYS_WAIT_H 1
7325 if test "x$WATCOM" != xyes ; then
7326 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7327 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7328 if test "${ac_cv_header_time+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.$ac_ext <<_ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <sys/types.h>
7338 #include <sys/time.h>
7344 if ((struct tm *) 0)
7350 rm -f conftest.$ac_objext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7352 (eval $ac_compile) 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_c_werror_flag"
7360 || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest.$ac_objext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 ac_cv_header_time=yes
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 ac_cv_header_time=no
7379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7381 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7382 echo "${ECHO_T}$ac_cv_header_time" >&6
7383 if test $ac_cv_header_time = yes; then
7385 cat >>confdefs.h <<\_ACEOF
7386 #define TIME_WITH_SYS_TIME 1
7398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7399 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7400 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <sys/types.h>
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest.$ac_objext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 eval "$as_ac_Header=yes"
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 eval "$as_ac_Header=no"
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457 cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7461 ac_header_dirent=$ac_hdr; break
7465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7466 if test $ac_header_dirent = dirent.h; then
7467 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7469 if test "${ac_cv_search_opendir+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_func_search_save_LIBS=$LIBS
7473 ac_cv_search_opendir=no
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7481 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7496 rm -f conftest.$ac_objext conftest$ac_exeext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7498 (eval $ac_link) 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } &&
7505 { ac_try='test -z "$ac_c_werror_flag"
7506 || test ! -s conftest.err'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7518 ac_cv_search_opendir="none required"
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7524 rm -f conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526 if test "$ac_cv_search_opendir" = no; then
7527 for ac_lib in dir; do
7528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7536 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>conftest.er1
7555 grep -v '^ *+' conftest.er1 >conftest.err
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try='test -s conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 ac_cv_search_opendir="-l$ac_lib"
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7580 rm -f conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7584 LIBS=$ac_func_search_save_LIBS
7586 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7587 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7588 if test "$ac_cv_search_opendir" != no; then
7589 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7594 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7595 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7596 if test "${ac_cv_search_opendir+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 ac_func_search_save_LIBS=$LIBS
7600 ac_cv_search_opendir=no
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7608 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7623 rm -f conftest.$ac_objext conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625 (eval $ac_link) 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -z "$ac_c_werror_flag"
7633 || test ! -s conftest.err'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_search_opendir="none required"
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7651 rm -f conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7653 if test "$ac_cv_search_opendir" = no; then
7655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7656 cat >conftest.$ac_ext <<_ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7663 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680 (eval $ac_link) 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_search_opendir="-l$ac_lib"
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7707 rm -f conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_func_search_save_LIBS
7713 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7714 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7715 if test "$ac_cv_search_opendir" != no; then
7716 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7802 echo "$as_me:$LINENO: checking for $ac_header" >&5
7803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810 # Is the header compilable?
7811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 $ac_includes_default
7820 #include <$ac_header>
7822 rm -f conftest.$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_header_compiler=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_header_compiler=no
7851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7853 echo "${ECHO_T}$ac_header_compiler" >&6
7855 # Is the header present?
7856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7858 cat >conftest.$ac_ext <<_ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 #include <$ac_header>
7866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } >/dev/null; then
7874 if test -s conftest.err; then
7875 ac_cpp_err=$ac_c_preproc_warn_flag
7876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7883 if test -z "$ac_cpp_err"; then
7884 ac_header_preproc=yes
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_header_preproc=no
7891 rm -f conftest.err conftest.$ac_ext
7892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7893 echo "${ECHO_T}$ac_header_preproc" >&6
7895 # So? What about this header?
7896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7902 ac_header_preproc=yes
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7919 ## ------------------------------- ##
7920 ## Report this to root@mput.dip.jp ##
7921 ## ------------------------------- ##
7924 sed "s/^/$as_me: WARNING: /" >&2
7927 echo "$as_me:$LINENO: checking for $ac_header" >&5
7928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 eval "$as_ac_Header=\$ac_header_preproc"
7934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7939 cat >>confdefs.h <<_ACEOF
7940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7950 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 echo "$as_me:$LINENO: checking for $ac_header" >&5
7954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7965 #ifdef HAVE_X11_XLIB_H
7966 #include <X11/Xlib.h>
7970 #include <$ac_header>
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974 (eval $ac_compile) 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag"
7982 || test ! -s conftest.err'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest.$ac_objext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 eval "$as_ac_Header=yes"
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 eval "$as_ac_Header=no"
8001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8006 cat >>confdefs.h <<_ACEOF
8007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8014 if test "${ac_cv_header_string_h+set}" = set; then
8015 echo "$as_me:$LINENO: checking for string.h" >&5
8016 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8017 if test "${ac_cv_header_string_h+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8021 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8023 # Is the header compilable?
8024 echo "$as_me:$LINENO: checking string.h usability" >&5
8025 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037 (eval $ac_compile) 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -z "$ac_c_werror_flag"
8045 || test ! -s conftest.err'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest.$ac_objext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_header_compiler=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_header_compiler=no
8064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8066 echo "${ECHO_T}$ac_header_compiler" >&6
8068 # Is the header present?
8069 echo "$as_me:$LINENO: checking string.h presence" >&5
8070 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8071 cat >conftest.$ac_ext <<_ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } >/dev/null; then
8087 if test -s conftest.err; then
8088 ac_cpp_err=$ac_c_preproc_warn_flag
8089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8096 if test -z "$ac_cpp_err"; then
8097 ac_header_preproc=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_header_preproc=no
8104 rm -f conftest.err conftest.$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8106 echo "${ECHO_T}$ac_header_preproc" >&6
8108 # So? What about this header?
8109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8112 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8113 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8114 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8115 ac_header_preproc=yes
8118 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8119 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8120 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8121 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8122 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8123 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8125 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8126 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8127 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8129 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8132 ## ------------------------------- ##
8133 ## Report this to root@mput.dip.jp ##
8134 ## ------------------------------- ##
8137 sed "s/^/$as_me: WARNING: /" >&2
8140 echo "$as_me:$LINENO: checking for string.h" >&5
8141 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8142 if test "${ac_cv_header_string_h+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 ac_cv_header_string_h=$ac_header_preproc
8147 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8148 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8151 if test $ac_cv_header_string_h = yes; then
8155 cat >>confdefs.h <<\_ACEOF
8156 #define NO_STRING_H 1
8163 # Checks for typedefs, structures, and compiler characteristics.
8164 if test "x$WATCOM" != xyes ; then
8165 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8166 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8167 if test "${ac_cv_c_bigendian+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 # See if sys/param.h defines the BYTE_ORDER macro.
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 #include <sys/types.h>
8178 #include <sys/param.h>
8183 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8191 rm -f conftest.$ac_objext
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } &&
8200 { ac_try='test -z "$ac_c_werror_flag"
8201 || test ! -s conftest.err'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 # It does; now see whether it defined to BIG_ENDIAN or not.
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 #include <sys/types.h>
8221 #include <sys/param.h>
8226 #if BYTE_ORDER != BIG_ENDIAN
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236 (eval $ac_compile) 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest.$ac_objext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_c_bigendian=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 ac_cv_c_bigendian=no
8263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 # It does not; compile a test program.
8269 if test "$cross_compiling" = yes; then
8270 # try to guess the endianness by grepping values into an object file
8271 ac_cv_c_bigendian=unknown
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8279 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8280 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8281 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8282 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8283 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8287 _ascii (); _ebcdic ();
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag"
8302 || test ! -s conftest.err'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8315 ac_cv_c_bigendian=yes
8317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8318 if test "$ac_cv_c_bigendian" = unknown; then
8319 ac_cv_c_bigendian=no
8321 # finding both strings is unlikely to happen, but who knows?
8322 ac_cv_c_bigendian=unknown
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8341 /* Are we little or big endian? From Harbison&Steele. */
8345 char c[sizeof (long)];
8348 exit (u.c[sizeof (long) - 1] == 1);
8351 rm -f conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353 (eval $ac_link) 2>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_c_bigendian=no
8364 echo "$as_me: program exited with status $ac_status" >&5
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_c_bigendian=yes
8371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8376 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8377 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8378 case $ac_cv_c_bigendian in
8381 cat >>confdefs.h <<\_ACEOF
8382 #define WORDS_BIGENDIAN 1
8388 { { echo "$as_me:$LINENO: error: unknown endianness
8389 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8390 echo "$as_me: error: unknown endianness
8391 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8392 { (exit 1); exit 1; }; } ;;
8397 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8398 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8399 if test "${ac_cv_c_char_unsigned+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
8412 static int test_array [1 - 2 * !(((char) -1) < 0)];
8419 rm -f conftest.$ac_objext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8421 (eval $ac_compile) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -z "$ac_c_werror_flag"
8429 || test ! -s conftest.err'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; } &&
8435 { ac_try='test -s conftest.$ac_objext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 ac_cv_c_char_unsigned=no
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 ac_cv_c_char_unsigned=yes
8448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8450 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8451 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8452 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8453 cat >>confdefs.h <<\_ACEOF
8454 #define __CHAR_UNSIGNED__ 1
8459 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8460 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8461 if test "${ac_cv_c_const+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8474 /* FIXME: Include the comments suggested by Paul. */
8476 /* Ultrix mips cc rejects this. */
8477 typedef int charset[2];
8479 /* SunOS 4.1.1 cc rejects this. */
8480 char const *const *ccp;
8482 /* NEC SVR4.0.2 mips cc rejects this. */
8483 struct point {int x, y;};
8484 static struct point const zero = {0,0};
8485 /* AIX XL C 1.02.0.0 rejects this.
8486 It does not let you subtract one const X* pointer from another in
8487 an arm of an if-expression whose if-part is not a constant
8489 const char *g = "string";
8490 ccp = &g + (g ? g-g : 0);
8491 /* HPUX 7.0 cc rejects these. */
8494 ccp = (char const *const *) p;
8495 { /* SCO 3.2v4 cc rejects this. */
8497 char const *s = 0 ? (char *) 0 : (char const *) 0;
8501 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8503 const int *foo = &x[0];
8506 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8507 typedef const int *iptr;
8511 { /* AIX XL C 1.02.0.0 rejects this saying
8512 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8513 struct s { int j; const int *ap[3]; };
8514 struct s *b; b->j = 5;
8516 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8557 echo "${ECHO_T}$ac_cv_c_const" >&6
8558 if test $ac_cv_c_const = no; then
8560 cat >>confdefs.h <<\_ACEOF
8566 echo "$as_me:$LINENO: checking for inline" >&5
8567 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8568 if test "${ac_cv_c_inline+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 for ac_kw in inline __inline__ __inline; do
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8581 static $ac_kw foo_t static_foo () {return 0; }
8582 $ac_kw foo_t foo () {return 0; }
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest.$ac_objext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_cv_c_inline=$ac_kw; break
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8618 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8619 echo "${ECHO_T}$ac_cv_c_inline" >&6
8622 case $ac_cv_c_inline in
8625 case $ac_cv_c_inline in
8627 *) ac_val=$ac_cv_c_inline;;
8629 cat >>confdefs.h <<_ACEOF
8631 #define inline $ac_val
8637 echo "$as_me:$LINENO: checking for working volatile" >&5
8638 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8639 if test "${ac_cv_c_volatile+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661 (eval $ac_compile) 2>conftest.er1
8663 grep -v '^ *+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -z "$ac_c_werror_flag"
8669 || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_cv_c_volatile=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8691 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8692 if test $ac_cv_c_volatile = no; then
8694 cat >>confdefs.h <<\_ACEOF
8700 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8701 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8702 if test "${ac_cv_c_stringize+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8713 char *s = x(teststring);
8715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8716 $EGREP "#teststring" >/dev/null 2>&1; then
8717 ac_cv_c_stringize=no
8719 ac_cv_c_stringize=yes
8724 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8725 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8726 if test $ac_cv_c_stringize = yes; then
8728 cat >>confdefs.h <<\_ACEOF
8729 #define HAVE_STRINGIZE 1
8734 echo "$as_me:$LINENO: checking for function prototypes" >&5
8735 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8736 if test "$ac_cv_prog_cc_stdc" != no; then
8737 echo "$as_me:$LINENO: result: yes" >&5
8738 echo "${ECHO_T}yes" >&6
8740 cat >>confdefs.h <<\_ACEOF
8741 #define PROTOTYPES 1
8745 cat >>confdefs.h <<\_ACEOF
8746 #define __PROTOTYPES 1
8750 echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6
8754 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8755 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8756 if test "${ac_cv_struct_tm+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 cat >conftest.$ac_ext <<_ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 #include <sys/types.h>
8771 struct tm *tp; tp->tm_sec;
8776 rm -f conftest.$ac_objext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8778 (eval $ac_compile) 2>conftest.er1
8780 grep -v '^ *+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -z "$ac_c_werror_flag"
8786 || test ! -s conftest.err'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; } &&
8792 { ac_try='test -s conftest.$ac_objext'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 ac_cv_struct_tm=time.h
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 ac_cv_struct_tm=sys/time.h
8805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8808 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8809 if test $ac_cv_struct_tm = sys/time.h; then
8811 cat >>confdefs.h <<\_ACEOF
8812 #define TM_IN_SYS_TIME 1
8817 echo "$as_me:$LINENO: checking for size_t" >&5
8818 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8819 if test "${ac_cv_type_size_t+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 $ac_includes_default
8834 if (sizeof (size_t))
8840 rm -f conftest.$ac_objext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842 (eval $ac_compile) 2>conftest.er1
8844 grep -v '^ *+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag"
8850 || test ! -s conftest.err'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_type_size_t=yes
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_type_size_t=no
8869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8872 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8873 if test $ac_cv_type_size_t = yes; then
8877 cat >>confdefs.h <<_ACEOF
8878 #define size_t unsigned
8883 echo "$as_me:$LINENO: checking for off_t" >&5
8884 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8885 if test "${ac_cv_type_off_t+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 $ac_includes_default
8906 rm -f conftest.$ac_objext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908 (eval $ac_compile) 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -z "$ac_c_werror_flag"
8916 || test ! -s conftest.err'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; } &&
8922 { ac_try='test -s conftest.$ac_objext'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8928 ac_cv_type_off_t=yes
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8938 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8939 if test $ac_cv_type_off_t = yes; then
8943 cat >>confdefs.h <<_ACEOF
8949 echo "$as_me:$LINENO: checking for pid_t" >&5
8950 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8951 if test "${ac_cv_type_pid_t+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 $ac_includes_default
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8976 grep -v '^ *+' conftest.er1 >conftest.err
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_type_pid_t=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
9001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9005 if test $ac_cv_type_pid_t = yes; then
9009 cat >>confdefs.h <<_ACEOF
9016 echo "$as_me:$LINENO: checking volatile declaration" >&5
9017 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9018 if test "${timidity_cv_type_volatile+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9036 rm -f conftest.$ac_objext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 timidity_cv_type_volatile=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 timidity_cv_type_volatile=no
9065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9068 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9069 if test $timidity_cv_type_volatile = no; then
9071 cat >>confdefs.h <<\_ACEOF
9072 #define NO_VOLATILE 1
9077 echo "$as_me:$LINENO: checking union semun declaration" >&5
9078 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9079 if test "${timidity_cv_type_union_semun+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 cat >conftest.$ac_ext <<_ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9089 #include <sys/types.h>
9090 #include <sys/ipc.h>
9091 #include <sys/sem.h>
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>conftest.er1
9105 grep -v '^ *+' conftest.er1 >conftest.err
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag"
9111 || test ! -s conftest.err'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest.$ac_objext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 timidity_cv_type_union_semun=yes
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 timidity_cv_type_union_semun=no
9130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9133 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9134 if test $timidity_cv_type_union_semun = yes; then
9136 cat >>confdefs.h <<\_ACEOF
9137 #define HAVE_UNION_SEMUN 1
9142 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9146 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9147 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9148 if test -z "$ac_cv_prog_CC"; then
9151 our_gcc="$ac_cv_prog_CC"
9153 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9155 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9156 msnative_struct='-fnative-struct'
9160 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9161 msnative_struct='-mms-bitfields'
9165 if test x"$msnative_struct" = x ; then
9166 echo "$as_me:$LINENO: result: no way" >&5
9167 echo "${ECHO_T}no way" >&6
9168 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9169 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9171 CFLAGS="$CFLAGS $msnative_struct"
9172 CPPFLAGS="$CPPFLAGS $msnative_struct"
9173 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9174 echo "${ECHO_T}${msnative_struct}" >&6
9181 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9182 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9183 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9184 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9194 #include <windows.h>
9195 #include <mmsystem.h>
9200 return WOM_OPEN != 0x3BB
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207 (eval $ac_compile) 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag"
9215 || test ! -s conftest.err'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; } &&
9221 { ac_try='test -s conftest.$ac_objext'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 timidity_cv_header_new_mmsystem=yes
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 timidity_cv_header_new_mmsystem=no
9234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9236 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9237 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9238 if test $timidity_cv_header_new_mmsystem = yes; then
9240 cat >>confdefs.h <<\_ACEOF
9241 #define HAVE_NEW_MMSYSTEM 1
9247 # Checks for library functions.
9248 echo "$as_me:$LINENO: checking for error_at_line" >&5
9249 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9250 if test "${ac_cv_lib_error_at_line+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 $ac_includes_default
9263 error_at_line (0, 0, "", 0, "");
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270 (eval $ac_link) 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest$ac_exeext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_lib_error_at_line=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_cv_lib_error_at_line=no
9297 rm -f conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9300 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9301 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9302 if test $ac_cv_lib_error_at_line = no; then
9304 "error.$ac_objext" | \
9305 *" error.$ac_objext" | \
9306 "error.$ac_objext "* | \
9307 *" error.$ac_objext "* ) ;;
9308 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9315 for ac_header in unistd.h vfork.h
9317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319 echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9327 # Is the header compilable?
9328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 $ac_includes_default
9337 #include <$ac_header>
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_header_compiler=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_header_compiler=no
9368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9370 echo "${ECHO_T}$ac_header_compiler" >&6
9372 # Is the header present?
9373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <$ac_header>
9383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9386 grep -v '^ *+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } >/dev/null; then
9391 if test -s conftest.err; then
9392 ac_cpp_err=$ac_c_preproc_warn_flag
9393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9400 if test -z "$ac_cpp_err"; then
9401 ac_header_preproc=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_header_preproc=no
9408 rm -f conftest.err conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9410 echo "${ECHO_T}$ac_header_preproc" >&6
9412 # So? What about this header?
9413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9419 ac_header_preproc=yes
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9436 ## ------------------------------- ##
9437 ## Report this to root@mput.dip.jp ##
9438 ## ------------------------------- ##
9441 sed "s/^/$as_me: WARNING: /" >&2
9444 echo "$as_me:$LINENO: checking for $ac_header" >&5
9445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 eval "$as_ac_Header=\$ac_header_preproc"
9451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466 for ac_func in fork vfork
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9482 #define $ac_func innocuous_$ac_func
9484 /* System header to define __stub macros and hopefully few prototypes,
9485 which can conflict with char $ac_func (); below.
9486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 <limits.h> exists even on freestanding compilers. */
9490 # include <limits.h>
9492 # include <assert.h>
9497 /* Override any gcc2 internal prototype to avoid an error. */
9502 /* We use char because int might match the return type of a gcc2
9503 builtin and then its argument prototype would still apply. */
9505 /* The GNU C library defines this for functions which it implements
9506 to always fail with ENOSYS. Some functions are actually named
9507 something starting with __ and the normal name is an alias. */
9508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9511 char (*f) () = $ac_func;
9520 return f != $ac_func;
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527 (eval $ac_link) 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try='test -z "$ac_c_werror_flag"
9535 || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 eval "$as_ac_var=yes"
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 eval "$as_ac_var=no"
9554 rm -f conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9559 if test `eval echo '${'$as_ac_var'}'` = yes; then
9560 cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9567 if test "x$ac_cv_func_fork" = xyes; then
9568 echo "$as_me:$LINENO: checking for working fork" >&5
9569 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9570 if test "${ac_cv_func_fork_works+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 if test "$cross_compiling" = yes; then
9574 ac_cv_func_fork_works=cross
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* By Ruediger Kuhlmann. */
9578 #include <sys/types.h>
9580 # include <unistd.h>
9582 /* Some systems only have a dummy stub for fork() */
9590 rm -f conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592 (eval $ac_link) 2>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_cv_func_fork_works=yes
9603 echo "$as_me: program exited with status $ac_status" >&5
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_cv_func_fork_works=no
9610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9613 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9614 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9617 ac_cv_func_fork_works=$ac_cv_func_fork
9619 if test "x$ac_cv_func_fork_works" = xcross; then
9621 *-*-amigaos* | *-*-msdosdjgpp*)
9622 # Override, as these systems have only a dummy fork() stub
9623 ac_cv_func_fork_works=no
9626 ac_cv_func_fork_works=yes
9629 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9630 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9632 ac_cv_func_vfork_works=$ac_cv_func_vfork
9633 if test "x$ac_cv_func_vfork" = xyes; then
9634 echo "$as_me:$LINENO: checking for working vfork" >&5
9635 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9636 if test "${ac_cv_func_vfork_works+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 if test "$cross_compiling" = yes; then
9640 ac_cv_func_vfork_works=cross
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 /* Thanks to Paul Eggert for this test. */
9651 #include <sys/types.h>
9652 #include <sys/stat.h>
9653 #include <sys/wait.h>
9655 # include <unistd.h>
9660 /* On some sparc systems, changes by the child to local and incoming
9661 argument registers are propagated back to the parent. The compiler
9662 is told about this with #include <vfork.h>, but some compilers
9663 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9664 static variable whose address is put into a register that is
9665 clobbered by the vfork. */
9668 sparc_address_test (int arg)
9670 sparc_address_test (arg) int arg;
9691 pid_t parent = getpid ();
9694 sparc_address_test (0);
9699 /* Here is another test for sparc vfork register problems. This
9700 test uses lots of local variables, at least as many local
9701 variables as main has allocated so far including compiler
9702 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9703 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9704 reuse the register of parent for one of the local variables,
9705 since it will think that parent can't possibly be used any more
9706 in this routine. Assigning to the local variable will thus
9707 munge parent in the parent process. */
9709 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9710 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9711 /* Convince the compiler that p..p7 are live; otherwise, it might
9712 use the same hardware register for all 8 local variables. */
9713 if (p != p1 || p != p2 || p != p3 || p != p4
9714 || p != p5 || p != p6 || p != p7)
9717 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9718 from child file descriptors. If the child closes a descriptor
9719 before it execs or exits, this munges the parent's descriptor
9720 as well. Test for this by closing stdout in the child. */
9721 _exit(close(fileno(stdout)) != 0);
9726 while (wait(&status) != child)
9729 /* Was there some problem with vforking? */
9732 /* Did the child fail? (This shouldn't happen.) */
9735 /* Did the vfork/compiler bug occur? */
9736 || parent != getpid()
9738 /* Did the file descriptor bug occur? */
9739 || fstat(fileno(stdout), &st) != 0
9744 rm -f conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_func_vfork_works=yes
9757 echo "$as_me: program exited with status $ac_status" >&5
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_cv_func_vfork_works=no
9764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9767 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9768 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9771 if test "x$ac_cv_func_fork_works" = xcross; then
9772 ac_cv_func_vfork_works=$ac_cv_func_vfork
9773 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9774 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9777 if test "x$ac_cv_func_vfork_works" = xyes; then
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_WORKING_VFORK 1
9785 cat >>confdefs.h <<\_ACEOF
9790 if test "x$ac_cv_func_fork_works" = xyes; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_WORKING_FORK 1
9798 echo "$as_me:$LINENO: checking for working memcmp" >&5
9799 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9800 if test "${ac_cv_func_memcmp_working+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 if test "$cross_compiling" = yes; then
9804 ac_cv_func_memcmp_working=no
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 $ac_includes_default
9817 /* Some versions of memcmp are not 8-bit clean. */
9818 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9819 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9822 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9823 or more and with at least one buffer not starting on a 4-byte boundary.
9824 William Lewis provided this test program. */
9829 for (i = 0; i < 4; i++)
9833 strcpy (a, "--------01111111");
9834 strcpy (b, "--------10000000");
9835 if (memcmp (a, b, 16) >= 0)
9845 rm -f conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_cv_func_memcmp_working=yes
9858 echo "$as_me: program exited with status $ac_status" >&5
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_cv_func_memcmp_working=no
9865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9869 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9870 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9871 "memcmp.$ac_objext" | \
9872 *" memcmp.$ac_objext" | \
9873 "memcmp.$ac_objext "* | \
9874 *" memcmp.$ac_objext "* ) ;;
9875 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9881 for ac_header in stdlib.h unistd.h
9883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9885 echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9893 # Is the header compilable?
9894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 #include <$ac_header>
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_header_compiler=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_header_compiler=no
9934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9936 echo "${ECHO_T}$ac_header_compiler" >&6
9938 # Is the header present?
9939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9941 cat >conftest.$ac_ext <<_ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 #include <$ac_header>
9949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9952 grep -v '^ *+' conftest.er1 >conftest.err
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } >/dev/null; then
9957 if test -s conftest.err; then
9958 ac_cpp_err=$ac_c_preproc_warn_flag
9959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9966 if test -z "$ac_cpp_err"; then
9967 ac_header_preproc=yes
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_header_preproc=no
9974 rm -f conftest.err conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9976 echo "${ECHO_T}$ac_header_preproc" >&6
9978 # So? What about this header?
9979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9985 ac_header_preproc=yes
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10002 ## ------------------------------- ##
10003 ## Report this to root@mput.dip.jp ##
10004 ## ------------------------------- ##
10007 sed "s/^/$as_me: WARNING: /" >&2
10010 echo "$as_me:$LINENO: checking for $ac_header" >&5
10011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 eval "$as_ac_Header=\$ac_header_preproc"
10017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10031 for ac_func in getpagesize
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_var+set}\" = set"; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define $ac_func innocuous_$ac_func
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10055 # include <limits.h>
10057 # include <assert.h>
10062 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10076 char (*f) () = $ac_func;
10085 return f != $ac_func;
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 eval "$as_ac_var=no"
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10132 echo "$as_me:$LINENO: checking for working mmap" >&5
10133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 if test "$cross_compiling" = yes; then
10138 ac_cv_func_mmap_fixed_mapped=no
10140 cat >conftest.$ac_ext <<_ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 $ac_includes_default
10147 /* malloc might have been renamed as rpl_malloc. */
10150 /* Thanks to Mike Haertel and Jim Avera for this test.
10151 Here is a matrix of mmap possibilities:
10152 mmap private not fixed
10153 mmap private fixed at somewhere currently unmapped
10154 mmap private fixed at somewhere already mapped
10155 mmap shared not fixed
10156 mmap shared fixed at somewhere currently unmapped
10157 mmap shared fixed at somewhere already mapped
10158 For private mappings, we should verify that changes cannot be read()
10159 back from the file, nor mmap's back from the file at a different
10160 address. (There have been systems where private was not correctly
10161 implemented like the infamous i386 svr4.0, and systems where the
10162 VM page cache was not coherent with the file system buffer cache
10163 like early versions of FreeBSD and possibly contemporary NetBSD.)
10164 For shared mappings, we should conversely verify that changes get
10165 propagated back to all the places they're supposed to be.
10167 Grep wants private fixed already mapped.
10168 The main things grep needs to know about mmap are:
10169 * does it exist and is it safe to write into the mmap'd area
10170 * how to use it (BSD variants) */
10173 #include <sys/mman.h>
10175 #if !STDC_HEADERS && !HAVE_STDLIB_H
10179 /* This mess was copied from the GNU getpagesize.h. */
10180 #if !HAVE_GETPAGESIZE
10181 /* Assume that all systems that can run configure have sys/param.h. */
10182 # if !HAVE_SYS_PARAM_H
10183 # define HAVE_SYS_PARAM_H 1
10186 # ifdef _SC_PAGESIZE
10187 # define getpagesize() sysconf(_SC_PAGESIZE)
10188 # else /* no _SC_PAGESIZE */
10189 # if HAVE_SYS_PARAM_H
10190 # include <sys/param.h>
10191 # ifdef EXEC_PAGESIZE
10192 # define getpagesize() EXEC_PAGESIZE
10193 # else /* no EXEC_PAGESIZE */
10195 # define getpagesize() NBPG * CLSIZE
10198 # endif /* no CLSIZE */
10199 # else /* no NBPG */
10201 # define getpagesize() NBPC
10202 # else /* no NBPC */
10204 # define getpagesize() PAGESIZE
10205 # endif /* PAGESIZE */
10206 # endif /* no NBPC */
10207 # endif /* no NBPG */
10208 # endif /* no EXEC_PAGESIZE */
10209 # else /* no HAVE_SYS_PARAM_H */
10210 # define getpagesize() 8192 /* punt totally */
10211 # endif /* no HAVE_SYS_PARAM_H */
10212 # endif /* no _SC_PAGESIZE */
10214 #endif /* no HAVE_GETPAGESIZE */
10219 char *data, *data2, *data3;
10223 pagesize = getpagesize ();
10225 /* First, make a file with some known garbage in it. */
10226 data = (char *) malloc (pagesize);
10229 for (i = 0; i < pagesize; ++i)
10230 *(data + i) = rand ();
10232 fd = creat ("conftest.mmap", 0600);
10235 if (write (fd, data, pagesize) != pagesize)
10239 /* Next, try to mmap the file at a fixed address which already has
10240 something else allocated at it. If we can, also make sure that
10241 we see the same garbage. */
10242 fd = open ("conftest.mmap", O_RDWR);
10245 data2 = (char *) malloc (2 * pagesize);
10248 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10252 for (i = 0; i < pagesize; ++i)
10253 if (*(data + i) != *(data2 + i))
10256 /* Finally, make sure that changes to the mapped area do not
10257 percolate back to the file as seen by read(). (This is a bug on
10258 some variants of i386 svr4.0.) */
10259 for (i = 0; i < pagesize; ++i)
10260 *(data2 + i) = *(data2 + i) + 1;
10261 data3 = (char *) malloc (pagesize);
10264 if (read (fd, data3, pagesize) != pagesize)
10266 for (i = 0; i < pagesize; ++i)
10267 if (*(data + i) != *(data3 + i))
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_func_mmap_fixed_mapped=yes
10286 echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 ( exit $ac_status )
10291 ac_cv_func_mmap_fixed_mapped=no
10293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_MMAP 1
10305 rm -f conftest.mmap
10307 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10308 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10309 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 ac_cv_func_setvbuf_reversed=no
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10321 int (setvbuf) (FILE *, int, char *, size_t);
10326 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10333 (eval $ac_link) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10361 int (setvbuf) (FILE *, int, char *, size_t);
10366 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>conftest.er1
10375 grep -v '^ *+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -z "$ac_c_werror_flag"
10381 || test ! -s conftest.err'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 # It compiles and links either way, so it must not be declared
10394 # with a prototype and most likely this is a K&R C compiler.
10396 if test "$cross_compiling" = yes; then
10397 : # Assume setvbuf is not reversed when cross-compiling.
10399 cat >conftest.$ac_ext <<_ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10409 /* This call has the arguments reversed.
10410 A reversed system may check and see that the address of buf
10411 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10413 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10416 exit (0); /* Non-reversed systems SEGV here. */
10421 rm -f conftest$ac_exeext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423 (eval $ac_link) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_func_setvbuf_reversed=yes
10434 echo "$as_me: program exited with status $ac_status" >&5
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 ( exit $ac_status )
10441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10443 ac_cv_func_setvbuf_reversed=yes
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10449 rm -f conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10456 rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10460 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10461 if test $ac_cv_func_setvbuf_reversed = yes; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define SETVBUF_REVERSED 1
10469 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10470 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10471 if test "${ac_cv_type_signal+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 cat >conftest.$ac_ext <<_ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480 #include <sys/types.h>
10481 #include <signal.h>
10486 extern "C" void (*signal (int, void (*)(int)))(int);
10488 void (*signal ()) ();
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10503 grep -v '^ *+' conftest.er1 >conftest.err
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_type_signal=void
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_cv_type_signal=int
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10531 echo "${ECHO_T}$ac_cv_type_signal" >&6
10533 cat >>confdefs.h <<_ACEOF
10534 #define RETSIGTYPE $ac_cv_type_signal
10538 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM" != "xyes"; then
10540 for ac_func in vprintf
10542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10543 echo "$as_me:$LINENO: checking for $ac_func" >&5
10544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10545 if eval "test \"\${$as_ac_var+set}\" = set"; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10556 #define $ac_func innocuous_$ac_func
10558 /* System header to define __stub macros and hopefully few prototypes,
10559 which can conflict with char $ac_func (); below.
10560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10561 <limits.h> exists even on freestanding compilers. */
10564 # include <limits.h>
10566 # include <assert.h>
10571 /* Override any gcc2 internal prototype to avoid an error. */
10576 /* We use char because int might match the return type of a gcc2
10577 builtin and then its argument prototype would still apply. */
10579 /* The GNU C library defines this for functions which it implements
10580 to always fail with ENOSYS. Some functions are actually named
10581 something starting with __ and the normal name is an alias. */
10582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10585 char (*f) () = $ac_func;
10594 return f != $ac_func;
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 (eval $ac_link) 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -z "$ac_c_werror_flag"
10609 || test ! -s conftest.err'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 eval "$as_ac_var=yes"
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 eval "$as_ac_var=no"
10628 rm -f conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 echo "$as_me:$LINENO: checking for _doprnt" >&5
10639 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10640 if test "${ac_cv_func__doprnt+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10651 #define _doprnt innocuous__doprnt
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char _doprnt (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10659 # include <limits.h>
10661 # include <assert.h>
10666 /* Override any gcc2 internal prototype to avoid an error. */
10671 /* We use char because int might match the return type of a gcc2
10672 builtin and then its argument prototype would still apply. */
10674 /* The GNU C library defines this for functions which it implements
10675 to always fail with ENOSYS. Some functions are actually named
10676 something starting with __ and the normal name is an alias. */
10677 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10680 char (*f) () = _doprnt;
10689 return f != _doprnt;
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>conftest.er1
10698 grep -v '^ *+' conftest.er1 >conftest.err
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -z "$ac_c_werror_flag"
10704 || test ! -s conftest.err'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_func__doprnt=yes
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_cv_func__doprnt=no
10723 rm -f conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10726 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10727 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10728 if test $ac_cv_func__doprnt = yes; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define HAVE_DOPRNT 1
10809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10810 echo "$as_me:$LINENO: checking for $ac_func" >&5
10811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10812 if eval "test \"\${$as_ac_var+set}\" = set"; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 cat >conftest.$ac_ext <<_ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10823 #define $ac_func innocuous_$ac_func
10825 /* System header to define __stub macros and hopefully few prototypes,
10826 which can conflict with char $ac_func (); below.
10827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828 <limits.h> exists even on freestanding compilers. */
10831 # include <limits.h>
10833 # include <assert.h>
10838 /* Override any gcc2 internal prototype to avoid an error. */
10843 /* We use char because int might match the return type of a gcc2
10844 builtin and then its argument prototype would still apply. */
10846 /* The GNU C library defines this for functions which it implements
10847 to always fail with ENOSYS. Some functions are actually named
10848 something starting with __ and the normal name is an alias. */
10849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10852 char (*f) () = $ac_func;
10861 return f != $ac_func;
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868 (eval $ac_link) 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag"
10876 || test ! -s conftest.err'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest$ac_exeext'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 eval "$as_ac_var=yes"
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 eval "$as_ac_var=no"
10895 rm -f conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10900 if test `eval echo '${'$as_ac_var'}'` = yes; then
10901 cat >>confdefs.h <<_ACEOF
10902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10908 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
10909 cat >>confdefs.h <<\_ACEOF
10910 #define RETSIGTYPE int
10913 cat >>confdefs.h <<\_ACEOF
10914 #define HAVE_GETCWD int
10917 cat >>confdefs.h <<\_ACEOF
10918 #define HAVE_GETHOSTBYNAME 1
10921 cat >>confdefs.h <<\_ACEOF
10922 #define HAVE_POPEN 1
10926 cat >>confdefs.h <<\_ACEOF
10927 #define popen _popen
10931 cat >>confdefs.h <<\_ACEOF
10932 #define pclose _pclose
10935 cat >>confdefs.h <<\_ACEOF
10936 #define HAVE_SELECT 1
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_SNPRINTF 1
10943 cat >>confdefs.h <<\_ACEOF
10944 #define HAVE_STRDUP 1
10947 cat >>confdefs.h <<\_ACEOF
10948 #define HAVE_STRERROR 1
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_STRNCASECMP 1
10955 cat >>confdefs.h <<\_ACEOF
10956 #define HAVE_STRSTR 1
10960 cat >>confdefs.h <<\_ACEOF
10961 #define snprintf _snprintf
10964 cat >>confdefs.h <<\_ACEOF
10965 #define HAVE_SOCKET 1
10968 cat >>confdefs.h <<\_ACEOF
10969 #define HAVE_VSNPRINTF 1
10973 cat >>confdefs.h <<\_ACEOF
10974 #define vsnprintf _vsnprintf
10978 cat >>confdefs.h <<\_ACEOF
10979 #define TIMID_VERSION $(PACKAGE_VERSION)
10983 cat >>confdefs.h <<\_ACEOF
10984 #define DEFAULT_PATH ".\\"
10989 echo "$as_me:$LINENO: checking for getopt_long" >&5
10990 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10991 if test "${ac_cv_func_getopt_long+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11002 #define getopt_long innocuous_getopt_long
11004 /* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char getopt_long (); below.
11006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007 <limits.h> exists even on freestanding compilers. */
11010 # include <limits.h>
11012 # include <assert.h>
11017 /* Override any gcc2 internal prototype to avoid an error. */
11022 /* We use char because int might match the return type of a gcc2
11023 builtin and then its argument prototype would still apply. */
11024 char getopt_long ();
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11031 char (*f) () = getopt_long;
11040 return f != getopt_long;
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -z "$ac_c_werror_flag"
11055 || test ! -s conftest.err'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_cv_func_getopt_long=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_cv_func_getopt_long=no
11074 rm -f conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11077 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11078 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11079 if test $ac_cv_func_getopt_long = yes; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_GETOPT_LONG 1
11085 tm_cv_needgetopt="no"
11087 tm_cv_needgetopt="yes"
11092 if test "x$tm_cv_needgetopt" = "xyes"; then
11094 NEEDGETOPT_FALSE='#'
11096 NEEDGETOPT_TRUE='#'
11101 # Checks on cygnus and MYSYS
11102 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
11103 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
11105 echo "$as_me:$LINENO: checking for opendir" >&5
11106 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11107 if test "${ac_cv_func_opendir+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define opendir innocuous_opendir
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char opendir (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11126 # include <limits.h>
11128 # include <assert.h>
11133 /* Override any gcc2 internal prototype to avoid an error. */
11138 /* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_opendir) || defined (__stub___opendir)
11147 char (*f) () = opendir;
11156 return f != opendir;
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag"
11171 || test ! -s conftest.err'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; } &&
11177 { ac_try='test -s conftest$ac_exeext'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_cv_func_opendir=yes
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_cv_func_opendir=no
11190 rm -f conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11194 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11195 if test $ac_cv_func_opendir = yes; then
11198 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11203 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11207 if test "x$enable_network" = "xyes"; then
11208 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
11209 EXTRALIBS="$EXTRALIBS wsock32.lib"
11210 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11212 echo "$as_me:$LINENO: checking for socket" >&5
11213 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11214 if test "${ac_cv_func_socket+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11225 #define socket innocuous_socket
11227 /* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char socket (); below.
11229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230 <limits.h> exists even on freestanding compilers. */
11233 # include <limits.h>
11235 # include <assert.h>
11240 /* Override any gcc2 internal prototype to avoid an error. */
11245 /* We use char because int might match the return type of a gcc2
11246 builtin and then its argument prototype would still apply. */
11248 /* The GNU C library defines this for functions which it implements
11249 to always fail with ENOSYS. Some functions are actually named
11250 something starting with __ and the normal name is an alias. */
11251 #if defined (__stub_socket) || defined (__stub___socket)
11254 char (*f) () = socket;
11263 return f != socket;
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>conftest.er1
11272 grep -v '^ *+' conftest.er1 >conftest.err
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_func_socket=yes
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11295 ac_cv_func_socket=no
11297 rm -f conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11300 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11301 echo "${ECHO_T}$ac_cv_func_socket" >&6
11302 if test $ac_cv_func_socket = yes; then
11305 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11306 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11307 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11308 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_save_LIBS="$LIBS"
11312 LIBS="-lwsock32 $LIBS"
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 #include <windows.h>
11320 #include <winsock.h>
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332 (eval $ac_link) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest$ac_exeext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 eval "wapi_cv_lib_$ac_lib_var=yes"
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 eval "wapi_cv_lib_$ac_lib_var=no"
11359 rm -f conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 LIBS="$ac_save_LIBS"
11364 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11365 echo "$as_me:$LINENO: result: yes" >&5
11366 echo "${ECHO_T}yes" >&6
11367 EXTRALIBS="$EXTRALIBS -lwsock32"
11368 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11371 echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6
11382 # Checks on extra paths
11385 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11386 if test "${with_tcl_includes+set}" = set; then
11387 withval="$with_tcl_includes"
11388 if test ! -d $withval; then
11389 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11390 echo "$as_me: WARNING: $withval is not found." >&2;}
11392 tcl_include_dir="-I$withval"
11396 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11397 if test "${with_tcl_libs+set}" = set; then
11398 withval="$with_tcl_libs"
11399 if test ! -d $withval; then
11400 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11401 echo "$as_me: WARNING: $withval is not found." >&2;}
11403 tcl_libdir="-L$withval"
11406 # Check whether --with-tk-includes or --without-tk-includes was given.
11407 if test "${with_tk_includes+set}" = set; then
11408 withval="$with_tk_includes"
11409 if test ! -d $withval; then
11410 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11411 echo "$as_me: WARNING: $withval is not found." >&2;}
11413 tk_includes="-I$withval"
11416 # Check whether --with-tk-libs or --without-tk-libs was given.
11417 if test "${with_tk_libs+set}" = set; then
11418 withval="$with_tk_libs"
11419 if test ! -d $withval; then
11420 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11421 echo "$as_me: WARNING: $withval is not found." >&2;}
11423 tk_libdir="-L$withval"
11427 # Check whether --with-offix-includes or --without-offix-includes was given.
11428 if test "${with_offix_includes+set}" = set; then
11429 withval="$with_offix_includes"
11430 if test ! -d $withval; then
11431 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11432 echo "$as_me: WARNING: $withval is not found." >&2;}
11434 offix_include_dir="-I$withval"
11437 # Check whether --with-offix-libs or --without-offix-libs was given.
11438 if test "${with_offix_libs+set}" = set; then
11439 withval="$with_offix_libs"
11440 if test ! -d $withval; then
11441 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11442 echo "$as_me: WARNING: $withval is not found." >&2;}
11444 offix_lib_dir="-L$withval"
11452 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11455 # Check whether --with-nas-library or --without-nas-library was given.
11456 if test "${with_nas_library+set}" = set; then
11457 withval="$with_nas_library"
11461 # Check whether --with-nas-includes or --without-nas-includes was given.
11462 if test "${with_nas_includes+set}" = set; then
11463 withval="$with_nas_includes"
11468 # Check whether --enable-audio or --disable-audio was given.
11469 if test "${enable_audio+set}" = set; then
11470 enableval="$enable_audio"
11471 enable_audio=$enableval
11478 test "x$enable_audio" = xyes && enable_audio=default
11480 if test "x$enable_audio" != xno; then
11481 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11482 eval "au_enable_$i=yes"
11488 # Check whether --with-default-output or --without-default-output was given.
11489 if test "${with_default_output+set}" = set; then
11490 withval="$with_default_output"
11491 if test "$enable_audio" != no; then
11492 DEFAULT_PLAYMODE=$withval
11493 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11495 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11496 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11501 if test "x$au_enable_default" = xyes; then
11503 *-*-linux*|*-*-freebsd*)
11507 au_enable_sb_dsp=yes
11509 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11537 au_enable_darwin=yes
11540 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11541 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11547 # Each audio mode's configurations
11548 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11549 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11550 if test "x$au_enable_oss" = xyes; then
11551 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11552 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11553 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11554 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11555 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11559 echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6
11563 if test "x$ac_cv_header_soundcard_h" = xyes; then
11564 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11565 echo "${ECHO_T}yes - <soundcard.h>" >&6
11567 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11568 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11574 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11575 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11576 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 ac_check_lib_save_LIBS=$LIBS
11580 LIBS="-lossaudio $LIBS"
11581 cat >conftest.$ac_ext <<_ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11588 /* Override any gcc2 internal prototype to avoid an error. */
11592 /* We use char because int might match the return type of a gcc2
11593 builtin and then its argument prototype would still apply. */
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11605 (eval $ac_link) 2>conftest.er1
11607 grep -v '^ *+' conftest.er1 >conftest.err
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag"
11613 || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_lib_ossaudio_open=yes
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_cv_lib_ossaudio_open=no
11632 rm -f conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11637 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11638 if test $ac_cv_lib_ossaudio_open = yes; then
11639 cat >>confdefs.h <<_ACEOF
11640 #define HAVE_LIBOSSAUDIO 1
11643 LIBS="-lossaudio $LIBS"
11650 if test ! -e "/dev/dsp"; then
11651 oss_device=/dev/audio
11656 echo "$as_me:$LINENO: result: no" >&5
11657 echo "${ECHO_T}no" >&6
11660 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11661 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11662 if test "x$au_enable_sun" = xyes; then
11665 if test -f /usr/demo/SOUND/libaudio.a; then
11666 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11667 echo "$as_me:$LINENO: result: yes" >&5
11668 echo "${ECHO_T}yes" >&6
11670 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11671 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11675 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11676 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11677 echo "$as_me:$LINENO: result: yes" >&5
11678 echo "${ECHO_T}yes" >&6
11680 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11681 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11684 *) echo "$as_me:$LINENO: result: yes" >&5
11685 echo "${ECHO_T}yes" >&6
11688 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11689 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11691 echo "$as_me:$LINENO: result: no" >&5
11692 echo "${ECHO_T}no" >&6
11695 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11696 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11697 if test "x$au_enable_hpux" = xyes; then
11699 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11700 echo "${ECHO_T}yes" >&6 ;;
11701 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11702 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11704 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11705 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11707 echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11711 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11712 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11713 if test "x$au_enable_irix" = xyes; then
11715 *-sgi-irix5*|*-sgi-irix6.2)
11716 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11717 echo "$as_me:$LINENO: result: yes" >&5
11718 echo "${ECHO_T}yes" >&6
11721 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11722 echo "$as_me:$LINENO: result: yes" >&5
11723 echo "${ECHO_T}yes" >&6
11725 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11726 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11728 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11729 EXTRALIBS="$EXTRASLIBS -laudio"
11731 echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6
11735 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11736 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11737 if test "x$au_enable_mme" = xyes; then
11739 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11740 echo "${ECHO_T}yes" >&6 ;;
11741 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11742 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11744 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11745 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11746 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11747 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11749 echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6
11753 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11754 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11755 if test "x$au_enable_sb_dsp" = xyes; then
11757 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11758 echo "${ECHO_T}yes" >&6 ;;
11759 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11760 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11762 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11763 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11765 echo "$as_me:$LINENO: result: no" >&5
11766 echo "${ECHO_T}no" >&6
11769 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11770 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11771 if test "x$au_enable_w32" = xyes; then
11774 echo "$as_me:$LINENO: result: yes" >&5
11775 echo "${ECHO_T}yes" >&6
11778 echo "$as_me:$LINENO: result: yes" >&5
11779 echo "${ECHO_T}yes" >&6
11782 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11783 echo "$as_me: WARNING: may not work on $target" >&2;}
11786 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11787 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
11788 EXTRALIBS="$EXTRALIBS winmm.lib"
11790 EXTRALIBS="$EXTRALIBS -lwinmm"
11792 EXTRADEFS="$EXTRADEFS -DAU_W32"
11794 echo "$as_me:$LINENO: result: no" >&5
11795 echo "${ECHO_T}no" >&6
11798 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11799 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11800 if test "x$au_enable_darwin" = xyes; then
11801 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11802 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11803 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11806 echo "$as_me:$LINENO: result: yes" >&5
11807 echo "${ECHO_T}yes" >&6;;
11809 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11810 echo "$as_me: WARNING: may not work on $target" >&2;}
11814 echo "$as_me:$LINENO: result: no" >&5
11815 echo "${ECHO_T}no" >&6
11819 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11820 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11821 if test "x$au_enable_alsa" = xyes; then
11822 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11823 echo "${ECHO_T}yes, configuring alsa" >&6
11826 KEEPLDFLAGS=$LDFLAGS
11827 alsa_save_CFLAGS="$CFLAGS"
11828 alsa_save_LDFLAGS="$LDFLAGS"
11829 alsa_save_LIBS="$LIBS"
11833 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11834 if test "${with_alsa_prefix+set}" = set; then
11835 withval="$with_alsa_prefix"
11836 alsa_prefix="$withval"
11842 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11843 if test "${with_alsa_inc_prefix+set}" = set; then
11844 withval="$with_alsa_inc_prefix"
11845 alsa_inc_prefix="$withval"
11850 # Check whether --enable-alsatest or --disable-alsatest was given.
11851 if test "${enable_alsatest+set}" = set; then
11852 enableval="$enable_alsatest"
11855 enable_alsatest=yes
11858 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11859 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11860 if test "$alsa_inc_prefix" != "" ; then
11861 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11862 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11864 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11865 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11867 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
11868 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
11869 if test "$alsa_prefix" != "" ; then
11870 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
11871 LDFLAGS="$LDFLAGS $ALSA_LIBS"
11874 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
11875 LIBS=`echo $LIBS | sed 's/-lm//'`
11876 LIBS=`echo $LIBS | sed 's/-ldl//'`
11877 LIBS=`echo $LIBS | sed 's/-lpthread//'`
11878 LIBS=`echo $LIBS | sed 's/ //'`
11879 LIBS="$ALSA_LIBS $LIBS"
11880 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
11881 echo "${ECHO_T}$ALSA_LIBS" >&6
11883 min_alsa_version=0.1.1
11884 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
11885 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
11887 alsa_min_major_version=`echo $min_alsa_version | \
11888 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11889 alsa_min_minor_version=`echo $min_alsa_version | \
11890 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11891 alsa_min_micro_version=`echo $min_alsa_version | \
11892 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11898 ac_cpp='$CPP $CPPFLAGS'
11899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11903 cat >conftest.$ac_ext <<_ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11910 #include <alsa/asoundlib.h>
11916 /* ensure backward compatibility */
11917 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11918 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11920 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11921 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11923 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11924 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11927 # if(SND_LIB_MAJOR > $alsa_min_major_version)
11930 # if(SND_LIB_MAJOR < $alsa_min_major_version)
11931 # error not present
11934 # if(SND_LIB_MINOR > $alsa_min_minor_version)
11937 # if(SND_LIB_MINOR < $alsa_min_minor_version)
11938 # error not present
11941 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11942 # error not present
11952 rm -f conftest.$ac_objext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11954 (eval $ac_compile) 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_c_werror_flag"
11962 || test ! -s conftest.err'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest.$ac_objext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 echo "$as_me:$LINENO: result: found." >&5
11975 echo "${ECHO_T}found." >&6
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 #include <sys/asoundlib.h>
11993 /* ensure backward compatibility */
11994 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11995 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11997 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11998 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12000 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12001 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12004 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12007 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12008 # error not present
12011 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12014 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12015 # error not present
12018 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12019 # error not present
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest.$ac_objext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 echo "$as_me:$LINENO: result: found." >&5
12052 echo "${ECHO_T}found." >&6
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 echo "$as_me:$LINENO: result: not present." >&5
12058 echo "${ECHO_T}not present." >&6
12059 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12060 echo "${ECHO_T}libasound was not found anywhere." >&6
12063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12065 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12070 ac_cpp='$CPP $CPPFLAGS'
12071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12077 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12078 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12079 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-lasound $LIBS"
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12091 /* Override any gcc2 internal prototype to avoid an error. */
12095 /* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12097 char snd_ctl_open ();
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12110 grep -v '^ *+' conftest.er1 >conftest.err
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_lib_asound_snd_ctl_open=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_cv_lib_asound_snd_ctl_open=no
12135 rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12139 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12140 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12141 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12142 cat >>confdefs.h <<_ACEOF
12143 #define HAVE_LIBASOUND 1
12146 LIBS="-lasound $LIBS"
12149 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12150 echo "${ECHO_T}No linkable libasound was found." >&6
12156 if test "x$alsa_found" = "xyes" ; then
12158 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12159 LIBS=`echo $LIBS | sed 's/ //'`
12160 LIBS="-lasound $LIBS"
12163 CFLAGS="$alsa_save_CFLAGS"
12164 LDFLAGS="$alsa_save_LDFLAGS"
12165 LIBS="$alsa_save_LIBS"
12173 if test "x$alsa_found" = "xyes" ; then
12174 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12175 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12176 for f in $ALSA_CFLAGS; do
12178 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12179 *) CFLAGS="$CPPFLAGS $f" ;;
12183 LIBS="$LIBS $ALSA_LIBS"
12185 for ac_func in snd_seq_port_info_set_timestamping
12187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12188 echo "$as_me:$LINENO: checking for $ac_func" >&5
12189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12190 if eval "test \"\${$as_ac_var+set}\" = set"; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12201 #define $ac_func innocuous_$ac_func
12203 /* System header to define __stub macros and hopefully few prototypes,
12204 which can conflict with char $ac_func (); below.
12205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 <limits.h> exists even on freestanding compilers. */
12209 # include <limits.h>
12211 # include <assert.h>
12216 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12224 /* The GNU C library defines this for functions which it implements
12225 to always fail with ENOSYS. Some functions are actually named
12226 something starting with __ and the normal name is an alias. */
12227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12230 char (*f) () = $ac_func;
12239 return f != $ac_func;
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246 (eval $ac_link) 2>conftest.er1
12248 grep -v '^ *+' conftest.er1 >conftest.err
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -z "$ac_c_werror_flag"
12254 || test ! -s conftest.err'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 eval "$as_ac_var=yes"
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 eval "$as_ac_var=no"
12273 rm -f conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12278 if test `eval echo '${'$as_ac_var'}'` = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12287 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12288 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12291 LDFLAGS=$KEEPLDFLAGS
12294 echo "$as_me:$LINENO: result: no" >&5
12295 echo "${ECHO_T}no" >&6
12298 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12299 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12300 if test "x$au_enable_alib" = xyes; then
12302 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12303 echo "${ECHO_T}yes" >&6 ;;
12304 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12305 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12307 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12308 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12309 if test -d /opt/audio/include; then
12310 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12312 if test -d /opt/audio/lib; then
12313 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12315 EXTRALIBS="$EXTRALIBS -lAlib"
12317 echo "$as_me:$LINENO: result: no" >&5
12318 echo "${ECHO_T}no" >&6
12321 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12322 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12323 if test "x$au_enable_nas" = xyes; then
12324 if test "x$with_x" != xyes; then
12325 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12326 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12327 { (exit 1); exit 1; }; }
12329 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12330 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12333 if test "x$with_nas_library" != x; then
12334 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12335 echo "${ECHO_T}$with_nas_library" >&6;
12336 EXTRALIBS="$EXTRALIBS $with_nas_library"
12338 echo "$as_me:$LINENO: result: " >&5
12339 echo "${ECHO_T}" >&6
12340 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12341 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12342 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_func_search_save_LIBS="$LIBS"
12346 timidity_cv_search_AuOpenServer="no"
12347 for i in $x_libraries/libaudio.a \
12348 /usr/lib/libaudio.so \
12349 /usr/lib/libaudio.a ; do
12350 LIBS="$i $ac_func_search_save_LIBS"
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12358 /* Override any gcc2 internal prototype to avoid an error. */
12362 /* We use char because int might match the return type of a gcc2
12363 builtin and then its argument prototype would still apply. */
12364 char AuOpenServer ();
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375 (eval $ac_link) 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag"
12383 || test ! -s conftest.err'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 timidity_cv_search_AuOpenServer="$i"; break
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12401 rm -f conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12404 LIBS="$ac_func_search_save_LIBS"
12406 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12407 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12408 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12409 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12410 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12411 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12413 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12414 echo "$as_me: WARNING: NAS library is not found." >&2;}
12417 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12419 if test "x$have_xext" = xyes; then
12420 lib_xext_opt=-lXext
12422 if test "x$have_xprelibs" = xyes; then
12423 lib_xprelibs_opt='-lSM -lICE'
12426 echo "$as_me:$LINENO: result: no" >&5
12427 echo "${ECHO_T}no" >&6
12430 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12431 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12432 if test "x$au_enable_arts" = xyes; then
12433 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12434 echo "${ECHO_T}yes, configuring aRts" >&6
12437 KEEPLDFLAGS=$LDFLAGS
12439 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12440 if test "${with_arts_prefix+set}" = set; then
12441 withval="$with_arts_prefix"
12442 arts_prefix="$withval"
12446 # Check whether --enable-artstest or --disable-artstest was given.
12447 if test "${enable_artstest+set}" = set; then
12448 enableval="$enable_artstest"
12451 enable_artstest=yes
12454 if test x$arts_prefix != x ; then
12455 arts_args="$arts_args --prefix=$arts_prefix"
12456 if test x${ARTS_CONFIG+set} != xset ; then
12457 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12461 # Extract the first word of "artsc-config", so it can be a program name with args.
12462 set dummy artsc-config; ac_word=$2
12463 echo "$as_me:$LINENO: checking for $ac_word" >&5
12464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12465 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 case $ARTS_CONFIG in
12470 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12480 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12491 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12493 if test -n "$ARTS_CONFIG"; then
12494 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12495 echo "${ECHO_T}$ARTS_CONFIG" >&6
12497 echo "$as_me:$LINENO: result: no" >&5
12498 echo "${ECHO_T}no" >&6
12501 min_arts_version=0.9.5
12502 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12503 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12505 if test "$ARTS_CONFIG" = "no" ; then
12508 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12509 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12511 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12512 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12513 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12515 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12517 if test "x$enable_artstest" = "xyes" ; then
12518 ac_save_CFLAGS="$CFLAGS"
12519 ac_save_LIBS="$LIBS"
12520 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12521 LIBS="$LIBS $ARTS_LIBS"
12522 rm -f conf.artstest
12523 if test "$cross_compiling" = yes; then
12524 echo $ac_n "cross compiling; assumed OK... $ac_c"
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12534 #include <stdlib.h>
12535 #include <string.h>
12539 my_strdup (char *str)
12545 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12546 strcpy (new_str, str);
12556 int major, minor, micro;
12559 system ("touch conf.artstest");
12561 /* HP/UX 9 (%@#!) writes to sscanf strings */
12562 tmp_version = my_strdup("$min_arts_version");
12563 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12564 printf("%s, bad version string\n", "$min_arts_version");
12568 if (($arts_major_version > major) ||
12569 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12570 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12576 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12577 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12578 printf("*** best to upgrade to the required version.\n");
12579 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12580 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12581 printf("*** config.cache before re-running configure\n");
12588 rm -f conftest$ac_exeext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590 (eval $ac_link) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12601 echo "$as_me: program exited with status $ac_status" >&5
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ( exit $ac_status )
12608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12610 CFLAGS="$ac_save_CFLAGS"
12611 LIBS="$ac_save_LIBS"
12614 if test "x$no_arts" = x ; then
12615 echo "$as_me:$LINENO: result: yes" >&5
12616 echo "${ECHO_T}yes" >&6
12619 echo "$as_me:$LINENO: result: no" >&5
12620 echo "${ECHO_T}no" >&6
12621 if test "$ARTS_CONFIG" = "no" ; then
12622 echo "*** The artsc-config script installed by ARTS could not be found"
12623 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12624 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12625 echo "*** full path to artsc-config."
12627 if test -f conf.artstest ; then
12630 echo "*** Could not run ARTS test program, checking why..."
12631 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12632 LIBS="$LIBS $ARTS_LIBS"
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest$ac_exeext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 echo "*** The test program compiled, but did not run. This usually means"
12674 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12675 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12676 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12677 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12678 echo "*** is required on your system"
12680 echo "*** If you have an old version installed, it is best to remove it, although"
12681 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 echo "*** The test program failed to compile or link. See the file config.log for the"
12687 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12688 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12689 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12691 rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693 CFLAGS="$ac_save_CFLAGS"
12694 LIBS="$ac_save_LIBS"
12703 rm -f conf.artstest
12707 LDFLAGS=$KEEPLDFLAGS
12708 if test "x$no_arts" = x; then
12709 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12710 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12711 for f in $ARTS_CFLAGS; do
12713 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12714 *) CFLAGS="$CPPFLAGS $f" ;;
12718 LIBS="$LIBS $ARTS_LIBS"
12720 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12721 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12724 echo "$as_me:$LINENO: result: no" >&5
12725 echo "${ECHO_T}no" >&6
12728 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12729 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12730 if test "x$au_enable_esd" = xyes; then
12731 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12732 echo "${ECHO_T}yes, configuring esd" >&6
12735 KEEPLDFLAGS=$LDFLAGS
12737 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12738 if test "${with_esd_prefix+set}" = set; then
12739 withval="$with_esd_prefix"
12740 esd_prefix="$withval"
12745 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12746 if test "${with_esd_exec_prefix+set}" = set; then
12747 withval="$with_esd_exec_prefix"
12748 esd_exec_prefix="$withval"
12752 # Check whether --enable-esdtest or --disable-esdtest was given.
12753 if test "${enable_esdtest+set}" = set; then
12754 enableval="$enable_esdtest"
12760 if test x$esd_exec_prefix != x ; then
12761 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12762 if test x${ESD_CONFIG+set} != xset ; then
12763 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12766 if test x$esd_prefix != x ; then
12767 esd_args="$esd_args --prefix=$esd_prefix"
12768 if test x${ESD_CONFIG+set} != xset ; then
12769 ESD_CONFIG=$esd_prefix/bin/esd-config
12773 # Extract the first word of "esd-config", so it can be a program name with args.
12774 set dummy esd-config; ac_word=$2
12775 echo "$as_me:$LINENO: checking for $ac_word" >&5
12776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12777 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 case $ESD_CONFIG in
12782 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12803 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12805 if test -n "$ESD_CONFIG"; then
12806 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12807 echo "${ECHO_T}$ESD_CONFIG" >&6
12809 echo "$as_me:$LINENO: result: no" >&5
12810 echo "${ECHO_T}no" >&6
12813 min_esd_version=0.2.7
12814 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12815 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12817 if test "$ESD_CONFIG" = "no" ; then
12823 ac_cpp='$CPP $CPPFLAGS'
12824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12828 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12829 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12831 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12832 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12833 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12834 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12835 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12837 if test "x$enable_esdtest" = "xyes" ; then
12838 ac_save_CFLAGS="$CFLAGS"
12839 ac_save_LIBS="$LIBS"
12840 CFLAGS="$CFLAGS $ESD_CFLAGS"
12841 LIBS="$LIBS $ESD_LIBS"
12843 if test "$cross_compiling" = yes; then
12844 echo $ac_n "cross compiling; assumed OK... $ac_c"
12846 cat >conftest.$ac_ext <<_ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12854 #include <stdlib.h>
12855 #include <string.h>
12859 my_strdup (char *str)
12865 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12866 strcpy (new_str, str);
12876 int major, minor, micro;
12879 system ("touch conf.esdtest");
12881 /* HP/UX 9 (%@#!) writes to sscanf strings */
12882 tmp_version = my_strdup("$min_esd_version");
12883 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12884 printf("%s, bad version string\n", "$min_esd_version");
12888 if (($esd_major_version > major) ||
12889 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
12890 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
12896 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
12897 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
12898 printf("*** best to upgrade to the required version.\n");
12899 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
12900 printf("*** to point to the correct copy of esd-config, and remove the file\n");
12901 printf("*** config.cache before re-running configure\n");
12908 rm -f conftest$ac_exeext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12910 (eval $ac_link) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12921 echo "$as_me: program exited with status $ac_status" >&5
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 ( exit $ac_status )
12928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12930 CFLAGS="$ac_save_CFLAGS"
12931 LIBS="$ac_save_LIBS"
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940 if test "x$no_esd" = x ; then
12941 echo "$as_me:$LINENO: result: yes" >&5
12942 echo "${ECHO_T}yes" >&6
12945 echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6
12947 if test "$ESD_CONFIG" = "no" ; then
12948 echo "*** The esd-config script installed by ESD could not be found"
12949 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
12950 echo "*** your path, or set the ESD_CONFIG environment variable to the"
12951 echo "*** full path to esd-config."
12953 if test -f conf.esdtest ; then
12956 echo "*** Could not run ESD test program, checking why..."
12957 CFLAGS="$CFLAGS $ESD_CFLAGS"
12958 LIBS="$LIBS $ESD_LIBS"
12962 ac_cpp='$CPP $CPPFLAGS'
12963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12967 cat >conftest.$ac_ext <<_ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987 (eval $ac_link) 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest$ac_exeext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 echo "*** The test program compiled, but did not run. This usually means"
13008 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13009 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13010 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13011 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13012 echo "*** is required on your system"
13014 echo "*** If you have an old version installed, it is best to remove it, although"
13015 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 echo "*** The test program failed to compile or link. See the file config.log for the"
13021 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13022 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13023 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13025 rm -f conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027 CFLAGS="$ac_save_CFLAGS"
13028 LIBS="$ac_save_LIBS"
13030 ac_cpp='$CPP $CPPFLAGS'
13031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13047 LDFLAGS=$KEEPLDFLAGS
13048 if test "x$no_esd" = x; then
13049 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13050 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13051 for f in $ESD_CFLAGS; do
13053 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13054 *) CFLAGS="$CPPFLAGS $f" ;;
13058 LIBS="$LIBS $ESD_LIBS"
13060 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13061 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13064 echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6
13068 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13069 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13070 if test "x$au_enable_portaudio" = xyes; then
13071 echo "$as_me:$LINENO: result: yes" >&5
13072 echo "${ECHO_T}yes" >&6
13073 if test "x$CYGNUS" = xyes ||test "x$MSYS" = xyes; then
13074 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13075 EXTRALIBS="$EXTRALIBS -lportaudio"
13076 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13078 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13079 EXTRALIBS="$EXTRALIBS -lportaudio"
13080 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13083 echo "$as_me:$LINENO: result: no" >&5
13084 echo "${ECHO_T}no" >&6
13087 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13088 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13089 if test "x$au_enable_jack" = xyes; then
13090 echo "$as_me:$LINENO: result: yes" >&5
13091 echo "${ECHO_T}yes" >&6
13092 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13093 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13094 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13096 echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6
13100 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13101 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13102 if test "x$au_enable_ao" = xyes; then
13103 echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13104 echo "${ECHO_T}yes, configuring ao" >&6
13106 # Check whether --with-ao or --without-ao was given.
13107 if test "${with_ao+set}" = set; then
13109 ao_prefix="$withval"
13114 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13115 if test "${with_ao_libraries+set}" = set; then
13116 withval="$with_ao_libraries"
13117 ao_libraries="$withval"
13122 # Check whether --with-ao-includes or --without-ao-includes was given.
13123 if test "${with_ao_includes+set}" = set; then
13124 withval="$with_ao_includes"
13125 ao_includes="$withval"
13129 # Check whether --enable-aotest or --disable-aotest was given.
13130 if test "${enable_aotest+set}" = set; then
13131 enableval="$enable_aotest"
13138 if test "x$ao_libraries" != "x" ; then
13139 AO_LIBS="-L$ao_libraries"
13140 elif test "x$ao_prefix" != "x"; then
13141 AO_LIBS="-L$ao_prefix/lib"
13142 elif test "x$prefix" != "xNONE"; then
13143 AO_LIBS="-L$prefix/lib"
13146 if test "x$ao_includes" != "x" ; then
13147 AO_CFLAGS="-I$ao_includes"
13148 elif test "x$ao_prefix" != "x"; then
13149 AO_CFLAGS="-I$ao_prefix/include"
13150 elif test "x$prefix" != "xNONE"; then
13151 AO_CFLAGS="-I$prefix/include"
13154 # see where dl* and friends live
13156 for ac_func in dlopen
13158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13159 echo "$as_me:$LINENO: checking for $ac_func" >&5
13160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13161 if eval "test \"\${$as_ac_var+set}\" = set"; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13172 #define $ac_func innocuous_$ac_func
13174 /* System header to define __stub macros and hopefully few prototypes,
13175 which can conflict with char $ac_func (); below.
13176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13177 <limits.h> exists even on freestanding compilers. */
13180 # include <limits.h>
13182 # include <assert.h>
13187 /* Override any gcc2 internal prototype to avoid an error. */
13192 /* We use char because int might match the return type of a gcc2
13193 builtin and then its argument prototype would still apply. */
13195 /* The GNU C library defines this for functions which it implements
13196 to always fail with ENOSYS. Some functions are actually named
13197 something starting with __ and the normal name is an alias. */
13198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13201 char (*f) () = $ac_func;
13210 return f != $ac_func;
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 eval "$as_ac_var=yes"
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 eval "$as_ac_var=no"
13244 rm -f conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13249 if test `eval echo '${'$as_ac_var'}'` = yes; then
13250 cat >>confdefs.h <<_ACEOF
13251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 ac_check_lib_save_LIBS=$LIBS
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13270 /* Override any gcc2 internal prototype to avoid an error. */
13274 /* We use char because int might match the return type of a gcc2
13275 builtin and then its argument prototype would still apply. */
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287 (eval $ac_link) 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_lib_dl_dlopen=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_cv_lib_dl_dlopen=no
13314 rm -f conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_check_lib_save_LIBS
13318 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13320 if test $ac_cv_lib_dl_dlopen = yes; then
13324 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13325 your system may not be supported." >&5
13326 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13327 your system may not be supported." >&2;}
13336 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13338 echo "$as_me:$LINENO: checking for ao" >&5
13339 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13343 if test "x$enable_aotest" = "xyes" ; then
13344 ac_save_CFLAGS="$CFLAGS"
13345 ac_save_LIBS="$LIBS"
13346 CFLAGS="$CFLAGS $AO_CFLAGS"
13347 LIBS="$LIBS $AO_LIBS"
13349 if test "$cross_compiling" = yes; then
13350 echo $ac_n "cross compiling; assumed OK... $ac_c"
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13360 #include <stdlib.h>
13361 #include <string.h>
13366 system("touch conf.aotest");
13372 rm -f conftest$ac_exeext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13374 (eval $ac_link) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13385 echo "$as_me: program exited with status $ac_status" >&5
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ( exit $ac_status )
13392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13394 CFLAGS="$ac_save_CFLAGS"
13395 LIBS="$ac_save_LIBS"
13398 if test "x$no_ao" = "x" ; then
13399 echo "$as_me:$LINENO: result: yes" >&5
13400 echo "${ECHO_T}yes" >&6
13403 echo "$as_me:$LINENO: result: no" >&5
13404 echo "${ECHO_T}no" >&6
13405 if test -f conf.aotest ; then
13408 echo "*** Could not run ao test program, checking why..."
13409 CFLAGS="$CFLAGS $AO_CFLAGS"
13410 LIBS="$LIBS $AO_LIBS"
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13429 rm -f conftest.$ac_objext conftest$ac_exeext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431 (eval $ac_link) 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag"
13439 || test ! -s conftest.err'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } &&
13445 { ac_try='test -s conftest$ac_exeext'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 echo "*** The test program compiled, but did not run. This usually means"
13452 echo "*** that the run-time linker is not finding ao or finding the wrong"
13453 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13454 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13455 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13456 echo "*** is required on your system"
13458 echo "*** If you have an old version installed, it is best to remove it, although"
13459 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 echo "*** The test program failed to compile or link. See the file config.log for the"
13465 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13466 echo "*** or that you have moved ao since it was installed."
13468 rm -f conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470 CFLAGS="$ac_save_CFLAGS"
13471 LIBS="$ac_save_LIBS"
13481 if test "x$no_ao" = "x" ; then
13482 # AC_MSG_RESULT(yes)
13483 EXTRADEFS="$EXTRADEFS -DAU_AO"
13484 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13485 for f in $AO_CFLAGS; do
13487 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13488 *) CFLAGS="$CPPFLAGS $f" ;;
13492 LIBS="$LIBS $AO_LIBS"
13494 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13495 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13498 echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6
13502 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13503 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13504 if test "x$au_enable_vorbis" = xyes; then
13505 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13506 echo "${ECHO_T}yes, configuring vorbis" >&6
13508 # Check whether --with-ogg or --without-ogg was given.
13509 if test "${with_ogg+set}" = set; then
13510 withval="$with_ogg"
13511 ogg_prefix="$withval"
13516 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13517 if test "${with_ogg_libraries+set}" = set; then
13518 withval="$with_ogg_libraries"
13519 ogg_libraries="$withval"
13524 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13525 if test "${with_ogg_includes+set}" = set; then
13526 withval="$with_ogg_includes"
13527 ogg_includes="$withval"
13531 # Check whether --enable-oggtest or --disable-oggtest was given.
13532 if test "${enable_oggtest+set}" = set; then
13533 enableval="$enable_oggtest"
13539 if test "x$ogg_libraries" != "x" ; then
13540 OGG_LIBS="-L$ogg_libraries"
13541 elif test "x$ogg_prefix" != "x" ; then
13542 OGG_LIBS="-L$ogg_prefix/lib"
13543 elif test "x$prefix" != "xNONE" ; then
13544 OGG_LIBS="-L$prefix/lib"
13547 OGG_LIBS="$OGG_LIBS -logg"
13549 if test "x$ogg_includes" != "x" ; then
13550 OGG_CFLAGS="-I$ogg_includes"
13551 elif test "x$ogg_prefix" != "x" ; then
13552 OGG_CFLAGS="-I$ogg_prefix/include"
13553 elif test "x$prefix" != "xNONE"; then
13554 OGG_CFLAGS="-I$prefix/include"
13557 echo "$as_me:$LINENO: checking for Ogg" >&5
13558 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13562 if test "x$enable_oggtest" = "xyes" ; then
13563 ac_save_CFLAGS="$CFLAGS"
13564 ac_save_LIBS="$LIBS"
13565 CFLAGS="$CFLAGS $OGG_CFLAGS"
13566 LIBS="$LIBS $OGG_LIBS"
13568 if test "$cross_compiling" = yes; then
13569 echo $ac_n "cross compiling; assumed OK... $ac_c"
13571 cat >conftest.$ac_ext <<_ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13579 #include <stdlib.h>
13580 #include <string.h>
13581 #include <ogg/ogg.h>
13585 system("touch conf.oggtest");
13591 rm -f conftest$ac_exeext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13593 (eval $ac_link) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
13604 echo "$as_me: program exited with status $ac_status" >&5
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ( exit $ac_status )
13611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13613 CFLAGS="$ac_save_CFLAGS"
13614 LIBS="$ac_save_LIBS"
13617 if test "x$no_ogg" = "x" ; then
13618 echo "$as_me:$LINENO: result: yes" >&5
13619 echo "${ECHO_T}yes" >&6
13622 # Check whether --with-vorbis or --without-vorbis was given.
13623 if test "${with_vorbis+set}" = set; then
13624 withval="$with_vorbis"
13625 vorbis_prefix="$withval"
13630 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13631 if test "${with_vorbis_libraries+set}" = set; then
13632 withval="$with_vorbis_libraries"
13633 vorbis_libraries="$withval"
13635 vorbis_libraries=""
13638 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13639 if test "${with_vorbis_includes+set}" = set; then
13640 withval="$with_vorbis_includes"
13641 vorbis_includes="$withval"
13645 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13646 if test "${enable_vorbistest+set}" = set; then
13647 enableval="$enable_vorbistest"
13650 enable_vorbistest=yes
13653 if test "x$vorbis_libraries" != "x" ; then
13654 VORBIS_LIBS="-L$vorbis_libraries"
13655 elif test "x$vorbis_prefix" != "x" ; then
13656 VORBIS_LIBS="-L$vorbis_prefix/lib"
13657 elif test "x$prefix" != "xNONE"; then
13658 VORBIS_LIBS="-L$prefix/lib"
13661 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13662 VORBISFILE_LIBS="-lvorbisfile"
13663 VORBISENC_LIBS="-lvorbisenc"
13665 if test "x$vorbis_includes" != "x" ; then
13666 VORBIS_CFLAGS="-I$vorbis_includes"
13667 elif test "x$vorbis_prefix" != "x" ; then
13668 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13669 elif test "x$prefix" != "xNONE"; then
13670 VORBIS_CFLAGS="-I$prefix/include"
13674 echo "$as_me:$LINENO: checking for Vorbis" >&5
13675 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13679 if test "x$enable_vorbistest" = "xyes" ; then
13680 ac_save_CFLAGS="$CFLAGS"
13681 ac_save_LIBS="$LIBS"
13682 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13683 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13684 rm -f conf.vorbistest
13685 if test "$cross_compiling" = yes; then
13686 echo $ac_n "cross compiling; assumed OK... $ac_c"
13688 cat >conftest.$ac_ext <<_ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13696 #include <stdlib.h>
13697 #include <string.h>
13698 #include <vorbis/codec.h>
13702 system("touch conf.vorbistest");
13708 rm -f conftest$ac_exeext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13710 (eval $ac_link) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13721 echo "$as_me: program exited with status $ac_status" >&5
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 ( exit $ac_status )
13728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13730 CFLAGS="$ac_save_CFLAGS"
13731 LIBS="$ac_save_LIBS"
13734 if test "x$no_vorbis" = "x" ; then
13735 echo "$as_me:$LINENO: result: yes" >&5
13736 echo "${ECHO_T}yes" >&6
13739 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13740 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13741 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13742 if test "x$CYGNUS" = "xyes"; then
13743 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13744 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13746 if test "x$MSYS" = "xyes"; then
13747 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13748 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13752 echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13754 if test -f conf.vorbistest ; then
13757 echo "*** Could not run Vorbis test program, checking why..."
13758 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13759 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13768 #include <vorbis/codec.h>
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 (eval $ac_link) 2>conftest.er1
13782 grep -v '^ *+' conftest.er1 >conftest.err
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_c_werror_flag"
13788 || test ! -s conftest.err'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try='test -s conftest$ac_exeext'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 echo "*** The test program compiled, but did not run. This usually means"
13801 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13802 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13803 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13804 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13805 echo "*** is required on your system"
13807 echo "*** If you have an old version installed, it is best to remove it, although"
13808 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 echo "*** The test program failed to compile or link. See the file config.log for the"
13814 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13815 echo "*** or that you have moved Vorbis since it was installed."
13817 rm -f conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819 CFLAGS="$ac_save_CFLAGS"
13820 LIBS="$ac_save_LIBS"
13827 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13828 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13835 rm -f conf.vorbistest
13839 echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6
13841 if test -f conf.oggtest ; then
13844 echo "*** Could not run Ogg test program, checking why..."
13845 CFLAGS="$CFLAGS $OGG_CFLAGS"
13846 LIBS="$LIBS $OGG_LIBS"
13847 cat >conftest.$ac_ext <<_ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13855 #include <ogg/ogg.h>
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867 (eval $ac_link) 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_c_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 echo "*** The test program compiled, but did not run. This usually means"
13888 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13889 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13890 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13891 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13892 echo "*** is required on your system"
13894 echo "*** If you have an old version installed, it is best to remove it, although"
13895 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 echo "*** The test program failed to compile or link. See the file config.log for the"
13901 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13902 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
13903 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
13905 rm -f conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 CFLAGS="$ac_save_CFLAGS"
13908 LIBS="$ac_save_LIBS"
13913 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
13914 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
13923 echo "$as_me:$LINENO: result: no" >&5
13924 echo "${ECHO_T}no" >&6
13927 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes ; then
13928 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
13929 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
13930 if test "x$au_enable_flac" = xyes; then
13931 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
13932 echo "${ECHO_T}yes, configuring flac" >&6
13933 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
13935 # Check whether --with-libFLAC or --without-libFLAC was given.
13936 if test "${with_libFLAC+set}" = set; then
13937 withval="$with_libFLAC"
13938 libFLAC_prefix="$withval"
13943 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
13944 if test "${with_libFLAC_libraries+set}" = set; then
13945 withval="$with_libFLAC_libraries"
13946 libFLAC_libraries="$withval"
13948 libFLAC_libraries=""
13951 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
13952 if test "${with_libFLAC_includes+set}" = set; then
13953 withval="$with_libFLAC_includes"
13954 libFLAC_includes="$withval"
13956 libFLAC_includes=""
13958 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
13959 if test "${enable_libFLACtest+set}" = set; then
13960 enableval="$enable_libFLACtest"
13963 enable_libFLACtest=yes
13966 if test "x$libFLAC_libraries" != "x" ; then
13967 LIBFLAC_LIBS="-L$libFLAC_libraries"
13968 elif test "x$libFLAC_prefix" != "x" ; then
13969 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
13970 elif test "x$prefix" != "xNONE" ; then
13971 LIBFLAC_LIBS="-L$prefix/lib"
13974 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
13976 if test "x$libFLAC_includes" != "x" ; then
13977 LIBFLAC_CFLAGS="-I$libFLAC_includes"
13978 elif test "x$libFLAC_prefix" != "x" ; then
13979 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
13980 elif test "$prefix" != "xNONE"; then
13981 LIBFLAC_CFLAGS="-I$prefix/include"
13984 echo "$as_me:$LINENO: checking for libFLAC" >&5
13985 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
13989 if test "x$enable_libFLACtest" = "xyes" ; then
13990 ac_save_CFLAGS="$CFLAGS"
13991 ac_save_CXXFLAGS="$CXXFLAGS"
13992 ac_save_LIBS="$LIBS"
13993 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
13994 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
13995 LIBS="$LIBS $LIBFLAC_LIBS"
13996 rm -f conf.libFLACtest
13997 if test "$cross_compiling" = yes; then
13998 echo $ac_n "cross compiling; assumed OK... $ac_c"
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14008 #include <stdlib.h>
14009 #include <string.h>
14010 #include <FLAC/format.h>
14014 system("touch conf.libFLACtest");
14020 rm -f conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14033 echo "$as_me: program exited with status $ac_status" >&5
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 ( exit $ac_status )
14040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14042 CFLAGS="$ac_save_CFLAGS"
14043 LIBS="$ac_save_LIBS"
14046 if test "x$no_libFLAC" = "x" ; then
14047 echo "$as_me:$LINENO: result: yes" >&5
14048 echo "${ECHO_T}yes" >&6
14050 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14051 for f in $LIBFLAC_CFLAGS; do
14053 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14054 *) CFLAGS="$CPPFLAGS $f" ;;
14058 LIBS="$LIBS $LIBFLAC_LIBS"
14061 echo "$as_me:$LINENO: result: no" >&5
14062 echo "${ECHO_T}no" >&6
14063 if test -f conf.libFLACtest ; then
14066 echo "*** Could not run libFLAC test program, checking why..."
14067 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14068 LIBS="$LIBS $LIBFLAC_LIBS"
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14077 #include <FLAC/format.h>
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089 (eval $ac_link) 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest$ac_exeext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 echo "*** The test program compiled, but did not run. This usually means"
14110 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14111 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14112 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14113 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14114 echo "*** is required on your system"
14116 echo "*** If you have an old version installed, it is best to remove it, although"
14117 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 echo "*** The test program failed to compile or link. See the file config.log for the"
14123 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14124 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14125 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14127 rm -f conftest.err conftest.$ac_objext \
14128 conftest$ac_exeext conftest.$ac_ext
14129 CFLAGS="$ac_save_CFLAGS"
14130 LIBS="$ac_save_LIBS"
14138 rm -f conf.libFLACtest
14141 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14142 if test "${with_libOggFLAC+set}" = set; then
14143 withval="$with_libOggFLAC"
14144 libOggFLAC_prefix="$withval"
14146 libOggFLAC_prefix=""
14149 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14150 if test "${with_libOggFLAC_libraries+set}" = set; then
14151 withval="$with_libOggFLAC_libraries"
14152 libOggFLAC_libraries="$withval"
14154 libOggFLAC_libraries=""
14157 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14158 if test "${with_libOggFLAC_includes+set}" = set; then
14159 withval="$with_libOggFLAC_includes"
14160 libOggFLAC_includes="$withval"
14162 libOggFLAC_includes=""
14164 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14165 if test "${enable_libOggFLACtest+set}" = set; then
14166 enableval="$enable_libOggFLACtest"
14169 enable_libOggFLACtest=yes
14172 if test "x$libOggFLAC_libraries" != "x" ; then
14173 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14174 elif test "x$libOggFLAC_prefix" != "x" ; then
14175 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14176 elif test "x$prefix" != "xNONE" ; then
14177 LIBOGGFLAC_LIBS="-L$prefix/lib"
14180 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14182 if test "x$libOggFLAC_includes" != "x" ; then
14183 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14184 elif test "x$libOggFLAC_prefix" != "x" ; then
14185 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14186 elif test "$prefix" != "xNONE"; then
14187 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14190 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14191 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14195 if test "x$enable_libOggFLACtest" = "xyes" ; then
14196 ac_save_CFLAGS="$CFLAGS"
14197 ac_save_CXXFLAGS="$CXXFLAGS"
14198 ac_save_LIBS="$LIBS"
14199 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14200 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14201 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14202 rm -f conf.libOggFLACtest
14203 if test "$cross_compiling" = yes; then
14204 echo $ac_n "cross compiling; assumed OK... $ac_c"
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14214 #include <stdlib.h>
14215 #include <string.h>
14216 #include <OggFLAC/stream_decoder.h>
14220 system("touch conf.libOggFLACtest");
14226 rm -f conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228 (eval $ac_link) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14239 echo "$as_me: program exited with status $ac_status" >&5
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ( exit $ac_status )
14246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14248 CFLAGS="$ac_save_CFLAGS"
14249 LIBS="$ac_save_LIBS"
14252 if test "x$no_libOggFLAC" = "x" ; then
14253 echo "$as_me:$LINENO: result: yes" >&5
14254 echo "${ECHO_T}yes" >&6
14256 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14257 for f in $LIBOGGFLAC_CFLAGS; do
14259 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14260 *) CFLAGS="$CPPFLAGS $f" ;;
14264 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14267 echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6
14269 if test -f conf.libOggFLACtest ; then
14272 echo "*** Could not run libOggFLAC test program, checking why..."
14273 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14274 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14283 #include <OggFLAC/stream_decoder.h>
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14295 (eval $ac_link) 2>conftest.er1
14297 grep -v '^ *+' conftest.er1 >conftest.err
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try='test -z "$ac_c_werror_flag"
14303 || test ! -s conftest.err'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest$ac_exeext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14315 echo "*** The test program compiled, but did not run. This usually means"
14316 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14317 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14318 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14319 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14320 echo "*** is required on your system"
14322 echo "*** If you have an old version installed, it is best to remove it, although"
14323 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 echo "*** The test program failed to compile or link. See the file config.log for the"
14329 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14330 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14331 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14333 rm -f conftest.err conftest.$ac_objext \
14334 conftest$ac_exeext conftest.$ac_ext
14335 CFLAGS="$ac_save_CFLAGS"
14336 LIBS="$ac_save_LIBS"
14338 LIBOGGFLAC_CFLAGS=""
14344 rm -f conf.libOggFLACtest
14347 echo "$as_me:$LINENO: result: no" >&5
14348 echo "${ECHO_T}no" >&6
14351 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14352 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14353 if test "x$au_enable_flac" = xyes; then
14354 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14355 echo "${ECHO_T}yes, configuring flac" >&6
14356 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14358 # Check whether --with-libFLAC or --without-libFLAC was given.
14359 if test "${with_libFLAC+set}" = set; then
14360 withval="$with_libFLAC"
14361 libFLAC_prefix="$withval"
14366 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14367 if test "${with_libFLAC_libraries+set}" = set; then
14368 withval="$with_libFLAC_libraries"
14369 libFLAC_libraries="$withval"
14371 libFLAC_libraries=""
14374 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14375 if test "${with_libFLAC_includes+set}" = set; then
14376 withval="$with_libFLAC_includes"
14377 libFLAC_includes="$withval"
14379 libFLAC_includes=""
14381 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14382 if test "${enable_libFLACtest+set}" = set; then
14383 enableval="$enable_libFLACtest"
14386 enable_libFLACtest=yes
14389 if test "x$libFLAC_libraries" != "x" ; then
14390 LIBFLAC_LIBS="-L$libFLAC_libraries"
14391 elif test "x$libFLAC_prefix" != "x" ; then
14392 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14393 elif test "x$prefix" != "xNONE" ; then
14394 LIBFLAC_LIBS="-L$prefix/lib"
14397 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14399 if test "x$libFLAC_includes" != "x" ; then
14400 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14401 elif test "x$libFLAC_prefix" != "x" ; then
14402 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14403 elif test "$prefix" != "xNONE"; then
14404 LIBFLAC_CFLAGS="-I$prefix/include"
14407 echo "$as_me:$LINENO: checking for libFLAC" >&5
14408 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14412 if test "x$enable_libFLACtest" = "xyes" ; then
14413 ac_save_CFLAGS="$CFLAGS"
14414 ac_save_CXXFLAGS="$CXXFLAGS"
14415 ac_save_LIBS="$LIBS"
14416 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14417 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14418 LIBS="$LIBS $LIBFLAC_LIBS"
14419 rm -f conf.libFLACtest
14420 if test "$cross_compiling" = yes; then
14421 echo $ac_n "cross compiling; assumed OK... $ac_c"
14423 cat >conftest.$ac_ext <<_ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14431 #include <stdlib.h>
14432 #include <string.h>
14433 #include <FLAC/format.h>
14437 system("touch conf.libFLACtest");
14443 rm -f conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14456 echo "$as_me: program exited with status $ac_status" >&5
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ( exit $ac_status )
14463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14465 CFLAGS="$ac_save_CFLAGS"
14466 LIBS="$ac_save_LIBS"
14469 if test "x$no_libFLAC" = "x" ; then
14470 echo "$as_me:$LINENO: result: yes" >&5
14471 echo "${ECHO_T}yes" >&6
14473 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14474 for f in $LIBFLAC_CFLAGS; do
14476 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14477 *) CFLAGS="$CPPFLAGS $f" ;;
14481 LIBS="$LIBS $LIBFLAC_LIBS"
14484 echo "$as_me:$LINENO: result: no" >&5
14485 echo "${ECHO_T}no" >&6
14486 if test -f conf.libFLACtest ; then
14489 echo "*** Could not run libFLAC test program, checking why..."
14490 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14491 LIBS="$LIBS $LIBFLAC_LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14500 #include <FLAC/format.h>
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14532 echo "*** The test program compiled, but did not run. This usually means"
14533 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14534 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14535 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14536 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14537 echo "*** is required on your system"
14539 echo "*** If you have an old version installed, it is best to remove it, although"
14540 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 echo "*** The test program failed to compile or link. See the file config.log for the"
14546 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14547 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14548 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14550 rm -f conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 CFLAGS="$ac_save_CFLAGS"
14553 LIBS="$ac_save_LIBS"
14561 rm -f conf.libFLACtest
14564 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14565 if test "${with_libOggFLAC+set}" = set; then
14566 withval="$with_libOggFLAC"
14567 libOggFLAC_prefix="$withval"
14569 libOggFLAC_prefix=""
14572 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14573 if test "${with_libOggFLAC_libraries+set}" = set; then
14574 withval="$with_libOggFLAC_libraries"
14575 libOggFLAC_libraries="$withval"
14577 libOggFLAC_libraries=""
14580 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14581 if test "${with_libOggFLAC_includes+set}" = set; then
14582 withval="$with_libOggFLAC_includes"
14583 libOggFLAC_includes="$withval"
14585 libOggFLAC_includes=""
14587 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14588 if test "${enable_libOggFLACtest+set}" = set; then
14589 enableval="$enable_libOggFLACtest"
14592 enable_libOggFLACtest=yes
14595 if test "x$libOggFLAC_libraries" != "x" ; then
14596 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14597 elif test "x$libOggFLAC_prefix" != "x" ; then
14598 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14599 elif test "x$prefix" != "xNONE" ; then
14600 LIBOGGFLAC_LIBS="-L$prefix/lib"
14603 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14605 if test "x$libOggFLAC_includes" != "x" ; then
14606 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14607 elif test "x$libOggFLAC_prefix" != "x" ; then
14608 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14609 elif test "$prefix" != "xNONE"; then
14610 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14613 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14614 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14618 if test "x$enable_libOggFLACtest" = "xyes" ; then
14619 ac_save_CFLAGS="$CFLAGS"
14620 ac_save_CXXFLAGS="$CXXFLAGS"
14621 ac_save_LIBS="$LIBS"
14622 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14623 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14624 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14625 rm -f conf.libOggFLACtest
14626 if test "$cross_compiling" = yes; then
14627 echo $ac_n "cross compiling; assumed OK... $ac_c"
14629 cat >conftest.$ac_ext <<_ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14637 #include <stdlib.h>
14638 #include <string.h>
14639 #include <OggFLAC/stream_decoder.h>
14643 system("touch conf.libOggFLACtest");
14649 rm -f conftest$ac_exeext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14662 echo "$as_me: program exited with status $ac_status" >&5
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ( exit $ac_status )
14669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14671 CFLAGS="$ac_save_CFLAGS"
14672 LIBS="$ac_save_LIBS"
14675 if test "x$no_libOggFLAC" = "x" ; then
14676 echo "$as_me:$LINENO: result: yes" >&5
14677 echo "${ECHO_T}yes" >&6
14679 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14680 for f in $LIBOGGFLAC_CFLAGS; do
14682 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14683 *) CFLAGS="$CPPFLAGS $f" ;;
14687 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14690 echo "$as_me:$LINENO: result: no" >&5
14691 echo "${ECHO_T}no" >&6
14692 if test -f conf.libOggFLACtest ; then
14695 echo "*** Could not run libOggFLAC test program, checking why..."
14696 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14697 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14706 #include <OggFLAC/stream_decoder.h>
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718 (eval $ac_link) 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 echo "*** The test program compiled, but did not run. This usually means"
14739 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14740 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14741 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14742 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14743 echo "*** is required on your system"
14745 echo "*** If you have an old version installed, it is best to remove it, although"
14746 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 echo "*** The test program failed to compile or link. See the file config.log for the"
14752 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14753 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14754 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14756 rm -f conftest.err conftest.$ac_objext \
14757 conftest$ac_exeext conftest.$ac_ext
14758 CFLAGS="$ac_save_CFLAGS"
14759 LIBS="$ac_save_LIBS"
14761 LIBOGGFLAC_CFLAGS=""
14767 rm -f conf.libOggFLACtest
14770 echo "$as_me:$LINENO: result: no" >&5
14771 echo "${ECHO_T}no" >&6
14774 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14775 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14776 if test "x$au_enable_speex" = xyes; then
14777 if test "${have_speex+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 cat >conftest.$ac_ext <<_ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14788 #include <ogg/ogg.h>
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>conftest.er1
14804 grep -v '^ *+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest$ac_exeext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14829 rm -f conftest.err conftest.$ac_objext \
14830 conftest$ac_exeext conftest.$ac_ext
14833 echo "$as_me:$LINENO: result: $have_speex" >&5
14834 echo "${ECHO_T}$have_speex" >&6
14835 if test "x$have_speex" = xyes; then
14836 SYSEXTRAS="$SYSEXTRAS speex_a.c"
14837 EXTRALIBS="$EXTRALIBS -lspeex -logg"
14838 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14841 echo "$as_me:$LINENO: result: no" >&5
14842 echo "${ECHO_T}no" >&6
14845 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14846 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14847 if test "x$au_enable_gogo" = xyes; then
14848 if test "x$CYGNUS" = "xyes"; then
14849 echo "$as_me:$LINENO: result: yes" >&5
14850 echo "${ECHO_T}yes" >&6
14852 if test "x$MSYS" = "xyes"; then
14853 echo "$as_me:$LINENO: result: yes" >&5
14854 echo "${ECHO_T}yes" >&6
14856 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
14857 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
14861 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14862 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14863 EXTRALIBS="$EXTRALIBS -lgogo"
14865 echo "$as_me:$LINENO: result: no" >&5
14866 echo "${ECHO_T}no" >&6
14869 if test "x$au_enable_none" = xyes; then
14870 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14871 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14873 echo "$as_me:$LINENO: checking default output mode" >&5
14874 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14875 if test "x$DEFAULT_PLAYMODE" = x; then
14876 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14878 case ".$DEFAULT_PLAYMODE" in
14879 .default) TIMIDITY_OUTPUT_ID=d ;;
14880 .oss) TIMIDITY_OUTPUT_ID=d ;;
14881 .alsa) TIMIDITY_OUTPUT_ID=s ;;
14882 .sun) TIMIDITY_OUTPUT_ID=d ;;
14883 .hpux) TIMIDITY_OUTPUT_ID=d ;;
14884 .irix) TIMIDITY_OUTPUT_ID=d ;;
14885 .mme) TIMIDITY_OUTPUT_ID=d ;;
14886 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
14887 .darwin) TIMIDITY_OUTPUT_ID=d ;;
14888 .w32) TIMIDITY_OUTPUT_ID=d ;;
14889 .alib) TIMIDITY_OUTPUT_ID=A ;;
14890 .nas) TIMIDITY_OUTPUT_ID=n ;;
14891 .arts) TIMIDITY_OUTPUT_ID=R ;;
14892 .esd) TIMIDITY_OUTPUT_ID=e ;;
14893 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
14894 .wav) TIMIDITY_OUTPUT_ID=w ;;
14895 .au) TIMIDITY_OUTPUT_ID=u ;;
14896 .aiff) TIMIDITY_OUTPUT_ID=a ;;
14897 .list) TIMIDITY_OUTPUT_ID=l ;;
14898 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
14899 .flac) TIMIDITY_OUTPUT_ID=F ;;
14900 .speex) TIMIDITY_OUTPUT_ID=S ;;
14901 .gogo) TIMIDITY_OUTPUT_ID=g ;;
14902 .jack) TIMIDITY_OUTPUT_ID=j ;;
14903 *) TIMIDITY_OUTPUT_ID= ;;
14905 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14906 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14909 # Interface Section
14912 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14914 # Check whether --enable-interface or --disable-interface was given.
14915 if test "${enable_interface+set}" = set; then
14916 enableval="$enable_interface"
14917 for i in `echo $enableval | sed 's/,/ /g'`; do
14918 eval "enable_$i=yes"
14922 # Dynamic link configuration
14923 # Check whether --enable-dynamic or --disable-dynamic was given.
14924 if test "${enable_dynamic+set}" = set; then
14925 enableval="$enable_dynamic"
14926 if test "x$enable_dynamic" = xyes; then
14927 enable_dynamic=dynamic
14928 elif test "x$enable_dynamic" != xno; then
14929 for i in `echo $enableval | sed 's/,/ /g'`; do
14930 eval "enable_$i=dynamic"
14936 for i in $interface_targets; do
14937 eval "join_targets=$join_targets\$enable_$i"
14940 case ".$join_targets" in
14941 .*dynamic*) NEEDDLOPEN=yes;;
14945 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14946 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14948 if test "$NEEDDLOPEN" = "yes"; then
14951 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14952 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14953 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 cat >conftest.$ac_ext <<_ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14962 #include <windows.h>
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_c_werror_flag"
14983 || test ! -s conftest.err'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; } &&
14989 { ac_try='test -s conftest$ac_exeext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 wapi_cv_func_LoadLibrary=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 wapi_cv_func_LoadLibrary=no
15002 rm -f conftest.err conftest.$ac_objext \
15003 conftest$ac_exeext conftest.$ac_ext
15006 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15007 echo "$as_me:$LINENO: result: yes" >&5
15008 echo "${ECHO_T}yes" >&6
15011 echo "$as_me:$LINENO: result: no" >&5
15012 echo "${ECHO_T}no" >&6
15015 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15017 if test "$have_dl" = "no"; then
15018 echo "$as_me:$LINENO: checking for shl_load" >&5
15019 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15020 if test "${ac_cv_func_shl_load+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15031 #define shl_load innocuous_shl_load
15033 /* System header to define __stub macros and hopefully few prototypes,
15034 which can conflict with char shl_load (); below.
15035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15036 <limits.h> exists even on freestanding compilers. */
15039 # include <limits.h>
15041 # include <assert.h>
15046 /* Override any gcc2 internal prototype to avoid an error. */
15051 /* We use char because int might match the return type of a gcc2
15052 builtin and then its argument prototype would still apply. */
15054 /* The GNU C library defines this for functions which it implements
15055 to always fail with ENOSYS. Some functions are actually named
15056 something starting with __ and the normal name is an alias. */
15057 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15060 char (*f) () = shl_load;
15069 return f != shl_load;
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15076 (eval $ac_link) 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -z "$ac_c_werror_flag"
15084 || test ! -s conftest.err'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest$ac_exeext'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_cv_func_shl_load=yes
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ac_cv_func_shl_load=no
15103 rm -f conftest.err conftest.$ac_objext \
15104 conftest$ac_exeext conftest.$ac_ext
15106 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15107 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15108 if test $ac_cv_func_shl_load = yes; then
15113 if test "$have_dl" = "no"; then
15114 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15115 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15116 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15127 #define NSLinkModule innocuous_NSLinkModule
15129 /* System header to define __stub macros and hopefully few prototypes,
15130 which can conflict with char NSLinkModule (); below.
15131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15132 <limits.h> exists even on freestanding compilers. */
15135 # include <limits.h>
15137 # include <assert.h>
15140 #undef NSLinkModule
15142 /* Override any gcc2 internal prototype to avoid an error. */
15147 /* We use char because int might match the return type of a gcc2
15148 builtin and then its argument prototype would still apply. */
15149 char NSLinkModule ();
15150 /* The GNU C library defines this for functions which it implements
15151 to always fail with ENOSYS. Some functions are actually named
15152 something starting with __ and the normal name is an alias. */
15153 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15156 char (*f) () = NSLinkModule;
15165 return f != NSLinkModule;
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>conftest.er1
15174 grep -v '^ *+' conftest.er1 >conftest.err
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -z "$ac_c_werror_flag"
15180 || test ! -s conftest.err'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest$ac_exeext'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_cv_func_NSLinkModule=yes
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 ac_cv_func_NSLinkModule=no
15199 rm -f conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15202 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15203 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15204 if test $ac_cv_func_NSLinkModule = yes; then
15209 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15212 if test "$have_dl" = "no"; then
15213 echo "$as_me:$LINENO: checking for dlopen" >&5
15214 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15215 if test "${ac_cv_func_dlopen+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15224 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15226 #define dlopen innocuous_dlopen
15228 /* System header to define __stub macros and hopefully few prototypes,
15229 which can conflict with char dlopen (); below.
15230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15231 <limits.h> exists even on freestanding compilers. */
15234 # include <limits.h>
15236 # include <assert.h>
15241 /* Override any gcc2 internal prototype to avoid an error. */
15246 /* We use char because int might match the return type of a gcc2
15247 builtin and then its argument prototype would still apply. */
15249 /* The GNU C library defines this for functions which it implements
15250 to always fail with ENOSYS. Some functions are actually named
15251 something starting with __ and the normal name is an alias. */
15252 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15255 char (*f) () = dlopen;
15264 return f != dlopen;
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271 (eval $ac_link) 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag"
15279 || test ! -s conftest.err'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try='test -s conftest$ac_exeext'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; }; then
15291 ac_cv_func_dlopen=yes
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 ac_cv_func_dlopen=no
15298 rm -f conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15301 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15302 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15303 if test $ac_cv_func_dlopen = yes; then
15308 if test "$have_dl" = "no"; then
15309 echo "$as_me:$LINENO: checking for dld_init" >&5
15310 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15311 if test "${ac_cv_func_dld_init+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15320 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15322 #define dld_init innocuous_dld_init
15324 /* System header to define __stub macros and hopefully few prototypes,
15325 which can conflict with char dld_init (); below.
15326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15327 <limits.h> exists even on freestanding compilers. */
15330 # include <limits.h>
15332 # include <assert.h>
15337 /* Override any gcc2 internal prototype to avoid an error. */
15342 /* We use char because int might match the return type of a gcc2
15343 builtin and then its argument prototype would still apply. */
15345 /* The GNU C library defines this for functions which it implements
15346 to always fail with ENOSYS. Some functions are actually named
15347 something starting with __ and the normal name is an alias. */
15348 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15351 char (*f) () = dld_init;
15360 return f != dld_init;
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15367 (eval $ac_link) 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest$ac_exeext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_func_dld_init=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_cv_func_dld_init=no
15394 rm -f conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15397 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15398 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15399 if test $ac_cv_func_dld_init = yes; then
15404 if test "$have_dl" = "no"; then
15405 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15406 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15407 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 ac_check_lib_save_LIBS=$LIBS
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15419 /* Override any gcc2 internal prototype to avoid an error. */
15423 /* We use char because int might match the return type of a gcc2
15424 builtin and then its argument prototype would still apply. */
15434 rm -f conftest.$ac_objext conftest$ac_exeext
15435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15436 (eval $ac_link) 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag"
15444 || test ! -s conftest.err'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest$ac_exeext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_cv_lib_dld_dld_init=yes
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_cv_lib_dld_dld_init=no
15463 rm -f conftest.err conftest.$ac_objext \
15464 conftest$ac_exeext conftest.$ac_ext
15465 LIBS=$ac_check_lib_save_LIBS
15467 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15468 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15469 if test $ac_cv_lib_dld_dld_init = yes; then
15470 have_dl=dld;lib_dl_opt=-ldld
15475 echo "$as_me:$LINENO: checking dynamic link method" >&5
15476 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15479 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15480 echo "${ECHO_T}use dl_dlopen.c" >&6
15481 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15482 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15483 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15484 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 case "$ac_cv_header_dlfcn_h" in
15488 yes) i_dlfcn=define;;
15499 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15501 #include <sys/types.h>
15506 extern int fred() ;
15515 int mode = RTLD_LAZY ;
15517 handle = dlopen("./dyna.$so", mode) ;
15518 if (handle == NULL) {
15523 symbol = dlsym(handle, "fred") ;
15524 if (symbol == NULL) {
15525 /* try putting a leading underscore */
15526 symbol = dlsym(handle, "_fred") ;
15527 if (symbol == NULL) {
15540 : Call the object file tmp-dyna.o in case dlext=o.
15541 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15542 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15543 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15544 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15547 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15548 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15550 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15551 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15553 3) timidity_cv_func_dlsym_underscore=yes
15555 4) timidity_cv_func_dlsym_underscore=no
15559 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15560 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15562 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15566 case "x$timidity_cv_func_dlsym_underscore" in
15568 cat >>confdefs.h <<\_ACEOF
15569 #define DLSYM_NEEDS_UNDERSCORE 1
15572 echo "$as_me:$LINENO: result: yes" >&5
15573 echo "${ECHO_T}yes" >&6
15576 echo "$as_me:$LINENO: result: no" >&5
15577 echo "${ECHO_T}no" >&6
15583 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15584 echo "${ECHO_T}use dl_dld.c" >&6
15585 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15588 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15589 echo "${ECHO_T}use dl_hpux.c" >&6
15590 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15591 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15594 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15595 echo "${ECHO_T}use dl_w32.c" >&6
15596 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15599 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15600 echo "${ECHO_T}use dl_dyld.c" >&6
15601 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15605 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15606 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15611 if test "$NEEDDLOPEN" = "yes"; then
15612 cat >> confdefs.h <<EOF
15613 #define IA_DYNAMIC 1
15617 cat >>confdefs.h <<_ACEOF
15618 #define SHARED_LIB_EXT ".$so"
15621 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15626 if test "$NEEDDLOPEN" = "yes"; then
15628 NEEDDLOPEN_FALSE='#'
15630 NEEDDLOPEN_TRUE='#'
15639 ENABLE_NCURSES_TRUE=
15640 ENABLE_NCURSES_FALSE='#'
15642 ENABLE_NCURSES_TRUE='#'
15643 ENABLE_NCURSES_FALSE=
15646 # Check whether --enable-ncurses or --disable-ncurses was given.
15647 if test "${enable_ncurses+set}" = set; then
15648 enableval="$enable_ncurses"
15649 case "x$enable_ncurses" in xyes|xdynamic)
15652 for ac_header in ncurses.h ncurses/curses.h curses.h
15654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15656 echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15664 # Is the header compilable?
15665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15667 cat >conftest.$ac_ext <<_ACEOF
15670 cat confdefs.h >>conftest.$ac_ext
15671 cat >>conftest.$ac_ext <<_ACEOF
15672 /* end confdefs.h. */
15673 $ac_includes_default
15674 #include <$ac_header>
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678 (eval $ac_compile) 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_header_compiler=no
15705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707 echo "${ECHO_T}$ac_header_compiler" >&6
15709 # Is the header present?
15710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15712 cat >conftest.$ac_ext <<_ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 #include <$ac_header>
15720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } >/dev/null; then
15728 if test -s conftest.err; then
15729 ac_cpp_err=$ac_c_preproc_warn_flag
15730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15737 if test -z "$ac_cpp_err"; then
15738 ac_header_preproc=yes
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_header_preproc=no
15745 rm -f conftest.err conftest.$ac_ext
15746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15747 echo "${ECHO_T}$ac_header_preproc" >&6
15749 # So? What about this header?
15750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15756 ac_header_preproc=yes
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15773 ## ------------------------------- ##
15774 ## Report this to root@mput.dip.jp ##
15775 ## ------------------------------- ##
15778 sed "s/^/$as_me: WARNING: /" >&2
15781 echo "$as_me:$LINENO: checking for $ac_header" >&5
15782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 eval "$as_ac_Header=\$ac_header_preproc"
15788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15793 cat >>confdefs.h <<_ACEOF
15794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15803 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15805 *) for i in /usr/include /usr/local/include; do
15806 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15807 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
15808 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
15809 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15816 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15817 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15818 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 ac_check_lib_save_LIBS=$LIBS
15822 LIBS="-lncurses $LIBS"
15823 cat >conftest.$ac_ext <<_ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15830 /* Override any gcc2 internal prototype to avoid an error. */
15834 /* We use char because int might match the return type of a gcc2
15835 builtin and then its argument prototype would still apply. */
15845 rm -f conftest.$ac_objext conftest$ac_exeext
15846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15847 (eval $ac_link) 2>conftest.er1
15849 grep -v '^ *+' conftest.er1 >conftest.err
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag"
15855 || test ! -s conftest.err'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; } &&
15861 { ac_try='test -s conftest$ac_exeext'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867 ac_cv_lib_ncurses_initscr=yes
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 ac_cv_lib_ncurses_initscr=no
15874 rm -f conftest.err conftest.$ac_objext \
15875 conftest$ac_exeext conftest.$ac_ext
15876 LIBS=$ac_check_lib_save_LIBS
15878 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15879 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15880 if test $ac_cv_lib_ncurses_initscr = yes; then
15881 lib_curses_opt=-lncurses
15883 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15884 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15885 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 ac_check_lib_save_LIBS=$LIBS
15889 LIBS="-lcurses $lib_user32_test $LIBS"
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15897 /* Override any gcc2 internal prototype to avoid an error. */
15901 /* We use char because int might match the return type of a gcc2
15902 builtin and then its argument prototype would still apply. */
15903 char PDC_set_ctrl_break ();
15907 PDC_set_ctrl_break ();
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914 (eval $ac_link) 2>conftest.er1
15916 grep -v '^ *+' conftest.er1 >conftest.err
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag"
15922 || test ! -s conftest.err'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest$ac_exeext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_lib_curses_PDC_set_ctrl_break=yes
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_lib_curses_PDC_set_ctrl_break=no
15941 rm -f conftest.err conftest.$ac_objext \
15942 conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15945 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15946 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15947 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15948 lib_curses_opt=-lcurses
15950 cat >>confdefs.h <<\_ACEOF
15951 #define USE_PDCURSES 1
15954 lib_user32_opt="$lib_user32_test"
15957 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15958 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15959 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-lpdcurses $LIBS"
15964 cat >conftest.$ac_ext <<_ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15971 /* Override any gcc2 internal prototype to avoid an error. */
15975 /* We use char because int might match the return type of a gcc2
15976 builtin and then its argument prototype would still apply. */
15977 char PDC_set_ctrl_break ();
15981 PDC_set_ctrl_break ();
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15988 (eval $ac_link) 2>conftest.er1
15990 grep -v '^ *+' conftest.er1 >conftest.err
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -z "$ac_c_werror_flag"
15996 || test ! -s conftest.err'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest$ac_exeext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16015 rm -f conftest.err conftest.$ac_objext \
16016 conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16019 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16020 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16021 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16022 lib_curses_opt=-lpdcurses
16024 cat >>confdefs.h <<\_ACEOF
16025 #define USE_PDCURSES 1
16028 lib_user32_opt="$lib_user32_test"
16033 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16034 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16035 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 ac_check_lib_save_LIBS=$LIBS
16039 LIBS="-lcurses $LIBS"
16040 cat >conftest.$ac_ext <<_ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16047 /* Override any gcc2 internal prototype to avoid an error. */
16051 /* We use char because int might match the return type of a gcc2
16052 builtin and then its argument prototype would still apply. */
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag"
16072 || test ! -s conftest.err'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest$ac_exeext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_cv_lib_curses_initscr=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_cv_lib_curses_initscr=no
16091 rm -f conftest.err conftest.$ac_objext \
16092 conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16095 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16096 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16097 if test $ac_cv_lib_curses_initscr = yes; then
16098 lib_curses_opt=-lcurses
16100 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16101 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16107 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
16108 lib_curses_opt=libpdcurses.lib
16110 cat >>confdefs.h <<\_ACEOF
16111 #define USE_PDCURSES 1
16115 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16116 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16132 case "x$enable_ncurses" in
16134 cat >> confdefs.h <<EOF
16135 #define IA_NCURSES 1
16141 ENABLE_NCURSES_TRUE=
16142 ENABLE_NCURSES_FALSE='#'
16144 ENABLE_NCURSES_TRUE='#'
16145 ENABLE_NCURSES_FALSE=
16148 LIBS="$LIBS $lib_curses_opt"
16151 EXTRALIBS="$EXTRALIBS -lmytinfo"
16154 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16158 dynamic_targets="$dynamic_targets interface_n.\$(so)"
16159 n_so_libs="$lib_curses_opt"
16162 EXTRALIBS="$EXTRALIBS -lmytinfo"
16177 ENABLE_SLANG_FALSE='#'
16179 ENABLE_SLANG_TRUE='#'
16180 ENABLE_SLANG_FALSE=
16183 # Check whether --enable-slang or --disable-slang was given.
16184 if test "${enable_slang+set}" = set; then
16185 enableval="$enable_slang"
16186 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16187 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16188 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 ac_check_lib_save_LIBS=$LIBS
16192 LIBS="-lslang $LIBS"
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16200 /* Override any gcc2 internal prototype to avoid an error. */
16204 /* We use char because int might match the return type of a gcc2
16205 builtin and then its argument prototype would still apply. */
16206 char SLang_init_tty ();
16215 rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16217 (eval $ac_link) 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try='test -z "$ac_c_werror_flag"
16225 || test ! -s conftest.err'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest$ac_exeext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_cv_lib_slang_SLang_init_tty=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_cv_lib_slang_SLang_init_tty=no
16244 rm -f conftest.err conftest.$ac_objext \
16245 conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16248 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16249 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16250 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16254 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16255 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16261 for ac_header in slang/slang.h slang.h
16263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16265 echo "$as_me:$LINENO: checking for $ac_header" >&5
16266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16273 # Is the header compilable?
16274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<_ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 $ac_includes_default
16283 #include <$ac_header>
16285 rm -f conftest.$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest.$ac_objext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ac_header_compiler=yes
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ac_header_compiler=no
16314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16316 echo "${ECHO_T}$ac_header_compiler" >&6
16318 # Is the header present?
16319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16321 cat >conftest.$ac_ext <<_ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 #include <$ac_header>
16329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16332 grep -v '^ *+' conftest.er1 >conftest.err
16334 cat conftest.err >&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } >/dev/null; then
16337 if test -s conftest.err; then
16338 ac_cpp_err=$ac_c_preproc_warn_flag
16339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16346 if test -z "$ac_cpp_err"; then
16347 ac_header_preproc=yes
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 ac_header_preproc=no
16354 rm -f conftest.err conftest.$ac_ext
16355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16356 echo "${ECHO_T}$ac_header_preproc" >&6
16358 # So? What about this header?
16359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16365 ac_header_preproc=yes
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16382 ## ------------------------------- ##
16383 ## Report this to root@mput.dip.jp ##
16384 ## ------------------------------- ##
16387 sed "s/^/$as_me: WARNING: /" >&2
16390 echo "$as_me:$LINENO: checking for $ac_header" >&5
16391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 eval "$as_ac_Header=\$ac_header_preproc"
16397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16402 cat >>confdefs.h <<_ACEOF
16403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16412 case "x$enable_slang" in
16414 cat >> confdefs.h <<EOF
16422 ENABLE_SLANG_FALSE='#'
16424 ENABLE_SLANG_TRUE='#'
16425 ENABLE_SLANG_FALSE=
16428 LIBS="$LIBS -lslang"
16429 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16433 dynamic_targets="$dynamic_targets interface_s.\$(so)"
16434 s_so_libs="-lslang"
16435 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16436 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16437 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 ac_check_lib_save_LIBS=$LIBS
16441 LIBS="-ltermcap $LIBS"
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16449 /* Override any gcc2 internal prototype to avoid an error. */
16453 /* We use char because int might match the return type of a gcc2
16454 builtin and then its argument prototype would still apply. */
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466 (eval $ac_link) 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag"
16474 || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_cv_lib_termcap_initscr=yes
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 ac_cv_lib_termcap_initscr=no
16493 rm -f conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_check_lib_save_LIBS
16497 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16498 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16499 if test $ac_cv_lib_termcap_initscr = yes; then
16500 s_so_libs="$s_so_libs -ltermcap"
16516 ENABLE_MOTIF_FALSE='#'
16518 ENABLE_MOTIF_TRUE='#'
16519 ENABLE_MOTIF_FALSE=
16522 # Check whether --enable-motif or --disable-motif was given.
16523 if test "${enable_motif+set}" = set; then
16524 enableval="$enable_motif"
16525 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16526 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16527 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16528 { (exit 1); exit 1; }; }
16530 if test "x$have_xm" != xyes; then
16531 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16532 echo "$as_me: WARNING: Motif library is not found." >&2;}
16537 case "x$enable_motif" in
16539 cat >> confdefs.h <<EOF
16547 ENABLE_MOTIF_FALSE='#'
16549 ENABLE_MOTIF_TRUE='#'
16550 ENABLE_MOTIF_FALSE=
16555 lib_xext_opt=-lXext
16556 if test "x$have_xprelibs" = xyes; then
16557 lib_xprelibs_opt='-lSM -lICE'
16559 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16563 dynamic_targets="$dynamic_targets interface_m.\$(so)"
16564 if test x$have_xprelibs = xyes; then
16565 m_so_libs="-lXext -lSM -lICE"
16567 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16581 ENABLE_TCLTK_FALSE='#'
16583 ENABLE_TCLTK_TRUE='#'
16584 ENABLE_TCLTK_FALSE=
16587 # Check whether --enable-tcltk or --disable-tcltk was given.
16588 if test "${enable_tcltk+set}" = set; then
16589 enableval="$enable_tcltk"
16590 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16591 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16592 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16593 { (exit 1); exit 1; }; }
16596 KEEPCPPFLAGS=$CPPFLAGS
16597 KEEPLDFLAGS=$LDFLAGS
16600 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16601 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16602 LIBS="$LIBS $lib_dl_opt"
16606 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16607 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16608 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16609 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16610 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 ac_check_lib_save_LIBS=$LIBS
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16622 /* Override any gcc2 internal prototype to avoid an error. */
16626 /* We use char because int might match the return type of a gcc2
16627 builtin and then its argument prototype would still apply. */
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16639 (eval $ac_link) 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest$ac_exeext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 eval "$as_ac_Lib=yes"
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 eval "$as_ac_Lib=no"
16666 rm -f conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16668 LIBS=$ac_check_lib_save_LIBS
16670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16671 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16672 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16677 LIBS="$LIBS $tcl_lib"
16678 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16679 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16680 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16681 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16682 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 ac_check_lib_save_LIBS=$LIBS
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16694 /* Override any gcc2 internal prototype to avoid an error. */
16698 /* We use char because int might match the return type of a gcc2
16699 builtin and then its argument prototype would still apply. */
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16711 (eval $ac_link) 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag"
16719 || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 eval "$as_ac_Lib=yes"
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 eval "$as_ac_Lib=no"
16738 rm -f conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16743 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16744 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16751 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16752 CPPFLAGS=$KEEPCPPFLAGS
16753 LDFLAGS=$KEEPLDFLAGS
16755 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16756 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16758 tcltk_dep='tclIndex'
16762 case "x$enable_tcltk" in
16764 cat >> confdefs.h <<EOF
16772 ENABLE_TCLTK_FALSE='#'
16774 ENABLE_TCLTK_TRUE='#'
16775 ENABLE_TCLTK_FALSE=
16778 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16781 EXTRALIBS="$EXTRALIBS -lipc"
16784 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16788 dynamic_targets="$dynamic_targets interface_k.\$(so)"
16789 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16792 k_so_libs="$k_so_libs -lipc"
16795 k_so_libs="$k_so_libs -lX11 -lm"
16806 if test "x$enable_tcltk" = "xdynamic"; then
16807 ENABLE_DYNAMIC_TCLTK_TRUE=
16808 ENABLE_DYNAMIC_TCLTK_FALSE='#'
16810 ENABLE_DYNAMIC_TCLTK_TRUE='#'
16811 ENABLE_DYNAMIC_TCLTK_FALSE=
16819 ENABLE_EMACS_FALSE='#'
16821 ENABLE_EMACS_TRUE='#'
16822 ENABLE_EMACS_FALSE=
16825 # Check whether --enable-emacs or --disable-emacs was given.
16826 if test "${enable_emacs+set}" = set; then
16827 enableval="$enable_emacs"
16828 case "x$enable_emacs" in xyes|xdynamic) ;; esac
16830 case "x$enable_emacs" in
16832 cat >> confdefs.h <<EOF
16840 ENABLE_EMACS_FALSE='#'
16842 ENABLE_EMACS_TRUE='#'
16843 ENABLE_EMACS_FALSE=
16846 ELFILES="$ELFILES timidity.el"
16847 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16851 dynamic_targets="$dynamic_targets interface_e.\$(so)"
16852 ELFILES="$ELFILES timidity.el"
16865 ENABLE_VT100_FALSE='#'
16867 ENABLE_VT100_TRUE='#'
16868 ENABLE_VT100_FALSE=
16871 # Check whether --enable-vt100 or --disable-vt100 was given.
16872 if test "${enable_vt100+set}" = set; then
16873 enableval="$enable_vt100"
16874 case "x$enable_vt100" in xyes|xdynamic) ;; esac
16876 case "x$enable_vt100" in
16878 cat >> confdefs.h <<EOF
16886 ENABLE_VT100_FALSE='#'
16888 ENABLE_VT100_TRUE='#'
16889 ENABLE_VT100_FALSE=
16892 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16895 dynamic_targets="$dynamic_targets interface_T.\$(so)"
16909 ENABLE_XAW_FALSE='#'
16911 ENABLE_XAW_TRUE='#'
16915 # Check whether --enable-xaw or --disable-xaw was given.
16916 if test "${enable_xaw+set}" = set; then
16917 enableval="$enable_xaw"
16918 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
16919 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16920 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16921 { (exit 1); exit 1; }; }
16923 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16924 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16925 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16929 case "x$enable_xaw" in
16931 cat >> confdefs.h <<EOF
16939 ENABLE_XAW_FALSE='#'
16941 ENABLE_XAW_TRUE='#'
16945 if test "x$have_xext" = xyes; then
16946 lib_xext_opt=-lXext
16948 if test "x$have_xprelibs" = xyes; then
16949 lib_xprelibs_opt='-lSM -lICE'
16953 if test "x$have_xaw" = x3d; then
16955 cat >>confdefs.h <<\_ACEOF
16959 lib_xaw_opt=-lXaw3d
16963 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16967 dynamic_targets="$dynamic_targets interface_a.\$(so)"
16968 if test "x$have_xext" = xyes; then
16969 a_so_libs="-lXext -lX11"
16975 a_so_libs="$a_so_libs -lcc_dynamic"
16978 if test "x$have_xprelibs" = xyes; then
16979 a_so_libs="-lSM -lICE $a_so_libs"
16981 if test "x$have_xaw" = xyes; then
16982 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16983 elif test "x$have_xaw" = x3d; then
16985 cat >>confdefs.h <<\_ACEOF
16989 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16991 a_so_libs="$ldflags_x_opt $a_so_libs"
17002 if test "x$enable_xaw" = "xdynamic"; then
17003 ENABLE_DYNAMIC_XAW_TRUE=
17004 ENABLE_DYNAMIC_XAW_FALSE='#'
17006 ENABLE_DYNAMIC_XAW_TRUE='#'
17007 ENABLE_DYNAMIC_XAW_FALSE=
17015 ENABLE_XSKIN_FALSE='#'
17017 ENABLE_XSKIN_TRUE='#'
17018 ENABLE_XSKIN_FALSE=
17021 # Check whether --enable-xskin or --disable-xskin was given.
17022 if test "${enable_xskin+set}" = set; then
17023 enableval="$enable_xskin"
17024 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
17025 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17026 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17027 { (exit 1); exit 1; }; }
17031 case "x$enable_xskin" in
17033 cat >> confdefs.h <<EOF
17041 ENABLE_XSKIN_FALSE='#'
17043 ENABLE_XSKIN_TRUE='#'
17044 ENABLE_XSKIN_FALSE=
17047 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17050 dynamic_targets="$dynamic_targets interface_i.\$(so)"
17051 i_so_libs="$ldflags_x_opt -lX11"
17064 ENABLE_GTK_FALSE='#'
17066 ENABLE_GTK_TRUE='#'
17070 # Check whether --enable-gtk or --disable-gtk was given.
17071 if test "${enable_gtk+set}" = set; then
17072 enableval="$enable_gtk"
17073 case "x$enable_gtk" in xyes|xdynamic) # Check whether --enable-gtktest or --disable-gtktest was given.
17074 if test "${enable_gtktest+set}" = set; then
17075 enableval="$enable_gtktest"
17081 pkg_config_args=gtk+-2.0
17086 pkg_config_args="$pkg_config_args gthread-2.0"
17093 # Extract the first word of "pkg-config", so it can be a program name with args.
17094 set dummy pkg-config; ac_word=$2
17095 echo "$as_me:$LINENO: checking for $ac_word" >&5
17096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 case $PKG_CONFIG in
17102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17109 test -z "$as_dir" && as_dir=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
17111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17125 if test -n "$PKG_CONFIG"; then
17126 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17127 echo "${ECHO_T}$PKG_CONFIG" >&6
17129 echo "$as_me:$LINENO: result: no" >&5
17130 echo "${ECHO_T}no" >&6
17134 if test x$PKG_CONFIG != xno ; then
17135 if pkg-config --atleast-pkgconfig-version 0.7 ; then
17138 echo *** pkg-config too old; version 0.7 or better required.
17146 min_gtk_version=2.0.0
17147 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17148 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
17150 if test x$PKG_CONFIG != xno ; then
17151 ## don't try to run the test against uninstalled libtool libs
17152 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17153 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17157 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17164 if test x"$no_gtk" = x ; then
17165 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17166 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17167 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17168 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17169 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17170 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17171 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17172 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17173 if test "x$enable_gtktest" = "xyes" ; then
17174 ac_save_CFLAGS="$CFLAGS"
17175 ac_save_LIBS="$LIBS"
17176 CFLAGS="$CFLAGS $GTK_CFLAGS"
17177 LIBS="$GTK_LIBS $LIBS"
17179 if test "$cross_compiling" = yes; then
17180 echo $ac_n "cross compiling; assumed OK... $ac_c"
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17189 #include <gtk/gtk.h>
17191 #include <stdlib.h>
17196 int major, minor, micro;
17199 system ("touch conf.gtktest");
17201 /* HP/UX 9 (%@#!) writes to sscanf strings */
17202 tmp_version = g_strdup("$min_gtk_version");
17203 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17204 printf("%s, bad version string\n", "$min_gtk_version");
17208 if ((gtk_major_version != $gtk_config_major_version) ||
17209 (gtk_minor_version != $gtk_config_minor_version) ||
17210 (gtk_micro_version != $gtk_config_micro_version))
17212 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17213 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17214 gtk_major_version, gtk_minor_version, gtk_micro_version);
17215 printf ("*** was found! If pkg-config was correct, then it is best\n");
17216 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17217 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17218 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17219 printf("*** required on your system.\n");
17220 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17221 printf("*** to point to the correct configuration files\n");
17223 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17224 (gtk_minor_version != GTK_MINOR_VERSION) ||
17225 (gtk_micro_version != GTK_MICRO_VERSION))
17227 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17228 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17229 printf("*** library (version %d.%d.%d)\n",
17230 gtk_major_version, gtk_minor_version, gtk_micro_version);
17234 if ((gtk_major_version > major) ||
17235 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17236 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17242 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17243 gtk_major_version, gtk_minor_version, gtk_micro_version);
17244 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17245 major, minor, micro);
17246 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17248 printf("*** If you have already installed a sufficiently new version, this error\n");
17249 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17250 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17251 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17252 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17253 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17254 printf("*** so that the correct libraries are found at run-time))\n");
17261 rm -f conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17274 echo "$as_me: program exited with status $ac_status" >&5
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ( exit $ac_status )
17281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17283 CFLAGS="$ac_save_CFLAGS"
17284 LIBS="$ac_save_LIBS"
17287 if test "x$no_gtk" = x ; then
17288 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17289 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17291 cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_GTK_2 1
17296 echo "$as_me:$LINENO: result: no" >&5
17297 echo "${ECHO_T}no" >&6
17298 if test "$PKG_CONFIG" = "no" ; then
17299 echo "*** A new enough version of pkg-config was not found."
17300 echo "*** See http://pkgconfig.sourceforge.net"
17302 if test -f conf.gtktest ; then
17305 echo "*** Could not run GTK+ test program, checking why..."
17306 ac_save_CFLAGS="$CFLAGS"
17307 ac_save_LIBS="$LIBS"
17308 CFLAGS="$CFLAGS $GTK_CFLAGS"
17309 LIBS="$LIBS $GTK_LIBS"
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17317 #include <gtk/gtk.h>
17323 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>conftest.er1
17332 grep -v '^ *+' conftest.er1 >conftest.err
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
17337 { ac_try='test -z "$ac_c_werror_flag"
17338 || test ! -s conftest.err'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 echo "*** The test program compiled, but did not run. This usually means"
17351 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17352 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17353 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17354 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17355 echo "*** is required on your system"
17357 echo "*** If you have an old version installed, it is best to remove it, although"
17358 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 echo "*** The test program failed to compile or link. See the file config.log for the"
17364 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17366 rm -f conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17368 CFLAGS="$ac_save_CFLAGS"
17369 LIBS="$ac_save_LIBS"
17375 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17376 if test "${with_gtk_prefix+set}" = set; then
17377 withval="$with_gtk_prefix"
17378 gtk_config_prefix="$withval"
17380 gtk_config_prefix=""
17383 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17384 if test "${with_gtk_exec_prefix+set}" = set; then
17385 withval="$with_gtk_exec_prefix"
17386 gtk_config_exec_prefix="$withval"
17388 gtk_config_exec_prefix=""
17390 # Check whether --enable-gtktest or --disable-gtktest was given.
17391 if test "${enable_gtktest+set}" = set; then
17392 enableval="$enable_gtktest"
17402 gtk_config_args="$gtk_config_args gthread"
17407 if test x$gtk_config_exec_prefix != x ; then
17408 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17409 if test x${GTK_CONFIG+set} != xset ; then
17410 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17413 if test x$gtk_config_prefix != x ; then
17414 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17415 if test x${GTK_CONFIG+set} != xset ; then
17416 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17420 # Extract the first word of "gtk-config", so it can be a program name with args.
17421 set dummy gtk-config; ac_word=$2
17422 echo "$as_me:$LINENO: checking for $ac_word" >&5
17423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17424 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 case $GTK_CONFIG in
17429 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17433 for as_dir in $PATH
17436 test -z "$as_dir" && as_dir=.
17437 for ac_exec_ext in '' $ac_executable_extensions; do
17438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17439 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17446 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17450 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17452 if test -n "$GTK_CONFIG"; then
17453 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17454 echo "${ECHO_T}$GTK_CONFIG" >&6
17456 echo "$as_me:$LINENO: result: no" >&5
17457 echo "${ECHO_T}no" >&6
17460 min_gtk_version=1.1.3
17461 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17462 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17464 if test "$GTK_CONFIG" = "no" ; then
17467 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17468 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17469 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17470 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17471 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17472 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17473 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17474 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17475 if test "x$enable_gtktest" = "xyes" ; then
17476 ac_save_CFLAGS="$CFLAGS"
17477 ac_save_LIBS="$LIBS"
17478 CFLAGS="$CFLAGS $GTK_CFLAGS"
17479 LIBS="$GTK_LIBS $LIBS"
17481 if test "$cross_compiling" = yes; then
17482 echo $ac_n "cross compiling; assumed OK... $ac_c"
17484 cat >conftest.$ac_ext <<_ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17491 #include <gtk/gtk.h>
17493 #include <stdlib.h>
17498 int major, minor, micro;
17501 system ("touch conf.gtktest");
17503 /* HP/UX 9 (%@#!) writes to sscanf strings */
17504 tmp_version = g_strdup("$min_gtk_version");
17505 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17506 printf("%s, bad version string\n", "$min_gtk_version");
17510 if ((gtk_major_version != $gtk_config_major_version) ||
17511 (gtk_minor_version != $gtk_config_minor_version) ||
17512 (gtk_micro_version != $gtk_config_micro_version))
17514 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17515 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17516 gtk_major_version, gtk_minor_version, gtk_micro_version);
17517 printf ("*** was found! If gtk-config was correct, then it is best\n");
17518 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17519 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17520 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17521 printf("*** required on your system.\n");
17522 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17523 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17524 printf("*** before re-running configure\n");
17526 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17527 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17528 (gtk_minor_version != GTK_MINOR_VERSION) ||
17529 (gtk_micro_version != GTK_MICRO_VERSION))
17531 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17532 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17533 printf("*** library (version %d.%d.%d)\n",
17534 gtk_major_version, gtk_minor_version, gtk_micro_version);
17536 #endif /* defined (GTK_MAJOR_VERSION) ... */
17539 if ((gtk_major_version > major) ||
17540 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17541 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17547 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17548 gtk_major_version, gtk_minor_version, gtk_micro_version);
17549 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17550 major, minor, micro);
17551 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17553 printf("*** If you have already installed a sufficiently new version, this error\n");
17554 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17555 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17556 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17557 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17558 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17559 printf("*** so that the correct libraries are found at run-time))\n");
17566 rm -f conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17579 echo "$as_me: program exited with status $ac_status" >&5
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 ( exit $ac_status )
17586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17588 CFLAGS="$ac_save_CFLAGS"
17589 LIBS="$ac_save_LIBS"
17592 if test "x$no_gtk" = x ; then
17593 echo "$as_me:$LINENO: result: yes" >&5
17594 echo "${ECHO_T}yes" >&6
17597 echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6
17599 if test "$GTK_CONFIG" = "no" ; then
17600 echo "*** The gtk-config script installed by GTK could not be found"
17601 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17602 echo "*** your path, or set the GTK_CONFIG environment variable to the"
17603 echo "*** full path to gtk-config."
17605 if test -f conf.gtktest ; then
17608 echo "*** Could not run GTK test program, checking why..."
17609 CFLAGS="$CFLAGS $GTK_CFLAGS"
17610 LIBS="$LIBS $GTK_LIBS"
17611 cat >conftest.$ac_ext <<_ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17618 #include <gtk/gtk.h>
17624 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631 (eval $ac_link) 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 echo "*** The test program compiled, but did not run. This usually means"
17652 echo "*** that the run-time linker is not finding GTK or finding the wrong"
17653 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17654 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17655 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17656 echo "*** is required on your system"
17658 echo "*** If you have an old version installed, it is best to remove it, although"
17659 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17661 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17662 echo "*** came with the system with the command"
17664 echo "*** rpm --erase --nodeps gtk gtk-devel"
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 echo "*** The test program failed to compile or link. See the file config.log for the"
17670 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17671 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17672 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17674 rm -f conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17676 CFLAGS="$ac_save_CFLAGS"
17677 LIBS="$ac_save_LIBS"
17694 case "x$enable_gtk" in
17696 cat >> confdefs.h <<EOF
17704 ENABLE_GTK_FALSE='#'
17706 ENABLE_GTK_TRUE='#'
17710 LIBS="$LIBS $GTK_LIBS"
17711 for f in $GTK_CFLAGS; do
17713 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17714 *) CFLAGS="$CPPFLAGS $f" ;;
17718 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17722 dynamic_targets="$dynamic_targets interface_g.\$(so)"
17723 if test "x$GCC" = xyes; then
17724 for i in $GTK_LIBS; do
17727 *) g_so_libs="$g_so_libs $i" ;;
17731 g_so_libs="$GTK_LIBS"
17733 for f in $GTK_CFLAGS; do
17735 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17736 *) CFLAGS="$CPPFLAGS $f" ;;
17751 ENABLE_SERVER_TRUE=
17752 ENABLE_SERVER_FALSE='#'
17754 ENABLE_SERVER_TRUE='#'
17755 ENABLE_SERVER_FALSE=
17758 # Check whether --enable-server or --disable-server was given.
17759 if test "${enable_server+set}" = set; then
17760 enableval="$enable_server"
17761 case "x$enable_server" in xyes|xdynamic) ;; esac
17763 case "x$enable_server" in
17765 cat >> confdefs.h <<EOF
17766 #define IA_SERVER 1
17772 ENABLE_SERVER_TRUE=
17773 ENABLE_SERVER_FALSE='#'
17775 ENABLE_SERVER_TRUE='#'
17776 ENABLE_SERVER_FALSE=
17779 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17781 for ac_header in sys/soundcard.h
17783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17785 echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17793 # Is the header compilable?
17794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 $ac_includes_default
17803 #include <$ac_header>
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_header_compiler=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_header_compiler=no
17834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17836 echo "${ECHO_T}$ac_header_compiler" >&6
17838 # Is the header present?
17839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17841 cat >conftest.$ac_ext <<_ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 #include <$ac_header>
17849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } >/dev/null; then
17857 if test -s conftest.err; then
17858 ac_cpp_err=$ac_c_preproc_warn_flag
17859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17866 if test -z "$ac_cpp_err"; then
17867 ac_header_preproc=yes
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_header_preproc=no
17874 rm -f conftest.err conftest.$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17876 echo "${ECHO_T}$ac_header_preproc" >&6
17878 # So? What about this header?
17879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17885 ac_header_preproc=yes
17888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17902 ## ------------------------------- ##
17903 ## Report this to root@mput.dip.jp ##
17904 ## ------------------------------- ##
17907 sed "s/^/$as_me: WARNING: /" >&2
17910 echo "$as_me:$LINENO: checking for $ac_header" >&5
17911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 eval "$as_ac_Header=\$ac_header_preproc"
17917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17933 dynamic_targets="$dynamic_targets interface_r.\$(so)"
17946 ENABLE_ALSASEQ_TRUE=
17947 ENABLE_ALSASEQ_FALSE='#'
17949 ENABLE_ALSASEQ_TRUE='#'
17950 ENABLE_ALSASEQ_FALSE=
17953 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17954 if test "${enable_alsaseq+set}" = set; then
17955 enableval="$enable_alsaseq"
17956 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
17958 case "x$enable_alsaseq" in
17960 cat >> confdefs.h <<EOF
17961 #define IA_ALSASEQ 1
17967 ENABLE_ALSASEQ_TRUE=
17968 ENABLE_ALSASEQ_FALSE='#'
17970 ENABLE_ALSASEQ_TRUE='#'
17971 ENABLE_ALSASEQ_FALSE=
17974 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17975 alsa_save_CFLAGS="$CFLAGS"
17976 alsa_save_LDFLAGS="$LDFLAGS"
17977 alsa_save_LIBS="$LIBS"
17981 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17982 if test "${with_alsa_prefix+set}" = set; then
17983 withval="$with_alsa_prefix"
17984 alsa_prefix="$withval"
17990 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17991 if test "${with_alsa_inc_prefix+set}" = set; then
17992 withval="$with_alsa_inc_prefix"
17993 alsa_inc_prefix="$withval"
17998 # Check whether --enable-alsatest or --disable-alsatest was given.
17999 if test "${enable_alsatest+set}" = set; then
18000 enableval="$enable_alsatest"
18003 enable_alsatest=yes
18006 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18007 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
18008 if test "$alsa_inc_prefix" != "" ; then
18009 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18010 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18012 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18013 echo "${ECHO_T}$ALSA_CFLAGS" >&6
18015 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18016 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
18017 if test "$alsa_prefix" != "" ; then
18018 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18019 LDFLAGS="$LDFLAGS $ALSA_LIBS"
18022 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18023 LIBS=`echo $LIBS | sed 's/-lm//'`
18024 LIBS=`echo $LIBS | sed 's/-ldl//'`
18025 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18026 LIBS=`echo $LIBS | sed 's/ //'`
18027 LIBS="$ALSA_LIBS $LIBS"
18028 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18029 echo "${ECHO_T}$ALSA_LIBS" >&6
18031 min_alsa_version=0.1.1
18032 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18033 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
18035 alsa_min_major_version=`echo $min_alsa_version | \
18036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18037 alsa_min_minor_version=`echo $min_alsa_version | \
18038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18039 alsa_min_micro_version=`echo $min_alsa_version | \
18040 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18046 ac_cpp='$CPP $CPPFLAGS'
18047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18051 cat >conftest.$ac_ext <<_ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18058 #include <alsa/asoundlib.h>
18064 /* ensure backward compatibility */
18065 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18066 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18068 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18069 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18071 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18072 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18075 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18078 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18079 # error not present
18082 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18085 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18086 # error not present
18089 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18090 # error not present
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102 (eval $ac_compile) 2>conftest.er1
18104 grep -v '^ *+' conftest.er1 >conftest.err
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest.$ac_objext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 echo "$as_me:$LINENO: result: found." >&5
18123 echo "${ECHO_T}found." >&6
18125 echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18128 cat >conftest.$ac_ext <<_ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18135 #include <sys/asoundlib.h>
18141 /* ensure backward compatibility */
18142 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18143 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18145 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18146 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18148 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18149 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18152 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18155 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18156 # error not present
18159 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18162 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18163 # error not present
18166 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18167 # error not present
18177 rm -f conftest.$ac_objext
18178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18179 (eval $ac_compile) 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag"
18187 || test ! -s conftest.err'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; } &&
18193 { ac_try='test -s conftest.$ac_objext'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 echo "$as_me:$LINENO: result: found." >&5
18200 echo "${ECHO_T}found." >&6
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 echo "$as_me:$LINENO: result: not present." >&5
18206 echo "${ECHO_T}not present." >&6
18207 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18208 echo "${ECHO_T}libasound was not found anywhere." >&6
18211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18212 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18213 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18218 ac_cpp='$CPP $CPPFLAGS'
18219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18225 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18226 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18227 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 ac_check_lib_save_LIBS=$LIBS
18231 LIBS="-lasound $LIBS"
18232 cat >conftest.$ac_ext <<_ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h. */
18239 /* Override any gcc2 internal prototype to avoid an error. */
18243 /* We use char because int might match the return type of a gcc2
18244 builtin and then its argument prototype would still apply. */
18245 char snd_ctl_open ();
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18256 (eval $ac_link) 2>conftest.er1
18258 grep -v '^ *+' conftest.er1 >conftest.err
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag"
18264 || test ! -s conftest.err'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try='test -s conftest$ac_exeext'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 ac_cv_lib_asound_snd_ctl_open=yes
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 ac_cv_lib_asound_snd_ctl_open=no
18283 rm -f conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 LIBS=$ac_check_lib_save_LIBS
18287 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18288 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18289 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18290 cat >>confdefs.h <<_ACEOF
18291 #define HAVE_LIBASOUND 1
18294 LIBS="-lasound $LIBS"
18297 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18298 echo "${ECHO_T}No linkable libasound was found." >&6
18304 if test "x$alsa_found" = "xyes" ; then
18306 LIBS=`echo $LIBS | sed 's/-lasound//g'`
18307 LIBS=`echo $LIBS | sed 's/ //'`
18308 LIBS="-lasound $LIBS"
18311 CFLAGS="$alsa_save_CFLAGS"
18312 LDFLAGS="$alsa_save_LDFLAGS"
18313 LIBS="$alsa_save_LIBS"
18324 dynamic_targets="$dynamic_targets interface_A.\$(so)"
18337 ENABLE_WINSYN_TRUE=
18338 ENABLE_WINSYN_FALSE='#'
18340 ENABLE_WINSYN_TRUE='#'
18341 ENABLE_WINSYN_FALSE=
18344 # Check whether --enable-winsyn or --disable-winsyn was given.
18345 if test "${enable_winsyn+set}" = set; then
18346 enableval="$enable_winsyn"
18347 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
18349 case "x$enable_winsyn" in
18351 cat >> confdefs.h <<EOF
18352 #define IA_WINSYN 1
18358 ENABLE_WINSYN_TRUE=
18359 ENABLE_WINSYN_FALSE='#'
18361 ENABLE_WINSYN_TRUE='#'
18362 ENABLE_WINSYN_FALSE=
18365 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18368 dynamic_targets="$dynamic_targets interface_W.\$(so)"
18381 ENABLE_PORTMIDISYN_TRUE=
18382 ENABLE_PORTMIDISYN_FALSE='#'
18384 ENABLE_PORTMIDISYN_TRUE='#'
18385 ENABLE_PORTMIDISYN_FALSE=
18388 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18389 if test "${enable_portmidisyn+set}" = set; then
18390 enableval="$enable_portmidisyn"
18391 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
18393 case "x$enable_portmidisyn" in
18395 cat >> confdefs.h <<EOF
18396 #define IA_PORTMIDISYN 1
18402 ENABLE_PORTMIDISYN_TRUE=
18403 ENABLE_PORTMIDISYN_FALSE='#'
18405 ENABLE_PORTMIDISYN_TRUE='#'
18406 ENABLE_PORTMIDISYN_FALSE=
18409 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18412 dynamic_targets="$dynamic_targets interface_P.\$(so)"
18425 ENABLE_W32G_SYN_TRUE=
18426 ENABLE_W32G_SYN_FALSE='#'
18428 ENABLE_W32G_SYN_TRUE='#'
18429 ENABLE_W32G_SYN_FALSE=
18432 # Check whether --enable-winsyng or --disable-winsyng was given.
18433 if test "${enable_winsyng+set}" = set; then
18434 enableval="$enable_winsyng"
18435 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
18437 case "x$enable_winsyng" in
18439 cat >> confdefs.h <<EOF
18440 #define IA_W32G_SYN 1
18446 ENABLE_W32G_SYN_TRUE=
18447 ENABLE_W32G_SYN_FALSE='#'
18449 ENABLE_W32G_SYN_TRUE='#'
18450 ENABLE_W32G_SYN_FALSE=
18454 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
18455 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18456 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18457 lib_user32_opt='user32.lib'
18458 if test "x$VCPP" = xyes; then
18459 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18461 if test "x$BORLANDC" = xyes; then
18462 BORLANDC_START='C0W32.OBJ'
18463 CFLAGS="$CFLAGS -tW"
18464 lib_w32gui_opt="-aa $lib_w32gui_opt"
18466 if test "x$WATCOM" = xyes; then
18467 CFLAGS="$CFLAGS -bw"
18468 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18471 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18472 lib_user32_opt='-luser32'
18473 LDFLAGS="-mwindows $LDFLAGS"
18474 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"
18479 dynamic_targets="$dynamic_targets interface_W.\$(so)"
18493 ENABLE_W32GUI_TRUE=
18494 ENABLE_W32GUI_FALSE='#'
18496 ENABLE_W32GUI_TRUE='#'
18497 ENABLE_W32GUI_FALSE=
18500 # Check whether --enable-w32gui or --disable-w32gui was given.
18501 if test "${enable_w32gui+set}" = set; then
18502 enableval="$enable_w32gui"
18503 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
18505 case "x$enable_w32gui" in
18507 cat >> confdefs.h <<EOF
18508 #define IA_W32GUI 1
18514 ENABLE_W32GUI_TRUE=
18515 ENABLE_W32GUI_FALSE='#'
18517 ENABLE_W32GUI_TRUE='#'
18518 ENABLE_W32GUI_FALSE=
18522 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
18523 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
18524 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18525 lib_user32_opt='user32.lib'
18526 if test "x$VCPP" = xyes; then
18527 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18529 if test "x$BORLANDC" = xyes; then
18530 BORLANDC_START='C0W32.OBJ'
18531 CFLAGS="$CFLAGS -tW"
18532 lib_w32gui_opt="-aa $lib_w32gui_opt"
18534 if test "x$WATCOM" = xyes; then
18535 CFLAGS="$CFLAGS -bw"
18536 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18539 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18540 lib_user32_opt='-luser32'
18541 LDFLAGS="-mwindows $LDFLAGS"
18542 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"
18547 dynamic_targets="$dynamic_targets interface_w.\$(so)"
18560 ENABLE_PLUGIN_TRUE=
18561 ENABLE_PLUGIN_FALSE='#'
18563 ENABLE_PLUGIN_TRUE='#'
18564 ENABLE_PLUGIN_FALSE=
18567 # Check whether --enable-ump or --disable-ump was given.
18568 if test "${enable_ump+set}" = set; then
18569 enableval="$enable_ump"
18570 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
18571 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
18572 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
18573 { (exit 1); exit 1; }; }
18575 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18576 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18577 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18578 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18582 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18584 # Is the header compilable?
18585 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18586 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18587 cat >conftest.$ac_ext <<_ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 $ac_includes_default
18594 #include <X11/xpm.h>
18596 rm -f conftest.$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_header_compiler=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_header_compiler=no
18625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18627 echo "${ECHO_T}$ac_header_compiler" >&6
18629 # Is the header present?
18630 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18631 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18632 cat >conftest.$ac_ext <<_ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18638 #include <X11/xpm.h>
18640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18643 grep -v '^ *+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } >/dev/null; then
18648 if test -s conftest.err; then
18649 ac_cpp_err=$ac_c_preproc_warn_flag
18650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18657 if test -z "$ac_cpp_err"; then
18658 ac_header_preproc=yes
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 ac_header_preproc=no
18665 rm -f conftest.err conftest.$ac_ext
18666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18667 echo "${ECHO_T}$ac_header_preproc" >&6
18669 # So? What about this header?
18670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18672 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18673 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18674 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18675 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18676 ac_header_preproc=yes
18679 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18680 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18681 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
18682 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
18683 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18684 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18685 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
18686 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18687 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18688 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18689 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18690 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18693 ## ------------------------------- ##
18694 ## Report this to root@mput.dip.jp ##
18695 ## ------------------------------- ##
18698 sed "s/^/$as_me: WARNING: /" >&2
18701 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18702 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18703 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 ac_cv_header_X11_xpm_h=$ac_header_preproc
18708 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18709 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18712 if test $ac_cv_header_X11_xpm_h = yes; then
18715 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18716 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18717 { (exit 1); exit 1; }; }
18721 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18722 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18723 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 ac_check_lib_save_LIBS=$LIBS
18728 cat >conftest.$ac_ext <<_ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18735 /* Override any gcc2 internal prototype to avoid an error. */
18739 /* We use char because int might match the return type of a gcc2
18740 builtin and then its argument prototype would still apply. */
18741 char XpmCreatePixmapFromData ();
18745 XpmCreatePixmapFromData ();
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18752 (eval $ac_link) 2>conftest.er1
18754 grep -v '^ *+' conftest.er1 >conftest.err
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest$ac_exeext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18779 rm -f conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18783 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18784 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18785 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18788 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18789 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18790 { (exit 1); exit 1; }; }
18793 if test "x$have_xext" = xyes; then
18794 lib_xext_opt=-lXext
18796 if test "x$have_xprelibs" = xyes; then
18797 lib_xprelibs_opt='-lSM -lICE'
18803 case "x$enable_ump" in
18805 cat >> confdefs.h <<EOF
18806 #define IA_PLUGIN 1
18812 ENABLE_PLUGIN_TRUE=
18813 ENABLE_PLUGIN_FALSE='#'
18815 ENABLE_PLUGIN_TRUE='#'
18816 ENABLE_PLUGIN_FALSE=
18822 dynamic_targets="$dynamic_targets interface_p.\$(so)"
18833 # Check whether --enable-offix or --disable-offix was given.
18834 if test "${enable_offix+set}" = set; then
18835 enableval="$enable_offix"
18836 if test "$enableval" = "yes"; then
18837 KEEPCPPFLAGS=$CPPFLAGS
18839 KEEPLDFLAGS=$LDFLAGS
18840 CPPFLAGS="$CPPFLAGS $offix_include_dir"
18841 LDFLAGS="$LDFLAGS $offix_lib_dir"
18842 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18843 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18844 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18845 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 ac_check_lib_save_LIBS=$LIBS
18850 cat >conftest.$ac_ext <<_ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18857 /* Override any gcc2 internal prototype to avoid an error. */
18861 /* We use char because int might match the return type of a gcc2
18862 builtin and then its argument prototype would still apply. */
18863 char DndInitialize ();
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874 (eval $ac_link) 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag"
18882 || test ! -s conftest.err'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_lib_Dnd_DndInitialize=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_lib_Dnd_DndInitialize=no
18901 rm -f conftest.err conftest.$ac_objext \
18902 conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18906 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18907 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18910 lib_offix_opt="-lDnd"
18912 cat >>confdefs.h <<\_ACEOF
18918 LDFLAGS=$KEEPLDFLAGS
18919 CPPFLAGS=$KEEPCPPFLAGS
18928 # Check whether --enable-network or --disable-network was given.
18929 if test "${enable_network+set}" = set; then
18930 enableval="$enable_network"
18931 if test "$enableval" = "yes"; then
18933 cat >>confdefs.h <<\_ACEOF
18934 #define SUPPORT_SOCKET 1
18941 if test "x$enable_network" = "xyes"; then
18942 ENABLE_NETWORK_TRUE=
18943 ENABLE_NETWORK_FALSE='#'
18945 ENABLE_NETWORK_TRUE='#'
18946 ENABLE_NETWORK_FALSE=
18950 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18951 if test "${enable_spectrogram+set}" = set; then
18952 enableval="$enable_spectrogram"
18953 if test "$enableval" = "yes"; then
18954 if test "x$with_x" != xyes; then
18955 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18956 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18957 { (exit 1); exit 1; }; }
18960 cat >>confdefs.h <<\_ACEOF
18961 #define SUPPORT_SOUNDSPEC 1
18968 if test "x$enable_spectrogram" = "xyes"; then
18969 ENABLE_SOUND_SPEC_TRUE=
18970 ENABLE_SOUND_SPEC_FALSE='#'
18972 ENABLE_SOUND_SPEC_TRUE='#'
18973 ENABLE_SOUND_SPEC_FALSE=
18977 # Check whether --enable-spline or --disable-spline was given.
18978 if test "${enable_spline+set}" = set; then
18979 enableval="$enable_spline"
18980 case "x$enableval" in
18983 cat >>confdefs.h <<\_ACEOF
18984 #define DEFAULT_RESAMPLATION resample_linear
18990 cat >>confdefs.h <<\_ACEOF
18991 #define DEFAULT_RESAMPLATION resample_cspline
18997 cat >>confdefs.h <<\_ACEOF
18998 #define DEFAULT_RESAMPLATION resample_lagrange
19004 cat >>confdefs.h <<\_ACEOF
19005 #define DEFAULT_RESAMPLATION resample_newton
19011 cat >>confdefs.h <<\_ACEOF
19012 #define DEFAULT_RESAMPLATION resample_gauss
19018 cat >>confdefs.h <<\_ACEOF
19019 #define DEFAULT_RESAMPLATION resample_none
19024 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19025 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19026 { (exit 1); exit 1; }; }
19031 # Check whether --enable-wrd or --disable-wrd was given.
19032 if test "${enable_wrd+set}" = set; then
19033 enableval="$enable_wrd"
19034 if test "$enableval" = "yes"; then
19035 if test "x$with_x" != xyes; then
19036 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19037 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19038 { (exit 1); exit 1; }; }
19041 cat >>confdefs.h <<\_ACEOF
19045 enable_sherry_wrd=yes
19046 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19047 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
19048 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 ac_check_lib_save_LIBS=$LIBS
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19060 /* Override any gcc2 internal prototype to avoid an error. */
19064 /* We use char because int might match the return type of a gcc2
19065 builtin and then its argument prototype would still apply. */
19066 char zlibVersion ();
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 (eval $ac_link) 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_lib_z_zlibVersion=yes
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_cv_lib_z_zlibVersion=no
19104 rm -f conftest.err conftest.$ac_objext \
19105 conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19108 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19109 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
19110 if test $ac_cv_lib_z_zlibVersion = yes; then
19113 enable_sherry_wrd=no
19116 if test "${ac_cv_header_png_h+set}" = set; then
19117 echo "$as_me:$LINENO: checking for png.h" >&5
19118 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19119 if test "${ac_cv_header_png_h+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19123 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19125 # Is the header compilable?
19126 echo "$as_me:$LINENO: checking png.h usability" >&5
19127 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19128 cat >conftest.$ac_ext <<_ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19134 $ac_includes_default
19137 rm -f conftest.$ac_objext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19139 (eval $ac_compile) 2>conftest.er1
19141 grep -v '^ *+' conftest.er1 >conftest.err
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest.$ac_objext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 ac_header_compiler=yes
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19164 ac_header_compiler=no
19166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19168 echo "${ECHO_T}$ac_header_compiler" >&6
19170 # Is the header present?
19171 echo "$as_me:$LINENO: checking png.h presence" >&5
19172 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19184 grep -v '^ *+' conftest.er1 >conftest.err
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } >/dev/null; then
19189 if test -s conftest.err; then
19190 ac_cpp_err=$ac_c_preproc_warn_flag
19191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19198 if test -z "$ac_cpp_err"; then
19199 ac_header_preproc=yes
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_header_preproc=no
19206 rm -f conftest.err conftest.$ac_ext
19207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19208 echo "${ECHO_T}$ac_header_preproc" >&6
19210 # So? What about this header?
19211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19213 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19214 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19215 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19216 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19217 ac_header_preproc=yes
19220 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19221 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19222 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19223 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19224 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19225 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19226 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19227 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
19228 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19229 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19230 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19231 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19234 ## ------------------------------- ##
19235 ## Report this to root@mput.dip.jp ##
19236 ## ------------------------------- ##
19239 sed "s/^/$as_me: WARNING: /" >&2
19242 echo "$as_me:$LINENO: checking for png.h" >&5
19243 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19244 if test "${ac_cv_header_png_h+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 ac_cv_header_png_h=$ac_header_preproc
19249 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19250 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19253 if test $ac_cv_header_png_h = yes; then
19256 enable_sherry_wrd=no
19260 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19261 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19262 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 ac_check_lib_save_LIBS=$LIBS
19266 LIBS="-lpng -lz $LIBS"
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19274 /* Override any gcc2 internal prototype to avoid an error. */
19278 /* We use char because int might match the return type of a gcc2
19279 builtin and then its argument prototype would still apply. */
19280 char png_init_io ();
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291 (eval $ac_link) 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_c_werror_flag"
19299 || test ! -s conftest.err'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest$ac_exeext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 ac_cv_lib_png_png_init_io=yes
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 ac_cv_lib_png_png_init_io=no
19318 rm -f conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19322 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19323 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19324 if test $ac_cv_lib_png_png_init_io = yes; then
19327 enable_sherry_wrd=no
19330 if test "$enable_sherry_wrd" = yes; then
19332 cat >>confdefs.h <<\_ACEOF
19333 #define ENABLE_SHERRY 1
19339 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19340 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19342 if test "x$have_xext" = xyes; then
19343 lib_xext_opt=-lXext
19356 if test "x$enable_wrd" = "xyes"; then
19358 ENABLE_WRD_FALSE='#'
19360 ENABLE_WRD_TRUE='#'
19366 if test "x$CYGNUS" = xyes; then
19376 if test "x$MSYS" = xyes; then
19386 if test "x$VCPP" = xyes; then
19396 if test "x$BORLANDC" = xyes; then
19406 if test "x$WATCOM" = xyes; then
19417 if test "x$W32READDIR" = "xyes"; then
19419 W32READDIR_FALSE='#'
19421 W32READDIR_TRUE='#'
19426 rm -f wordtmp >/dev/null 2>&1
19428 for f in $LDFLAGS; do
19429 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19432 echo $f >>wordtmp; val="$val $f"
19437 rm -f wordtmp >/dev/null 2>&1
19439 rm -f wordtmp >/dev/null 2>&1
19441 for f in $SHLDFLAGS; do
19442 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19445 echo $f >>wordtmp; val="$val $f"
19450 rm -f wordtmp >/dev/null 2>&1
19452 rm -f wordtmp >/dev/null 2>&1
19454 for f in $EXTRACFLAGS $CFLAGS; do
19455 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19458 echo $f >>wordtmp; val="$val $f"
19463 rm -f wordtmp >/dev/null 2>&1
19465 rm -f wordtmp >/dev/null 2>&1
19467 for f in $CPPFLAGS $EXTRADEFS; do
19468 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19471 echo $f >>wordtmp; val="$val $f"
19476 rm -f wordtmp >/dev/null 2>&1
19479 if test "x$oss_device" != x; then
19481 cat >>confdefs.h <<_ACEOF
19482 #define OSS_DEVICE "$oss_device"
19487 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19489 cat >>confdefs.h <<_ACEOF
19490 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19495 if test "x$with_x" = xyes; then
19496 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/"`
19498 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19499 SHLD="$SHLD $SHLDFLAGS"
19523 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"
19525 cat >confcache <<\_ACEOF
19526 # This file is a shell script that caches the results of configure
19527 # tests run on this system so they can be shared between configure
19528 # scripts and configure runs, see configure's option --config-cache.
19529 # It is not useful on other systems. If it contains results you don't
19530 # want to keep, you may remove or edit it.
19532 # config.status only pays attention to the cache file if you give it
19533 # the --recheck option to rerun configure.
19535 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19537 # following values.
19541 # The following way of writing the cache mishandles newlines in values,
19542 # but we know of no workaround that is simple, portable, and efficient.
19543 # So, don't put newlines in cache variables' values.
19544 # Ultrix sh set writes to stderr and can't be redirected directly,
19545 # and sets the high bit in the cache file unless we assign to the vars.
19548 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19550 # `set' does not quote correctly, so add quotes (double-quote
19551 # substitution turns \\\\ into \\, and sed turns \\ into \).
19554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19557 # `set' quotes correctly as required by POSIX, so do not add quotes.
19559 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19568 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19570 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19571 if test -w $cache_file; then
19572 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19573 cat confcache >$cache_file
19575 echo "not updating unwritable cache $cache_file"
19580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19581 # Let make expand exec_prefix.
19582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19584 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19585 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19586 # trailing colons and then remove the whole line if VPATH becomes empty
19587 # (actually we leave an empty line to preserve line numbers).
19588 if test "x$srcdir" = x.; then
19589 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19590 s/:*\$(srcdir):*/:/;
19591 s/:*\${srcdir}:*/:/;
19593 s/^\([^=]*=[ ]*\):*/\1/;
19599 DEFS=-DHAVE_CONFIG_H
19603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19604 # 1. Remove the extension, and $U if already installed.
19605 ac_i=`echo "$ac_i" |
19606 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19608 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19609 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19611 LIBOBJS=$ac_libobjs
19613 LTLIBOBJS=$ac_ltlibobjs
19616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19617 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19618 Usually this means the macro was only invoked conditionally." >&5
19619 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19620 Usually this means the macro was only invoked conditionally." >&2;}
19621 { (exit 1); exit 1; }; }
19623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19624 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19625 Usually this means the macro was only invoked conditionally." >&5
19626 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19627 Usually this means the macro was only invoked conditionally." >&2;}
19628 { (exit 1); exit 1; }; }
19630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19631 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19632 Usually this means the macro was only invoked conditionally." >&5
19633 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19634 Usually this means the macro was only invoked conditionally." >&2;}
19635 { (exit 1); exit 1; }; }
19637 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
19638 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
19639 Usually this means the macro was only invoked conditionally." >&5
19640 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
19641 Usually this means the macro was only invoked conditionally." >&2;}
19642 { (exit 1); exit 1; }; }
19644 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
19645 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
19646 Usually this means the macro was only invoked conditionally." >&5
19647 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
19648 Usually this means the macro was only invoked conditionally." >&2;}
19649 { (exit 1); exit 1; }; }
19651 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19652 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19653 Usually this means the macro was only invoked conditionally." >&5
19654 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19655 Usually this means the macro was only invoked conditionally." >&2;}
19656 { (exit 1); exit 1; }; }
19658 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19659 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19660 Usually this means the macro was only invoked conditionally." >&5
19661 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19662 Usually this means the macro was only invoked conditionally." >&2;}
19663 { (exit 1); exit 1; }; }
19665 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19666 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19667 Usually this means the macro was only invoked conditionally." >&5
19668 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19669 Usually this means the macro was only invoked conditionally." >&2;}
19670 { (exit 1); exit 1; }; }
19672 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19673 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19674 Usually this means the macro was only invoked conditionally." >&5
19675 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19676 Usually this means the macro was only invoked conditionally." >&2;}
19677 { (exit 1); exit 1; }; }
19679 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19680 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19681 Usually this means the macro was only invoked conditionally." >&5
19682 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19683 Usually this means the macro was only invoked conditionally." >&2;}
19684 { (exit 1); exit 1; }; }
19686 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19687 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19688 Usually this means the macro was only invoked conditionally." >&5
19689 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19690 Usually this means the macro was only invoked conditionally." >&2;}
19691 { (exit 1); exit 1; }; }
19693 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19694 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19695 Usually this means the macro was only invoked conditionally." >&5
19696 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19697 Usually this means the macro was only invoked conditionally." >&2;}
19698 { (exit 1); exit 1; }; }
19700 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19701 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19702 Usually this means the macro was only invoked conditionally." >&5
19703 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19704 Usually this means the macro was only invoked conditionally." >&2;}
19705 { (exit 1); exit 1; }; }
19707 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19708 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19709 Usually this means the macro was only invoked conditionally." >&5
19710 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19711 Usually this means the macro was only invoked conditionally." >&2;}
19712 { (exit 1); exit 1; }; }
19714 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19715 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19716 Usually this means the macro was only invoked conditionally." >&5
19717 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19718 Usually this means the macro was only invoked conditionally." >&2;}
19719 { (exit 1); exit 1; }; }
19721 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19722 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19723 Usually this means the macro was only invoked conditionally." >&5
19724 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19725 Usually this means the macro was only invoked conditionally." >&2;}
19726 { (exit 1); exit 1; }; }
19728 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19729 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19730 Usually this means the macro was only invoked conditionally." >&5
19731 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19732 Usually this means the macro was only invoked conditionally." >&2;}
19733 { (exit 1); exit 1; }; }
19735 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19736 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19737 Usually this means the macro was only invoked conditionally." >&5
19738 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19739 Usually this means the macro was only invoked conditionally." >&2;}
19740 { (exit 1); exit 1; }; }
19742 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19743 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19744 Usually this means the macro was only invoked conditionally." >&5
19745 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19746 Usually this means the macro was only invoked conditionally." >&2;}
19747 { (exit 1); exit 1; }; }
19749 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19750 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19751 Usually this means the macro was only invoked conditionally." >&5
19752 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19753 Usually this means the macro was only invoked conditionally." >&2;}
19754 { (exit 1); exit 1; }; }
19756 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19757 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19758 Usually this means the macro was only invoked conditionally." >&5
19759 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19760 Usually this means the macro was only invoked conditionally." >&2;}
19761 { (exit 1); exit 1; }; }
19763 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19764 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19765 Usually this means the macro was only invoked conditionally." >&5
19766 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19767 Usually this means the macro was only invoked conditionally." >&2;}
19768 { (exit 1); exit 1; }; }
19770 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19771 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19772 Usually this means the macro was only invoked conditionally." >&5
19773 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19774 Usually this means the macro was only invoked conditionally." >&2;}
19775 { (exit 1); exit 1; }; }
19777 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19778 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19779 Usually this means the macro was only invoked conditionally." >&5
19780 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19781 Usually this means the macro was only invoked conditionally." >&2;}
19782 { (exit 1); exit 1; }; }
19784 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19785 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19786 Usually this means the macro was only invoked conditionally." >&5
19787 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19788 Usually this means the macro was only invoked conditionally." >&2;}
19789 { (exit 1); exit 1; }; }
19791 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19792 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19793 Usually this means the macro was only invoked conditionally." >&5
19794 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19795 Usually this means the macro was only invoked conditionally." >&2;}
19796 { (exit 1); exit 1; }; }
19798 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19799 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19800 Usually this means the macro was only invoked conditionally." >&5
19801 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19802 Usually this means the macro was only invoked conditionally." >&2;}
19803 { (exit 1); exit 1; }; }
19805 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19806 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19807 Usually this means the macro was only invoked conditionally." >&5
19808 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19809 Usually this means the macro was only invoked conditionally." >&2;}
19810 { (exit 1); exit 1; }; }
19812 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19813 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19814 Usually this means the macro was only invoked conditionally." >&5
19815 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19816 Usually this means the macro was only invoked conditionally." >&2;}
19817 { (exit 1); exit 1; }; }
19819 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19820 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19821 Usually this means the macro was only invoked conditionally." >&5
19822 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19823 Usually this means the macro was only invoked conditionally." >&2;}
19824 { (exit 1); exit 1; }; }
19826 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19827 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19828 Usually this means the macro was only invoked conditionally." >&5
19829 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19830 Usually this means the macro was only invoked conditionally." >&2;}
19831 { (exit 1); exit 1; }; }
19833 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19834 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19835 Usually this means the macro was only invoked conditionally." >&5
19836 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19837 Usually this means the macro was only invoked conditionally." >&2;}
19838 { (exit 1); exit 1; }; }
19840 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19841 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19842 Usually this means the macro was only invoked conditionally." >&5
19843 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19844 Usually this means the macro was only invoked conditionally." >&2;}
19845 { (exit 1); exit 1; }; }
19847 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19848 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19849 Usually this means the macro was only invoked conditionally." >&5
19850 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19851 Usually this means the macro was only invoked conditionally." >&2;}
19852 { (exit 1); exit 1; }; }
19854 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19855 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19856 Usually this means the macro was only invoked conditionally." >&5
19857 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19858 Usually this means the macro was only invoked conditionally." >&2;}
19859 { (exit 1); exit 1; }; }
19861 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19862 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19863 Usually this means the macro was only invoked conditionally." >&5
19864 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19865 Usually this means the macro was only invoked conditionally." >&2;}
19866 { (exit 1); exit 1; }; }
19868 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19869 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19870 Usually this means the macro was only invoked conditionally." >&5
19871 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19872 Usually this means the macro was only invoked conditionally." >&2;}
19873 { (exit 1); exit 1; }; }
19875 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19876 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19877 Usually this means the macro was only invoked conditionally." >&5
19878 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19879 Usually this means the macro was only invoked conditionally." >&2;}
19880 { (exit 1); exit 1; }; }
19882 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19883 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19884 Usually this means the macro was only invoked conditionally." >&5
19885 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19886 Usually this means the macro was only invoked conditionally." >&2;}
19887 { (exit 1); exit 1; }; }
19889 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19890 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19891 Usually this means the macro was only invoked conditionally." >&5
19892 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19893 Usually this means the macro was only invoked conditionally." >&2;}
19894 { (exit 1); exit 1; }; }
19896 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19897 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19898 Usually this means the macro was only invoked conditionally." >&5
19899 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19900 Usually this means the macro was only invoked conditionally." >&2;}
19901 { (exit 1); exit 1; }; }
19903 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19904 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19905 Usually this means the macro was only invoked conditionally." >&5
19906 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&2;}
19908 { (exit 1); exit 1; }; }
19910 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19911 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19912 Usually this means the macro was only invoked conditionally." >&5
19913 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19914 Usually this means the macro was only invoked conditionally." >&2;}
19915 { (exit 1); exit 1; }; }
19917 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
19918 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
19919 Usually this means the macro was only invoked conditionally." >&5
19920 echo "$as_me: error: conditional \"MSYS\" was never defined.
19921 Usually this means the macro was only invoked conditionally." >&2;}
19922 { (exit 1); exit 1; }; }
19924 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
19925 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
19926 Usually this means the macro was only invoked conditionally." >&5
19927 echo "$as_me: error: conditional \"VCPP\" was never defined.
19928 Usually this means the macro was only invoked conditionally." >&2;}
19929 { (exit 1); exit 1; }; }
19931 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
19932 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
19933 Usually this means the macro was only invoked conditionally." >&5
19934 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
19935 Usually this means the macro was only invoked conditionally." >&2;}
19936 { (exit 1); exit 1; }; }
19938 if test -z "${WATCOM_TRUE}" && test -z "${WATCOM_FALSE}"; then
19939 { { echo "$as_me:$LINENO: error: conditional \"WATCOM\" was never defined.
19940 Usually this means the macro was only invoked conditionally." >&5
19941 echo "$as_me: error: conditional \"WATCOM\" was never defined.
19942 Usually this means the macro was only invoked conditionally." >&2;}
19943 { (exit 1); exit 1; }; }
19945 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19946 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19947 Usually this means the macro was only invoked conditionally." >&5
19948 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19949 Usually this means the macro was only invoked conditionally." >&2;}
19950 { (exit 1); exit 1; }; }
19953 : ${CONFIG_STATUS=./config.status}
19954 ac_clean_files_save=$ac_clean_files
19955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19956 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19957 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19958 cat >$CONFIG_STATUS <<_ACEOF
19960 # Generated by $as_me.
19961 # Run this file to recreate the current configuration.
19962 # Compiler output produced by configure, useful for debugging
19963 # configure, is in config.log if it exists.
19966 ac_cs_recheck=false
19968 SHELL=\${CONFIG_SHELL-$SHELL}
19971 cat >>$CONFIG_STATUS <<\_ACEOF
19972 ## --------------------- ##
19973 ## M4sh Initialization. ##
19974 ## --------------------- ##
19976 # Be Bourne compatible
19977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19981 # is contrary to our usage. Disable this feature.
19982 alias -g '${1+"$@"}'='"$@"'
19983 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19986 DUALCASE=1; export DUALCASE # for MKS sh
19988 # Support unset when possible.
19989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19996 # Work around bugs in pre-3.0 UWIN ksh.
19997 $as_unset ENV MAIL MAILPATH
20004 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20005 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20006 LC_TELEPHONE LC_TIME
20008 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20009 eval $as_var=C; export $as_var
20015 # Required to use basename.
20016 if expr a : '\(a\)' >/dev/null 2>&1; then
20022 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20023 as_basename=basename
20029 # Name of the executable.
20030 as_me=`$as_basename "$0" ||
20031 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20032 X"$0" : 'X\(//\)$' \| \
20033 X"$0" : 'X\(/\)$' \| \
20034 . : '\(.\)' 2>/dev/null ||
20036 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20037 /^X\/\(\/\/\)$/{ s//\1/; q; }
20038 /^X\/\(\/\).*/{ s//\1/; q; }
20042 # PATH needs CR, and LINENO needs CR and PATH.
20043 # Avoid depending upon Character Ranges.
20044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20047 as_cr_digits='0123456789'
20048 as_cr_alnum=$as_cr_Letters$as_cr_digits
20050 # The user is always right.
20051 if test "${PATH_SEPARATOR+set}" != set; then
20052 echo "#! /bin/sh" >conf$$.sh
20053 echo "exit 0" >>conf$$.sh
20055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20064 as_lineno_1=$LINENO
20065 as_lineno_2=$LINENO
20066 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20067 test "x$as_lineno_1" != "x$as_lineno_2" &&
20068 test "x$as_lineno_3" = "x$as_lineno_2" || {
20069 # Find who we are. Look in the path if we contain no path at all
20072 *[\\/]* ) as_myself=$0 ;;
20073 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074 for as_dir in $PATH
20077 test -z "$as_dir" && as_dir=.
20078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20083 # We did not find ourselves, most probably we were run as `sh COMMAND'
20084 # in which case we are not to be found in the path.
20085 if test "x$as_myself" = x; then
20088 if test ! -f "$as_myself"; then
20089 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20090 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20091 { (exit 1); exit 1; }; }
20093 case $CONFIG_SHELL in
20095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20096 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20099 test -z "$as_dir" && as_dir=.
20100 for as_base in sh bash ksh sh5; do
20103 if ("$as_dir/$as_base" -c '
20104 as_lineno_1=$LINENO
20105 as_lineno_2=$LINENO
20106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20107 test "x$as_lineno_1" != "x$as_lineno_2" &&
20108 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20109 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20110 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20111 CONFIG_SHELL=$as_dir/$as_base
20112 export CONFIG_SHELL
20113 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20122 # uniformly replaced by the line number. The first 'sed' inserts a
20123 # line-number line before each line; the second 'sed' does the real
20124 # work. The second script uses 'N' to pair each line-number line
20125 # with the numbered line, and appends trailing '-' during
20126 # substitution so that $LINENO is not a special case at line end.
20127 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20128 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20129 sed '=' <$as_myself |
20134 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20137 s,^['$as_cr_digits']*\n,,
20138 ' >$as_me.lineno &&
20139 chmod +x $as_me.lineno ||
20140 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20141 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20142 { (exit 1); exit 1; }; }
20144 # Don't try to exec as it changes $[0], causing all sort of problems
20145 # (the dirname of $[0] is not the place where we might find the
20146 # original and so on. Autoconf is especially sensible to this).
20148 # Exit status is that of the last command.
20153 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20154 *c*,-n*) ECHO_N= ECHO_C='
20156 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20157 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20160 if expr a : '\(a\)' >/dev/null 2>&1; then
20166 rm -f conf$$ conf$$.exe conf$$.file
20168 if ln -s conf$$.file conf$$ 2>/dev/null; then
20169 # We could just check for DJGPP; but this test a) works b) is more generic
20170 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20171 if test -f conf$$.exe; then
20172 # Don't use ln at all; we don't have any links
20177 elif ln conf$$.file conf$$ 2>/dev/null; then
20182 rm -f conf$$ conf$$.exe conf$$.file
20184 if mkdir -p . 2>/dev/null; then
20187 test -d ./-p && rmdir ./-p
20191 as_executable_p="test -f"
20193 # Sed expression to map a string onto a valid CPP name.
20194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20196 # Sed expression to map a string onto a valid variable name.
20197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20201 # We need space, tab and new line, in precisely that order.
20211 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20212 # report actual input values of CONFIG_FILES etc. instead of their
20213 # values after options handling. Logging --version etc. is OK.
20217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20218 ## Running $as_me. ##
20223 This file was extended by TiMidity++ $as_me current, which was
20224 generated by GNU Autoconf 2.59. Invocation command line was
20226 CONFIG_FILES = $CONFIG_FILES
20227 CONFIG_HEADERS = $CONFIG_HEADERS
20228 CONFIG_LINKS = $CONFIG_LINKS
20229 CONFIG_COMMANDS = $CONFIG_COMMANDS
20233 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20237 # Files that config.status was made for.
20238 if test -n "$ac_config_files"; then
20239 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20242 if test -n "$ac_config_headers"; then
20243 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20246 if test -n "$ac_config_links"; then
20247 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20250 if test -n "$ac_config_commands"; then
20251 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20254 cat >>$CONFIG_STATUS <<\_ACEOF
20257 \`$as_me' instantiates files from templates according to the
20258 current configuration.
20260 Usage: $0 [OPTIONS] [FILE]...
20262 -h, --help print this help, then exit
20263 -V, --version print version number, then exit
20264 -q, --quiet do not print progress messages
20265 -d, --debug don't remove temporary files
20266 --recheck update $as_me by reconfiguring in the same conditions
20267 --file=FILE[:TEMPLATE]
20268 instantiate the configuration file FILE
20269 --header=FILE[:TEMPLATE]
20270 instantiate the configuration header FILE
20272 Configuration files:
20275 Configuration headers:
20278 Configuration commands:
20281 Report bugs to <bug-autoconf@gnu.org>."
20284 cat >>$CONFIG_STATUS <<_ACEOF
20286 TiMidity++ config.status current
20287 configured by $0, generated by GNU Autoconf 2.59,
20288 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20290 Copyright (C) 2003 Free Software Foundation, Inc.
20291 This config.status script is free software; the Free Software Foundation
20292 gives unlimited permission to copy, distribute and modify it."
20297 cat >>$CONFIG_STATUS <<\_ACEOF
20298 # If no file are specified by the user, then we need to provide default
20299 # value. By we need to know if files were specified by the user.
20305 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20306 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20314 *) # This is not an option, so the user has probably given explicit
20317 ac_need_defaults=false;;
20321 # Handling of the options.
20323 cat >>$CONFIG_STATUS <<\_ACEOF
20324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20326 --version | --vers* | -V )
20327 echo "$ac_cs_version"; exit 0 ;;
20329 # Conflict between --help and --header
20330 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20331 Try \`$0 --help' for more information." >&5
20332 echo "$as_me: error: ambiguous option: $1
20333 Try \`$0 --help' for more information." >&2;}
20334 { (exit 1); exit 1; }; };;
20335 --help | --hel | -h )
20336 echo "$ac_cs_usage"; exit 0 ;;
20337 --debug | --d* | -d )
20339 --file | --fil | --fi | --f )
20341 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20342 ac_need_defaults=false;;
20343 --header | --heade | --head | --hea )
20345 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20346 ac_need_defaults=false;;
20347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20351 # This is an error.
20352 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20353 Try \`$0 --help' for more information." >&5
20354 echo "$as_me: error: unrecognized option: $1
20355 Try \`$0 --help' for more information." >&2;}
20356 { (exit 1); exit 1; }; } ;;
20358 *) ac_config_targets="$ac_config_targets $1" ;;
20364 ac_configure_extra_args=
20366 if $ac_cs_silent; then
20368 ac_configure_extra_args="$ac_configure_extra_args --silent"
20372 cat >>$CONFIG_STATUS <<_ACEOF
20373 if \$ac_cs_recheck; then
20374 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20375 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20380 cat >>$CONFIG_STATUS <<_ACEOF
20382 # INIT-COMMANDS section.
20385 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20391 cat >>$CONFIG_STATUS <<\_ACEOF
20392 for ac_config_target in $ac_config_targets
20394 case "$ac_config_target" in
20395 # Handling of arguments.
20396 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20397 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20398 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20399 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20400 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20401 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20402 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20403 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20404 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20405 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20406 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20407 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20408 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20409 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20410 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20411 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20412 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20413 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20414 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20415 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20416 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20417 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20418 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20419 { (exit 1); exit 1; }; };;
20423 # If the user did not use the arguments to specify the items to instantiate,
20424 # then the envvar interface is used. Set only those that are not.
20425 # We use the long form for the default assignment because of an extremely
20426 # bizarre bug on SunOS 4.1.3.
20427 if $ac_need_defaults; then
20428 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20429 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20430 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20433 # Have a temporary directory for convenience. Make it in the build tree
20434 # simply because there is no reason to put it here, and in addition,
20435 # creating and moving files from /tmp can sometimes cause problems.
20436 # Create a temporary directory, and hook for its removal unless debugging.
20439 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20440 trap '{ (exit 1); exit 1; }' 1 2 13 15
20443 # Create a (secure) tmp directory for tmp files.
20446 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20447 test -n "$tmp" && test -d "$tmp"
20450 tmp=./confstat$$-$RANDOM
20451 (umask 077 && mkdir $tmp)
20454 echo "$me: cannot create a temporary directory in ." >&2
20455 { (exit 1); exit 1; }
20460 cat >>$CONFIG_STATUS <<_ACEOF
20463 # CONFIG_FILES section.
20466 # No need to generate the scripts if there are no CONFIG_FILES.
20467 # This happens for instance when ./config.status config.h
20468 if test -n "\$CONFIG_FILES"; then
20469 # Protect against being on the right side of a sed subst in config.status.
20470 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20471 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20472 s,@SHELL@,$SHELL,;t t
20473 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20474 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20475 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20476 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20477 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20478 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20479 s,@exec_prefix@,$exec_prefix,;t t
20480 s,@prefix@,$prefix,;t t
20481 s,@program_transform_name@,$program_transform_name,;t t
20482 s,@bindir@,$bindir,;t t
20483 s,@sbindir@,$sbindir,;t t
20484 s,@libexecdir@,$libexecdir,;t t
20485 s,@datadir@,$datadir,;t t
20486 s,@sysconfdir@,$sysconfdir,;t t
20487 s,@sharedstatedir@,$sharedstatedir,;t t
20488 s,@localstatedir@,$localstatedir,;t t
20489 s,@libdir@,$libdir,;t t
20490 s,@includedir@,$includedir,;t t
20491 s,@oldincludedir@,$oldincludedir,;t t
20492 s,@infodir@,$infodir,;t t
20493 s,@mandir@,$mandir,;t t
20494 s,@build_alias@,$build_alias,;t t
20495 s,@host_alias@,$host_alias,;t t
20496 s,@target_alias@,$target_alias,;t t
20497 s,@DEFS@,$DEFS,;t t
20498 s,@ECHO_C@,$ECHO_C,;t t
20499 s,@ECHO_N@,$ECHO_N,;t t
20500 s,@ECHO_T@,$ECHO_T,;t t
20501 s,@LIBS@,$LIBS,;t t
20502 s,@build@,$build,;t t
20503 s,@build_cpu@,$build_cpu,;t t
20504 s,@build_vendor@,$build_vendor,;t t
20505 s,@build_os@,$build_os,;t t
20506 s,@host@,$host,;t t
20507 s,@host_cpu@,$host_cpu,;t t
20508 s,@host_vendor@,$host_vendor,;t t
20509 s,@host_os@,$host_os,;t t
20510 s,@target@,$target,;t t
20511 s,@target_cpu@,$target_cpu,;t t
20512 s,@target_vendor@,$target_vendor,;t t
20513 s,@target_os@,$target_os,;t t
20514 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20515 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20516 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20517 s,@CYGPATH_W@,$CYGPATH_W,;t t
20518 s,@PACKAGE@,$PACKAGE,;t t
20519 s,@VERSION@,$VERSION,;t t
20520 s,@ACLOCAL@,$ACLOCAL,;t t
20521 s,@AUTOCONF@,$AUTOCONF,;t t
20522 s,@AUTOMAKE@,$AUTOMAKE,;t t
20523 s,@AUTOHEADER@,$AUTOHEADER,;t t
20524 s,@MAKEINFO@,$MAKEINFO,;t t
20525 s,@AMTAR@,$AMTAR,;t t
20526 s,@install_sh@,$install_sh,;t t
20527 s,@STRIP@,$STRIP,;t t
20528 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20529 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20531 s,@SET_MAKE@,$SET_MAKE,;t t
20532 s,@am__leading_dot@,$am__leading_dot,;t t
20533 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20534 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20535 s,@MAINT@,$MAINT,;t t
20536 s,@EMACS@,$EMACS,;t t
20537 s,@lispdir@,$lispdir,;t t
20539 s,@CFLAGS@,$CFLAGS,;t t
20540 s,@LDFLAGS@,$LDFLAGS,;t t
20541 s,@CPPFLAGS@,$CPPFLAGS,;t t
20542 s,@ac_ct_CC@,$ac_ct_CC,;t t
20543 s,@EXEEXT@,$EXEEXT,;t t
20544 s,@OBJEXT@,$OBJEXT,;t t
20545 s,@DEPDIR@,$DEPDIR,;t t
20546 s,@am__include@,$am__include,;t t
20547 s,@am__quote@,$am__quote,;t t
20548 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20549 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20550 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20551 s,@CCDEPMODE@,$CCDEPMODE,;t t
20552 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20553 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20555 s,@EGREP@,$EGREP,;t t
20556 s,@RANLIB@,$RANLIB,;t t
20557 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20558 s,@LN_S@,$LN_S,;t t
20559 s,@X_CFLAGS@,$X_CFLAGS,;t t
20560 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20561 s,@X_LIBS@,$X_LIBS,;t t
20562 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20563 s,@LIBOBJS@,$LIBOBJS,;t t
20564 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20565 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20566 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20567 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20568 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20569 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20570 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20571 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20572 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20573 s,@ESD_LIBS@,$ESD_LIBS,;t t
20574 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20575 s,@AO_LIBS@,$AO_LIBS,;t t
20576 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20577 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20578 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20579 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20580 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20581 s,@OGG_LIBS@,$OGG_LIBS,;t t
20582 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20583 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20584 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20585 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20586 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20587 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20588 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20589 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20590 s,@n_so_libs@,$n_so_libs,;t t
20591 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20592 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20593 s,@s_so_libs@,$s_so_libs,;t t
20594 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20595 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20596 s,@m_so_libs@,$m_so_libs,;t t
20597 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20598 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20599 s,@k_so_libs@,$k_so_libs,;t t
20600 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20601 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20602 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20603 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20604 s,@e_so_libs@,$e_so_libs,;t t
20605 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
20606 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
20607 s,@T_so_libs@,$T_so_libs,;t t
20608 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
20609 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
20610 s,@a_so_libs@,$a_so_libs,;t t
20611 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
20612 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
20613 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
20614 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
20615 s,@i_so_libs@,$i_so_libs,;t t
20616 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
20617 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
20618 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20619 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20620 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20621 s,@GTK_LIBS@,$GTK_LIBS,;t t
20622 s,@g_so_libs@,$g_so_libs,;t t
20623 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
20624 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
20625 s,@r_so_libs@,$r_so_libs,;t t
20626 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
20627 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
20628 s,@A_so_libs@,$A_so_libs,;t t
20629 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
20630 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
20631 s,@W_so_libs@,$W_so_libs,;t t
20632 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
20633 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
20634 s,@P_so_libs@,$P_so_libs,;t t
20635 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
20636 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
20637 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
20638 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
20639 s,@w_so_libs@,$w_so_libs,;t t
20640 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
20641 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
20642 s,@p_so_libs@,$p_so_libs,;t t
20643 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
20644 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
20645 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
20646 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
20647 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
20648 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
20649 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
20650 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
20651 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
20652 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
20653 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
20654 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
20655 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
20656 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
20657 s,@WATCOM_TRUE@,$WATCOM_TRUE,;t t
20658 s,@WATCOM_FALSE@,$WATCOM_FALSE,;t t
20659 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
20660 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
20661 s,@BORLANDC_START@,$BORLANDC_START,;t t
20662 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
20663 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
20664 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
20665 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
20666 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
20667 s,@EXTRALIBS@,$EXTRALIBS,;t t
20668 s,@NETSRCS@,$NETSRCS,;t t
20669 s,@ELFILES@,$ELFILES,;t t
20670 s,@SHLD@,$SHLD,;t t
20671 s,@SHCFLAGS@,$SHCFLAGS,;t t
20672 s,@dynamic_targets@,$dynamic_targets,;t t
20674 s,@WISH@,$WISH,;t t
20675 s,@tcltk_dep@,$tcltk_dep,;t t
20676 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
20677 s,@pkgdatadir@,$pkgdatadir,;t t
20678 s,@pkglibdir@,$pkglibdir,;t t
20679 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20684 cat >>$CONFIG_STATUS <<\_ACEOF
20685 # Split the substitutions into bite-sized pieces for seds with
20686 # small command number limits, like on Digital OSF/1 and HP-UX.
20687 ac_max_sed_lines=48
20688 ac_sed_frag=1 # Number of current file.
20689 ac_beg=1 # First line for current file.
20690 ac_end=$ac_max_sed_lines # Line after last line for current file.
20693 while $ac_more_lines; do
20694 if test $ac_beg -gt 1; then
20695 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20697 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20699 if test ! -s $tmp/subs.frag; then
20700 ac_more_lines=false
20702 # The purpose of the label and of the branching condition is to
20703 # speed up the sed processing (if there are no `@' at all, there
20704 # is no need to browse any of the substitutions).
20705 # These are the two extra sed commands mentioned above.
20707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20708 if test -z "$ac_sed_cmds"; then
20709 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20711 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20713 ac_sed_frag=`expr $ac_sed_frag + 1`
20715 ac_end=`expr $ac_end + $ac_max_sed_lines`
20718 if test -z "$ac_sed_cmds"; then
20721 fi # test -n "$CONFIG_FILES"
20724 cat >>$CONFIG_STATUS <<\_ACEOF
20725 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20726 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20728 - | *:- | *:-:* ) # input from stdin
20730 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20732 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20734 * ) ac_file_in=$ac_file.in ;;
20737 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20738 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20740 X"$ac_file" : 'X\(//\)[^/]' \| \
20741 X"$ac_file" : 'X\(//\)$' \| \
20742 X"$ac_file" : 'X\(/\)' \| \
20743 . : '\(.\)' 2>/dev/null ||
20745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20747 /^X\(\/\/\)$/{ s//\1/; q; }
20748 /^X\(\/\).*/{ s//\1/; q; }
20750 { if $as_mkdir_p; then
20755 while test ! -d "$as_dir"; do
20756 as_dirs="$as_dir $as_dirs"
20757 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20759 X"$as_dir" : 'X\(//\)[^/]' \| \
20760 X"$as_dir" : 'X\(//\)$' \| \
20761 X"$as_dir" : 'X\(/\)' \| \
20762 . : '\(.\)' 2>/dev/null ||
20764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20766 /^X\(\/\/\)$/{ s//\1/; q; }
20767 /^X\(\/\).*/{ s//\1/; q; }
20770 test ! -n "$as_dirs" || mkdir $as_dirs
20771 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20772 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20773 { (exit 1); exit 1; }; }; }
20777 if test "$ac_dir" != .; then
20778 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20779 # A "../" for each directory in $ac_dir_suffix.
20780 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20782 ac_dir_suffix= ac_top_builddir=
20786 .) # No --srcdir option. We are building in place.
20788 if test -z "$ac_top_builddir"; then
20791 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20793 [\\/]* | ?:[\\/]* ) # Absolute path.
20794 ac_srcdir=$srcdir$ac_dir_suffix;
20795 ac_top_srcdir=$srcdir ;;
20796 *) # Relative path.
20797 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20798 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20801 # Do not use `cd foo && pwd` to compute absolute paths, because
20802 # the directories may not exist.
20804 .) ac_abs_builddir="$ac_dir";;
20807 .) ac_abs_builddir=`pwd`;;
20808 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20809 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20812 case $ac_abs_builddir in
20813 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20815 case ${ac_top_builddir}. in
20816 .) ac_abs_top_builddir=$ac_abs_builddir;;
20817 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20818 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20821 case $ac_abs_builddir in
20822 .) ac_abs_srcdir=$ac_srcdir;;
20825 .) ac_abs_srcdir=$ac_abs_builddir;;
20826 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20827 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20830 case $ac_abs_builddir in
20831 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20833 case $ac_top_srcdir in
20834 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20835 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20836 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20842 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20843 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20846 if test x"$ac_file" != x-; then
20847 { echo "$as_me:$LINENO: creating $ac_file" >&5
20848 echo "$as_me: creating $ac_file" >&6;}
20851 # Let's still pretend it is `configure' which instantiates (i.e., don't
20852 # use $as_me), people would be surprised to read:
20853 # /* config.h. Generated by config.status. */
20854 if test x"$ac_file" = x-; then
20857 configure_input="$ac_file. "
20859 configure_input=$configure_input"Generated from `echo $ac_file_in |
20860 sed 's,.*/,,'` by configure."
20862 # First look for the input files in the build tree, otherwise in the
20864 ac_file_inputs=`IFS=:
20865 for f in $ac_file_in; do
20867 -) echo $tmp/stdin ;;
20869 # Absolute (can't be DOS-style, as IFS=:)
20870 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20871 echo "$as_me: error: cannot find input file: $f" >&2;}
20872 { (exit 1); exit 1; }; }
20875 if test -f "$f"; then
20878 elif test -f "$srcdir/$f"; then
20883 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20884 echo "$as_me: error: cannot find input file: $f" >&2;}
20885 { (exit 1); exit 1; }; }
20888 done` || { (exit 1); exit 1; }
20890 cat >>$CONFIG_STATUS <<_ACEOF
20894 cat >>$CONFIG_STATUS <<\_ACEOF
20896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20897 s,@configure_input@,$configure_input,;t t
20898 s,@srcdir@,$ac_srcdir,;t t
20899 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20900 s,@top_srcdir@,$ac_top_srcdir,;t t
20901 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20902 s,@builddir@,$ac_builddir,;t t
20903 s,@abs_builddir@,$ac_abs_builddir,;t t
20904 s,@top_builddir@,$ac_top_builddir,;t t
20905 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20906 s,@INSTALL@,$ac_INSTALL,;t t
20907 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20909 if test x"$ac_file" != x-; then
20910 mv $tmp/out $ac_file
20918 cat >>$CONFIG_STATUS <<\_ACEOF
20921 # CONFIG_HEADER section.
20924 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20925 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20927 # ac_d sets the value in "#define NAME VALUE" lines.
20928 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20929 ac_dB='[ ].*$,\1#\2'
20932 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20933 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20934 ac_uB='$,\1#\2define\3'
20938 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20941 - | *:- | *:-:* ) # input from stdin
20943 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20945 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20947 * ) ac_file_in=$ac_file.in ;;
20950 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20951 echo "$as_me: creating $ac_file" >&6;}
20953 # First look for the input files in the build tree, otherwise in the
20955 ac_file_inputs=`IFS=:
20956 for f in $ac_file_in; do
20958 -) echo $tmp/stdin ;;
20960 # Absolute (can't be DOS-style, as IFS=:)
20961 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20962 echo "$as_me: error: cannot find input file: $f" >&2;}
20963 { (exit 1); exit 1; }; }
20964 # Do quote $f, to prevent DOS paths from being IFS'd.
20967 if test -f "$f"; then
20970 elif test -f "$srcdir/$f"; then
20975 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20976 echo "$as_me: error: cannot find input file: $f" >&2;}
20977 { (exit 1); exit 1; }; }
20980 done` || { (exit 1); exit 1; }
20981 # Remove the trailing spaces.
20982 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20986 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20987 # `conftest.undefs', that substitutes the proper values into
20988 # config.h.in to produce config.h. The first handles `#define'
20989 # templates, and the second `#undef' templates.
20990 # And first: Protect against being on the right side of a sed subst in
20991 # config.status. Protect against being in an unquoted here document
20992 # in config.status.
20993 rm -f conftest.defines conftest.undefs
20994 # Using a here document instead of a string reduces the quoting nightmare.
20995 # Putting comments in sed scripts is not portable.
20997 # `end' is used to avoid that the second main sed command (meant for
20998 # 0-ary CPP macros) applies to n-ary macro definitions.
20999 # See the Autoconf documentation for `clear'.
21000 cat >confdef2sed.sed <<\_ACEOF
21005 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21007 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21010 # If some macros were called several times there might be several times
21011 # the same #defines, which is useless. Nevertheless, we may not want to
21012 # sort them, since we want the *last* AC-DEFINE to be honored.
21013 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21014 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21015 rm -f confdef2sed.sed
21017 # This sed command replaces #undef with comments. This is necessary, for
21018 # example, in the case of _POSIX_SOURCE, which is predefined and required
21019 # on some systems where configure will not decide to define it.
21020 cat >>conftest.undefs <<\_ACEOF
21021 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21024 # Break up conftest.defines because some shells have a limit on the size
21025 # of here documents, and old seds have small limits too (100 cmds).
21026 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21027 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21028 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21029 echo ' :' >>$CONFIG_STATUS
21030 rm -f conftest.tail
21031 while grep . conftest.defines >/dev/null
21033 # Write a limited-size here document to $tmp/defines.sed.
21034 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21035 # Speed up: don't consider the non `#define' lines.
21036 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21037 # Work around the forget-to-reset-the-flag bug.
21038 echo 't clr' >>$CONFIG_STATUS
21039 echo ': clr' >>$CONFIG_STATUS
21040 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21042 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21044 mv $tmp/out $tmp/in
21046 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21047 rm -f conftest.defines
21048 mv conftest.tail conftest.defines
21050 rm -f conftest.defines
21051 echo ' fi # grep' >>$CONFIG_STATUS
21052 echo >>$CONFIG_STATUS
21054 # Break up conftest.undefs because some shells have a limit on the size
21055 # of here documents, and old seds have small limits too (100 cmds).
21056 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21057 rm -f conftest.tail
21058 while grep . conftest.undefs >/dev/null
21060 # Write a limited-size here document to $tmp/undefs.sed.
21061 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21062 # Speed up: don't consider the non `#undef'
21063 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21064 # Work around the forget-to-reset-the-flag bug.
21065 echo 't clr' >>$CONFIG_STATUS
21066 echo ': clr' >>$CONFIG_STATUS
21067 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21069 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21071 mv $tmp/out $tmp/in
21073 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21074 rm -f conftest.undefs
21075 mv conftest.tail conftest.undefs
21077 rm -f conftest.undefs
21079 cat >>$CONFIG_STATUS <<\_ACEOF
21080 # Let's still pretend it is `configure' which instantiates (i.e., don't
21081 # use $as_me), people would be surprised to read:
21082 # /* config.h. Generated by config.status. */
21083 if test x"$ac_file" = x-; then
21084 echo "/* Generated by configure. */" >$tmp/config.h
21086 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21088 cat $tmp/in >>$tmp/config.h
21090 if test x"$ac_file" != x-; then
21091 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21092 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21093 echo "$as_me: $ac_file is unchanged" >&6;}
21095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21097 X"$ac_file" : 'X\(//\)[^/]' \| \
21098 X"$ac_file" : 'X\(//\)$' \| \
21099 X"$ac_file" : 'X\(/\)' \| \
21100 . : '\(.\)' 2>/dev/null ||
21102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21104 /^X\(\/\/\)$/{ s//\1/; q; }
21105 /^X\(\/\).*/{ s//\1/; q; }
21107 { if $as_mkdir_p; then
21112 while test ! -d "$as_dir"; do
21113 as_dirs="$as_dir $as_dirs"
21114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116 X"$as_dir" : 'X\(//\)[^/]' \| \
21117 X"$as_dir" : 'X\(//\)$' \| \
21118 X"$as_dir" : 'X\(/\)' \| \
21119 . : '\(.\)' 2>/dev/null ||
21121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21123 /^X\(\/\/\)$/{ s//\1/; q; }
21124 /^X\(\/\).*/{ s//\1/; q; }
21127 test ! -n "$as_dirs" || mkdir $as_dirs
21128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21130 { (exit 1); exit 1; }; }; }
21133 mv $tmp/config.h $ac_file
21137 rm -f $tmp/config.h
21139 # Compute $ac_file's index in $config_headers.
21141 for _am_header in $config_headers :; do
21142 case $_am_header in
21143 $ac_file | $ac_file:* )
21146 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21149 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21150 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151 X$ac_file : 'X\(//\)[^/]' \| \
21152 X$ac_file : 'X\(//\)$' \| \
21153 X$ac_file : 'X\(/\)' \| \
21154 . : '\(.\)' 2>/dev/null ||
21156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21158 /^X\(\/\/\)$/{ s//\1/; q; }
21159 /^X\(\/\).*/{ s//\1/; q; }
21160 s/.*/./; q'`/stamp-h$_am_stamp_count
21163 cat >>$CONFIG_STATUS <<\_ACEOF
21166 # CONFIG_COMMANDS section.
21168 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21169 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21170 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21171 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21172 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21173 X"$ac_dest" : 'X\(//\)[^/]' \| \
21174 X"$ac_dest" : 'X\(//\)$' \| \
21175 X"$ac_dest" : 'X\(/\)' \| \
21176 . : '\(.\)' 2>/dev/null ||
21178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21180 /^X\(\/\/\)$/{ s//\1/; q; }
21181 /^X\(\/\).*/{ s//\1/; q; }
21183 { if $as_mkdir_p; then
21188 while test ! -d "$as_dir"; do
21189 as_dirs="$as_dir $as_dirs"
21190 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21191 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21192 X"$as_dir" : 'X\(//\)[^/]' \| \
21193 X"$as_dir" : 'X\(//\)$' \| \
21194 X"$as_dir" : 'X\(/\)' \| \
21195 . : '\(.\)' 2>/dev/null ||
21197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21199 /^X\(\/\/\)$/{ s//\1/; q; }
21200 /^X\(\/\).*/{ s//\1/; q; }
21203 test ! -n "$as_dirs" || mkdir $as_dirs
21204 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21205 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21206 { (exit 1); exit 1; }; }; }
21210 if test "$ac_dir" != .; then
21211 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21212 # A "../" for each directory in $ac_dir_suffix.
21213 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21215 ac_dir_suffix= ac_top_builddir=
21219 .) # No --srcdir option. We are building in place.
21221 if test -z "$ac_top_builddir"; then
21224 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21226 [\\/]* | ?:[\\/]* ) # Absolute path.
21227 ac_srcdir=$srcdir$ac_dir_suffix;
21228 ac_top_srcdir=$srcdir ;;
21229 *) # Relative path.
21230 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21231 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21234 # Do not use `cd foo && pwd` to compute absolute paths, because
21235 # the directories may not exist.
21237 .) ac_abs_builddir="$ac_dir";;
21240 .) ac_abs_builddir=`pwd`;;
21241 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21242 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21245 case $ac_abs_builddir in
21246 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21248 case ${ac_top_builddir}. in
21249 .) ac_abs_top_builddir=$ac_abs_builddir;;
21250 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21251 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21254 case $ac_abs_builddir in
21255 .) ac_abs_srcdir=$ac_srcdir;;
21258 .) ac_abs_srcdir=$ac_abs_builddir;;
21259 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21260 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21263 case $ac_abs_builddir in
21264 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21266 case $ac_top_srcdir in
21267 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21268 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21269 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21274 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21275 echo "$as_me: executing $ac_dest commands" >&6;}
21277 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21278 # Strip MF so we end up with the name of the file.
21279 mf=`echo "$mf" | sed -e 's/:.*$//'`
21280 # Check whether this is an Automake generated Makefile or not.
21281 # We used to match only the files named `Makefile.in', but
21282 # some people rename them; so instead we look at the file content.
21283 # Grep'ing the first line is not enough: some people post-process
21284 # each Makefile.in and add a new line on top of each file to say so.
21285 # So let's grep whole file.
21286 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21287 dirpart=`(dirname "$mf") 2>/dev/null ||
21288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21289 X"$mf" : 'X\(//\)[^/]' \| \
21290 X"$mf" : 'X\(//\)$' \| \
21291 X"$mf" : 'X\(/\)' \| \
21292 . : '\(.\)' 2>/dev/null ||
21294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21296 /^X\(\/\/\)$/{ s//\1/; q; }
21297 /^X\(\/\).*/{ s//\1/; q; }
21302 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21303 # Extract the definition of DEP_FILES from the Makefile without
21305 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21306 test -z "$DEPDIR" && continue
21307 # When using ansi2knr, U may be empty or an underscore; expand it
21308 U=`sed -n -e '/^U = / s///p' < "$mf"`
21309 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21310 # We invoke sed twice because it is the simplest approach to
21311 # changing $(DEPDIR) to its actual value in the expansion.
21312 for file in `sed -n -e '
21313 /^DEP_FILES = .*\\\\$/ {
21322 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21323 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21324 # Make sure the directory exists.
21325 test -f "$dirpart/$file" && continue
21326 fdir=`(dirname "$file") 2>/dev/null ||
21327 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21328 X"$file" : 'X\(//\)[^/]' \| \
21329 X"$file" : 'X\(//\)$' \| \
21330 X"$file" : 'X\(/\)' \| \
21331 . : '\(.\)' 2>/dev/null ||
21333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21335 /^X\(\/\/\)$/{ s//\1/; q; }
21336 /^X\(\/\).*/{ s//\1/; q; }
21338 { if $as_mkdir_p; then
21339 mkdir -p $dirpart/$fdir
21341 as_dir=$dirpart/$fdir
21343 while test ! -d "$as_dir"; do
21344 as_dirs="$as_dir $as_dirs"
21345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21347 X"$as_dir" : 'X\(//\)[^/]' \| \
21348 X"$as_dir" : 'X\(//\)$' \| \
21349 X"$as_dir" : 'X\(/\)' \| \
21350 . : '\(.\)' 2>/dev/null ||
21352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21354 /^X\(\/\/\)$/{ s//\1/; q; }
21355 /^X\(\/\).*/{ s//\1/; q; }
21358 test ! -n "$as_dirs" || mkdir $as_dirs
21359 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21360 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21361 { (exit 1); exit 1; }; }; }
21363 # echo "creating $dirpart/$file"
21364 echo '# dummy' > "$dirpart/$file"
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21374 { (exit 0); exit 0; }
21376 chmod +x $CONFIG_STATUS
21377 ac_clean_files=$ac_clean_files_save
21380 # configure is writing to config.log, and then calls config.status.
21381 # config.status does its own redirection, appending to config.log.
21382 # Unfortunately, on DOS this fails, as config.log is still kept open
21383 # by configure, so config.status won't be able to write to it; its
21384 # output is simply discarded. So we exec the FD to /dev/null,
21385 # effectively closing config.log, so it can be properly (re)opened and
21386 # appended to by config.status. When coming back to configure, we
21387 # need to make the FD available again.
21388 if test "$no_create" != yes; then
21390 ac_config_status_args=
21391 test "$silent" = yes &&
21392 ac_config_status_args="$ac_config_status_args --quiet"
21394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21397 # would make configure fail if this is the last instruction.
21398 $ac_cs_success || { (exit 1); exit 1; }